UNPKG

978 BTypeScriptView Raw
1export declare const SecondaryWindowService: unique symbol;
2/**
3 * Service for opening new secondary windows to contain widgets extracted from the application shell.
4 *
5 * @experimental The functionality provided by this service and its implementation is still under development. Use with caution.
6 */
7export interface SecondaryWindowService {
8 /**
9 * Creates a new secondary window for a widget to be extracted from the application shell.
10 * The created window is closed automatically when the current theia instance is closed.
11 *
12 * @param onClose optional callback that is invoked when the secondary window is closed
13 * @returns the created window or `undefined` if it could not be created
14 */
15 createSecondaryWindow(onClose?: (win: Window) => void): Window | undefined;
16 /** Handles focussing the given secondary window in the browser and on Electron. */
17 focus(win: Window): void;
18}
19//# sourceMappingURL=secondary-window-service.d.ts.map
\No newline at end of file