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_GESTURES_GESTURE_SEQUENCE_H_ | 5 #ifndef UI_BASE_GESTURES_GESTURE_SEQUENCE_H_ |
6 #define UI_BASE_GESTURES_GESTURE_SEQUENCE_H_ | 6 #define UI_BASE_GESTURES_GESTURE_SEQUENCE_H_ |
7 | 7 |
8 #include "base/timer.h" | 8 #include "base/timer.h" |
9 #include "ui/base/events/event_constants.h" | 9 #include "ui/base/events/event_constants.h" |
10 #include "ui/base/gestures/gesture_point.h" | 10 #include "ui/base/gestures/gesture_point.h" |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
79 GestureEvent* CreateGestureEvent(const GestureEventDetails& details, | 79 GestureEvent* CreateGestureEvent(const GestureEventDetails& details, |
80 const gfx::Point& location, | 80 const gfx::Point& location, |
81 int flags, | 81 int flags, |
82 base::Time timestamp, | 82 base::Time timestamp, |
83 unsigned int touch_id_bitmask); | 83 unsigned int touch_id_bitmask); |
84 | 84 |
85 // Functions to be called to add GestureEvents, after successful recognition. | 85 // Functions to be called to add GestureEvents, after successful recognition. |
86 | 86 |
87 // Tap gestures. | 87 // Tap gestures. |
88 void AppendTapDownGestureEvent(const GesturePoint& point, Gestures* gestures); | 88 void AppendTapDownGestureEvent(const GesturePoint& point, Gestures* gestures); |
| 89 void PrependTapCancelGestureEvent(const GesturePoint& point, |
| 90 Gestures* gestures); |
89 void AppendBeginGestureEvent(const GesturePoint& point, Gestures* gestures); | 91 void AppendBeginGestureEvent(const GesturePoint& point, Gestures* gestures); |
90 void AppendEndGestureEvent(const GesturePoint& point, Gestures* gestures); | 92 void AppendEndGestureEvent(const GesturePoint& point, Gestures* gestures); |
91 void AppendClickGestureEvent(const GesturePoint& point, | 93 void AppendClickGestureEvent(const GesturePoint& point, |
92 int tap_count, | 94 int tap_count, |
93 Gestures* gestures); | 95 Gestures* gestures); |
94 void AppendDoubleClickGestureEvent(const GesturePoint& point, | 96 void AppendDoubleClickGestureEvent(const GesturePoint& point, |
95 Gestures* gestures); | 97 Gestures* gestures); |
96 void AppendLongPressGestureEvent(); | 98 void AppendLongPressGestureEvent(); |
97 | 99 |
98 // Scroll gestures. | 100 // Scroll gestures. |
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
207 gfx::Point last_touch_location_; | 209 gfx::Point last_touch_location_; |
208 | 210 |
209 GestureEventHelper* helper_; | 211 GestureEventHelper* helper_; |
210 | 212 |
211 DISALLOW_COPY_AND_ASSIGN(GestureSequence); | 213 DISALLOW_COPY_AND_ASSIGN(GestureSequence); |
212 }; | 214 }; |
213 | 215 |
214 } // namespace ui | 216 } // namespace ui |
215 | 217 |
216 #endif // UI_BASE_GESTURES_GESTURE_SEQUENCE_H_ | 218 #endif // UI_BASE_GESTURES_GESTURE_SEQUENCE_H_ |
OLD | NEW |