| Index: ui/aura/gestures/gesture_point.h
|
| diff --git a/ui/aura/gestures/gesture_point.h b/ui/aura/gestures/gesture_point.h
|
| index f39d252335b290511529a1271b96b23cc96206a5..3213a7fd19a890be229b39dc9c10373c4408f4c6 100644
|
| --- a/ui/aura/gestures/gesture_point.h
|
| +++ b/ui/aura/gestures/gesture_point.h
|
| @@ -7,6 +7,7 @@
|
| #pragma once
|
|
|
| #include "base/basictypes.h"
|
| +#include "ui/aura/gestures/velocity_calculator.h"
|
| #include "ui/gfx/point.h"
|
|
|
| namespace aura {
|
| @@ -62,8 +63,8 @@ class GesturePoint {
|
| return last_touch_position_.y() - first_touch_position_.y();
|
| }
|
|
|
| - float x_velocity() const { return x_velocity_; }
|
| - float y_velocity() const { return y_velocity_; }
|
| + float x_velocity() const { return velocity_calculator_.x_velocity(); }
|
| + float y_velocity() const { return velocity_calculator_.y_velocity(); }
|
|
|
| private:
|
| // Various statistical functions to manipulate gestures.
|
| @@ -81,8 +82,7 @@ class GesturePoint {
|
| double last_tap_time_;
|
| gfx::Point last_tap_position_;
|
|
|
| - float x_velocity_;
|
| - float y_velocity_;
|
| + VelocityCalculator velocity_calculator_;
|
|
|
| DISALLOW_COPY_AND_ASSIGN(GesturePoint);
|
| };
|
|
|