UNPKG

1.11 kBTypeScriptView Raw
1import { SecondaryWindowService } from './secondary-window-service';
2import { WindowService } from './window-service';
3export declare class DefaultSecondaryWindowService implements SecondaryWindowService {
4 protected static SECONDARY_WINDOW_URL: string;
5 /**
6 * Randomized prefix to be included in opened windows' ids.
7 * This avoids conflicts when creating sub-windows from multiple theia instances (e.g. by opening Theia multiple times in the same browser)
8 */
9 protected readonly prefix: number;
10 /** Unique id. Increase after every access. */
11 private nextId;
12 protected secondaryWindows: Window[];
13 protected readonly windowService: WindowService;
14 init(): void;
15 createSecondaryWindow(onClose?: (closedWin: Window) => void): Window | undefined;
16 protected doCreateSecondaryWindow(onClose?: (closedWin: Window) => void): Window | undefined;
17 protected handleWindowClosed(win: Window, onClose?: (closedWin: Window) => void): void;
18 focus(win: Window): void;
19 protected nextWindowId(): string;
20}
21//# sourceMappingURL=default-secondary-window-service.d.ts.map
\No newline at end of file