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

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

Issue 9452024: Gestures are now possible using touch events with any ids (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: 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
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 "base/timer.h" 9 #include "base/timer.h"
10 #include "ui/aura/gestures/gesture_point.h" 10 #include "ui/aura/gestures/gesture_point.h"
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 protected: 47 protected:
48 virtual base::OneShotTimer<GestureSequence>* CreateTimer(); 48 virtual base::OneShotTimer<GestureSequence>* CreateTimer();
49 base::OneShotTimer<GestureSequence>* long_press_timer() { 49 base::OneShotTimer<GestureSequence>* long_press_timer() {
50 return long_press_timer_.get(); 50 return long_press_timer_.get();
51 } 51 }
52 52
53 private: 53 private:
54 void Reset(); 54 void Reset();
55 55
56 GesturePoint& GesturePointForEvent(const TouchEvent& event); 56 GesturePoint& GesturePointForEvent(const TouchEvent& event);
57 GesturePoint* GetPointByPointId(int point_id);
rjkroege 2012/02/23 19:39:45 add an explanation?
tdresser 2012/02/23 20:13:07 Done.
57 58
58 // Functions to be called to add GestureEvents, after succesful recognition. 59 // Functions to be called to add GestureEvents, after successful recognition.
59 60
60 // Tap gestures. 61 // Tap gestures.
61 void AppendTapDownGestureEvent(const GesturePoint& point, Gestures* gestures); 62 void AppendTapDownGestureEvent(const GesturePoint& point, Gestures* gestures);
62 void AppendClickGestureEvent(const GesturePoint& point, Gestures* gestures); 63 void AppendClickGestureEvent(const GesturePoint& point, Gestures* gestures);
63 void AppendDoubleClickGestureEvent(const GesturePoint& point, 64 void AppendDoubleClickGestureEvent(const GesturePoint& point,
64 Gestures* gestures); 65 Gestures* gestures);
65 void AppendLongPressGestureEvent(); 66 void AppendLongPressGestureEvent();
66 67
67 // Scroll gestures. 68 // Scroll gestures.
68 void AppendScrollGestureBegin(const GesturePoint& point, 69 void AppendScrollGestureBegin(const GesturePoint& point,
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 147
147 GesturePoint points_[kMaxGesturePoints]; 148 GesturePoint points_[kMaxGesturePoints];
148 int point_count_; 149 int point_count_;
149 150
150 DISALLOW_COPY_AND_ASSIGN(GestureSequence); 151 DISALLOW_COPY_AND_ASSIGN(GestureSequence);
151 }; 152 };
152 153
153 } // namespace aura 154 } // namespace aura
154 155
155 #endif // UI_AURA_GESTURES_GESTURE_SEQUENCE_H_ 156 #endif // UI_AURA_GESTURES_GESTURE_SEQUENCE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698