:memo: update webview docs to include devtools-* events
authorleethomas <leet944@gmail.com>
Fri, 1 Jan 2016 09:45:03 +0000 (01:45 -0800)
committerleethomas <leet944@gmail.com>
Fri, 1 Jan 2016 12:49:34 +0000 (04:49 -0800)
atom/browser/api/atom_api_web_contents.cc
docs/api/web-view-tag.md

index 08f159c..610fa2b 100644 (file)
@@ -783,7 +783,7 @@ bool WebContents::IsDevToolsOpened() {
 bool WebContents::IsDevToolsFocused() {
   if (type_ == REMOTE)
     return false;
-    
+
   return managed_web_contents()->GetView()->IsDevToolsViewFocused();
 }
 
index 0c79083..79e759c 100644 (file)
@@ -650,3 +650,15 @@ Emitted when a page's theme color changes. This is usually due to encountering a
 ```html
 <meta name='theme-color' content='#ff0000'>
 ```
+
+### 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.