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

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

Issue 25022003: Report LatencyInfo through trace buffer (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: address sadrul's comments Created 7 years, 2 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
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 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
171 bool MaybeSwipe(const TouchEvent& event, 171 bool MaybeSwipe(const TouchEvent& event,
172 const GesturePoint& point, 172 const GesturePoint& point,
173 Gestures* gestures); 173 Gestures* gestures);
174 174
175 void TwoFingerTapOrPinch(const TouchEvent& event, 175 void TwoFingerTapOrPinch(const TouchEvent& event,
176 const GesturePoint& point, 176 const GesturePoint& point,
177 Gestures* gestures); 177 Gestures* gestures);
178 178
179 void StopLongPressTimerIfRequired(const TouchEvent& event); 179 void StopLongPressTimerIfRequired(const TouchEvent& event);
180 180
181 void UpdateGestureEventLatencyInfo(const TouchEvent& event,
182 Gestures* gestures);
183
181 // Current state of gesture recognizer. 184 // Current state of gesture recognizer.
182 GestureState state_; 185 GestureState state_;
183 186
184 // ui::EventFlags. 187 // ui::EventFlags.
185 int flags_; 188 int flags_;
186 189
187 // We maintain the smallest axis-aligned rectangle that contains all the 190 // We maintain the smallest axis-aligned rectangle that contains all the
188 // current touch-points. This box is updated after every touch-event. 191 // current touch-points. This box is updated after every touch-event.
189 gfx::Rect bounding_box_; 192 gfx::Rect bounding_box_;
190 193
(...skipping 29 matching lines...) Expand all
220 gfx::Point last_touch_location_; 223 gfx::Point last_touch_location_;
221 224
222 GestureEventHelper* helper_; 225 GestureEventHelper* helper_;
223 226
224 DISALLOW_COPY_AND_ASSIGN(GestureSequence); 227 DISALLOW_COPY_AND_ASSIGN(GestureSequence);
225 }; 228 };
226 229
227 } // namespace ui 230 } // namespace ui
228 231
229 #endif // UI_EVENTS_GESTURES_GESTURE_SEQUENCE_H_ 232 #endif // UI_EVENTS_GESTURES_GESTURE_SEQUENCE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698