Skip to main content

ChromeCommand

Enum ChromeCommand 

Source
pub enum ChromeCommand {
Show 55 variants RequestShutdown { request_id: u64, }, ConfirmShutdown { request_id: u64, proceed: bool, }, ForceShutdown, ConfirmBeforeUnload { browsing_context_id: TabId, request_id: u64, proceed: bool, }, RespondJavaScriptDialog { browsing_context_id: TabId, request_id: u64, response: DialogResponse, }, RespondExtensionPopupJavaScriptDialog { popup_id: PopupId, request_id: u64, response: DialogResponse, }, ConfirmPermission { browsing_context_id: TabId, request_id: u64, allow: bool, }, CreateTab { request_id: u64, initial_url: Option<String>, profile_id: String, }, ListProfiles, RequestCloseTab { browsing_context_id: TabId, }, SetTabSize { browsing_context_id: TabId, width: u32, height: u32, }, Navigate { browsing_context_id: TabId, url: String, }, GoBack { browsing_context_id: TabId, }, GoForward { browsing_context_id: TabId, }, Reload { browsing_context_id: TabId, ignore_cache: bool, }, PrintPreview { browsing_context_id: TabId, }, OpenDevTools { browsing_context_id: TabId, }, InspectElement { browsing_context_id: TabId, x: i32, y: i32, }, GetTabDomHtml { browsing_context_id: TabId, request_id: u64, }, SetTabFocus { browsing_context_id: TabId, focused: bool, }, SendKeyEvent { browsing_context_id: TabId, event: ChromeKeyEvent, commands: Vec<String>, }, ExecuteEditAction { browsing_context_id: TabId, action: EditAction, }, SendMouseEvent { browsing_context_id: TabId, event: ChromeMouseEvent, }, SendMouseWheelEvent { browsing_context_id: TabId, event: ChromeMouseWheelEvent, }, SendDragUpdate { update: ChromeDragUpdate, }, SendDragDrop { drop: ChromeDragDrop, }, SendDragCancel { session_id: u64, browsing_context_id: TabId, }, SetImeComposition { composition: ChromeImeComposition, }, CommitImeText { commit: ChromeImeCommitText, }, FinishComposingText { browsing_context_id: TabId, behavior: ChromeConfirmCompositionBehavior, }, ExecuteContextMenuCommand { menu_id: u64, command_id: i32, event_flags: i32, }, AcceptChoiceMenuSelection { request_id: u64, indices: Vec<i32>, }, DismissChoiceMenu { request_id: u64, }, DismissContextMenu { menu_id: u64, }, PauseDownload { download_id: ChromeDownloadId, }, ResumeDownload { download_id: ChromeDownloadId, }, CancelDownload { download_id: ChromeDownloadId, }, ListExtensions { profile_id: String, }, ActivateExtensionAction { browsing_context_id: TabId, extension_id: String, }, CloseExtensionPopup { popup_id: PopupId, }, SetExtensionPopupSize { popup_id: PopupId, width: u32, height: u32, }, SetExtensionPopupFocus { popup_id: PopupId, focused: bool, }, SendExtensionPopupKeyEvent { popup_id: PopupId, event: ChromeKeyEvent, commands: Vec<String>, }, ExecuteExtensionPopupEditAction { popup_id: PopupId, action: EditAction, }, SendExtensionPopupMouseEvent { popup_id: PopupId, event: ChromeMouseEvent, }, SendExtensionPopupMouseWheelEvent { popup_id: PopupId, event: ChromeMouseWheelEvent, }, SetExtensionPopupComposition { composition: ChromeTransientImeComposition, }, CommitExtensionPopupText { commit: ChromeTransientImeCommitText, }, FinishExtensionPopupComposingText { popup_id: PopupId, behavior: ChromeConfirmCompositionBehavior, }, OpenDefaultPromptUi { profile_id: String, request_id: u64, }, RespondPromptUi { profile_id: String, request_id: u64, response: PromptUiResponse, }, ClosePromptUi { profile_id: String, prompt_ui_id: PromptUiId, }, RespondTabOpen { request_id: u64, response: ChromeBrowsingContextOpenResponse, }, RespondWindowOpen { request_id: u64, response: ChromeWindowOpenResponse, }, UnsupportedGenericCommand { operation: BrowserOperation, },
}
Expand description

Chromium-specific transport command vocabulary.

Transient browsing context operations are currently transported through Chromium’s extension popup plumbing. The public cbf API remains generic, and this layer performs the boundary translation into the current Chrome implementation model.

Variants§

§

RequestShutdown

Fields

§request_id: u64
§

ConfirmShutdown

Fields

§request_id: u64
§proceed: bool
§

ForceShutdown

§

ConfirmBeforeUnload

Fields

§browsing_context_id: TabId
§request_id: u64
§proceed: bool
§

RespondJavaScriptDialog

Fields

§browsing_context_id: TabId
§request_id: u64
§

RespondExtensionPopupJavaScriptDialog

Fields

§popup_id: PopupId
§request_id: u64
§

ConfirmPermission

Fields

§browsing_context_id: TabId
§request_id: u64
§allow: bool
§

CreateTab

Fields

§request_id: u64
§initial_url: Option<String>
§profile_id: String
§

ListProfiles

§

RequestCloseTab

Fields

§browsing_context_id: TabId
§

SetTabSize

Fields

§browsing_context_id: TabId
§width: u32
§height: u32
§

Navigate

Fields

§browsing_context_id: TabId
§

GoBack

Fields

§browsing_context_id: TabId
§

GoForward

Fields

§browsing_context_id: TabId
§

Reload

Fields

§browsing_context_id: TabId
§ignore_cache: bool
§

PrintPreview

Fields

§browsing_context_id: TabId
§

OpenDevTools

Fields

§browsing_context_id: TabId
§

InspectElement

Fields

§browsing_context_id: TabId
§

GetTabDomHtml

Fields

§browsing_context_id: TabId
§request_id: u64
§

SetTabFocus

Fields

§browsing_context_id: TabId
§focused: bool
§

SendKeyEvent

Fields

§browsing_context_id: TabId
§commands: Vec<String>
§

ExecuteEditAction

Fields

§browsing_context_id: TabId
§action: EditAction
§

SendMouseEvent

Fields

§browsing_context_id: TabId
§

SendMouseWheelEvent

Fields

§browsing_context_id: TabId
§

SendDragUpdate

Fields

§

SendDragDrop

Fields

§

SendDragCancel

Fields

§session_id: u64
§browsing_context_id: TabId
§

SetImeComposition

Fields

§

CommitImeText

Fields

§

FinishComposingText

Fields

§browsing_context_id: TabId
§

ExecuteContextMenuCommand

Fields

§menu_id: u64
§command_id: i32
§event_flags: i32
§

AcceptChoiceMenuSelection

Fields

§request_id: u64
§indices: Vec<i32>
§

DismissChoiceMenu

Fields

§request_id: u64
§

DismissContextMenu

Fields

§menu_id: u64
§

PauseDownload

Fields

§download_id: ChromeDownloadId
§

ResumeDownload

Fields

§download_id: ChromeDownloadId
§

CancelDownload

Fields

§download_id: ChromeDownloadId
§

ListExtensions

Fields

§profile_id: String
§

ActivateExtensionAction

Fields

§browsing_context_id: TabId
§extension_id: String
§

CloseExtensionPopup

Fields

§popup_id: PopupId
§

SetExtensionPopupSize

Fields

§popup_id: PopupId
§width: u32
§height: u32
§

SetExtensionPopupFocus

Fields

§popup_id: PopupId
§focused: bool
§

SendExtensionPopupKeyEvent

Fields

§popup_id: PopupId
§commands: Vec<String>
§

ExecuteExtensionPopupEditAction

Fields

§popup_id: PopupId
§action: EditAction
§

SendExtensionPopupMouseEvent

Fields

§popup_id: PopupId
§

SendExtensionPopupMouseWheelEvent

Fields

§popup_id: PopupId
§

SetExtensionPopupComposition

§

CommitExtensionPopupText

§

FinishExtensionPopupComposingText

§

OpenDefaultPromptUi

Fields

§profile_id: String
§request_id: u64
§

RespondPromptUi

Fields

§profile_id: String
§request_id: u64
§

ClosePromptUi

Fields

§profile_id: String
§prompt_ui_id: PromptUiId
§

RespondTabOpen

Fields

§request_id: u64
§

RespondWindowOpen

Fields

§request_id: u64
§

UnsupportedGenericCommand

Fields

Trait Implementations§

Source§

impl Clone for ChromeCommand

Source§

fn clone(&self) -> ChromeCommand

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for ChromeCommand

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl From<BrowserCommand> for ChromeCommand

Source§

fn from(value: BrowserCommand) -> Self

Converts to this type from the input type.
Source§

impl PartialEq for ChromeCommand

Source§

fn eq(&self, other: &ChromeCommand) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl StructuralPartialEq for ChromeCommand

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> AutoreleaseSafe for T
where T: ?Sized,