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

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

Issue 189583007: Ensure Multi-finger tap generates both GestureScrollBegin and GestureScrollEnd. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Factor out scroll start logic. Created 6 years, 9 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/events/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_EVENTS_GESTURES_GESTURE_SEQUENCE_H_ 5 #ifndef UI_EVENTS_GESTURES_GESTURE_SEQUENCE_H_
6 #define UI_EVENTS_GESTURES_GESTURE_SEQUENCE_H_ 6 #define UI_EVENTS_GESTURES_GESTURE_SEQUENCE_H_
7 7
8 #include "base/timer/timer.h" 8 #include "base/timer/timer.h"
9 #include "ui/events/event_constants.h" 9 #include "ui/events/event_constants.h"
10 #include "ui/events/gestures/gesture_point.h" 10 #include "ui/events/gestures/gesture_point.h"
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after
200 bool MaybeSwipe(const TouchEvent& event, 200 bool MaybeSwipe(const TouchEvent& event,
201 const GesturePoint& point, 201 const GesturePoint& point,
202 Gestures* gestures); 202 Gestures* gestures);
203 203
204 void TwoFingerTapOrPinch(const TouchEvent& event, 204 void TwoFingerTapOrPinch(const TouchEvent& event,
205 const GesturePoint& point, 205 const GesturePoint& point,
206 Gestures* gestures); 206 Gestures* gestures);
207 207
208 void StopTimersIfRequired(const TouchEvent& event); 208 void StopTimersIfRequired(const TouchEvent& event);
209 209
210 void StartRailFreeScroll(const GesturePoint& point, Gestures* gestures);
211
210 // Current state of gesture recognizer. 212 // Current state of gesture recognizer.
211 GestureState state_; 213 GestureState state_;
212 214
213 // ui::EventFlags. 215 // ui::EventFlags.
214 int flags_; 216 int flags_;
215 217
216 // We maintain the smallest axis-aligned rectangle that contains all the 218 // We maintain the smallest axis-aligned rectangle that contains all the
217 // current touch-points. This box is updated after every touch-event. 219 // current touch-points. This box is updated after every touch-event.
218 gfx::RectF bounding_box_; 220 gfx::RectF bounding_box_;
219 221
(...skipping 30 matching lines...) Expand all
250 gfx::PointF last_touch_location_; 252 gfx::PointF last_touch_location_;
251 253
252 GestureSequenceDelegate* delegate_; 254 GestureSequenceDelegate* delegate_;
253 255
254 DISALLOW_COPY_AND_ASSIGN(GestureSequence); 256 DISALLOW_COPY_AND_ASSIGN(GestureSequence);
255 }; 257 };
256 258
257 } // namespace ui 259 } // namespace ui
258 260
259 #endif // UI_EVENTS_GESTURES_GESTURE_SEQUENCE_H_ 261 #endif // UI_EVENTS_GESTURES_GESTURE_SEQUENCE_H_
OLDNEW
« no previous file with comments | « ui/aura/gestures/gesture_recognizer_unittest.cc ('k') | ui/events/gestures/gesture_sequence.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698