API reference / Common / ExtensionDocumentHost
Interface: ExtensionDocumentHost
What the shell lends an ExtensionDocument it opens.
Properties
| Property | Description |
|---|---|
readonly theme"light" | "dark" | The theme it opens in; ExtensionDocumentViewer.setTheme tells of a change. |
readonly localestring | The language the chrome speaks, a BCP 47 tag. |
readonly signalAbortSignal | Aborted once another document opens or this one is closed — before open resolves, a sign to give up. |
Methods
progress()
ts
progress(loaded, total): void;Report how far it has read: loaded of total bytes, 0 when the size isn't known — the loading overlay's bar and "document:loading".
Parameters
| Parameter | Type |
|---|---|
loaded | number |
total | number |