OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 UI_EVENTS_EVENT_CONSTANTS_H_ | 5 #ifndef UI_EVENTS_EVENT_CONSTANTS_H_ |
6 #define UI_EVENTS_EVENT_CONSTANTS_H_ | 6 #define UI_EVENTS_EVENT_CONSTANTS_H_ |
7 | 7 |
8 namespace ui { | 8 namespace ui { |
9 | 9 |
10 // Event types. (prefixed because of a conflict with windows headers) | 10 // Event types. (prefixed because of a conflict with windows headers) |
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
166 enum EventDeviceId { | 166 enum EventDeviceId { |
167 ED_UNKNOWN_DEVICE = -1 | 167 ED_UNKNOWN_DEVICE = -1 |
168 }; | 168 }; |
169 | 169 |
170 // Pointing device type. | 170 // Pointing device type. |
171 enum class EventPointerType : int { | 171 enum class EventPointerType : int { |
172 POINTER_TYPE_UNKNOWN = 0, | 172 POINTER_TYPE_UNKNOWN = 0, |
173 POINTER_TYPE_MOUSE, | 173 POINTER_TYPE_MOUSE, |
174 POINTER_TYPE_PEN, | 174 POINTER_TYPE_PEN, |
175 POINTER_TYPE_TOUCH, | 175 POINTER_TYPE_TOUCH, |
| 176 POINTER_TYPE_ERASER, |
176 }; | 177 }; |
177 | 178 |
178 // Device type for gesture events. | 179 // Device type for gesture events. |
179 enum class GestureDeviceType : int { | 180 enum class GestureDeviceType : int { |
180 DEVICE_UNKNOWN = 0, | 181 DEVICE_UNKNOWN = 0, |
181 DEVICE_TOUCHPAD, | 182 DEVICE_TOUCHPAD, |
182 DEVICE_TOUCHSCREEN, | 183 DEVICE_TOUCHSCREEN, |
183 }; | 184 }; |
184 | 185 |
185 } // namespace ui | 186 } // namespace ui |
186 | 187 |
187 #endif // UI_EVENTS_EVENT_CONSTANTS_H_ | 188 #endif // UI_EVENTS_EVENT_CONSTANTS_H_ |
OLD | NEW |