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_BASE_EVENTS_H_ | 5 #ifndef UI_BASE_EVENTS_H_ |
6 #define UI_BASE_EVENTS_H_ | 6 #define UI_BASE_EVENTS_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/event_types.h" | 9 #include "base/event_types.h" |
10 #include "ui/base/keycodes/keyboard_codes.h" | 10 #include "ui/base/keycodes/keyboard_codes.h" |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
45 ET_DROP_TARGET_EVENT, | 45 ET_DROP_TARGET_EVENT, |
46 ET_FOCUS_CHANGE, | 46 ET_FOCUS_CHANGE, |
47 ET_TRANSLATED_KEY_PRESS, | 47 ET_TRANSLATED_KEY_PRESS, |
48 ET_TRANSLATED_KEY_RELEASE, | 48 ET_TRANSLATED_KEY_RELEASE, |
49 | 49 |
50 // GestureEvent types | 50 // GestureEvent types |
51 ET_GESTURE_SCROLL_BEGIN, | 51 ET_GESTURE_SCROLL_BEGIN, |
52 ET_GESTURE_SCROLL_END, | 52 ET_GESTURE_SCROLL_END, |
53 ET_GESTURE_SCROLL_UPDATE, | 53 ET_GESTURE_SCROLL_UPDATE, |
54 ET_GESTURE_TAP, | 54 ET_GESTURE_TAP, |
55 ET_GESTURE_TAP_DOWN, // Sent before any other gesture types. | 55 ET_GESTURE_TAP_DOWN, |
56 ET_GESTURE_TAP_UP, // Sent after any other gestures. | 56 ET_GESTURE_BEGIN, // Sent before any other gesture types. |
| 57 ET_GESTURE_END, // Sent after any other gestures. |
57 ET_GESTURE_DOUBLE_TAP, | 58 ET_GESTURE_DOUBLE_TAP, |
58 ET_GESTURE_TWO_FINGER_TAP, | 59 ET_GESTURE_TWO_FINGER_TAP, |
59 ET_GESTURE_PINCH_BEGIN, | 60 ET_GESTURE_PINCH_BEGIN, |
60 ET_GESTURE_PINCH_END, | 61 ET_GESTURE_PINCH_END, |
61 ET_GESTURE_PINCH_UPDATE, | 62 ET_GESTURE_PINCH_UPDATE, |
62 ET_GESTURE_LONG_PRESS, | 63 ET_GESTURE_LONG_PRESS, |
63 // A SWIPE gesture can happen at the end of a TAP_UP gesture if the | 64 // A SWIPE gesture can happen at the end of a TAP_UP gesture if the |
64 // finger(s) were moving quickly before they are released. | 65 // finger(s) were moving quickly before they are released. |
65 ET_GESTURE_MULTIFINGER_SWIPE, | 66 ET_GESTURE_MULTIFINGER_SWIPE, |
66 | 67 |
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
209 // Creates and returns no-op event. | 210 // Creates and returns no-op event. |
210 UI_EXPORT base::NativeEvent CreateNoopEvent(); | 211 UI_EXPORT base::NativeEvent CreateNoopEvent(); |
211 | 212 |
212 #if defined(OS_WIN) | 213 #if defined(OS_WIN) |
213 UI_EXPORT int GetModifiersFromACCEL(const ACCEL& accel); | 214 UI_EXPORT int GetModifiersFromACCEL(const ACCEL& accel); |
214 #endif | 215 #endif |
215 | 216 |
216 } // namespace ui | 217 } // namespace ui |
217 | 218 |
218 #endif // UI_BASE_EVENTS_H_ | 219 #endif // UI_BASE_EVENTS_H_ |
OLD | NEW |