Defined in: webview.ts:10
Webview-layer controls for a window's embedded web content.
new Webview(
label):Webview
Defined in: webview.ts:13
string
readonlylabel:string
Defined in: webview.ts:11
clearAllBrowsingData():
Promise<void>
Defined in: webview.ts:97
Clears all browsing data for the webview's store: cookies, cache, local/session storage, IndexedDB (WKWebsiteDataStore / WebView2 profile equivalents).
Promise<void>
close():
Promise<void>
Defined in: webview.ts:142
Closes the webview's window.
Promise<void>
hide():
Promise<void>
Defined in: webview.ts:132
Hides the webview's window.
Promise<void>
position():
Promise<{x:number;y:number; }>
Defined in: webview.ts:60
Webview position (single-webview era: congruent with the owning window's outer position — the bare multi-webview split lands in G7).
Promise<{ x: number; y: number; }>
print():
Promise<void>
Defined in: webview.ts:31
Opens the page print dialog (wry parity: delegates to the page's own window.print()).
Promise<void>
setBackgroundColor(
color):Promise<void>
Defined in: webview.ts:36
Webview-layer background color (single-webview era: window surface).
string
Promise<void>
setFocus():
Promise<void>
Defined in: webview.ts:127
Focuses the webview (its window's key state).
Promise<void>
setPosition(
x,y):Promise<void>
Defined in: webview.ts:109
Positions the webview content within its window (reparent-less).
number
number
Promise<void>
setSize(
width,height):Promise<void>
Defined in: webview.ts:118
Resizes the webview content within its window.
number
number
Promise<void>
setZoom(
zoom):Promise<void>
Defined in: webview.ts:147
Sets the web content zoom factor (CSS zoom).
number
Promise<void>
show():
Promise<void>
Defined in: webview.ts:137
Shows the webview's window.
Promise<void>
size():
Promise<{height:number;width:number; }>
Defined in: webview.ts:65
Webview size (window-congruent; see Webview.position).
Promise<{ height: number; width: number; }>
toggleDevtools():
Promise<{platform:string;reason?:string;supported:boolean; }>
Defined in: webview.ts:48
Toggles the inspector. Upstream parity note: macOS WKWebView exposes no
public toggle (devtools are enabled in debug builds), so the host
reports supported: false there instead of failing silently.
Promise<{ platform: string; reason?: string; supported: boolean; }>
window():
Window
Defined in: webview.ts:104
The owning window handle (webview controls often mirror window ops).
staticcapabilities():Promise<{autoResize:boolean;multipleWebviewsPerWindow:boolean;perWindow:boolean;reparent:boolean; }>
Defined in: webview.ts:83
Host webview capability map (G7): one webview per window on this backend; same-window multi-webview/reparent/autoResize are reported as false instead of silently no-op'ing.
Promise<{ autoResize: boolean; multipleWebviewsPerWindow: boolean; perWindow: boolean; reparent: boolean; }>
staticgetByLabel(label):Promise<Webview|null>
Defined in: webview.ts:73
Looks up a webview by label. In the single-webview-per-window era a webview exists exactly when its window does.
string
Promise<Webview | null>
staticgetCurrent():Webview
Defined in: webview.ts:18
The current webview (label from the bootstrap metadata).
getAllWebviews():
Promise<Webview[]>
Defined in: webview.ts:156
All live webviews as Webview handles.
Promise<Webview[]>
getCurrentWebview():
Webview
Defined in: webview.ts:166
Upstream naming alias of Webview.getCurrent.