Use correct GetToplevelWindow signature
This commit is contained in:
parent
399470e281
commit
463b3de199
1 changed files with 1 additions and 1 deletions
|
@ -1175,7 +1175,7 @@ bool WebContents::IsFocused() const {
|
|||
if (!view) return false;
|
||||
|
||||
if (GetType() != BACKGROUND_PAGE) {
|
||||
auto window = web_contents()->GetNativeView()->GetTopLevelWindow();
|
||||
auto window = web_contents()->GetNativeView()->GetToplevelWindow();
|
||||
if (window && !window->IsVisible())
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue