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

Unified Diff: ui/base/gestures/gesture_sequence.h

Issue 10448102: Adds switch to disable generating mouse events from touch events and (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: remove released and fix bug in GestureRecognizerImpl Created 8 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/base/gestures/gesture_recognizer_impl.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/gestures/gesture_sequence.h
diff --git a/ui/base/gestures/gesture_sequence.h b/ui/base/gestures/gesture_sequence.h
index b8a9a020a2d05d9e23227930de7a2537aa9c07d2..0a52578642ea5fca705e98030edf95a2a2d520f8 100644
--- a/ui/base/gestures/gesture_sequence.h
+++ b/ui/base/gestures/gesture_sequence.h
@@ -33,6 +33,9 @@ enum ScrollType {
// A GestureSequence recognizes gestures from touch sequences.
class UI_EXPORT GestureSequence {
public:
+ // Maximum number of points in a single gesture.
+ static const int kMaxGesturePoints = 12;
+
explicit GestureSequence(GestureEventHelper* consumer);
virtual ~GestureSequence();
@@ -47,9 +50,6 @@ class UI_EXPORT GestureSequence {
const GesturePoint* points() const { return points_; }
int point_count() const { return point_count_; }
- // Maximum number of points in a single gesture.
- static const int kMaxGesturePoints = 12;
-
protected:
virtual base::OneShotTimer<GestureSequence>* CreateTimer();
base::OneShotTimer<GestureSequence>* long_press_timer() {
@@ -110,7 +110,7 @@ class UI_EXPORT GestureSequence {
int swipe_y,
Gestures* gestures);
- void set_state(const GestureState state ) { state_ = state; }
+ void set_state(const GestureState state) { state_ = state; }
// Various GestureTransitionFunctions for a signature.
// There is, 1:many mapping from GestureTransitionFunction to Signature
« no previous file with comments | « ui/base/gestures/gesture_recognizer_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698