Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(205)

Unified Diff: ui/display/screen.h

Issue 2688113002: Make ViewRoot the top of the ViewAndroid tree (Closed)
Patch Set: - Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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;

Powered by Google App Engine
This is Rietveld 408576698