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

Unified Diff: content/browser/web_contents/web_contents_view_mac.mm

Issue 2688413007: Add display::GetDisplayNearestView (Closed)
Patch Set: updated log #3 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
« no previous file with comments | « content/browser/web_contents/web_contents_view_android.cc ('k') | extensions/shell/browser/shell_screen.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/web_contents/web_contents_view_mac.mm
diff --git a/content/browser/web_contents/web_contents_view_mac.mm b/content/browser/web_contents/web_contents_view_mac.mm
index b2366393bad700944ddbf977d318b1b59455f8e7..c4043da2d9b12fa520b23bc48b2b4ece19e1d0b4 100644
--- a/content/browser/web_contents/web_contents_view_mac.mm
+++ b/content/browser/web_contents/web_contents_view_mac.mm
@@ -85,7 +85,7 @@ WebContentsViewMac::RenderWidgetHostViewCreateFunction
content::ScreenInfo GetNSViewScreenInfo(NSView* view) {
display::Display display =
- display::Screen::GetScreen()->GetDisplayNearestWindow(view);
+ display::Screen::GetScreen()->GetDisplayNearestView(view);
content::ScreenInfo results;
results.device_scale_factor = static_cast<int>(display.device_scale_factor());
« no previous file with comments | « content/browser/web_contents/web_contents_view_android.cc ('k') | extensions/shell/browser/shell_screen.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698