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

Unified Diff: ui/android/view_android.cc

Issue 2688413007: Add display::GetDisplayNearestView (Closed)
Patch Set: test GetDisplayNearestView Created 3 years, 9 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/android/view_android.cc
diff --git a/ui/android/view_android.cc b/ui/android/view_android.cc
index 1d5b146653458a83b93c58810f743f6df78e5c46..59d0ce7a4fbaf2eae80af3ab02dfa846b9ee8964 100644
--- a/ui/android/view_android.cc
+++ b/ui/android/view_android.cc
@@ -125,7 +125,7 @@ void ViewAndroid::SetAnchorRect(const JavaRef<jobject>& anchor,
return;
float scale = display::Screen::GetScreen()
- ->GetDisplayNearestWindow(this)
+ ->GetDisplayNearestView(this)
.device_scale_factor();
int left_margin = std::round(bounds.x() * scale);
int top_margin = std::round((content_offset().y() + bounds.y()) * scale);

Powered by Google App Engine
This is Rietveld 408576698