| 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 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 104 | 104 |
| 105 // The position of the pointer surface relative to the pointer location. | 105 // The position of the pointer surface relative to the pointer location. |
| 106 gfx::Point hotspot_; | 106 gfx::Point hotspot_; |
| 107 | 107 |
| 108 // Latest cursor snapshot. | 108 // Latest cursor snapshot. |
| 109 SkBitmap cursor_bitmap_; | 109 SkBitmap cursor_bitmap_; |
| 110 | 110 |
| 111 // The current cursor. | 111 // The current cursor. |
| 112 ui::Cursor cursor_; | 112 ui::Cursor cursor_; |
| 113 | 113 |
| 114 // Scale at which cursor snapshot is captured. The resulting bitmap is scaled |
| 115 // on displays whose DSF does not match this scale. |
| 116 float capture_scale_; |
| 117 |
| 114 // Source used for cursor capture copy output requests. | 118 // Source used for cursor capture copy output requests. |
| 115 const base::UnguessableToken cursor_capture_source_id_; | 119 const base::UnguessableToken cursor_capture_source_id_; |
| 116 | 120 |
| 117 // Last received event type. | 121 // Last received event type. |
| 118 ui::EventType last_event_type_ = ui::ET_UNKNOWN; | 122 ui::EventType last_event_type_ = ui::ET_UNKNOWN; |
| 119 | 123 |
| 120 // Weak pointer factory used for cursor capture callbacks. | 124 // Weak pointer factory used for cursor capture callbacks. |
| 121 base::WeakPtrFactory<Pointer> cursor_capture_weak_ptr_factory_; | 125 base::WeakPtrFactory<Pointer> cursor_capture_weak_ptr_factory_; |
| 122 | 126 |
| 123 DISALLOW_COPY_AND_ASSIGN(Pointer); | 127 DISALLOW_COPY_AND_ASSIGN(Pointer); |
| 124 }; | 128 }; |
| 125 | 129 |
| 126 } // namespace exo | 130 } // namespace exo |
| 127 | 131 |
| 128 #endif // COMPONENTS_EXO_POINTER_H_ | 132 #endif // COMPONENTS_EXO_POINTER_H_ |
| OLD | NEW |