1mod clipboard_delegate;
16#[cfg(feature = "gamepad")]
17mod gamepad_delegate;
18mod gstreamer_plugins;
19mod javascript_evaluator;
20mod network_manager;
21mod proxies;
22mod responders;
23mod servo;
24mod servo_delegate;
25mod site_data_manager;
26mod user_content_manager;
27mod webview;
28mod webview_delegate;
29
30pub use accesskit;
33pub use base::generic_channel::GenericSender;
34pub use base::id::WebViewId;
35pub use embedder_traits::user_contents::UserScript;
36pub use embedder_traits::*;
37pub use image::RgbaImage;
38pub use keyboard_types::{
39 Code, CompositionEvent, CompositionState, Key, KeyState, Location, Modifiers, NamedKey,
40};
41pub use media::{
42 GlApi as MediaGlApi, GlContext as MediaGlContext, NativeDisplay as MediaNativeDisplay,
43};
44pub use net_traits::pub_domains::is_reg_domain;
47pub use paint::WebRenderDebugOption;
48pub use paint_api::rendering_context::{
49 OffscreenRenderingContext, RenderingContext, SoftwareRenderingContext, WindowRenderingContext,
50};
51pub use resources;
54pub use servo_config::opts::{DiagnosticsLogging, Opts, OutputOptions};
55pub use servo_config::prefs::{PrefValue, Preferences, UserAgentPlatform};
56pub use servo_config::{opts, pref, prefs};
57pub use servo_geometry::{
58 DeviceIndependentIntRect, DeviceIndependentPixel, convert_rect_to_css_pixel,
59};
60pub use servo_url::ServoUrl;
61pub use style::Zero;
62pub use style_traits::CSSPixel;
63pub use webrender_api::units::{
64 DeviceIntPoint, DeviceIntRect, DeviceIntSize, DevicePixel, DevicePoint, DeviceVector2D,
65};
66
67pub use crate::clipboard_delegate::{ClipboardDelegate, StringRequest};
68#[cfg(feature = "gamepad")]
69pub use crate::gamepad_delegate::{
70 GamepadDelegate, GamepadHapticEffectRequest, GamepadHapticEffectRequestType,
71};
72pub use crate::network_manager::{CacheEntry, NetworkManager};
73pub use crate::servo::{Servo, ServoBuilder, run_content_process};
74pub use crate::servo_delegate::{ServoDelegate, ServoError};
75pub use crate::site_data_manager::{SiteData, SiteDataManager, StorageType};
76pub use crate::user_content_manager::UserContentManager;
77pub use crate::webview::{WebView, WebViewBuilder};
78pub use crate::webview_delegate::{
79 AlertDialog, AllowOrDenyRequest, AuthenticationRequest, ColorPicker, ConfirmDialog,
80 ContextMenu, CreateNewWebViewRequest, EmbedderControl, FilePicker, InputMethodControl,
81 NavigationRequest, PermissionRequest, PromptDialog, SelectElement, SimpleDialog,
82 WebResourceLoad, WebViewDelegate,
83};
84
85#[cfg(feature = "webxr")]
86pub mod webxr {
87 #[cfg(not(any(target_os = "android", target_env = "ohos")))]
88 pub use webxr::glwindow::{GlWindow, GlWindowDiscovery, GlWindowMode, GlWindowRenderTarget};
89 #[cfg(not(any(target_os = "android", target_env = "ohos")))]
90 pub use webxr::headless::HeadlessMockDiscovery;
91 #[cfg(target_os = "windows")]
92 pub use webxr::openxr::{AppInfo as OpenXrAppInfo, OpenXrDiscovery};
93 pub use webxr::{Discovery, MainThreadRegistry, WebXrRegistry};
94}
95
96pub mod protocol_handler {
98 pub use net::fetch::methods::{DoneChannel, FetchContext};
99 pub use net::filemanager_thread::FILE_CHUNK_SIZE;
100 pub use net::protocols::{ProtocolHandler, ProtocolRegistry};
101 pub use net_traits::filemanager_thread::RelativePos;
102 pub use net_traits::http_status::HttpStatus;
103 pub use net_traits::request::Request;
104 pub use net_traits::response::{Response, ResponseBody};
105 pub use net_traits::{NetworkError, ResourceFetchTiming};
106
107 pub use crate::webview_delegate::ProtocolHandlerRegistration;
108}