Skip to main content

Module event

Module event 

Source
Expand description

Chrome-specific event types and conversion utilities.

This module defines ChromeEvent, an event type that carries Chrome-specific vocabulary and serves as the primary event stream payload of the Chrome backend. The underlying FFI bindings live in cbf-chrome-sys; the types here are safe Rust abstractions on top of them.

Two conversion functions translate Chrome-specific events into browser-generic ones where a mapping exists:

Not every Chrome-specific event has a generic counterpart; those return None and are intended to be consumed only by Chrome-aware code.

Enums§

ChromeEvent
Chromium-specific raw event stream payload.

Functions§

map_ipc_event_to_generic
Maps IPC events into browser-generic events when possible.
to_generic_event
Maps Chromium raw events into browser-generic events when possible.