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

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

Issue 2064423003: Changing long press timeout 1000ms to 500ms (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "build/build_config.h" 5 #include "build/build_config.h"
6 #include "ui/events/gesture_detection/gesture_configuration.h" 6 #include "ui/events/gesture_detection/gesture_configuration.h"
7 7
8 namespace ui { 8 namespace ui {
9 namespace { 9 namespace {
10 10
(...skipping 17 matching lines...) Expand all
28 GestureConfiguration::GestureConfiguration() 28 GestureConfiguration::GestureConfiguration()
29 : default_radius_(25), 29 : default_radius_(25),
30 double_tap_enabled_(false), 30 double_tap_enabled_(false),
31 double_tap_timeout_in_ms_(400), 31 double_tap_timeout_in_ms_(400),
32 fling_touchpad_tap_suppression_enabled_(false), 32 fling_touchpad_tap_suppression_enabled_(false),
33 fling_touchscreen_tap_suppression_enabled_(false), 33 fling_touchscreen_tap_suppression_enabled_(false),
34 fling_max_cancel_to_down_time_in_ms_(400), 34 fling_max_cancel_to_down_time_in_ms_(400),
35 fling_max_tap_gap_time_in_ms_(200), 35 fling_max_tap_gap_time_in_ms_(200),
36 stylus_scale_enabled_(false), 36 stylus_scale_enabled_(false),
37 gesture_begin_end_types_enabled_(false), 37 gesture_begin_end_types_enabled_(false),
38 long_press_time_in_ms_(1000), 38 long_press_time_in_ms_(500),
39 max_distance_between_taps_for_double_tap_(20), 39 max_distance_between_taps_for_double_tap_(20),
40 max_tap_count_(3), 40 max_tap_count_(3),
41 max_distance_for_two_finger_tap_in_pixels_(300), 41 max_distance_for_two_finger_tap_in_pixels_(300),
42 max_fling_velocity_(17000.0f), 42 max_fling_velocity_(17000.0f),
43 max_gesture_bounds_length_(0), 43 max_gesture_bounds_length_(0),
44 max_separation_for_gesture_touches_in_pixels_(150), 44 max_separation_for_gesture_touches_in_pixels_(150),
45 max_swipe_deviation_angle_(20), 45 max_swipe_deviation_angle_(20),
46 max_time_between_double_click_in_ms_(700), 46 max_time_between_double_click_in_ms_(700),
47 max_touch_down_duration_for_click_in_ms_(800), 47 max_touch_down_duration_for_click_in_ms_(800),
48 max_touch_move_in_pixels_for_click_(15), 48 max_touch_move_in_pixels_for_click_(15),
(...skipping 20 matching lines...) Expand all
69 swipe_enabled_(false), 69 swipe_enabled_(false),
70 tab_scrub_activation_delay_in_ms_(200), 70 tab_scrub_activation_delay_in_ms_(200),
71 two_finger_tap_enabled_(false), 71 two_finger_tap_enabled_(false),
72 velocity_tracker_strategy_(VelocityTracker::Strategy::STRATEGY_DEFAULT) { 72 velocity_tracker_strategy_(VelocityTracker::Strategy::STRATEGY_DEFAULT) {
73 } 73 }
74 74
75 GestureConfiguration::~GestureConfiguration() { 75 GestureConfiguration::~GestureConfiguration() {
76 } 76 }
77 77
78 } // namespace ui 78 } // namespace ui
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698