| 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_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 Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |