Index: ui/base/gestures/gesture_point.h |
diff --git a/ui/base/gestures/gesture_point.h b/ui/base/gestures/gesture_point.h |
index f52fece40ac0dbdc5d68dfc72d79836c4a1ef228..b84c3bd7a3fa2e9afa8c8183f5da0bc32971ef70 100644 |
--- a/ui/base/gestures/gesture_point.h |
+++ b/ui/base/gestures/gesture_point.h |
@@ -39,6 +39,7 @@ class GesturePoint { |
// represent a click or scroll etc.) |
bool IsInClickWindow(const TouchEvent& event) const; |
bool IsInDoubleClickWindow(const TouchEvent& event) const; |
+ bool IsInTripleClickWindow(const TouchEvent& event) const; |
bool IsInScrollWindow(const TouchEvent& event) const; |
bool IsInFlickWindow(const TouchEvent& event); |
bool IsInHorizontalRailWindow() const; |
@@ -85,8 +86,8 @@ class GesturePoint { |
private: |
// Various statistical functions to manipulate gestures. |
bool IsInClickTimeWindow() const; |
- bool IsInSecondClickTimeWindow() const; |
- bool IsSecondClickInsideManhattanSquare(const TouchEvent& event) const; |
+ bool IsInClickAggregateTimeWindow(double before, double after) const; |
+ bool IsPointInsideManhattanSquare(gfx::Point p1, gfx::Point p2) const; |
bool IsOverMinFlickSpeed(); |
// Returns -1, 0, 1 for |v| below the negative velocity threshold, |
@@ -112,6 +113,9 @@ class GesturePoint { |
gfx::Point last_touch_position_; |
double last_touch_time_; |
+ double second_last_tap_time_; |
+ gfx::Point second_last_tap_position_; |
+ |
double last_tap_time_; |
gfx::Point last_tap_position_; |