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" |
11 #include "ui/events/gestures/gesture_recognizer.h" | 11 #include "ui/events/gestures/gesture_recognizer.h" |
12 #include "ui/gfx/rect.h" | 12 #include "ui/gfx/rect.h" |
13 | 13 |
14 namespace ui { | 14 namespace ui { |
15 class TouchEvent; | 15 class TouchEvent; |
16 class GestureEvent; | 16 class GestureEvent; |
17 | 17 |
18 // Gesture state. | 18 // Gesture state. |
19 enum GestureState { | 19 enum GestureState { |
20 GS_NO_GESTURE, | 20 GS_NO_GESTURE, |
21 GS_PENDING_SYNTHETIC_CLICK, | 21 GS_PENDING_SYNTHETIC_CLICK, |
22 // One finger is down: tap could occur, but scroll cannot | |
sadrul
2014/01/17 17:11:35
Mention that scroll/pinch can happen if a second t
tdresser
2014/01/17 19:48:42
Done.
| |
22 GS_PENDING_SYNTHETIC_CLICK_NO_SCROLL, | 23 GS_PENDING_SYNTHETIC_CLICK_NO_SCROLL, |
24 // One finger is down: no gestures can occur until the number of active touch | |
25 // points changes. | |
26 GS_SYNTHETIC_CLICK_ABORTED, | |
23 GS_SCROLL, | 27 GS_SCROLL, |
24 GS_PINCH, | 28 GS_PINCH, |
25 GS_PENDING_TWO_FINGER_TAP, | 29 GS_PENDING_TWO_FINGER_TAP, |
26 GS_PENDING_TWO_FINGER_TAP_NO_PINCH, | 30 GS_PENDING_TWO_FINGER_TAP_NO_PINCH, |
27 GS_PENDING_PINCH, | 31 GS_PENDING_PINCH, |
28 GS_PENDING_PINCH_NO_PINCH, | 32 GS_PENDING_PINCH_NO_PINCH, |
29 }; | 33 }; |
30 | 34 |
31 enum ScrollType { | 35 enum ScrollType { |
32 ST_FREE, | 36 ST_FREE, |
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
236 gfx::Point last_touch_location_; | 240 gfx::Point last_touch_location_; |
237 | 241 |
238 GestureSequenceDelegate* delegate_; | 242 GestureSequenceDelegate* delegate_; |
239 | 243 |
240 DISALLOW_COPY_AND_ASSIGN(GestureSequence); | 244 DISALLOW_COPY_AND_ASSIGN(GestureSequence); |
241 }; | 245 }; |
242 | 246 |
243 } // namespace ui | 247 } // namespace ui |
244 | 248 |
245 #endif // UI_EVENTS_GESTURES_GESTURE_SEQUENCE_H_ | 249 #endif // UI_EVENTS_GESTURES_GESTURE_SEQUENCE_H_ |
OLD | NEW |