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

Unified Diff: ui/display/screen_base.cc

Issue 2688413007: Add display::GetDisplayNearestView (Closed)
Patch Set: WindowForView 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
« ui/display/screen.h ('K') | « ui/display/screen_base.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/display/screen_base.cc
diff --git a/ui/display/screen_base.cc b/ui/display/screen_base.cc
index 21c8c270f2c21cbf3d29c3f9ef696dceb51e5fd3..a746cc5f4872b522495b694d7bc7edd65ad0df33 100644
--- a/ui/display/screen_base.cc
+++ b/ui/display/screen_base.cc
@@ -45,6 +45,11 @@ Display ScreenBase::GetDisplayNearestWindow(gfx::NativeView view) const {
return GetPrimaryDisplay();
}
+Display ScreenBase::GetDisplayNearestView(gfx::NativeView view) const {
+ NOTIMPLEMENTED();
+ return GetDisplayNearestWindow(nullptr);
+}
+
Display ScreenBase::GetDisplayNearestPoint(const gfx::Point& point) const {
return *FindDisplayNearestPoint(display_list_.displays(), point);
}
« ui/display/screen.h ('K') | « ui/display/screen_base.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698