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

Unified 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, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/events/gestures/gesture_configuration.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/events/gestures/gesture_configuration.cc
diff --git a/ui/events/gestures/gesture_configuration.cc b/ui/events/gestures/gesture_configuration.cc
index e48ae6daed3ccd7d92e0c60a6d96961659ffb8f9..6b477e0393740fc49714c4af9b460faa39a801c1 100644
--- a/ui/events/gestures/gesture_configuration.cc
+++ b/ui/events/gestures/gesture_configuration.cc
@@ -53,4 +53,17 @@ float GestureConfiguration::fling_acceleration_curve_coefficients_[
0.8f
};
+// The touchpad / touchscreen fling profiles are a matched set
+// determined via UX experimentation. Do not modify without
+// first discussing with rjkroege@chromium.org or
+// wjmaclean@chromium.org.
+const float kDefaultAlpha = -5.70762e+03f;
+const float kDefaultBeta = 1.72e+02f;
+const float kDefaultGamma = 3.7e+00f;
+double GestureConfiguration::touchpad_fling_curve_alpha_ = kDefaultAlpha;
+double GestureConfiguration::touchpad_fling_curve_beta_ = kDefaultBeta;
+double GestureConfiguration::touchpad_fling_curve_gamma_ = kDefaultGamma;
+double GestureConfiguration::touchscreen_fling_curve_alpha_ = kDefaultAlpha;
+double GestureConfiguration::touchscreen_fling_curve_beta_ = kDefaultBeta;
+double GestureConfiguration::touchscreen_fling_curve_gamma_ = kDefaultGamma;
} // namespace ui
« 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