Chromium Code Reviews| 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) |