docs: Add docs on how to use chrome devtools extension.

This commit is contained in:
Cheng Zhao 2014-08-28 16:33:27 +08:00
parent aa8f5e54df
commit 80fb44b926
3 changed files with 72 additions and 0 deletions

View file

@ -166,6 +166,21 @@ Find a window according to the `webContents` it owns
Find a window according to its ID.
### Class Method: BrowserWindow.addDevToolsExtension(path)
* `path` String
Adds devtools extension located at `path`, and returns extension's name.
The extension will be remembered so you only need to call this API once, this
API is not for programming use.
### Class Method: BrowserWindow.removeDevToolsExtension(name)
* `name` String
Remove the devtools extension whose name is `name`.
### BrowserWindow.webContents
The `WebContents` object this window owns, all web page related events and