Add BrowserWindow.isDevToolsFocused
This commit is contained in:
parent
97857aa152
commit
b72a5884f2
4 changed files with 11 additions and 0 deletions
|
@ -249,6 +249,10 @@ bool NativeWindow::IsWebViewFocused() {
|
|||
return host_view && host_view->HasFocus();
|
||||
}
|
||||
|
||||
bool NativeWindow::IsDevToolsFocused() {
|
||||
return inspectable_web_contents_->GetView()->IsDevToolsViewFocused();
|
||||
}
|
||||
|
||||
void NativeWindow::CapturePage(const gfx::Rect& rect,
|
||||
const CapturePageCallback& callback) {
|
||||
const auto view = web_contents()->GetRenderWidgetHostView();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue