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