| Index: ui/display/mac/screen_mac.mm
|
| diff --git a/ui/display/mac/screen_mac.mm b/ui/display/mac/screen_mac.mm
|
| index fb25b0cd63699ee699349f036d8243920f8768f6..d51a5251d09e22169f16f93d0b75de0810a8ce9c 100644
|
| --- a/ui/display/mac/screen_mac.mm
|
| +++ b/ui/display/mac/screen_mac.mm
|
| @@ -154,6 +154,10 @@ class ScreenMac : public Screen {
|
| }
|
|
|
| Display GetDisplayNearestWindow(gfx::NativeView view) const override {
|
| + return GetDisplayNearestView(view);
|
| + }
|
| +
|
| + Display GetDisplayNearestView(gfx::NativeView view) const override {
|
| EnsureDisplaysValid();
|
| if (displays_.size() == 1)
|
| return displays_[0];
|
| @@ -329,6 +333,11 @@ class ScreenMac : public Screen {
|
|
|
| } // namespace
|
|
|
| +// static
|
| +gfx::NativeWindow Screen::WindowForView(gfx::NativeView view) {
|
| + return [view window];
|
| +}
|
| +
|
| #if !defined(USE_AURA)
|
| Screen* CreateNativeScreen() {
|
| return new ScreenMac;
|
|
|