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