Enum embedder_traits::EmbedderMsg[][src]

pub enum EmbedderMsg {
    Status(Option<String>),
    ChangePageTitle(Option<String>),
    MoveTo(DeviceIntPoint),
    ResizeTo(DeviceIntSize),
    Prompt(PromptDefinitionPromptOrigin),
    ShowContextMenu(IpcSender<ContextMenuResult>, Option<String>, Vec<String>),
    AllowNavigationRequest(PipelineIdServoUrl),
    AllowOpeningBrowser(IpcSender<bool>),
    BrowserCreated(TopLevelBrowsingContextId),
    AllowUnload(IpcSender<bool>),
    Keyboard(KeyboardEvent),
    GetClipboardContents(IpcSender<String>),
    SetClipboardContents(String),
    SetCursor(Cursor),
    NewFavicon(ServoUrl),
    HeadParsed,
    HistoryChanged(Vec<ServoUrl>, usize),
    SetFullscreenState(bool),
    LoadStart,
    LoadComplete,
    CloseBrowser,
    Panic(StringOption<String>),
    GetSelectedBluetoothDevice(Vec<String>, IpcSender<Option<String>>),
    SelectFiles(Vec<FilterPattern>, boolIpcSender<Option<Vec<String>>>),
    PromptPermission(PermissionPromptIpcSender<PermissionRequest>),
    ShowIME(InputMethodTypeOption<(String, i32)>, boolDeviceIntRect),
    HideIME,
    Shutdown,
    ReportProfile(Vec<u8>),
    MediaSessionEvent(MediaSessionEvent),
    OnDevtoolsStarted(Result<u16, ()>, String),
}

Variants

Status(Option<String>)

A status message to be displayed by the browser chrome.

ChangePageTitle(Option<String>)

Alerts the embedder that the current page has changed its title.

MoveTo(DeviceIntPoint)

Move the window to a point

ResizeTo(DeviceIntSize)

Resize the window to size

Prompt(PromptDefinitionPromptOrigin)

Show dialog to user

ShowContextMenu(IpcSender<ContextMenuResult>, Option<String>, Vec<String>)

Show a context menu to the user

AllowNavigationRequest(PipelineIdServoUrl)

Whether or not to allow a pipeline to load a url.

AllowOpeningBrowser(IpcSender<bool>)

Whether or not to allow script to open a new tab/browser

BrowserCreated(TopLevelBrowsingContextId)

A new browser was created by script

AllowUnload(IpcSender<bool>)

Wether or not to unload a document

Keyboard(KeyboardEvent)

Sends an unconsumed key event back to the embedder.

GetClipboardContents(IpcSender<String>)

Gets system clipboard contents

SetClipboardContents(String)

Sets system clipboard contents

SetCursor(Cursor)

Changes the cursor.

NewFavicon(ServoUrl)

A favicon was detected

HeadParsed
tag finished parsing
HistoryChanged(Vec<ServoUrl>, usize)

The history state has changed.

SetFullscreenState(bool)

Enter or exit fullscreen

LoadStart

The load of a page has begun

LoadComplete

The load of a page has completed

CloseBrowser

A browser is to be closed

Panic(StringOption<String>)

A pipeline panicked. First string is the reason, second one is the backtrace.

GetSelectedBluetoothDevice(Vec<String>, IpcSender<Option<String>>)

Open dialog to select bluetooth device.

SelectFiles(Vec<FilterPattern>, boolIpcSender<Option<Vec<String>>>)

Open file dialog to select files. Set boolean flag to true allows to select multiple files.

PromptPermission(PermissionPromptIpcSender<PermissionRequest>)

Open interface to request permission specified by prompt.

ShowIME(InputMethodTypeOption<(String, i32)>, boolDeviceIntRect)

Request to present an IME to the user when an editable element is focused. If the input is text, the second parameter defines the pre-existing string text content and the zero-based index into the string locating the insertion point. bool is true for multi-line and false otherwise.

HideIME

Request to hide the IME when the editable element is blurred.

Shutdown

Servo has shut down

ReportProfile(Vec<u8>)

Report a complete sampled profile

MediaSessionEvent(MediaSessionEvent)

Notifies the embedder about media session events (i.e. when there is metadata for the active media session, playback state changes…).

OnDevtoolsStarted(Result<u16, ()>, String)

Report the status of Devtools Server with a token that can be used to bypass the permission prompt.

Trait Implementations

impl Debug for EmbedderMsg[src]

impl<'de> Deserialize<'de> for EmbedderMsg[src]

impl Serialize for EmbedderMsg[src]

Auto Trait Implementations

impl !RefUnwindSafe for EmbedderMsg

impl Send for EmbedderMsg

impl !Sync for EmbedderMsg

impl Unpin for EmbedderMsg

impl UnwindSafe for EmbedderMsg

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T[src]

type Output = T

Should always be Self

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]