📝 update webview docs to include devtools-* events
This commit is contained in:
parent
8857eb9cba
commit
54c8c3e3fc
2 changed files with 13 additions and 1 deletions
|
@ -783,7 +783,7 @@ bool WebContents::IsDevToolsOpened() {
|
||||||
bool WebContents::IsDevToolsFocused() {
|
bool WebContents::IsDevToolsFocused() {
|
||||||
if (type_ == REMOTE)
|
if (type_ == REMOTE)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
return managed_web_contents()->GetView()->IsDevToolsViewFocused();
|
return managed_web_contents()->GetView()->IsDevToolsViewFocused();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -650,3 +650,15 @@ Emitted when a page's theme color changes. This is usually due to encountering a
|
||||||
```html
|
```html
|
||||||
<meta name='theme-color' content='#ff0000'>
|
<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.
|
||||||
|
|
Loading…
Reference in a new issue