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

Unified Diff: ui/base/gestures/gesture_configuration.h

Issue 11299276: Bound the maximum touchscreen fling velocity. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: review nits Created 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/aura/test/aura_test_base.cc ('k') | ui/base/gestures/gesture_configuration.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/gestures/gesture_configuration.h
diff --git a/ui/base/gestures/gesture_configuration.h b/ui/base/gestures/gesture_configuration.h
index 256c5d280f9d0705bed5a7a3d46b31cd723d1ab4..2fc5470730be59055b7db35b2c44e44530e91690 100644
--- a/ui/base/gestures/gesture_configuration.h
+++ b/ui/base/gestures/gesture_configuration.h
@@ -149,6 +149,12 @@ class UI_EXPORT GestureConfiguration {
static float fling_acceleration_curve_coefficients(int i) {
return fling_acceleration_curve_coefficients_[i];
}
+ static float fling_velocity_cap() {
+ return fling_velocity_cap_;
+ }
+ static void set_fling_velocity_cap(float val) {
+ fling_velocity_cap_ = val;
+ }
private:
// These are listed in alphabetical order ignoring underscores, to
@@ -187,6 +193,7 @@ class UI_EXPORT GestureConfiguration {
static double rail_break_proportion_;
static double rail_start_proportion_;
static float fling_acceleration_curve_coefficients_[NumAccelParams];
+ static float fling_velocity_cap_;
DISALLOW_COPY_AND_ASSIGN(GestureConfiguration);
};
« no previous file with comments | « ui/aura/test/aura_test_base.cc ('k') | ui/base/gestures/gesture_configuration.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698