Chromium Code Reviews| Index: ui/display/screen.h |
| diff --git a/ui/display/screen.h b/ui/display/screen.h |
| index 3bff5bdb6406f2bb5256fb552cb8642c5951b2dd..def1328c1db387060e85c0b56c7d51884b0f65f6 100644 |
| --- a/ui/display/screen.h |
| +++ b/ui/display/screen.h |
| @@ -60,6 +60,12 @@ class DISPLAY_EXPORT Screen { |
| // return the primary display. |
| virtual Display GetDisplayNearestWindow(gfx::NativeView view) const = 0; |
| +#if defined(OS_ANDROID) |
| + // This method is needed since NativeWindow is not a NativeView on Android. |
| + virtual display::Display GetDisplayNearestWindowAndroid( |
|
boliu
2017/02/13 22:58:08
just Android part in this name and overload the me
oshima
2017/02/14 00:26:44
+tapted@, benwells@
Maybe we should change this t
tapted
2017/02/14 00:58:00
Yeah in screen_mac this always uses [view window]
Jinsuk Kim
2017/02/14 05:09:59
I think it is probably better to take this part ou
|
| + gfx::NativeWindow window) const = 0; |
| +#endif |
| + |
| // Returns the display nearest the specified point. |point| should be in DIPs. |
| virtual Display GetDisplayNearestPoint(const gfx::Point& point) const = 0; |