Expand description
The contract between the browser core and the OS shell.
The browser core drives the browser; App owns the winit event loop,
the OS windows and the GPU surface. Neither side may depend on the other’s
internals, so the seam is declared here, in the layer that owns the OS,
and implemented by the browser core.
Everything crossing this seam is a value owned by platform:
WindowGeometryinstead of a per-window UI objectShellCommandinstead of a browser-internal command enum- plain
winit/ GPU handles instead of engine state
That way the event loop can hold any BrowserHost — including one
living in another process — without naming a single browser type.
Structs§
- Window
Geometry - The properties the shell needs to realise a window.
Enums§
- Shell
Command - An instruction for the OS shell, returned after handling an event.
Traits§
- Browser
Host - The browser side of the shell contract.