Expand description
Types used by the embedding layer and/or exposed to the API. This crate is responsible for
defining types that cross the process boundary from the embedding/rendering layer all the way
to script, thus it should have very minimal dependencies on other parts of Servo. If a type
is not exposed in the API or doesn’t involve messages sent to the embedding/libservo layer, it
is probably a better fit for the constellation_traits
crate.
Re-exports§
pub use crate::input_events::*;
Modules§
Structs§
- The result of a hit test in the compositor.
- Sends messages to the embedder.
- Filter for file selection; the
String
content is expected to be extension (e.g, “doc”, without the prefixing “.”) - Keyboard events are issued for all pressed and released keys.
- Pressed modifier keys.
- Data that could be used to display a desktop notification to the end user when the Notification API is called.
- Actions available for users to choose from for interacting with the notification.
- Information about a
WebView
’s screen geometry and offset. This is used for the Screen CSSOM APIs andwindow.screenLeft
/window.screenTop
. - The address of a node. Layout sends these back. They must be validated via
from_untrusted_node_address
before they can be used, because we do not trust layout. - Data about a
WebView
or<iframe>
viewport: its size and also the HiDPI scale factor to use when rendering the contents.
Enums§
- A response to a request to allow or deny an action.
- For a given pipeline, whether any animations are currently running and any animation callbacks are queued
- A cursor for the window. This is different from a CSS cursor (see
CursorKind
) in that it has noAuto
value. - 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.
- The status of the load in this
WebView
. - Type of events sent from script to the embedder about the media session.
- Enum with variants that match the DOM PermissionName enum
- Represents the contents of either an
<option>
or an<optgroup>
element - Tracks whether Servo isn’t shutting down, is in the process of shutting down, or has finished shutting down.
- Simple dialogs are synchronous dialogs that can be opened by web content. Since their messages are controlled by web content, they should be presented to the user in a way that makes them impossible to mistake for browser UI.
- The type of platform theme.
- Whether the default action for a touch event was prevented by web content
- Messages to the constellation originating from the WebDriver server.