1mod clipboard_delegate;
45#[cfg(feature = "gamepad")]
46mod gamepad_delegate;
47mod geolocation_delegate;
48#[cfg(all(
49 feature = "media-gstreamer",
50 not(any(target_os = "android", target_env = "ohos"))
51))]
52mod gstreamer_plugins;
53mod javascript_evaluator;
54mod network_manager;
55mod proxies;
56mod responders;
57mod servo;
58mod servo_delegate;
59mod site_data_manager;
60mod user_content_manager;
61mod webview;
62mod webview_delegate;
63
64pub use accesskit;
67pub use embedder_traits::user_contents::UserScript;
68pub use embedder_traits::{submit_resource_reader, *};
69pub use image::RgbaImage;
70pub use keyboard_types::{
71 Code, CompositionEvent, CompositionState, Key, KeyState, Location, Modifiers, NamedKey,
72};
73pub use media::{
74 GlApi as MediaGlApi, GlContext as MediaGlContext, NativeDisplay as MediaNativeDisplay,
75};
76pub use net::image_cache::should_panic_hook_suppress_termination;
77pub use net_traits::CookieSource;
78pub use net_traits::pub_domains::is_reg_domain;
81pub use paint::WebRenderDebugOption;
82pub use paint_api::rendering_context::{
83 OffscreenRenderingContext, RenderingContext, SoftwareRenderingContext, WindowRenderingContext,
84};
85#[doc(hidden)]
88pub use profile_traits;
89pub use resources;
92pub use servo_base::generic_channel::GenericSender;
93pub use servo_base::id::WebViewId;
94pub use servo_config::opts::{DiagnosticsLogging, DiagnosticsLoggingOption, Opts, OutputOptions};
95pub use servo_config::prefs::{PrefValue, Preferences, UserAgentPlatform};
96pub use servo_config::{opts, pref, prefs};
97pub use servo_geometry::{
98 DeviceIndependentIntRect, DeviceIndependentPixel, convert_rect_to_css_pixel,
99};
100#[doc(hidden)]
101pub use servo_tracing;
102pub use servo_url::ServoUrl;
103pub use style::Zero;
104pub use style_traits::CSSPixel;
105pub use webrender_api::units::{
106 DeviceIntPoint, DeviceIntRect, DeviceIntSize, DevicePixel, DevicePoint, DeviceVector2D,
107};
108
109pub use crate::clipboard_delegate::{ClipboardDelegate, StringRequest};
110#[cfg(feature = "gamepad")]
111pub use crate::gamepad_delegate::{
112 GamepadDelegate, GamepadHapticEffectRequest, GamepadHapticEffectRequestType,
113};
114pub use crate::geolocation_delegate::{GeolocationDelegate, PositionRequest, PositionWatch};
115pub use crate::network_manager::{CacheEntry, NetworkManager};
116#[cfg(feature = "multiprocess")]
117pub use crate::servo::run_content_process;
118pub use crate::servo::{Servo, ServoBuilder};
119pub use crate::servo_delegate::{ServoDelegate, ServoError};
120pub use crate::site_data_manager::{SiteData, SiteDataManager, StorageType};
121pub use crate::user_content_manager::UserContentManager;
122pub use crate::webview::{WebView, WebViewBuilder};
123pub use crate::webview_delegate::{
124 AlertDialog, AllowOrDenyRequest, AuthenticationRequest, BluetoothDeviceSelectionRequest,
125 ColorPicker, ConfirmDialog, ContextMenu, CreateNewWebViewRequest, EmbedderControl, FilePicker,
126 InputMethodControl, NavigationRequest, PermissionRequest, PromptDialog, SelectElement,
127 SimpleDialog, WebResourceLoad, WebViewDelegate,
128};
129
130#[cfg(feature = "webxr")]
131pub mod webxr {
132 #[cfg(not(any(target_os = "android", target_env = "ohos")))]
133 pub use webxr::glwindow::{GlWindow, GlWindowDiscovery, GlWindowMode, GlWindowRenderTarget};
134 #[cfg(not(any(target_os = "android", target_env = "ohos")))]
135 pub use webxr::headless::HeadlessMockDiscovery;
136 #[cfg(target_os = "windows")]
137 pub use webxr::openxr::{AppInfo as OpenXrAppInfo, OpenXrDiscovery};
138 pub use webxr::{Discovery, MainThreadRegistry, WebXrRegistry};
139}
140
141pub mod protocol_handler {
143 pub use net::fetch::methods::{DoneChannel, FetchContext};
144 pub use net::filemanager_thread::FILE_CHUNK_SIZE;
145 pub use net::protocols::{ProtocolHandler, ProtocolRegistry};
146 pub use net_traits::filemanager_thread::RelativePos;
147 pub use net_traits::http_status::HttpStatus;
148 pub use net_traits::request::Request;
149 pub use net_traits::response::{Response, ResponseBody};
150 pub use net_traits::{NetworkError, ResourceFetchTiming};
151
152 pub use crate::webview_delegate::ProtocolHandlerRegistration;
153}
154
155#[cfg(all(feature = "baked-in-resources", not(target_env = "ohos")))]
157use servo_default_resources as _;