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

Unified Diff: content/browser/web_contents/web_contents_view_android.cc

Issue 2751833004: Reland "Add display::GetDisplayNearestView" (Closed)
Patch Set: 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: content/browser/web_contents/web_contents_view_android.cc
diff --git a/content/browser/web_contents/web_contents_view_android.cc b/content/browser/web_contents/web_contents_view_android.cc
index 7129cc9e4eafa201090293faec300dbb1039da29..7791bf71393b68e80e6e7fc538730a33dfb5de02 100644
--- a/content/browser/web_contents/web_contents_view_android.cc
+++ b/content/browser/web_contents/web_contents_view_android.cc
@@ -159,7 +159,7 @@ void WebContentsViewAndroid::GetScreenInfo(ScreenInfo* result) const {
gfx::NativeView native_view = GetNativeView();
display::Display display =
native_view
- ? display::Screen::GetScreen()->GetDisplayNearestWindow(native_view)
+ ? display::Screen::GetScreen()->GetDisplayNearestView(native_view)
: display::Screen::GetScreen()->GetPrimaryDisplay();
DisplayToScreenInfo(display, result);
}
« no previous file with comments | « content/browser/renderer_host/render_widget_host_view_mac.mm ('k') | content/browser/web_contents/web_contents_view_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698