2019-11-01 20:37:02 +00:00
|
|
|
declare let standardScheme: string
|
2019-07-16 19:54:18 +00:00
|
|
|
|
|
|
|
declare namespace Electron {
|
|
|
|
interface Menu {
|
|
|
|
delegate: {
|
|
|
|
executeCommand(menu: Menu, event: any, id: number): void;
|
|
|
|
menuWillShow(menu: Menu): void;
|
|
|
|
};
|
|
|
|
getAcceleratorTextAt(index: number): string;
|
|
|
|
}
|
|
|
|
|
|
|
|
interface MenuItem {
|
|
|
|
getDefaultRoleAccelerator(): Accelerator | undefined;
|
|
|
|
}
|
2019-07-24 15:44:24 +00:00
|
|
|
|
|
|
|
interface WebContents {
|
|
|
|
getOwnerBrowserWindow(): BrowserWindow;
|
2019-08-30 00:45:41 +00:00
|
|
|
getWebPreferences(): any;
|
2019-07-24 15:44:24 +00:00
|
|
|
}
|
2019-08-27 07:37:30 +00:00
|
|
|
|
2019-08-27 21:55:19 +00:00
|
|
|
interface Session {
|
|
|
|
destroy(): void;
|
|
|
|
}
|
|
|
|
|
2019-08-27 07:37:30 +00:00
|
|
|
// Experimental views API
|
|
|
|
class TopLevelWindow {
|
|
|
|
constructor(args: {show: boolean})
|
|
|
|
setContentView(view: View): void
|
|
|
|
}
|
|
|
|
class View {}
|
2019-08-29 07:17:44 +00:00
|
|
|
class WebContentsView {
|
|
|
|
constructor(webContents: WebContents)
|
|
|
|
}
|
2019-07-16 19:54:18 +00:00
|
|
|
}
|
2019-08-28 20:54:50 +00:00
|
|
|
|
|
|
|
declare module 'dbus-native';
|