| 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, |
| 94 int tap_count, |
| 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. |
| 99 void AppendScrollGestureBegin(const GesturePoint& point, | 101 void AppendScrollGestureBegin(const GesturePoint& point, |
| 100 const gfx::Point& location, | 102 const gfx::Point& location, |
| 101 Gestures* gestures); | 103 Gestures* gestures); |
| 102 void AppendScrollGestureEnd(const GesturePoint& point, | 104 void AppendScrollGestureEnd(const GesturePoint& point, |
| 103 const gfx::Point& location, | 105 const gfx::Point& location, |
| (...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 210 gfx::Point last_touch_location_; | 212 gfx::Point last_touch_location_; |
| 211 | 213 |
| 212 GestureEventHelper* helper_; | 214 GestureEventHelper* helper_; |
| 213 | 215 |
| 214 DISALLOW_COPY_AND_ASSIGN(GestureSequence); | 216 DISALLOW_COPY_AND_ASSIGN(GestureSequence); |
| 215 }; | 217 }; |
| 216 | 218 |
| 217 } // namespace ui | 219 } // namespace ui |
| 218 | 220 |
| 219 #endif // UI_BASE_GESTURES_GESTURE_SEQUENCE_H_ | 221 #endif // UI_BASE_GESTURES_GESTURE_SEQUENCE_H_ |
| OLD | NEW |