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_AURA_GESTURES_GESTURE_SEQUENCE_H_ | 5 #ifndef UI_AURA_GESTURES_GESTURE_SEQUENCE_H_ |
6 #define UI_AURA_GESTURES_GESTURE_SEQUENCE_H_ | 6 #define UI_AURA_GESTURES_GESTURE_SEQUENCE_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "ui/aura/gestures/gesture_point.h" | 9 #include "ui/aura/gestures/gesture_point.h" |
10 #include "ui/aura/gestures/gesture_recognizer.h" | 10 #include "ui/aura/gestures/gesture_recognizer.h" |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
115 bool InScroll(const TouchEvent& event, | 115 bool InScroll(const TouchEvent& event, |
116 const GesturePoint& point, | 116 const GesturePoint& point, |
117 Gestures* gestures); | 117 Gestures* gestures); |
118 bool NoGesture(const TouchEvent& event, | 118 bool NoGesture(const TouchEvent& event, |
119 const GesturePoint& point, | 119 const GesturePoint& point, |
120 Gestures* gestures); | 120 Gestures* gestures); |
121 bool TouchDown(const TouchEvent& event, | 121 bool TouchDown(const TouchEvent& event, |
122 const GesturePoint& point, | 122 const GesturePoint& point, |
123 Gestures* gestures); | 123 Gestures* gestures); |
124 bool ScrollEnd(const TouchEvent& event, | 124 bool ScrollEnd(const TouchEvent& event, |
125 const GesturePoint& point, | 125 GesturePoint& point, |
126 Gestures* gestures); | 126 Gestures* gestures); |
127 | 127 |
128 // Current state of gesture recognizer. | 128 // Current state of gesture recognizer. |
129 GestureState state_; | 129 GestureState state_; |
130 | 130 |
131 // Location of click gesture. | 131 // Location of click gesture. |
132 gfx::Point last_click_position_; | 132 gfx::Point last_click_position_; |
133 | 133 |
134 // ui::EventFlags. | 134 // ui::EventFlags. |
135 int flags_; | 135 int flags_; |
136 | 136 |
137 // Maximum points in a single gesture. | 137 // Maximum points in a single gesture. |
138 static const int kMaxGesturePoints = 12; | 138 static const int kMaxGesturePoints = 12; |
139 | 139 |
140 GesturePoint points_[kMaxGesturePoints]; | 140 GesturePoint points_[kMaxGesturePoints]; |
141 int point_count_; | 141 int point_count_; |
142 | 142 |
143 DISALLOW_COPY_AND_ASSIGN(GestureSequence); | 143 DISALLOW_COPY_AND_ASSIGN(GestureSequence); |
144 }; | 144 }; |
145 | 145 |
146 } // namespace aura | 146 } // namespace aura |
147 | 147 |
148 #endif // UI_AURA_GESTURES_GESTURE_SEQUENCE_H_ | 148 #endif // UI_AURA_GESTURES_GESTURE_SEQUENCE_H_ |
OLD | NEW |