Add isDevToolsFocused to webview

This commit is contained in:
Cheng Zhao 2016-01-04 10:46:30 +08:00
parent 4cdee5547f
commit 14db4a1946
7 changed files with 12 additions and 14 deletions

View file

@ -268,10 +268,6 @@ 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();