| 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 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 120 // IME without a user action. | 120 // IME without a user action. |
| 121 // (Linux X11 only) | 121 // (Linux X11 only) |
| 122 EF_IS_REPEAT = 1 << 16, | 122 EF_IS_REPEAT = 1 << 16, |
| 123 EF_FINAL = 1 << 17, // Do not remap; the event was created with | 123 EF_FINAL = 1 << 17, // Do not remap; the event was created with |
| 124 // the desired final values. | 124 // the desired final values. |
| 125 EF_IS_EXTENDED_KEY = 1 << 18, // Windows extended key (see WM_KEYDOWN doc) | 125 EF_IS_EXTENDED_KEY = 1 << 18, // Windows extended key (see WM_KEYDOWN doc) |
| 126 }; | 126 }; |
| 127 | 127 |
| 128 // Flags specific to mouse events | 128 // Flags specific to mouse events |
| 129 enum MouseEventFlags { | 129 enum MouseEventFlags { |
| 130 EF_IS_DOUBLE_CLICK = 1 << 15, | 130 EF_IS_DOUBLE_CLICK = 1 << 15, |
| 131 EF_IS_TRIPLE_CLICK = 1 << 16, | 131 EF_IS_TRIPLE_CLICK = 1 << 16, |
| 132 EF_IS_NON_CLIENT = 1 << 17, | 132 EF_IS_NON_CLIENT = 1 << 17, |
| 133 EF_FROM_TOUCH = 1 << 18, // Indicates this mouse event is generated | 133 EF_FROM_TOUCH = 1 << 18, // Indicates this mouse event is generated |
| 134 // from an unconsumed touch/gesture event. | 134 // from an unconsumed touch/gesture event. |
| 135 EF_TOUCH_ACCESSIBILITY = 1 << 19, // Indicates this event was generated from | 135 EF_TOUCH_ACCESSIBILITY = 1 << 19, // Indicates this event was generated from |
| 136 // touch accessibility mode. | 136 // touch accessibility mode. |
| 137 EF_DIRECT_INPUT = 1 << 20, // Mouse event coming from direct, |
| 138 // on-screen input. |
| 137 }; | 139 }; |
| 138 | 140 |
| 139 // Result of dispatching an event. | 141 // Result of dispatching an event. |
| 140 enum EventResult { | 142 enum EventResult { |
| 141 ER_UNHANDLED = 0, // The event hasn't been handled. The event can be | 143 ER_UNHANDLED = 0, // The event hasn't been handled. The event can be |
| 142 // propagated to other handlers. | 144 // propagated to other handlers. |
| 143 ER_HANDLED = 1 << 0, // The event has already been handled, but it can | 145 ER_HANDLED = 1 << 0, // The event has already been handled, but it can |
| 144 // still be propagated to other handlers. | 146 // still be propagated to other handlers. |
| 145 ER_CONSUMED = 1 << 1, // The event has been handled, and it should not be | 147 ER_CONSUMED = 1 << 1, // The event has been handled, and it should not be |
| 146 // propagated to other handlers. | 148 // propagated to other handlers. |
| (...skipping 29 matching lines...) Expand all Loading... |
| 176 // Device type for gesture events. | 178 // Device type for gesture events. |
| 177 enum class GestureDeviceType : int { | 179 enum class GestureDeviceType : int { |
| 178 DEVICE_UNKNOWN = 0, | 180 DEVICE_UNKNOWN = 0, |
| 179 DEVICE_TOUCHPAD, | 181 DEVICE_TOUCHPAD, |
| 180 DEVICE_TOUCHSCREEN, | 182 DEVICE_TOUCHSCREEN, |
| 181 }; | 183 }; |
| 182 | 184 |
| 183 } // namespace ui | 185 } // namespace ui |
| 184 | 186 |
| 185 #endif // UI_EVENTS_EVENT_CONSTANTS_H_ | 187 #endif // UI_EVENTS_EVENT_CONSTANTS_H_ |
| OLD | NEW |