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

Side by Side Diff: ui/base/gestures/gesture_configuration.cc

Issue 10037012: Three Finger Swipe (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Remove pinch/scroll start/end calls Created 8 years, 8 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 | « ui/base/gestures/gesture_configuration.h ('k') | ui/base/gestures/gesture_sequence.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/base/gestures/gesture_configuration.h" 5 #include "ui/base/gestures/gesture_configuration.h"
6 6
7 namespace ui { 7 namespace ui {
8 8
9 // Ordered alphabetically ignoring underscores, to align with the 9 // Ordered alphabetically ignoring underscores, to align with the
10 // associated list of prefs in gesture_prefs_aura.cc. 10 // associated list of prefs in gesture_prefs_aura.cc.
11 double GestureConfiguration::long_press_time_in_seconds_ = 0.5; 11 double GestureConfiguration::long_press_time_in_seconds_ = 0.5;
12 double GestureConfiguration::max_seconds_between_double_click_ = 0.7; 12 double GestureConfiguration::max_seconds_between_double_click_ = 0.7;
13 double 13 double
14 GestureConfiguration::max_separation_for_gesture_touches_in_pixels_ = 150; 14 GestureConfiguration::max_separation_for_gesture_touches_in_pixels_ = 150;
15 double GestureConfiguration::max_swipe_deviation_ratio_ = 3;
15 double 16 double
16 GestureConfiguration::max_touch_down_duration_in_seconds_for_click_ = 0.8; 17 GestureConfiguration::max_touch_down_duration_in_seconds_for_click_ = 0.8;
17 double GestureConfiguration::max_touch_move_in_pixels_for_click_ = 20; 18 double GestureConfiguration::max_touch_move_in_pixels_for_click_ = 20;
18 double GestureConfiguration::min_distance_for_pinch_scroll_in_pixels_ = 20; 19 double GestureConfiguration::min_distance_for_pinch_scroll_in_pixels_ = 20;
19 double GestureConfiguration::min_flick_speed_squared_ = 550.f * 550.f; 20 double GestureConfiguration::min_flick_speed_squared_ = 550.f * 550.f;
20 double GestureConfiguration::min_pinch_update_distance_in_pixels_ = 5; 21 double GestureConfiguration::min_pinch_update_distance_in_pixels_ = 5;
21 double GestureConfiguration::min_rail_break_velocity_ = 200; 22 double GestureConfiguration::min_rail_break_velocity_ = 200;
22 double GestureConfiguration::min_scroll_delta_squared_ = 5 * 5; 23 double GestureConfiguration::min_scroll_delta_squared_ = 5 * 5;
24 double GestureConfiguration::min_swipe_speed_ = 20;
23 double 25 double
24 GestureConfiguration::min_touch_down_duration_in_seconds_for_click_ = 0.01; 26 GestureConfiguration::min_touch_down_duration_in_seconds_for_click_ = 0.01;
25 27
26 // The number of points used in the linear regression which determines 28 // The number of points used in the linear regression which determines
27 // touch velocity. If fewer than this number of points have been seen, 29 // touch velocity. If fewer than this number of points have been seen,
28 // velocity is reported as 0. 30 // velocity is reported as 0.
29 int GestureConfiguration::points_buffered_for_velocity_ = 10; 31 int GestureConfiguration::points_buffered_for_velocity_ = 10;
30 double GestureConfiguration::rail_break_proportion_ = 15; 32 double GestureConfiguration::rail_break_proportion_ = 15;
31 double GestureConfiguration::rail_start_proportion_ = 2; 33 double GestureConfiguration::rail_start_proportion_ = 2;
32 34
33 } // namespace ui 35 } // namespace ui
OLDNEW
« no previous file with comments | « ui/base/gestures/gesture_configuration.h ('k') | ui/base/gestures/gesture_sequence.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698