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:
to_generic_event— converts aChromeEventinto acbf::event::BrowserEvent.map_ipc_event_to_generic— converts acrate::ffi::IpcEventreceived over the IPC bridge into acbf::event::BrowserEvent.
Not every Chrome-specific event has a generic counterpart; those return
None and are intended to be consumed only by Chrome-aware code.
Enums§
- Chrome
Event - 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.