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