From: leethomas Date: Fri, 1 Jan 2016 09:45:03 +0000 (-0800) Subject: :memo: update webview docs to include devtools-* events X-Git-Tag: v0.36.3~26^2 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=54c8c3e3fcf7b632bc8e93ad881b47c41be6d7e5;p=electron.git :memo: update webview docs to include devtools-* events --- diff --git a/atom/browser/api/atom_api_web_contents.cc b/atom/browser/api/atom_api_web_contents.cc index 08f159c3..610fa2bb 100644 --- a/atom/browser/api/atom_api_web_contents.cc +++ b/atom/browser/api/atom_api_web_contents.cc @@ -783,7 +783,7 @@ bool WebContents::IsDevToolsOpened() { bool WebContents::IsDevToolsFocused() { if (type_ == REMOTE) return false; - + return managed_web_contents()->GetView()->IsDevToolsViewFocused(); } diff --git a/docs/api/web-view-tag.md b/docs/api/web-view-tag.md index 0c79083c..79e759c8 100644 --- a/docs/api/web-view-tag.md +++ b/docs/api/web-view-tag.md @@ -650,3 +650,15 @@ Emitted when a page's theme color changes. This is usually due to encountering a ```html ``` + +### Event: 'devtools-opened' + +Emitted when DevTools is opened. + +### Event: 'devtools-closed' + +Emitted when DevTools is closed. + +### Event: 'devtools-focused' + +Emitted when DevTools is focused / opened.