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.
ExtensionPopupOpened
An extension action popup lifecycle started.
Fields
ExtensionPopupSurfaceHandleUpdated
The rendering surface handle for an extension popup was updated.
ExtensionPopupPreferredSizeChanged
The effective popup size changed after Chromium-side clamping.
ExtensionPopupContextMenuRequested
A context menu was requested for an extension popup.
ExtensionPopupChoiceMenuRequested
A host-owned choice menu was requested for an extension popup.
ExtensionPopupCursorChanged
The cursor appearance changed for an extension popup.
ExtensionPopupTitleUpdated
The title changed for an extension popup.
ExtensionPopupJavaScriptDialogRequested
A JavaScript dialog was requested for an extension popup.
ExtensionPopupCloseRequested
The extension popup requested to close.
ExtensionPopupRenderProcessGone
The extension popup renderer exited or crashed.
ExtensionPopupClosed
An extension action popup closed.
TabCreated
A new tab was created by the backend.
Maps to BrowserEvent::BrowsingContext with BrowsingContextEvent::Created.
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.
ImeBoundsUpdated
IME bounds information changed.
Maps to BrowserEvent::BrowsingContext with BrowsingContextEvent::ImeBoundsUpdated.
ExtensionPopupImeBoundsUpdated
IME bounds information changed for an extension popup.
Maps to BrowserEvent::TransientBrowsingContext with
TransientBrowsingContextEvent::ImeBoundsUpdated.
Fields
update: ChromeImeBoundsUpdateContextMenuRequested
The backend requested a context menu.
Maps to BrowserEvent::BrowsingContext with BrowsingContextEvent::ContextMenuRequested.
ChoiceMenuRequested
The backend requested a host-owned choice menu.
TabOpenRequested
Host-mediated open request for tab.
Maps to BrowserEvent::BrowsingContextOpenRequested.
Fields
open_hint: TabOpenHintTabOpenResolved
Result for host-mediated open request.
Maps to BrowserEvent::BrowsingContextOpenResolved.
Navigation state changed for a page.
Maps to BrowserEvent::BrowsingContext with BrowsingContextEvent::NavigationStateChanged.
CursorChanged
Cursor appearance changed for a page.
Maps to BrowserEvent::BrowsingContext with BrowsingContextEvent::CursorChanged.
TitleUpdated
The page title changed for a page.
Maps to BrowserEvent::BrowsingContext with BrowsingContextEvent::TitleUpdated.
FaviconUrlUpdated
The page favicon URL changed for a page.
Maps to BrowserEvent::BrowsingContext with BrowsingContextEvent::FaviconUrlUpdated.
BeforeUnloadDialogRequested
A beforeunload dialog was requested.
Maps to BrowserEvent::BrowsingContext with BrowsingContextEvent::JavaScriptDialogRequested
with DialogType::BeforeUnload.
Fields
reason: ChromeBeforeUnloadReasonJavaScriptDialogRequested
A JavaScript dialog was requested for a tab.
TabClosed
A tab closed event was observed.
Maps to BrowserEvent::BrowsingContext with BrowsingContextEvent::Closed.
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.
TabDomHtmlRead
The DOM HTML was read for a page.
Maps to BrowserEvent::BrowsingContext with BrowsingContextEvent::DomHtmlRead.
DragStartRequested
Host-owned drag start request from renderer.
Maps to BrowserEvent::BrowsingContext with BrowsingContextEvent::DragStartRequested.
ShutdownBlocked
Shutdown is blocked by dirty pages.
Maps to BrowserEvent::ShutdownBlocked.
ShutdownProceeding
Shutdown has started.
Maps to BrowserEvent::ShutdownProceeding.
ShutdownCancelled
Shutdown was cancelled.
Maps to BrowserEvent::ShutdownCancelled.
ExtensionsListed
Installed extensions were listed for a profile.
Maps to BrowserEvent::ExtensionsListed.
PromptUiOpenRequested
Prompt UI open was requested and host must choose flow.
PromptUiResolved
Prompt UI request was resolved.
Fields
resolution: PromptUiResolutionExtensionRuntimeWarning
Non-fatal extension runtime warning.
Maps to BrowsingContextEvent::ExtensionRuntimeWarning.
PromptUiOpened
Backend-managed prompt UI surface was opened.
PromptUiClosed
Backend-managed prompt UI surface was closed.
DownloadCreated
Download lifecycle became visible to the host.
DownloadUpdated
Download state changed.
DownloadCompleted
Download reached a terminal state.