Skip to main content

Module shell

Module shell 

Source
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:

  • WindowGeometry instead of a per-window UI object
  • ShellCommand instead 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§

WindowGeometry
The properties the shell needs to realise a window.

Enums§

ShellCommand
An instruction for the OS shell, returned after handling an event.

Traits§

BrowserHost
The browser side of the shell contract.