Index: ui/base/gestures/gesture_point.h |
diff --git a/ui/base/gestures/gesture_point.h b/ui/base/gestures/gesture_point.h |
index 54946813cff53329e5fb7b4d7633915afc86bff6..0e77fd2a877b86c264dc3977ac88a86fa5e408fb 100644 |
--- a/ui/base/gestures/gesture_point.h |
+++ b/ui/base/gestures/gesture_point.h |
@@ -72,13 +72,7 @@ class GesturePoint { |
bool in_use() const { return point_id_ >= 0; } |
- double x_delta() const { |
- return last_touch_position_.x() - first_touch_position_.x(); |
- } |
- |
- double y_delta() const { |
- return last_touch_position_.y() - first_touch_position_.y(); |
- } |
+ gfx::Vector2d ScrollDelta(); |
float XVelocity() { return velocity_calculator_.XVelocity(); } |
float YVelocity() { return velocity_calculator_.YVelocity(); } |
@@ -101,11 +95,13 @@ class GesturePoint { |
void UpdateEnclosingRectangle(const TouchEvent& event); |
void clear_enclosing_rectangle() { enclosing_rect_ = gfx::Rect(); } |
- // The position of touchdown event, or of the last scroll gesture event. |
- // We may want to consider tracking these two things in separate variables. |
+ // The position of the first touchdown event. |
gfx::Point first_touch_position_; |
double first_touch_time_; |
+ gfx::Point second_last_touch_position_; |
+ double second_last_touch_time_; |
+ |
gfx::Point last_touch_position_; |
double last_touch_time_; |