ConstRemove keyboard focus from the calling window.
Broadcast an inter-window JSON message to all windows.
Cancel window closure from a window:beforeClose handler.
Center the calling window on the monitor it currently sits on.
windowId targets another popup; omitted, the calling window.
Clear all registered drag regions on the window.
Clear all registered no-drag regions on the window.
Close the calling window as the system close command does.
Close all open secondary popup windows.
Close a secondary popup window by its window ID.
Proceed with closing the window from a window:beforeClose handler.
Create a secondary popup window hosting a WebView.
Fails with OPERATION_FAILED when the window is already fullscreen. windowId targets
another window; omitted, the calling window.
Fails with OPERATION_FAILED when the window is not fullscreen. windowId targets another
window; omitted, the calling window.
Flash the calling window's title bar or frame.
Flash the calling window's taskbar button.
Show, restore and request foreground activation for the exact window id, or the caller's top-level window when omitted (including a panel's host). Supersedes older popup focus-restoration work. Windows may refuse foreground activation; a successful response only confirms that the request was made.
Entries are discriminated by isMain: popups carry url, profile, behavior and resolvedBehavior.
windowId targets another window; omitted, the calling window.
Report the calling window's position and dimensions in pixels.
Resolve with { width, buttonWidth }: all three buttons, and one of them.
Resolve with { mode, preference } (both carry the same value).
Report the window ID of the calling window.
Report development server settings and address for hot reload.
Report the DPI scaling factor of the monitor the calling window sits on.
windowId targets another window; omitted, the calling window.
windowId targets another window; omitted, the calling window.
Resolve with { mode, panelMode, windowId }; read it on startup to adapt to panel mode.
Popups only; windowId omitted, the calling popup.
Report the calling window's state flags and bounding rectangle.
Report the title of the calling window.
Report the main window's title bar height in pixels.
Report the main window's title bar height, caption button widths, and maximized state.
Report the current zoom factor of the calling window's WebView.
Report whether the calling window has saved position and dimensions.
Resolve with { enabled, isAlwaysOnTop } (both carry the same value).
windowId targets another popup; omitted, the calling window.
Resolves with { fullscreen, isFullscreen, windowId }. windowId targets another window;
omitted, the calling window.
Resolve with { maximized, isMaximized } (both carry the same value).
Resolve with { minimized } (the host does not send an isMinimized alias).
windowId targets another window; omitted, the calling window.
Maximize the calling window with the system animation.
Minimize the calling window with the system animation.
Redraw the calling window's WebView to clear rendering artifacts.
Reload the calling window's page.
Reset the zoom factor of the calling window's WebView to 1.0.
Restore the calling window from minimized or maximized state.
Send an inter-window JSON message to a target window by its ID.
Enable or disable the Acrylic backdrop material on the window.
Enable or disable keeping the calling window on top of others.
Takes the policy fields flat and sends them as backdropPolicy; a null field removes that
override. windowId targets another window; omitted, the calling window.
Set the WebView background to transparent or opaque.
Enable or disable the blur-behind effect on the window.
Only x, y, width and height are sent, so the object getBounds resolved with can be
edited and passed back as is.
Enable or disable click-through transparency on a popup window.
Define interactive exclude regions within a click-through popup window.
Set the main window's Windows 11 corner rounding preference.
windowId targets another window; omitted, the calling window.
Configure the development server settings for the next page load.
Register non-client drag regions where dragging moves the window.
windowId targets another window; omitted, the calling window.
windowId targets another window; omitted, the calling window.
Where the page draws the main window's maximize button, in CSS pixels, so
that on Windows 11 hovering it offers Snap layouts. Omit region to remove
it. The host passes the mouse input on the button back to the page, so its
hover styles and click handler keep working; call again whenever layout
moves the button. Main window only.
Physical pixels; 0 removes the bound. windowId targets another window; omitted, the
calling window.
Enable or disable the Mica backdrop material on the window.
Same as setMica.
Physical pixels. windowId targets another window; omitted, the calling window.
Register regions excluded from window dragging (e.g. interactive controls).
Configure behavior flags (e.g. always-on-top, focus, frame) for a popup window.
Set the calling window's top-left corner coordinates on screen.
windowId targets another window; omitted, the calling window.
Set the calling window's width and height in pixels.
Set the calling window's title text.
Set the main window's title bar height in pixels.
Set the zoom factor for the calling window's WebView.
Set or recalculate the WebView zoom factor adapted to the monitor DPI.
Open the main window's native context menu at coordinates or cursor position.
Show the system window menu (Restore, Move, Size, Minimize, Maximize, Close).
Start moving the calling window with the mouse. Call from a mousedown handler.
Start resizing the calling window with the mouse along the specified edge.
Flip the always-on-top state of the calling window.
windowId targets another window; omitted, the calling window.
Maximize the calling window, or restore it when it is maximized.
ui— window-management namespace.