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 #ifndef COMPONENTS_EXO_POINTER_H_ | 5 #ifndef COMPONENTS_EXO_POINTER_H_ |
6 #define COMPONENTS_EXO_POINTER_H_ | 6 #define COMPONENTS_EXO_POINTER_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 | 9 |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
95 // The location of the pointer in the current focus surface. | 95 // The location of the pointer in the current focus surface. |
96 gfx::PointF location_; | 96 gfx::PointF location_; |
97 | 97 |
98 // The display-dependent scale applied to the cursor. | 98 // The display-dependent scale applied to the cursor. |
99 float display_scale_ = 1.0f; | 99 float display_scale_ = 1.0f; |
100 | 100 |
101 // The display-independent scale applied to the cursor. | 101 // The display-independent scale applied to the cursor. |
102 float cursor_scale_ = 1.0f; | 102 float cursor_scale_ = 1.0f; |
103 | 103 |
104 float device_scale_factor_ = 1.0f; | 104 float device_scale_factor_ = 1.0f; |
| 105 display::Display::Rotation rotation_ = display::Display::ROTATE_0; |
105 | 106 |
106 // The position of the pointer surface relative to the pointer location. | 107 // The position of the pointer surface relative to the pointer location. |
107 gfx::Point hotspot_; | 108 gfx::Point hotspot_; |
108 | 109 |
109 const std::unique_ptr<aura::Window> cursor_; | 110 const std::unique_ptr<aura::Window> cursor_; |
110 | 111 |
111 // Source used for cursor capture copy output requests. | 112 // Source used for cursor capture copy output requests. |
112 base::UnguessableToken cursor_capture_source_id_; | 113 base::UnguessableToken cursor_capture_source_id_; |
113 | 114 |
114 // Weak pointer factory used for cursor capture callbacks. | 115 // Weak pointer factory used for cursor capture callbacks. |
115 base::WeakPtrFactory<Pointer> cursor_capture_weak_ptr_factory_; | 116 base::WeakPtrFactory<Pointer> cursor_capture_weak_ptr_factory_; |
116 | 117 |
117 DISALLOW_COPY_AND_ASSIGN(Pointer); | 118 DISALLOW_COPY_AND_ASSIGN(Pointer); |
118 }; | 119 }; |
119 | 120 |
120 } // namespace exo | 121 } // namespace exo |
121 | 122 |
122 #endif // COMPONENTS_EXO_POINTER_H_ | 123 #endif // COMPONENTS_EXO_POINTER_H_ |
OLD | NEW |