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 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
100 | 100 |
101 // The current pointer type. | 101 // The current pointer type. |
102 ui::EventPointerType pointer_type_; | 102 ui::EventPointerType pointer_type_; |
103 | 103 |
104 // The current pointer tilt. | 104 // The current pointer tilt. |
105 gfx::Vector2dF tilt_; | 105 gfx::Vector2dF tilt_; |
106 | 106 |
107 // The current pointer force. | 107 // The current pointer force. |
108 float force_; | 108 float force_; |
109 | 109 |
| 110 // True if the pointer is controlled via direct input. |
| 111 bool is_direct_input_ = false; |
| 112 |
110 DISALLOW_COPY_AND_ASSIGN(Pointer); | 113 DISALLOW_COPY_AND_ASSIGN(Pointer); |
111 }; | 114 }; |
112 | 115 |
113 } // namespace exo | 116 } // namespace exo |
114 | 117 |
115 #endif // COMPONENTS_EXO_POINTER_H_ | 118 #endif // COMPONENTS_EXO_POINTER_H_ |
OLD | NEW |