Chromium Code Reviews| Index: ui/views/drag_utils.cc |
| diff --git a/ui/views/drag_utils.cc b/ui/views/drag_utils.cc |
| index f9e6c8be5ab607d7122bca1385181057e1780f2a..8952624610e5954c8d512cfd26474b8111effb53 100644 |
| --- a/ui/views/drag_utils.cc |
| +++ b/ui/views/drag_utils.cc |
| @@ -10,7 +10,7 @@ |
| #include "ui/gfx/geometry/size.h" |
| #include "ui/views/widget/widget.h" |
| -namespace { |
| +namespace views { |
| float GetDeviceScaleForNativeView(views::Widget* widget) { |
|
tapted
2017/02/14 23:34:07
nit: reorder to match .h (and remove views:: pref
enne (OOO)
2017/02/15 00:02:05
You might want to consider a presubmit like https:
tapted
2017/02/15 00:41:23
ooh - indeed :) also for gfx::.. just came up in a
|
| float device_scale = 1.0f; |
| @@ -23,10 +23,6 @@ float GetDeviceScaleForNativeView(views::Widget* widget) { |
| return device_scale; |
| } |
|
tapted
2017/02/14 23:34:07
random orthogonal thought: I wonder if we should h
enne (OOO)
2017/02/15 00:02:05
Yeah, that would make a lot of sense. You could s
|
| -} // namespace |
| - |
| -namespace views { |
| - |
| gfx::Canvas* GetCanvasForDragImage(views::Widget* widget, |
| const gfx::Size& canvas_size) { |
| float device_scale = GetDeviceScaleForNativeView(widget); |