diff options
Diffstat (limited to 'ui/base/gestures/gesture_point.h')
-rw-r--r-- | ui/base/gestures/gesture_point.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/base/gestures/gesture_point.h b/ui/base/gestures/gesture_point.h index 19a8a3c..871427b 100644 --- a/ui/base/gestures/gesture_point.h +++ b/ui/base/gestures/gesture_point.h @@ -55,8 +55,6 @@ class GesturePoint { double last_touch_time() const { return last_touch_time_; } const gfx::Point& last_touch_position() const { return last_touch_position_; } - int x() const { return last_touch_position_.x(); } - int y() const { return last_touch_position_.y(); } // point_id_ is used to drive GestureSequence::ProcessTouchEventForGesture. // point_ids are maintained such that the set of point_ids is always @@ -83,6 +81,8 @@ class GesturePoint { float XVelocity() { return velocity_calculator_.XVelocity(); } float YVelocity() { return velocity_calculator_.YVelocity(); } + float Distance(const GesturePoint& point) const; + const gfx::Rect& enclosing_rectangle() const { return enclosing_rect_; } private: |