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/06 18:29:26
add this when gfx::NativeWindow is no longer a sub
Jinsuk Kim
2017/02/06 23:51:33
Done.
|
+ 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; |