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

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

Issue 586933003: fling: Remove a bunch of code for configuring fling curves. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: moar Created 6 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
« 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_ = 25; 9 int GestureConfiguration::default_radius_ = 25;
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 22 matching lines...) Expand all
33 int GestureConfiguration::show_press_delay_in_ms_ = 150; 33 int GestureConfiguration::show_press_delay_in_ms_ = 150;
34 34
35 // TODO(jdduke): Disable and remove entirely when issues with intermittent 35 // TODO(jdduke): Disable and remove entirely when issues with intermittent
36 // scroll end detection on the Pixel are resolved, crbug.com/353702. 36 // scroll end detection on the Pixel are resolved, crbug.com/353702.
37 #if defined(OS_CHROMEOS) 37 #if defined(OS_CHROMEOS)
38 int GestureConfiguration::scroll_debounce_interval_in_ms_ = 30; 38 int GestureConfiguration::scroll_debounce_interval_in_ms_ = 30;
39 #else 39 #else
40 int GestureConfiguration::scroll_debounce_interval_in_ms_ = 0; 40 int GestureConfiguration::scroll_debounce_interval_in_ms_ = 0;
41 #endif 41 #endif
42 42
43 // Coefficients for a function that computes fling acceleration.
44 // These are empirically determined defaults. Do not adjust without
45 // additional empirical validation.
46 float GestureConfiguration::fling_acceleration_curve_coefficients_[
47 NumAccelParams] = {
48 0.0166667f,
49 -0.0238095f,
50 0.0452381f,
51 0.8f
52 };
53
54 } // namespace ui 43 } // 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