| 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" |
| 11 #include "base/memory/weak_ptr.h" | 11 #include "base/memory/weak_ptr.h" |
| 12 #include "base/unguessable_token.h" |
| 12 #include "components/exo/surface_delegate.h" | 13 #include "components/exo/surface_delegate.h" |
| 13 #include "components/exo/surface_observer.h" | 14 #include "components/exo/surface_observer.h" |
| 14 #include "components/exo/wm_helper.h" | 15 #include "components/exo/wm_helper.h" |
| 15 #include "ui/base/cursor/cursor.h" | 16 #include "ui/base/cursor/cursor.h" |
| 16 #include "ui/events/event_handler.h" | 17 #include "ui/events/event_handler.h" |
| 17 #include "ui/gfx/geometry/point.h" | 18 #include "ui/gfx/geometry/point.h" |
| 18 #include "ui/gfx/geometry/point_f.h" | 19 #include "ui/gfx/geometry/point_f.h" |
| 19 #include "ui/gfx/native_widget_types.h" | 20 #include "ui/gfx/native_widget_types.h" |
| 20 | 21 |
| 21 namespace cc { | 22 namespace cc { |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 96 | 97 |
| 97 // The scale applied to the cursor to compensate for the UI scale. | 98 // The scale applied to the cursor to compensate for the UI scale. |
| 98 float cursor_scale_ = 1.0f; | 99 float cursor_scale_ = 1.0f; |
| 99 | 100 |
| 100 // The position of the pointer surface relative to the pointer location. | 101 // The position of the pointer surface relative to the pointer location. |
| 101 gfx::Point hotspot_; | 102 gfx::Point hotspot_; |
| 102 | 103 |
| 103 // The current cursor. | 104 // The current cursor. |
| 104 ui::Cursor cursor_; | 105 ui::Cursor cursor_; |
| 105 | 106 |
| 107 // Source used for cursor capture copy output requests. |
| 108 const base::UnguessableToken cursor_capture_source_id_; |
| 109 |
| 106 // Weak pointer factory used for cursor capture callbacks. | 110 // Weak pointer factory used for cursor capture callbacks. |
| 107 base::WeakPtrFactory<Pointer> cursor_capture_weak_ptr_factory_; | 111 base::WeakPtrFactory<Pointer> cursor_capture_weak_ptr_factory_; |
| 108 | 112 |
| 109 DISALLOW_COPY_AND_ASSIGN(Pointer); | 113 DISALLOW_COPY_AND_ASSIGN(Pointer); |
| 110 }; | 114 }; |
| 111 | 115 |
| 112 } // namespace exo | 116 } // namespace exo |
| 113 | 117 |
| 114 #endif // COMPONENTS_EXO_POINTER_H_ | 118 #endif // COMPONENTS_EXO_POINTER_H_ |
| OLD | NEW |