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

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

Issue 10837329: gesture: Include velocity in scroll-update gestures. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . 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 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 97
98 // Scroll gestures. 98 // Scroll gestures.
99 void AppendScrollGestureBegin(const GesturePoint& point, 99 void AppendScrollGestureBegin(const GesturePoint& point,
100 const gfx::Point& location, 100 const gfx::Point& location,
101 Gestures* gestures); 101 Gestures* gestures);
102 void AppendScrollGestureEnd(const GesturePoint& point, 102 void AppendScrollGestureEnd(const GesturePoint& point,
103 const gfx::Point& location, 103 const gfx::Point& location,
104 Gestures* gestures, 104 Gestures* gestures,
105 float x_velocity, 105 float x_velocity,
106 float y_velocity); 106 float y_velocity);
107 void AppendScrollGestureUpdate(const GesturePoint& point, 107 void AppendScrollGestureUpdate(GesturePoint& point,
108 const gfx::Point& location, 108 const gfx::Point& location,
109 Gestures* gestures); 109 Gestures* gestures);
110 110
111 // Pinch gestures. 111 // Pinch gestures.
112 void AppendPinchGestureBegin(const GesturePoint& p1, 112 void AppendPinchGestureBegin(const GesturePoint& p1,
113 const GesturePoint& p2, 113 const GesturePoint& p2,
114 Gestures* gestures); 114 Gestures* gestures);
115 void AppendPinchGestureEnd(const GesturePoint& p1, 115 void AppendPinchGestureEnd(const GesturePoint& p1,
116 const GesturePoint& p2, 116 const GesturePoint& p2,
117 float scale, 117 float scale,
(...skipping 15 matching lines...) Expand all
133 bool Click(const TouchEvent& event, 133 bool Click(const TouchEvent& event,
134 const GesturePoint& point, 134 const GesturePoint& point,
135 Gestures* gestures); 135 Gestures* gestures);
136 bool ScrollStart(const TouchEvent& event, 136 bool ScrollStart(const TouchEvent& event,
137 GesturePoint& point, 137 GesturePoint& point,
138 Gestures* gestures); 138 Gestures* gestures);
139 void BreakRailScroll(const TouchEvent& event, 139 void BreakRailScroll(const TouchEvent& event,
140 GesturePoint& point, 140 GesturePoint& point,
141 Gestures* gestures); 141 Gestures* gestures);
142 bool ScrollUpdate(const TouchEvent& event, 142 bool ScrollUpdate(const TouchEvent& event,
143 const GesturePoint& point, 143 GesturePoint& point,
144 Gestures* gestures); 144 Gestures* gestures);
145 bool TouchDown(const TouchEvent& event, 145 bool TouchDown(const TouchEvent& event,
146 const GesturePoint& point, 146 const GesturePoint& point,
147 Gestures* gestures); 147 Gestures* gestures);
148 bool TwoFingerTouchDown(const TouchEvent& event, 148 bool TwoFingerTouchDown(const TouchEvent& event,
149 const GesturePoint& point, 149 const GesturePoint& point,
150 Gestures* gestures); 150 Gestures* gestures);
151 bool TwoFingerTouchMove(const TouchEvent& event, 151 bool TwoFingerTouchMove(const TouchEvent& event,
152 const GesturePoint& point, 152 const GesturePoint& point,
153 Gestures* gestures); 153 Gestures* gestures);
154 bool TwoFingerTouchReleased(const TouchEvent& event, 154 bool TwoFingerTouchReleased(const TouchEvent& event,
155 const GesturePoint& point, 155 const GesturePoint& point,
156 Gestures* gestures); 156 Gestures* gestures);
157 bool ScrollEnd(const TouchEvent& event, 157 bool ScrollEnd(const TouchEvent& event,
158 GesturePoint& point, 158 GesturePoint& point,
159 Gestures* gestures); 159 Gestures* gestures);
160 bool PinchStart(const TouchEvent& event, 160 bool PinchStart(const TouchEvent& event,
161 const GesturePoint& point, 161 const GesturePoint& point,
162 Gestures* gestures); 162 Gestures* gestures);
163 bool PinchUpdate(const TouchEvent& event, 163 bool PinchUpdate(const TouchEvent& event,
164 const GesturePoint& point, 164 GesturePoint& point,
165 Gestures* gestures); 165 Gestures* gestures);
166 bool PinchEnd(const TouchEvent& event, 166 bool PinchEnd(const TouchEvent& event,
167 const GesturePoint& point, 167 const GesturePoint& point,
168 Gestures* gestures); 168 Gestures* gestures);
169 bool MaybeSwipe(const TouchEvent& event, 169 bool MaybeSwipe(const TouchEvent& event,
170 const GesturePoint& point, 170 const GesturePoint& point,
171 Gestures* gestures); 171 Gestures* gestures);
172 172
173 void StopLongPressTimerIfRequired(const TouchEvent& event); 173 void StopLongPressTimerIfRequired(const TouchEvent& event);
174 174
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
207 gfx::Point last_touch_location_; 207 gfx::Point last_touch_location_;
208 208
209 GestureEventHelper* helper_; 209 GestureEventHelper* helper_;
210 210
211 DISALLOW_COPY_AND_ASSIGN(GestureSequence); 211 DISALLOW_COPY_AND_ASSIGN(GestureSequence);
212 }; 212 };
213 213
214 } // namespace ui 214 } // namespace ui
215 215
216 #endif // UI_BASE_GESTURES_GESTURE_SEQUENCE_H_ 216 #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