Add isDevToolsFocused to webview

This commit is contained in:
Cheng Zhao 2016-01-04 10:46:30 +08:00
parent 4cdee5547f
commit 14db4a1946
7 changed files with 12 additions and 14 deletions

View file

@ -596,15 +596,19 @@ Removes the specified path from DevTools workspace.
* `options` Object (optional). Properties:
* `detach` Boolean - opens DevTools in a new window
Opens the developer tools.
Opens the devtools.
### `webContents.closeDevTools()`
Closes the developer tools.
Closes the devtools.
### `webContents.isDevToolsOpened()`
Returns whether the developer tools are opened.
Returns whether the devtools is opened.
### `webContents.isDevToolsFocused()`
Returns whether the devtools view is focused .
### `webContents.toggleDevTools()`

View file

@ -279,6 +279,10 @@ Closes the DevTools window of guest page.
Returns a boolean whether guest page has a DevTools window attached.
### `<webview>.isDevToolsFocused()`
Returns a boolean whether DevTools window of guest page is focused.
### `<webview>.inspectElement(x, y)`
* `x` Integer