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

Unified Diff: ui/base/layout.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
« no previous file with comments | « ui/aura/test/test_screen.h ('k') | ui/display/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/layout.cc
diff --git a/ui/base/layout.cc b/ui/base/layout.cc
index bbefce002633e28d445d26ea7d58cc81ecfa9b6a..250133cbd2d880d42d9a6e8f439491021bf07385 100644
--- a/ui/base/layout.cc
+++ b/ui/base/layout.cc
@@ -107,7 +107,7 @@ ScopedSetSupportedScaleFactors::~ScopedSetSupportedScaleFactors() {
#if !defined(OS_MACOSX)
float GetScaleFactorForNativeView(gfx::NativeView view) {
display::Display display =
- display::Screen::GetScreen()->GetDisplayNearestWindow(view);
+ display::Screen::GetScreen()->GetDisplayNearestView(view);
DCHECK(display.is_valid());
return display.device_scale_factor();
}
« no previous file with comments | « ui/aura/test/test_screen.h ('k') | ui/display/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698