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

Unified Diff: ui/base/layout.cc

Issue 2688413007: Add display::GetDisplayNearestView (Closed)
Patch Set: add missing files 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
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"
tapted 2017/02/15 00:36:10 is this needed?
Jinsuk Kim 2017/02/16 10:11:25 Removed.
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)

Powered by Google App Engine
This is Rietveld 408576698