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

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

Issue 43503002: Remove fling curve profiles from renderer preferences assuming that be turn on Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 1 month 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 | « ui/events/gestures/gesture_configuration.h ('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) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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/gestures/gesture_configuration.h" 5 #include "ui/events/gestures/gesture_configuration.h"
6 6
7 namespace ui { 7 namespace ui {
8 8
9 int GestureConfiguration::default_radius_ = 15; 9 int GestureConfiguration::default_radius_ = 15;
10 int GestureConfiguration::fling_max_cancel_to_down_time_in_ms_ = 400; 10 int GestureConfiguration::fling_max_cancel_to_down_time_in_ms_ = 400;
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 // These are empirically determined defaults. Do not adjust without 46 // These are empirically determined defaults. Do not adjust without
47 // additional empirical validation. 47 // additional empirical validation.
48 float GestureConfiguration::fling_acceleration_curve_coefficients_[ 48 float GestureConfiguration::fling_acceleration_curve_coefficients_[
49 NumAccelParams] = { 49 NumAccelParams] = {
50 0.0166667f, 50 0.0166667f,
51 -0.0238095f, 51 -0.0238095f,
52 0.0452381f, 52 0.0452381f,
53 0.8f 53 0.8f
54 }; 54 };
55 55
56 // The touchpad / touchscreen fling profiles are a matched set
57 // determined via UX experimentation. Do not modify without
58 // first discussing with rjkroege@chromium.org or
59 // wjmaclean@chromium.org.
60 const float kDefaultAlpha = -5.70762e+03f;
61 const float kDefaultBeta = 1.72e+02f;
62 const float kDefaultGamma = 3.7e+00f;
63 double GestureConfiguration::touchpad_fling_curve_alpha_ = kDefaultAlpha;
64 double GestureConfiguration::touchpad_fling_curve_beta_ = kDefaultBeta;
65 double GestureConfiguration::touchpad_fling_curve_gamma_ = kDefaultGamma;
66 double GestureConfiguration::touchscreen_fling_curve_alpha_ = kDefaultAlpha;
67 double GestureConfiguration::touchscreen_fling_curve_beta_ = kDefaultBeta;
68 double GestureConfiguration::touchscreen_fling_curve_gamma_ = kDefaultGamma;
56 } // namespace ui 69 } // namespace ui
OLDNEW
« no previous file with comments | « ui/events/gestures/gesture_configuration.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698