From: leethomas Date: Fri, 1 Jan 2016 09:45:03 +0000 (-0800) Subject: :memo: update webview docs to include devtools-* events X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=54c8c3e3fcf7b632bc8e93ad881b47c41be6d7e5;p=platform%2Fframework%2Fweb%2Fcrosswalk-tizen.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 08f159c..610fa2b 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 0c79083..79e759c 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.