Module events

Module events 

Source

Functions§

emit_event
Emit an event to the frontend via CEF’s execute_javascript.
emit_event_all_windows
Emit an event to ALL browser windows (for cross-window drag broadcasts).
emit_event_from_state
Emit an event to the “main” browser stored in AppState. This is a convenience wrapper for use from command handlers and background tasks.
emit_event_to_top_level_windows
Emit an event to every TOP-LEVEL window — i.e. the host frontend renderers, excluding pane child browsers. Use this instead of emit_event_all_windows when the payload carries metadata that shouldn’t be visible to untrusted remote content loaded inside a browser pane. The host frontend’s listenEvent lives in the top-level renderer; pane main frames load arbitrary URLs.
emit_event_to_window
Emit an event to a specific browser window by label. Used by the tear-off Phase 4 hook to push merge-candidate changes to the destination renderer.