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

Unified Diff: ui/aura/gestures/gesture_point.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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | ui/aura/gestures/gesture_point.cc » ('j') | ui/aura/gestures/gesture_sequence.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/gestures/gesture_point.h
diff --git a/ui/aura/gestures/gesture_point.h b/ui/aura/gestures/gesture_point.h
index a3a46dbc0473ba4c7bed1439d668382ca030cc37..950bbb5ab5133bcfcebc8cc2d53ef99d2c4a4da6 100644
--- a/ui/aura/gestures/gesture_point.h
+++ b/ui/aura/gestures/gesture_point.h
@@ -53,8 +53,11 @@ class GesturePoint {
double last_touch_time() const { return last_touch_time_; }
const gfx::Point& last_touch_position() const { return last_touch_position_; }
- void set_touch_id(unsigned int touch_id) { touch_id_ = touch_id; }
- const unsigned int touch_id() const { return touch_id_; }
+ void set_point_id(int point_id) { point_id_ = point_id; }
rjkroege 2012/02/23 19:39:45 can you add some comments saying what these are fo
tdresser 2012/02/23 20:13:07 Done.
+ const int point_id() const { return point_id_; }
+
+ void use() { in_use_ = true; }
+ const bool in_use() const { return in_use_; }
double x_delta() const {
return last_touch_position_.x() - first_touch_position_.x();
@@ -87,7 +90,8 @@ class GesturePoint {
VelocityCalculator velocity_calculator_;
- unsigned int touch_id_;
+ bool in_use_;
rjkroege 2012/02/23 19:39:45 do we need both the bool and the point_id? positiv
tdresser 2012/02/23 20:13:07 Done.
+ int point_id_;
DISALLOW_COPY_AND_ASSIGN(GesturePoint);
};
« no previous file with comments | « no previous file | ui/aura/gestures/gesture_point.cc » ('j') | ui/aura/gestures/gesture_sequence.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698