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

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

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 | « content/renderer/render_view_impl.cc ('k') | ui/events/gestures/gesture_configuration.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/events/gestures/gesture_configuration.h
diff --git a/ui/events/gestures/gesture_configuration.h b/ui/events/gestures/gesture_configuration.h
index a4bdcd3f4c22005412f33d1c451d0be916973d4b..61caadc9c4e2cba9790f8894a238cf168f4de63b 100644
--- a/ui/events/gestures/gesture_configuration.h
+++ b/ui/events/gestures/gesture_configuration.h
@@ -199,6 +199,49 @@ class EVENTS_EXPORT GestureConfiguration {
tab_scrub_activation_delay_in_ms_ = val;
}
+ static double touchpad_fling_curve_alpha() {
+ return touchpad_fling_curve_alpha_;
+ }
+ static void set_touchpad_fling_curve_alpha(
+ double touchpad_fling_curve_alpha) {
+ touchpad_fling_curve_alpha_ = touchpad_fling_curve_alpha;
+ }
+ static double touchpad_fling_curve_beta() {
+ return touchpad_fling_curve_beta_;
+ }
+ static void set_touchpad_fling_curve_beta(
+ double touchpad_fling_curve_beta) {
+ touchpad_fling_curve_beta_ = touchpad_fling_curve_beta;
+ }
+ static double touchpad_fling_curve_gamma() {
+ return touchpad_fling_curve_gamma_;
+ }
+ static void set_touchpad_fling_curve_gamma(
+ double touchpad_fling_curve_gamma) {
+ touchpad_fling_curve_gamma_ = touchpad_fling_curve_gamma;
+ }
+ static double touchscreen_fling_curve_alpha() {
+ return touchscreen_fling_curve_alpha_;
+ }
+ static void set_touchscreen_fling_curve_alpha(
+ double touchscreen_fling_curve_alpha) {
+ touchscreen_fling_curve_alpha_ = touchscreen_fling_curve_alpha;
+ }
+ static double touchscreen_fling_curve_beta() {
+ return touchscreen_fling_curve_beta_;
+ }
+ static void set_touchscreen_fling_curve_beta(
+ double touchscreen_fling_curve_beta) {
+ touchscreen_fling_curve_beta_ = touchscreen_fling_curve_beta;
+ }
+ static double touchscreen_fling_curve_gamma() {
+ return touchscreen_fling_curve_gamma_;
+ }
+ static void set_touchscreen_fling_curve_gamma(
+ double touchscreen_fling_curve_gamma) {
+ touchscreen_fling_curve_gamma_ = touchscreen_fling_curve_gamma;
+ }
+
private:
// These are listed in alphabetical order ignoring underscores, to
// align with the associated list of preferences in
@@ -252,6 +295,14 @@ class EVENTS_EXPORT GestureConfiguration {
// TODO(davemoore): Move into chrome/browser/ui.
static int tab_scrub_activation_delay_in_ms_;
+ // Fling curve params
+ static double touchpad_fling_curve_alpha_;
+ static double touchpad_fling_curve_beta_;
+ static double touchpad_fling_curve_gamma_;
+ static double touchscreen_fling_curve_alpha_;
+ static double touchscreen_fling_curve_beta_;
+ static double touchscreen_fling_curve_gamma_;
+
DISALLOW_COPY_AND_ASSIGN(GestureConfiguration);
};
« no previous file with comments | « content/renderer/render_view_impl.cc ('k') | ui/events/gestures/gesture_configuration.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698