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

Unified Diff: ui/display/screen.h

Issue 2645353004: ViewRoot class for event forwarding on Android (Closed)
Patch Set: fix tests Created 3 years, 11 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.
boliu 2017/01/24 23:47:13 wait.. this hasn't happened yet in this CL?
Jinsuk Kim 2017/01/25 02:34:34 It was in the huge CL I'm splitting now. Or shall
+ 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