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

Unified Diff: ui/events/gesture_detection/gesture_detector.h

Issue 1358263002: [Android] Support double-tap selection (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix aura Created 5 years, 3 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
Index: ui/events/gesture_detection/gesture_detector.h
diff --git a/ui/events/gesture_detection/gesture_detector.h b/ui/events/gesture_detection/gesture_detector.h
index 07e90e138e48d5bf2863ff61748b51da2f1aaa5d..6fbbd0f5e5cb946fcb1b5c03ecabf774f89b374e 100644
--- a/ui/events/gesture_detection/gesture_detector.h
+++ b/ui/events/gesture_detection/gesture_detector.h
@@ -69,6 +69,11 @@ class GESTURE_DETECTION_EXPORT GestureDetector {
// Maximum time the second pointer can be active for a two finger tap.
base::TimeDelta two_finger_tap_timeout;
+ // Single tap count repetition length. Defaults to 1 (no repetition count).
+ // Note that when double-tap detection is enabled, the single tap repeat
+ // count will always be 1.
+ int single_tap_repeat_length;
+
VelocityTracker::Strategy velocity_tracker_strategy;
};
@@ -134,6 +139,9 @@ class GESTURE_DETECTION_EXPORT GestureDetector {
// up events). Can only be true if there is a double tap listener attached.
bool is_double_tapping_;
+ int single_tap_count_;
tdresser 2015/09/23 14:10:46 The semantics of this variable feel a bit confusin
jdduke (slow) 2015/09/23 19:56:04 Yeah, though I think we'll need an auxiliary varia
tdresser 2015/09/24 12:05:00 Thanks - I find this easier to follow.
+ int single_tap_repeat_length_;
+
float last_focus_x_;
float last_focus_y_;
float down_focus_x_;

Powered by Google App Engine
This is Rietveld 408576698