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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 ET_GESTURE_SCROLL_BEGIN, | 47 ET_GESTURE_SCROLL_BEGIN, |
48 ET_GESTURE_SCROLL_END, | 48 ET_GESTURE_SCROLL_END, |
49 ET_GESTURE_SCROLL_UPDATE, | 49 ET_GESTURE_SCROLL_UPDATE, |
50 ET_GESTURE_TAP, | 50 ET_GESTURE_TAP, |
51 ET_GESTURE_TAP_DOWN, | 51 ET_GESTURE_TAP_DOWN, |
52 ET_GESTURE_DOUBLE_TAP, | 52 ET_GESTURE_DOUBLE_TAP, |
53 ET_GESTURE_PINCH_BEGIN, | 53 ET_GESTURE_PINCH_BEGIN, |
54 ET_GESTURE_PINCH_END, | 54 ET_GESTURE_PINCH_END, |
55 ET_GESTURE_PINCH_UPDATE, | 55 ET_GESTURE_PINCH_UPDATE, |
56 ET_GESTURE_LONG_PRESS, | 56 ET_GESTURE_LONG_PRESS, |
| 57 ET_GESTURE_THREE_FINGER_SWIPE, |
57 | 58 |
58 // Scroll support. | 59 // Scroll support. |
59 // TODO[davemoore] we need to unify these events w/ touch and gestures. | 60 // TODO[davemoore] we need to unify these events w/ touch and gestures. |
60 ET_SCROLL, | 61 ET_SCROLL, |
61 ET_SCROLL_FLING_START, | 62 ET_SCROLL_FLING_START, |
62 ET_SCROLL_FLING_CANCEL, | 63 ET_SCROLL_FLING_CANCEL, |
63 }; | 64 }; |
64 | 65 |
65 // Event flags currently supported | 66 // Event flags currently supported |
66 enum EventFlags { | 67 enum EventFlags { |
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
185 | 186 |
186 // Returns true if event is noop. | 187 // Returns true if event is noop. |
187 UI_EXPORT bool IsNoopEvent(const base::NativeEvent& event); | 188 UI_EXPORT bool IsNoopEvent(const base::NativeEvent& event); |
188 | 189 |
189 // Creates and returns no-op event. | 190 // Creates and returns no-op event. |
190 UI_EXPORT base::NativeEvent CreateNoopEvent(); | 191 UI_EXPORT base::NativeEvent CreateNoopEvent(); |
191 | 192 |
192 } // namespace ui | 193 } // namespace ui |
193 | 194 |
194 #endif // UI_BASE_EVENTS_H_ | 195 #endif // UI_BASE_EVENTS_H_ |
OLD | NEW |