Add BrowserWindow.isDevToolsFocused

This commit is contained in:
Cheng Zhao 2015-09-15 11:27:32 +08:00
parent 97857aa152
commit b72a5884f2
4 changed files with 11 additions and 0 deletions

View file

@ -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();