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

Side by Side Diff: ui/events/gesture_detection/gesture_configuration.cc

Issue 868823002: Expose double-tap platform support via ui::GestureConfiguration (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix propagation Created 5 years, 11 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "ui/events/gesture_detection/gesture_configuration.h" 5 #include "ui/events/gesture_detection/gesture_configuration.h"
6 6
7 namespace ui { 7 namespace ui {
8 8
9 GestureConfiguration::GestureConfiguration() 9 GestureConfiguration::GestureConfiguration()
10 : default_radius_(25), 10 : default_radius_(25),
11 double_tap_enabled_(false),
11 double_tap_timeout_in_ms_(400), 12 double_tap_timeout_in_ms_(400),
12 fling_max_cancel_to_down_time_in_ms_(400), 13 fling_max_cancel_to_down_time_in_ms_(400),
13 fling_max_tap_gap_time_in_ms_(200), 14 fling_max_tap_gap_time_in_ms_(200),
14 gesture_begin_end_types_enabled_(false), 15 gesture_begin_end_types_enabled_(false),
15 long_press_time_in_ms_(1000), 16 long_press_time_in_ms_(1000),
16 max_distance_between_taps_for_double_tap_(20), 17 max_distance_between_taps_for_double_tap_(20),
17 max_distance_for_two_finger_tap_in_pixels_(300), 18 max_distance_for_two_finger_tap_in_pixels_(300),
18 max_fling_velocity_(17000.0f), 19 max_fling_velocity_(17000.0f),
19 max_gesture_bounds_length_(0), 20 max_gesture_bounds_length_(0),
20 max_separation_for_gesture_touches_in_pixels_(150), 21 max_separation_for_gesture_touches_in_pixels_(150),
(...skipping 26 matching lines...) Expand all
47 swipe_enabled_(false), 48 swipe_enabled_(false),
48 tab_scrub_activation_delay_in_ms_(200), 49 tab_scrub_activation_delay_in_ms_(200),
49 two_finger_tap_enabled_(false), 50 two_finger_tap_enabled_(false),
50 velocity_tracker_strategy_(VelocityTracker::Strategy::STRATEGY_DEFAULT) { 51 velocity_tracker_strategy_(VelocityTracker::Strategy::STRATEGY_DEFAULT) {
51 } 52 }
52 53
53 GestureConfiguration::~GestureConfiguration() { 54 GestureConfiguration::~GestureConfiguration() {
54 } 55 }
55 56
56 } // namespace ui 57 } // namespace ui
OLDNEW
« no previous file with comments | « ui/events/gesture_detection/gesture_configuration.h ('k') | ui/events/gesture_detection/gesture_configuration_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698