OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "components/exo/pointer.h" | 5 #include "components/exo/pointer.h" |
6 | 6 |
7 #include "ash/common/display/display_info.h" | |
8 #include "ash/common/shell_window_ids.h" | 7 #include "ash/common/shell_window_ids.h" |
9 #include "ash/display/display_manager.h" | 8 #include "ash/display/display_manager.h" |
10 #include "components/exo/pointer_delegate.h" | 9 #include "components/exo/pointer_delegate.h" |
11 #include "components/exo/pointer_stylus_delegate.h" | 10 #include "components/exo/pointer_stylus_delegate.h" |
12 #include "components/exo/surface.h" | 11 #include "components/exo/surface.h" |
13 #include "components/exo/wm_helper.h" | 12 #include "components/exo/wm_helper.h" |
14 #include "ui/aura/client/cursor_client.h" | 13 #include "ui/aura/client/cursor_client.h" |
15 #include "ui/aura/env.h" | 14 #include "ui/aura/env.h" |
16 #include "ui/aura/window.h" | 15 #include "ui/aura/window.h" |
| 16 #include "ui/display/manager/managed_display_info.h" |
17 #include "ui/display/screen.h" | 17 #include "ui/display/screen.h" |
18 #include "ui/events/event.h" | 18 #include "ui/events/event.h" |
19 #include "ui/gfx/geometry/vector2d_conversions.h" | 19 #include "ui/gfx/geometry/vector2d_conversions.h" |
20 #include "ui/views/widget/widget.h" | 20 #include "ui/views/widget/widget.h" |
21 | 21 |
22 namespace exo { | 22 namespace exo { |
23 namespace { | 23 namespace { |
24 | 24 |
25 static constexpr float kLargeCursorScale = 2.8; | 25 static constexpr float kLargeCursorScale = 2.8; |
26 | 26 |
(...skipping 330 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
357 | 357 |
358 if (ui_scale != cursor_scale_) { | 358 if (ui_scale != cursor_scale_) { |
359 gfx::Transform transform; | 359 gfx::Transform transform; |
360 transform.Scale(ui_scale, ui_scale); | 360 transform.Scale(ui_scale, ui_scale); |
361 widget_->GetNativeWindow()->SetTransform(transform); | 361 widget_->GetNativeWindow()->SetTransform(transform); |
362 cursor_scale_ = ui_scale; | 362 cursor_scale_ = ui_scale; |
363 } | 363 } |
364 } | 364 } |
365 | 365 |
366 } // namespace exo | 366 } // namespace exo |
OLD | NEW |