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

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

Issue 613373004: Adopt ui::GestureConfiguration on Android (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Copyright Created 6 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
« no previous file with comments | « ui/events/gestures/gesture_configuration.h ('k') | ui/events/gestures/gesture_provider_aura.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #include "ui/events/gestures/gesture_configuration.h"
6
7 namespace ui {
8
9 float GestureConfiguration::default_radius_ = 25;
10 int GestureConfiguration::fling_max_cancel_to_down_time_in_ms_ = 400;
11 int GestureConfiguration::fling_max_tap_gap_time_in_ms_ = 200;
12 float GestureConfiguration::fling_velocity_cap_ = 17000.0f;
13 int GestureConfiguration::tab_scrub_activation_delay_in_ms_ = 200;
14 int GestureConfiguration::long_press_time_in_ms_ = 1000;
15 int GestureConfiguration::semi_long_press_time_in_ms_ = 400;
16 float GestureConfiguration::max_distance_for_two_finger_tap_in_pixels_ = 300;
17 int GestureConfiguration::max_time_between_double_click_in_ms_ = 700;
18 float GestureConfiguration::max_separation_for_gesture_touches_in_pixels_ = 150;
19 float GestureConfiguration::max_swipe_deviation_angle_ = 20;
20 int GestureConfiguration::max_touch_down_duration_for_click_in_ms_ = 800;
21 float GestureConfiguration::max_touch_move_in_pixels_for_click_ = 15;
22 float GestureConfiguration::max_distance_between_taps_for_double_tap_ = 20;
23 float GestureConfiguration::min_distance_for_pinch_scroll_in_pixels_ = 20;
24 float GestureConfiguration::min_pinch_update_distance_in_pixels_ = 5;
25 float GestureConfiguration::min_scroll_velocity_ = 30.0f;
26 float GestureConfiguration::min_swipe_speed_ = 20;
27
28 // If this is too small, we currently can get single finger pinch zoom. See
29 // crbug.com/357237 for details.
30 float GestureConfiguration::min_scaling_span_in_pixels_ = 125;
31 int GestureConfiguration::show_press_delay_in_ms_ = 150;
32
33 // TODO(jdduke): Disable and remove entirely when issues with intermittent
34 // scroll end detection on the Pixel are resolved, crbug.com/353702.
35 #if defined(OS_CHROMEOS)
36 int GestureConfiguration::scroll_debounce_interval_in_ms_ = 30;
37 #else
38 int GestureConfiguration::scroll_debounce_interval_in_ms_ = 0;
39 #endif
40
41 } // namespace ui
OLDNEW
« no previous file with comments | « ui/events/gestures/gesture_configuration.h ('k') | ui/events/gestures/gesture_provider_aura.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698