2020-03-20 20:28:31 +00:00
|
|
|
declare let standardScheme: string;
|
2019-07-16 19:54:18 +00:00
|
|
|
|
|
|
|
declare namespace Electron {
|
|
|
|
interface Menu {
|
2020-04-02 23:07:56 +00:00
|
|
|
_executeCommand(event: any, id: number): void;
|
|
|
|
_menuWillShow(): void;
|
2019-07-16 19:54:18 +00:00
|
|
|
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 {
|
2020-04-09 07:01:16 +00:00
|
|
|
constructor(options: BrowserWindowConstructorOptions)
|
2019-08-29 07:17:44 +00:00
|
|
|
}
|
2020-04-07 00:04:09 +00:00
|
|
|
|
|
|
|
namespace Main {
|
|
|
|
class TopLevelWindow extends Electron.TopLevelWindow {}
|
|
|
|
class View extends Electron.View {}
|
|
|
|
class WebContentsView extends Electron.WebContentsView {}
|
|
|
|
}
|
2019-07-16 19:54:18 +00:00
|
|
|
}
|
2019-08-28 20:54:50 +00:00
|
|
|
|
|
|
|
declare module 'dbus-native';
|