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

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

Issue 9310031: Event smoothing in CrOS gesture recognizer. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Fixes for clang chromium-style-check. Created 8 years, 10 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
« no previous file with comments | « ui/aura/gestures/gesture_point.cc ('k') | ui/aura/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_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
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_
OLDNEW
« no previous file with comments | « ui/aura/gestures/gesture_point.cc ('k') | ui/aura/gestures/gesture_sequence.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698