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 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
139 EP_TARGET, | 139 EP_TARGET, |
140 EP_POSTTARGET, | 140 EP_POSTTARGET, |
141 EP_POSTDISPATCH | 141 EP_POSTDISPATCH |
142 }; | 142 }; |
143 | 143 |
144 // Device ID for Touch and Key Events. | 144 // Device ID for Touch and Key Events. |
145 enum EventDeviceId { | 145 enum EventDeviceId { |
146 ED_UNKNOWN_DEVICE = -1 | 146 ED_UNKNOWN_DEVICE = -1 |
147 }; | 147 }; |
148 | 148 |
| 149 // Pointing device type. |
| 150 enum class EventPointerType : int { |
| 151 POINTER_TYPE_UNKNOWN = 0, |
| 152 POINTER_TYPE_MOUSE, |
| 153 POINTER_TYPE_PEN, |
| 154 POINTER_TYPE_TOUCH, |
| 155 }; |
| 156 |
149 } // namespace ui | 157 } // namespace ui |
150 | 158 |
151 #endif // UI_EVENTS_EVENT_CONSTANTS_H_ | 159 #endif // UI_EVENTS_EVENT_CONSTANTS_H_ |
OLD | NEW |