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

Unified Diff: ui/display/screen.h

Issue 2688113002: Make ViewRoot the top of the ViewAndroid tree (Closed)
Patch Set: comments 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(
+ 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