Expand description
Servo, the mighty web browser engine from the future.
This is a very simple library that wires all of Servoβs components
together as type Servo
, along with a generic client
implementing the WindowMethods
trait, to create a working web
browser.
The Servo
type is responsible for configuring a
Constellation
, which does the heavy lifting of coordinating all
of Servoβs internal subsystems, including the ScriptThread
and the
LayoutThread
, as well maintains the navigation context.
Servo
is fed events from a generic type that implements the
WindowMethods
trait.
Re-exports§
pub use webgpu;
pub use webxr;
pub use background_hang_monitor;
pub use base;
pub use bluetooth;
pub use bluetooth_traits;
pub use canvas;
pub use canvas_traits;
pub use compositing;
pub use devtools;
pub use devtools_traits;
pub use euclid;
pub use fonts;
pub use ipc_channel;
pub use layout_thread_2020;
pub use media;
pub use net;
pub use net_traits;
pub use profile;
pub use profile_traits;
pub use script;
pub use script_layout_interface;
pub use script_traits;
pub use servo_config as config;
pub use servo_config;
pub use servo_geometry;
pub use servo_url;
pub use style;
pub use style_traits;
pub use webrender_api;
pub use webrender_traits;
Modules§
- clipboard_
delegate π - media_
platform π - proxies π
- servo_
delegate π - Keyboard related WebDriver functionality.
- webview π
- webview_
delegate π
Structs§
- Both
Logger π - Event to expose input methods to program logic.
- Sends messages to the embedder.
- Filter for file selection; the
String
content is expected to be extension (e.g, βdocβ, without the prefixing β.β) - Index of gamepad in list of systemβs connected gamepads
- The minimum and maximum values that can be reported for axis or button input from this gamepad
- The haptic effects supported by this gamepad
- Keyboard events are issued for all pressed and released keys.
- Pressed modifier keys.
- A request to navigate a
WebView
or one of its inner frames. This can be handled asynchronously. If not handled, the request will automatically be allowed. - Render
Notifier π - The in-process interface to Servo.
- Match keyboard shortcuts and excute actions.
- An opaque identifier for a touch point.
- Parse from string error, returned when string does not match to any Code variant.
- Parse from string error, returned when string does not match to any Key variant.
- The Wheel event deltas in every direction
Enums§
- The mouse button involved in the event. The types of clipboard events
- Code is the physical position of a key.
- Describes the state of a composition session.
- The variant of CompositorEvent that was delivered to a pipeline.
- A cursor for the window. This is different from a CSS cursor (see
CursorKind
) in that it has noAuto
value. - The type of Gamepad event
- The type of Gamepad input being updated
- Used to specify the kind of input method editor appropriate to edit a field. This is a subset of htmlinputelement::InputType because some variants of InputType donβt make sense in this context.
- Key represents the meaning of a keypress.
- Describes the state the key is in.
- The status of the load in this
WebView
. - The location attribute contains an indication of the logical location of the key on the device.
- Type of events sent from script to the embedder about the media session.
- The types of mouse events
- Enum with variants that match the DOM PermissionName enum
- Information required to display a permission prompt
- Status for prompting user for permission.
- The type of platform theme.
- The type of input represented by a multi-touch event.
- The direction of a history traversal
- User
Agent π - Mode to measure WheelDelta floats in
Constants§
- DEFAULT_
USER_ πAGENT
Traits§
Functions§
- create_
constellation π - create_
sandbox π - get_
layout_ πfactory - get_
servo_ πversion - Content process entry point.
- webdriver π