Skip to main content

IpcEvent

Enum IpcEvent 

Source
pub enum IpcEvent {
Show 42 variants SurfaceHandleUpdated { profile_id: String, browsing_context_id: TabId, handle: SurfaceHandle, }, ExtensionPopupOpened { profile_id: String, browsing_context_id: TabId, popup_id: u64, extension_id: String, title: String, }, ExtensionPopupSurfaceHandleUpdated { profile_id: String, browsing_context_id: TabId, popup_id: u64, handle: SurfaceHandle, }, ExtensionPopupPreferredSizeChanged { profile_id: String, browsing_context_id: TabId, popup_id: u64, width: u32, height: u32, }, ExtensionPopupContextMenuRequested { profile_id: String, browsing_context_id: TabId, popup_id: PopupId, menu: ChromeContextMenu, }, ExtensionPopupChoiceMenuRequested { profile_id: String, browsing_context_id: TabId, popup_id: PopupId, request_id: u64, menu: ChromeChoiceMenu, }, ExtensionPopupCursorChanged { profile_id: String, browsing_context_id: TabId, popup_id: PopupId, cursor_type: CursorIcon, }, ExtensionPopupTitleUpdated { profile_id: String, browsing_context_id: TabId, popup_id: PopupId, title: String, }, ExtensionPopupJavaScriptDialogRequested { profile_id: String, browsing_context_id: TabId, popup_id: PopupId, request_id: u64, type: DialogType, message: String, default_prompt_text: Option<String>, reason: ChromeBeforeUnloadReason, }, ExtensionPopupCloseRequested { profile_id: String, browsing_context_id: TabId, popup_id: PopupId, }, ExtensionPopupRenderProcessGone { profile_id: String, browsing_context_id: TabId, popup_id: PopupId, crashed: bool, }, ExtensionPopupClosed { profile_id: String, browsing_context_id: TabId, popup_id: u64, }, TabCreated { profile_id: String, browsing_context_id: TabId, request_id: u64, }, DevToolsOpened { profile_id: String, browsing_context_id: TabId, inspected_browsing_context_id: TabId, }, ImeBoundsUpdated { profile_id: String, browsing_context_id: TabId, update: ChromeImeBoundsUpdate, }, ExtensionPopupImeBoundsUpdated { profile_id: String, browsing_context_id: TabId, popup_id: PopupId, update: ChromeImeBoundsUpdate, }, ContextMenuRequested { profile_id: String, browsing_context_id: TabId, menu: ChromeContextMenu, }, ChoiceMenuRequested { profile_id: String, browsing_context_id: TabId, request_id: u64, menu: ChromeChoiceMenu, }, TabOpenRequested { profile_id: String, request_id: u64, source_tab_id: Option<TabId>, target_url: String, open_hint: TabOpenHint, user_gesture: bool, }, TabOpenResolved { profile_id: String, request_id: u64, result: TabOpenResult, }, NavigationStateChanged { profile_id: String, browsing_context_id: TabId, url: String, can_go_back: bool, can_go_forward: bool, is_loading: bool, }, CursorChanged { profile_id: String, browsing_context_id: TabId, cursor_type: CursorIcon, }, TitleUpdated { profile_id: String, browsing_context_id: TabId, title: String, }, FaviconUrlUpdated { profile_id: String, browsing_context_id: TabId, url: String, }, BeforeUnloadDialogRequested { profile_id: String, browsing_context_id: TabId, request_id: u64, reason: ChromeBeforeUnloadReason, }, JavaScriptDialogRequested { profile_id: String, browsing_context_id: TabId, request_id: u64, type: DialogType, message: String, default_prompt_text: Option<String>, reason: ChromeBeforeUnloadReason, }, TabClosed { profile_id: String, browsing_context_id: TabId, }, TabResizeAcknowledged { profile_id: String, browsing_context_id: TabId, }, TabDomHtmlRead { profile_id: String, browsing_context_id: TabId, request_id: u64, html: String, }, DragStartRequested { profile_id: String, browsing_context_id: TabId, request: ChromeDragStartRequest, }, ShutdownBlocked { request_id: u64, dirty_browsing_context_ids: Vec<TabId>, }, ShutdownProceeding { request_id: u64, }, ShutdownCancelled { request_id: u64, }, ExtensionsListed { profile_id: String, extensions: Vec<ChromeExtensionInfo>, }, PromptUiOpenRequested { profile_id: String, source_tab_id: Option<TabId>, request_id: u64, kind: PromptUiKind, }, PromptUiResolved { profile_id: String, source_tab_id: Option<TabId>, request_id: u64, resolution: PromptUiResolution, }, ExtensionRuntimeWarning { profile_id: String, browsing_context_id: TabId, detail: String, }, PromptUiOpened { profile_id: String, source_tab_id: Option<TabId>, prompt_ui_id: PromptUiId, kind: PromptUiKind, title: Option<String>, modal: bool, }, PromptUiClosed { profile_id: String, source_tab_id: Option<TabId>, prompt_ui_id: PromptUiId, kind: PromptUiKind, reason: PromptUiCloseReason, }, DownloadCreated { profile_id: String, download: ChromeDownloadSnapshot, }, DownloadUpdated { profile_id: String, download: ChromeDownloadProgress, }, DownloadCompleted { profile_id: String, download: ChromeDownloadCompletion, },
}
Expand description

Low-level IPC events emitted by the Chromium bridge.

Variants§

§

SurfaceHandleUpdated

The rendering surface handle for a page was updated.

Note: This event does not map to BrowserEvent because surface handles are a Chrome-specific rendering implementation detail. Applications needing this information should subscribe to the raw ChromeEvent stream.

Fields

§profile_id: String
§browsing_context_id: TabId
§

ExtensionPopupOpened

An extension action popup lifecycle started.

Fields

§profile_id: String
§browsing_context_id: TabId
§popup_id: u64
§extension_id: String
§title: String
§

ExtensionPopupSurfaceHandleUpdated

The rendering surface handle for an extension popup was updated.

Fields

§profile_id: String
§browsing_context_id: TabId
§popup_id: u64
§

ExtensionPopupPreferredSizeChanged

The effective popup size changed after Chromium-side clamping.

Fields

§profile_id: String
§browsing_context_id: TabId
§popup_id: u64
§width: u32
§height: u32
§

ExtensionPopupContextMenuRequested

A context menu was requested for an extension popup.

Fields

§profile_id: String
§browsing_context_id: TabId
§popup_id: PopupId
§

ExtensionPopupChoiceMenuRequested

A host-owned choice menu was requested for an extension popup.

Fields

§profile_id: String
§browsing_context_id: TabId
§popup_id: PopupId
§request_id: u64
§

ExtensionPopupCursorChanged

The cursor appearance changed for an extension popup.

Fields

§profile_id: String
§browsing_context_id: TabId
§popup_id: PopupId
§cursor_type: CursorIcon
§

ExtensionPopupTitleUpdated

The title changed for an extension popup.

Fields

§profile_id: String
§browsing_context_id: TabId
§popup_id: PopupId
§title: String
§

ExtensionPopupJavaScriptDialogRequested

A JavaScript dialog was requested for an extension popup.

Fields

§profile_id: String
§browsing_context_id: TabId
§popup_id: PopupId
§request_id: u64
§message: String
§default_prompt_text: Option<String>
§

ExtensionPopupCloseRequested

The extension popup requested to close.

Fields

§profile_id: String
§browsing_context_id: TabId
§popup_id: PopupId
§

ExtensionPopupRenderProcessGone

The extension popup renderer exited or crashed.

Fields

§profile_id: String
§browsing_context_id: TabId
§popup_id: PopupId
§crashed: bool
§

ExtensionPopupClosed

An extension action popup closed.

Fields

§profile_id: String
§browsing_context_id: TabId
§popup_id: u64
§

TabCreated

A new tab was created by the backend.

Maps to BrowserEvent::BrowsingContext with BrowsingContextEvent::Created.

Fields

§profile_id: String
§browsing_context_id: TabId
§request_id: u64
§

DevToolsOpened

DevTools was opened for a page.

Note: This event does not map to BrowserEvent because DevTools is currently exposed via the Chrome-specific raw event stream only.

Fields

§profile_id: String
§browsing_context_id: TabId
§inspected_browsing_context_id: TabId
§

ImeBoundsUpdated

IME bounds information changed.

Maps to BrowserEvent::BrowsingContext with BrowsingContextEvent::ImeBoundsUpdated.

Fields

§profile_id: String
§browsing_context_id: TabId
§

ExtensionPopupImeBoundsUpdated

IME bounds information changed for an extension popup.

Maps to BrowserEvent::TransientBrowsingContext with TransientBrowsingContextEvent::ImeBoundsUpdated.

Fields

§profile_id: String
§browsing_context_id: TabId
§popup_id: PopupId
§

ContextMenuRequested

The backend requested a context menu.

Maps to BrowserEvent::BrowsingContext with BrowsingContextEvent::ContextMenuRequested.

Fields

§profile_id: String
§browsing_context_id: TabId
§

ChoiceMenuRequested

The backend requested a host-owned choice menu.

Fields

§profile_id: String
§browsing_context_id: TabId
§request_id: u64
§

TabOpenRequested

Host-mediated open request for tab.

Maps to BrowserEvent::BrowsingContextOpenRequested.

Fields

§profile_id: String
§request_id: u64
§source_tab_id: Option<TabId>
§target_url: String
§open_hint: TabOpenHint
§user_gesture: bool
§

TabOpenResolved

Result for host-mediated open request.

Maps to BrowserEvent::BrowsingContextOpenResolved.

Fields

§profile_id: String
§request_id: u64
§

NavigationStateChanged

Navigation state changed for a page.

Maps to BrowserEvent::BrowsingContext with BrowsingContextEvent::NavigationStateChanged.

Fields

§profile_id: String
§browsing_context_id: TabId
§can_go_back: bool
§can_go_forward: bool
§is_loading: bool
§

CursorChanged

Cursor appearance changed for a page.

Maps to BrowserEvent::BrowsingContext with BrowsingContextEvent::CursorChanged.

Fields

§profile_id: String
§browsing_context_id: TabId
§cursor_type: CursorIcon
§

TitleUpdated

The page title changed for a page.

Maps to BrowserEvent::BrowsingContext with BrowsingContextEvent::TitleUpdated.

Fields

§profile_id: String
§browsing_context_id: TabId
§title: String
§

FaviconUrlUpdated

The page favicon URL changed for a page.

Maps to BrowserEvent::BrowsingContext with BrowsingContextEvent::FaviconUrlUpdated.

Fields

§profile_id: String
§browsing_context_id: TabId
§

BeforeUnloadDialogRequested

A beforeunload dialog was requested.

Maps to BrowserEvent::BrowsingContext with BrowsingContextEvent::JavaScriptDialogRequested with DialogType::BeforeUnload.

Fields

§profile_id: String
§browsing_context_id: TabId
§request_id: u64
§

JavaScriptDialogRequested

A JavaScript dialog was requested for a tab.

Fields

§profile_id: String
§browsing_context_id: TabId
§request_id: u64
§message: String
§default_prompt_text: Option<String>
§

TabClosed

A tab closed event was observed.

Maps to BrowserEvent::BrowsingContext with BrowsingContextEvent::Closed.

Fields

§profile_id: String
§browsing_context_id: TabId
§

TabResizeAcknowledged

A resize acknowledgement was received for a page.

Note: This event does not map to BrowserEvent because it is an internal acknowledgement with no semantic value for browser-generic consumers.

Fields

§profile_id: String
§browsing_context_id: TabId
§

TabDomHtmlRead

The DOM HTML was read for a page.

Maps to BrowserEvent::BrowsingContext with BrowsingContextEvent::DomHtmlRead.

Fields

§profile_id: String
§browsing_context_id: TabId
§request_id: u64
§html: String
§

DragStartRequested

Host-owned drag start request from renderer.

Maps to BrowserEvent::BrowsingContext with BrowsingContextEvent::DragStartRequested.

Fields

§profile_id: String
§browsing_context_id: TabId
§

ShutdownBlocked

Shutdown is blocked by dirty pages.

Maps to BrowserEvent::ShutdownBlocked.

Fields

§request_id: u64
§dirty_browsing_context_ids: Vec<TabId>
§

ShutdownProceeding

Shutdown has started.

Maps to BrowserEvent::ShutdownProceeding.

Fields

§request_id: u64
§

ShutdownCancelled

Shutdown was cancelled.

Maps to BrowserEvent::ShutdownCancelled.

Fields

§request_id: u64
§

ExtensionsListed

Installed extensions were listed for a profile.

Maps to BrowserEvent::ExtensionsListed.

Fields

§profile_id: String
§

PromptUiOpenRequested

Prompt UI open was requested and host must choose flow.

Fields

§profile_id: String
§source_tab_id: Option<TabId>
§request_id: u64
§

PromptUiResolved

Prompt UI request was resolved.

Fields

§profile_id: String
§source_tab_id: Option<TabId>
§request_id: u64
§

ExtensionRuntimeWarning

Non-fatal extension runtime warning.

Maps to BrowsingContextEvent::ExtensionRuntimeWarning.

Fields

§profile_id: String
§browsing_context_id: TabId
§detail: String
§

PromptUiOpened

Backend-managed prompt UI surface was opened.

Fields

§profile_id: String
§source_tab_id: Option<TabId>
§prompt_ui_id: PromptUiId
§modal: bool
§

PromptUiClosed

Backend-managed prompt UI surface was closed.

Fields

§profile_id: String
§source_tab_id: Option<TabId>
§prompt_ui_id: PromptUiId
§

DownloadCreated

Download lifecycle became visible to the host.

Fields

§profile_id: String
§

DownloadUpdated

Download state changed.

Fields

§profile_id: String
§

DownloadCompleted

Download reached a terminal state.

Fields

§profile_id: String

Trait Implementations§

Source§

impl Clone for IpcEvent

Source§

fn clone(&self) -> IpcEvent

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 IpcEvent

Source§

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

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

impl PartialEq for IpcEvent

Source§

fn eq(&self, other: &IpcEvent) -> 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 IpcEvent

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,