| 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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 ET_GESTURE_PINCH_END, | 51 ET_GESTURE_PINCH_END, |
| 52 ET_GESTURE_PINCH_UPDATE, | 52 ET_GESTURE_PINCH_UPDATE, |
| 53 ET_GESTURE_LONG_PRESS, | 53 ET_GESTURE_LONG_PRESS, |
| 54 ET_GESTURE_LONG_TAP, | 54 ET_GESTURE_LONG_TAP, |
| 55 // A SWIPE gesture can happen at the end of a touch sequence involving one or | 55 // A SWIPE gesture can happen at the end of a touch sequence involving one or |
| 56 // more fingers if the finger velocity was high enough when the first finger | 56 // more fingers if the finger velocity was high enough when the first finger |
| 57 // was released. | 57 // was released. |
| 58 ET_GESTURE_SWIPE, | 58 ET_GESTURE_SWIPE, |
| 59 ET_GESTURE_SHOW_PRESS, | 59 ET_GESTURE_SHOW_PRESS, |
| 60 | 60 |
| 61 // Sent by Win8+ metro when the user swipes from the bottom or top. | |
| 62 ET_GESTURE_WIN8_EDGE_SWIPE, | |
| 63 | |
| 64 // Scroll support. | 61 // Scroll support. |
| 65 // TODO[davemoore] we need to unify these events w/ touch and gestures. | 62 // TODO[davemoore] we need to unify these events w/ touch and gestures. |
| 66 ET_SCROLL, | 63 ET_SCROLL, |
| 67 ET_SCROLL_FLING_START, | 64 ET_SCROLL_FLING_START, |
| 68 ET_SCROLL_FLING_CANCEL, | 65 ET_SCROLL_FLING_CANCEL, |
| 69 ET_GESTURE_TYPE_END = ET_SCROLL_FLING_CANCEL, | 66 ET_GESTURE_TYPE_END = ET_SCROLL_FLING_CANCEL, |
| 70 | 67 |
| 71 // Sent by the system to indicate any modal type operations, such as drag and | 68 // Sent by the system to indicate any modal type operations, such as drag and |
| 72 // drop or menus, should stop. | 69 // drop or menus, should stop. |
| 73 ET_CANCEL_MODE, | 70 ET_CANCEL_MODE, |
| (...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 176 // Device type for gesture events. | 173 // Device type for gesture events. |
| 177 enum class GestureDeviceType : int { | 174 enum class GestureDeviceType : int { |
| 178 DEVICE_UNKNOWN = 0, | 175 DEVICE_UNKNOWN = 0, |
| 179 DEVICE_TOUCHPAD, | 176 DEVICE_TOUCHPAD, |
| 180 DEVICE_TOUCHSCREEN, | 177 DEVICE_TOUCHSCREEN, |
| 181 }; | 178 }; |
| 182 | 179 |
| 183 } // namespace ui | 180 } // namespace ui |
| 184 | 181 |
| 185 #endif // UI_EVENTS_EVENT_CONSTANTS_H_ | 182 #endif // UI_EVENTS_EVENT_CONSTANTS_H_ |
| OLD | NEW |