| 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 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 131 enum MouseEventFlags { | 131 enum MouseEventFlags { |
| 132 EF_IS_DOUBLE_CLICK = 1 << 15, | 132 EF_IS_DOUBLE_CLICK = 1 << 15, |
| 133 EF_IS_TRIPLE_CLICK = 1 << 16, | 133 EF_IS_TRIPLE_CLICK = 1 << 16, |
| 134 EF_IS_NON_CLIENT = 1 << 17, | 134 EF_IS_NON_CLIENT = 1 << 17, |
| 135 EF_FROM_TOUCH = 1 << 18, // Indicates this mouse event is generated | 135 EF_FROM_TOUCH = 1 << 18, // Indicates this mouse event is generated |
| 136 // from an unconsumed touch/gesture event. | 136 // from an unconsumed touch/gesture event. |
| 137 EF_TOUCH_ACCESSIBILITY = 1 << 19, // Indicates this event was generated from | 137 EF_TOUCH_ACCESSIBILITY = 1 << 19, // Indicates this event was generated from |
| 138 // touch accessibility mode. | 138 // touch accessibility mode. |
| 139 EF_DIRECT_INPUT = 1 << 20, // Mouse event coming from direct, | 139 EF_DIRECT_INPUT = 1 << 20, // Mouse event coming from direct, |
| 140 // on-screen input. | 140 // on-screen input. |
| 141 EF_CURSOR_HIDDEN = 1 << 21, // Mouse event fired when mouse cursor is |
| 142 // not visible. Avoid visible screen |
| 143 // changes. (Windows only.) |
| 141 }; | 144 }; |
| 142 | 145 |
| 143 // Result of dispatching an event. | 146 // Result of dispatching an event. |
| 144 enum EventResult { | 147 enum EventResult { |
| 145 ER_UNHANDLED = 0, // The event hasn't been handled. The event can be | 148 ER_UNHANDLED = 0, // The event hasn't been handled. The event can be |
| 146 // propagated to other handlers. | 149 // propagated to other handlers. |
| 147 ER_HANDLED = 1 << 0, // The event has already been handled, but it can | 150 ER_HANDLED = 1 << 0, // The event has already been handled, but it can |
| 148 // still be propagated to other handlers. | 151 // still be propagated to other handlers. |
| 149 ER_CONSUMED = 1 << 1, // The event has been handled, and it should not be | 152 ER_CONSUMED = 1 << 1, // The event has been handled, and it should not be |
| 150 // propagated to other handlers. | 153 // propagated to other handlers. |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 200 // Device type for gesture events. | 203 // Device type for gesture events. |
| 201 enum class GestureDeviceType : int { | 204 enum class GestureDeviceType : int { |
| 202 DEVICE_UNKNOWN = 0, | 205 DEVICE_UNKNOWN = 0, |
| 203 DEVICE_TOUCHPAD, | 206 DEVICE_TOUCHPAD, |
| 204 DEVICE_TOUCHSCREEN, | 207 DEVICE_TOUCHSCREEN, |
| 205 }; | 208 }; |
| 206 | 209 |
| 207 } // namespace ui | 210 } // namespace ui |
| 208 | 211 |
| 209 #endif // UI_EVENTS_EVENT_CONSTANTS_H_ | 212 #endif // UI_EVENTS_EVENT_CONSTANTS_H_ |
| OLD | NEW |