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