API reference / Common / ExtensionDocumentViewer
Interface: ExtensionDocumentViewer
An open extension document, as its ExtensionDocument.open handed it back.
Properties
| Property | Description |
|---|---|
readonly sourceFormatstring | The source format it came from, one of its extension document's formats: "mp4", say. sourceFormat reports it. |
Methods
close()
ts
close(): void;Close it: the host closed it, or another document is opening. Its container is removed after.
setTheme()
ts
setTheme(theme): void;The theme changed to theme. What renders in the container takes the chrome's colors from its CSS variables by itself; this is for what they don't reach, such as a frame's own page.
Parameters
| Parameter | Type |
|---|---|
theme | "light" | "dark" |