gfx::NativeView is no longer NSView on mac
https://chromium-review.googlesource.com/c/1270343
This commit is contained in:
parent
70887ae21a
commit
d228bdfb9e
12 changed files with 78 additions and 53 deletions
|
@ -17,7 +17,7 @@ bool WebContents::IsFocused() const {
|
|||
return false;
|
||||
|
||||
if (GetType() != BACKGROUND_PAGE) {
|
||||
auto window = [web_contents()->GetNativeView() window];
|
||||
auto window = [web_contents()->GetNativeView().GetNativeNSView() window];
|
||||
// On Mac the render widget host view does not lose focus when the window
|
||||
// loses focus so check if the top level window is the key window.
|
||||
if (window && ![window isKeyWindow])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue