Remove NativeWindow::GetWebContents
This commit is contained in:
parent
01dc0f973c
commit
9f52b11761
7 changed files with 25 additions and 44 deletions
|
@ -728,9 +728,9 @@ void NativeWindowViews::OnWidgetActivationChanged(
|
|||
else
|
||||
NotifyWindowBlur();
|
||||
|
||||
if (active && GetWebContents() &&
|
||||
if (active && inspectable_web_contents() &&
|
||||
!inspectable_web_contents()->IsDevToolsViewShowing())
|
||||
GetWebContents()->Focus();
|
||||
web_contents()->Focus();
|
||||
|
||||
// Hide menu bar when window is blured.
|
||||
if (!active && menu_bar_autohide_ && menu_bar_visible_)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue