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.h" | 9 #include "ui/base/events.h" |
10 #include "ui/base/gestures/gesture_point.h" | 10 #include "ui/base/gestures/gesture_point.h" |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
83 int flags, | 83 int flags, |
84 base::Time timestamp, | 84 base::Time timestamp, |
85 unsigned int touch_id_bitmask); | 85 unsigned int touch_id_bitmask); |
86 | 86 |
87 // Functions to be called to add GestureEvents, after successful recognition. | 87 // Functions to be called to add GestureEvents, after successful recognition. |
88 | 88 |
89 // Tap gestures. | 89 // Tap gestures. |
90 void AppendTapDownGestureEvent(const GesturePoint& point, Gestures* gestures); | 90 void AppendTapDownGestureEvent(const GesturePoint& point, Gestures* gestures); |
91 void AppendBeginGestureEvent(const GesturePoint& point, Gestures* gestures); | 91 void AppendBeginGestureEvent(const GesturePoint& point, Gestures* gestures); |
92 void AppendEndGestureEvent(const GesturePoint& point, Gestures* gestures); | 92 void AppendEndGestureEvent(const GesturePoint& point, Gestures* gestures); |
93 void AppendClickGestureEvent(const GesturePoint& point, Gestures* gestures); | 93 void AppendClickGestureEvent(const GesturePoint& point, int tap_count, |
94 Gestures* gestures); | |
sadrul
2012/08/03 01:50:33
each param should be in its own line
Rick Byers
2012/08/03 14:51:54
Done.
| |
94 void AppendDoubleClickGestureEvent(const GesturePoint& point, | 95 void AppendDoubleClickGestureEvent(const GesturePoint& point, |
95 Gestures* gestures); | 96 Gestures* gestures); |
96 void AppendLongPressGestureEvent(); | 97 void AppendLongPressGestureEvent(); |
97 | 98 |
98 // Scroll gestures. | 99 // Scroll gestures. |
99 void AppendScrollGestureBegin(const GesturePoint& point, | 100 void AppendScrollGestureBegin(const GesturePoint& point, |
100 const gfx::Point& location, | 101 const gfx::Point& location, |
101 Gestures* gestures); | 102 Gestures* gestures); |
102 void AppendScrollGestureEnd(const GesturePoint& point, | 103 void AppendScrollGestureEnd(const GesturePoint& point, |
103 const gfx::Point& location, | 104 const gfx::Point& location, |
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
210 gfx::Point last_touch_location_; | 211 gfx::Point last_touch_location_; |
211 | 212 |
212 GestureEventHelper* helper_; | 213 GestureEventHelper* helper_; |
213 | 214 |
214 DISALLOW_COPY_AND_ASSIGN(GestureSequence); | 215 DISALLOW_COPY_AND_ASSIGN(GestureSequence); |
215 }; | 216 }; |
216 | 217 |
217 } // namespace ui | 218 } // namespace ui |
218 | 219 |
219 #endif // UI_BASE_GESTURES_GESTURE_SEQUENCE_H_ | 220 #endif // UI_BASE_GESTURES_GESTURE_SEQUENCE_H_ |
OLD | NEW |