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

Unified Diff: ui/base/layout.cc

Issue 2688413007: Add display::GetDisplayNearestView (Closed)
Patch Set: 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
« no previous file with comments | « ui/base/layout.h ('k') | ui/display/screen.h » ('j') | ui/gfx/BUILD.gn » ('J')
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 06595c34914e93a8e31c30b0d468f339b65e7441..6450823e724cf61a58f030d7845ccf3841e644e1 100644
--- a/ui/base/layout.cc
+++ b/ui/base/layout.cc
@@ -19,6 +19,7 @@
#include "ui/display/display.h"
#include "ui/display/screen.h"
#include "ui/gfx/image/image_skia.h"
+#include "ui/gfx/view_util.h"
namespace ui {
@@ -105,9 +106,9 @@ ScopedSetSupportedScaleFactors::~ScopedSetSupportedScaleFactors() {
} // namespace test
#if !defined(OS_MACOSX)
-float GetScaleFactorForNativeView(gfx::NativeView view) {
+float GetScaleFactorForNativeWindow(gfx::NativeWindow window) {
return display::Screen::GetScreen()
- ->GetDisplayNearestWindow(view)
+ ->GetDisplayNearestWindow(window)
.device_scale_factor();
}
#endif // !defined(OS_MACOSX)
« no previous file with comments | « ui/base/layout.h ('k') | ui/display/screen.h » ('j') | ui/gfx/BUILD.gn » ('J')

Powered by Google App Engine
This is Rietveld 408576698