Return focus state of window web view when available

This commit is contained in:
Kevin Sawicki 2016-07-12 14:03:02 -07:00
parent 6413a4c516
commit 22b3b69e17

View file

@ -142,7 +142,9 @@ bool InspectableWebContentsViewViews::IsDevToolsViewShowing() {
}
bool InspectableWebContentsViewViews::IsDevToolsViewFocused() {
if (devtools_web_view_)
if (devtools_window_web_view_)
return devtools_window_web_view_->HasFocus();
else if (devtools_web_view_)
return devtools_web_view_->HasFocus();
else
return false;