Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(428)

Side by Side Diff: ui/base/gestures/gesture_sequence.h

Issue 10824158: Pass tap count (1 or 2) with tap gesture events (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge with trunk Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ui/aura/gestures/gesture_recognizer_unittest.cc ('k') | ui/base/gestures/gesture_sequence.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « ui/aura/gestures/gesture_recognizer_unittest.cc ('k') | ui/base/gestures/gesture_sequence.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698