Securely exposes window management functionality to the renderer process
through Electron's contextBridge API, maintaining strict process isolation.
This module creates a controlled API surface that allows the web-based
renderer to manipulate the native application window without direct access
to Node.js APIs, maintaining Electron's security architecture while enabling
essential window controls.
The exposed 'electronWindow' global object provides methods for:
minimize: Reducing the window to taskbar/dock
maximize: Expanding window to full screen or restoring previous size
close: Initiating the window close sequence with proper event handling
Each method communicates through predefined IPC channels to maintain
a clear security boundary between processes.
Description
Window Control Context Bridge
Securely exposes window management functionality to the renderer process through Electron's contextBridge API, maintaining strict process isolation.
This module creates a controlled API surface that allows the web-based renderer to manipulate the native application window without direct access to Node.js APIs, maintaining Electron's security architecture while enabling essential window controls.
The exposed 'electronWindow' global object provides methods for:
Each method communicates through predefined IPC channels to maintain a clear security boundary between processes.