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

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

Issue 1358263002: [Android] Support double-tap selection (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix contextual search 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_configuration.h
diff --git a/ui/events/gesture_detection/gesture_configuration.h b/ui/events/gesture_detection/gesture_configuration.h
index 6d100c8eeb36f0f8abc564e342971b6890a365e9..c530d94dd6909207fb9822a088f023f5d6e7ca8e 100644
--- a/ui/events/gesture_detection/gesture_configuration.h
+++ b/ui/events/gesture_detection/gesture_configuration.h
@@ -72,6 +72,8 @@ class GESTURE_DETECTION_EXPORT GestureConfiguration {
void set_max_distance_for_two_finger_tap_in_pixels(float val) {
max_distance_for_two_finger_tap_in_pixels_ = val;
}
+ int max_tap_count() const { return max_tap_count_; }
+ void set_max_tap_count(int count) { max_tap_count_ = count; }
float max_fling_velocity() const { return max_fling_velocity_; }
void set_max_fling_velocity(float val) { max_fling_velocity_ = val; }
float max_gesture_bounds_length() const {
@@ -224,6 +226,10 @@ class GESTURE_DETECTION_EXPORT GestureConfiguration {
int long_press_time_in_ms_;
float max_distance_between_taps_for_double_tap_;
+ // The max length of a repeated tap sequence, e.g., to support double-click
+ // only this is 2, to support triple-click it's 3.
+ int max_tap_count_;
+
// The maximum allowed distance between two fingers for a two finger tap. If
// the distance between two fingers is greater than this value, we will not
// recognize a two finger tap.
« no previous file with comments | « content/browser/renderer_host/render_widget_host_view_aura.cc ('k') | ui/events/gesture_detection/gesture_configuration.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698