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

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

Issue 10928066: Add GestureTapCancel gesture type (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: sky cr feedback Created 8 years, 3 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/base/events/event_constants.h ('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/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
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
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_
OLDNEW
« no previous file with comments | « ui/base/events/event_constants.h ('k') | ui/base/gestures/gesture_sequence.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698