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

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

Issue 10917169: Adjust defaults for touchscreen scrolling parameters. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: review nit Created 8 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « content/browser/renderer_host/gesture_event_filter.cc ('k') | 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 (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.
(...skipping 20 matching lines...) Expand all
31 GestureConfiguration::min_touch_down_duration_in_seconds_for_click_ = 0.01; 31 GestureConfiguration::min_touch_down_duration_in_seconds_for_click_ = 0.01;
32 32
33 // The number of points used in the linear regression which determines 33 // The number of points used in the linear regression which determines
34 // touch velocity. If fewer than this number of points have been seen, 34 // touch velocity. If fewer than this number of points have been seen,
35 // velocity is reported as 0. 35 // velocity is reported as 0.
36 int GestureConfiguration::points_buffered_for_velocity_ = 3; 36 int GestureConfiguration::points_buffered_for_velocity_ = 3;
37 double GestureConfiguration::rail_break_proportion_ = 15; 37 double GestureConfiguration::rail_break_proportion_ = 15;
38 double GestureConfiguration::rail_start_proportion_ = 2; 38 double GestureConfiguration::rail_start_proportion_ = 2;
39 39
40 // The additional acceleration to apply to touchscreen flings. 40 // The additional acceleration to apply to touchscreen flings.
41 double GestureConfiguration::touchscreen_fling_acceleration_adjustment_ 41 double GestureConfiguration::touchscreen_fling_acceleration_adjustment_ = 0.85;
42 = 1;
43 42
44 } // namespace ui 43 } // namespace ui
OLDNEW
« no previous file with comments | « content/browser/renderer_host/gesture_event_filter.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698