mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
DevTools-related methods are moved from BrowserWindow to WebContents
DevTools-related methods are no longer defined in `BrowserWindow`. https://github.com/atom/electron/blob/master/docs/api/browser-window.md Instead, they are defined in `WebContents`. https://github.com/atom/electron/blob/master/docs/api/web-contents.md
This commit is contained in:
Vendored
+21
-21
@@ -343,27 +343,6 @@ declare module GitHubElectron {
|
||||
* @returns Whether the window's document has been edited.
|
||||
*/
|
||||
isDocumentEdited(): boolean;
|
||||
/**
|
||||
* Opens the developer tools.
|
||||
*/
|
||||
openDevTools(options?: {
|
||||
/**
|
||||
* Opens devtools in a new window.
|
||||
*/
|
||||
detach?: boolean;
|
||||
}): void;
|
||||
/**
|
||||
* Closes the developer tools.
|
||||
*/
|
||||
closeDevTools(): void;
|
||||
/**
|
||||
* Returns whether the developer tools are opened.
|
||||
*/
|
||||
isDevToolsOpened(): boolean;
|
||||
/**
|
||||
* Toggle the developer tools.
|
||||
*/
|
||||
toggleDevTools(): void;
|
||||
reloadIgnoringCache(): void;
|
||||
/**
|
||||
* Starts inspecting element at position (x, y).
|
||||
@@ -731,6 +710,27 @@ declare module GitHubElectron {
|
||||
* data Buffer - PDF file content
|
||||
*/
|
||||
callback: (error: Error, data: Buffer) => void): void;
|
||||
/**
|
||||
* Opens the developer tools.
|
||||
*/
|
||||
openDevTools(options?: {
|
||||
/**
|
||||
* Opens devtools in a new window.
|
||||
*/
|
||||
detach?: boolean;
|
||||
}): void;
|
||||
/**
|
||||
* Closes the developer tools.
|
||||
*/
|
||||
closeDevTools(): void;
|
||||
/**
|
||||
* Returns whether the developer tools are opened.
|
||||
*/
|
||||
isDevToolsOpened(): boolean;
|
||||
/**
|
||||
* Toggle the developer tools.
|
||||
*/
|
||||
toggleDevTools(): void;
|
||||
/**
|
||||
* Send args.. to the web page via channel in asynchronous message, the web page
|
||||
* can handle it by listening to the channel event of ipc module.
|
||||
|
||||
Reference in New Issue
Block a user