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

Side by Side Diff: ui/base/gestures/gesture_configuration.h

Issue 10037012: Three Finger Swipe (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Remove pinch/scroll start/end calls Created 8 years, 8 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/base/events.h ('k') | ui/base/gestures/gesture_configuration.cc » ('j') | 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #ifndef UI_BASE_GESTURES_GESTURE_CONFIGURATION_H_ 5 #ifndef UI_BASE_GESTURES_GESTURE_CONFIGURATION_H_
6 #define UI_BASE_GESTURES_GESTURE_CONFIGURATION_H_ 6 #define UI_BASE_GESTURES_GESTURE_CONFIGURATION_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "ui/base/ui_export.h" 10 #include "ui/base/ui_export.h"
(...skipping 19 matching lines...) Expand all
30 } 30 }
31 static void set_max_seconds_between_double_click(double val) { 31 static void set_max_seconds_between_double_click(double val) {
32 max_seconds_between_double_click_ = val; 32 max_seconds_between_double_click_ = val;
33 } 33 }
34 static int max_separation_for_gesture_touches_in_pixels() { 34 static int max_separation_for_gesture_touches_in_pixels() {
35 return max_separation_for_gesture_touches_in_pixels_; 35 return max_separation_for_gesture_touches_in_pixels_;
36 } 36 }
37 static void set_max_separation_for_gesture_touches_in_pixels(int val) { 37 static void set_max_separation_for_gesture_touches_in_pixels(int val) {
38 max_separation_for_gesture_touches_in_pixels_ = val; 38 max_separation_for_gesture_touches_in_pixels_ = val;
39 } 39 }
40 static double max_swipe_deviation_ratio() {
41 return max_swipe_deviation_ratio_;
42 }
43 static void set_max_swipe_deviation_ratio(double val) {
44 max_swipe_deviation_ratio_ = val;
45 }
40 static double max_touch_down_duration_in_seconds_for_click() { 46 static double max_touch_down_duration_in_seconds_for_click() {
41 return max_touch_down_duration_in_seconds_for_click_; 47 return max_touch_down_duration_in_seconds_for_click_;
42 } 48 }
43 static void set_max_touch_down_duration_in_seconds_for_click(double val) { 49 static void set_max_touch_down_duration_in_seconds_for_click(double val) {
44 max_touch_down_duration_in_seconds_for_click_ = val; 50 max_touch_down_duration_in_seconds_for_click_ = val;
45 } 51 }
46 static double max_touch_move_in_pixels_for_click() { 52 static double max_touch_move_in_pixels_for_click() {
47 return max_touch_move_in_pixels_for_click_; 53 return max_touch_move_in_pixels_for_click_;
48 } 54 }
49 static void set_max_touch_move_in_pixels_for_click(double val) { 55 static void set_max_touch_move_in_pixels_for_click(double val) {
(...skipping 22 matching lines...) Expand all
72 } 78 }
73 static void set_min_rail_break_velocity(double val) { 79 static void set_min_rail_break_velocity(double val) {
74 min_rail_break_velocity_ = val; 80 min_rail_break_velocity_ = val;
75 } 81 }
76 static double min_scroll_delta_squared() { 82 static double min_scroll_delta_squared() {
77 return min_scroll_delta_squared_; 83 return min_scroll_delta_squared_;
78 } 84 }
79 static void set_min_scroll_delta_squared(double val) { 85 static void set_min_scroll_delta_squared(double val) {
80 min_scroll_delta_squared_ = val; 86 min_scroll_delta_squared_ = val;
81 } 87 }
88 static double min_swipe_speed() {
89 return min_swipe_speed_;
90 }
91 static void set_min_swipe_speed(double val) {
92 min_swipe_speed_ = val;
93 }
82 static double min_touch_down_duration_in_seconds_for_click() { 94 static double min_touch_down_duration_in_seconds_for_click() {
83 return min_touch_down_duration_in_seconds_for_click_; 95 return min_touch_down_duration_in_seconds_for_click_;
84 } 96 }
85 static void set_min_touch_down_duration_in_seconds_for_click(double val) { 97 static void set_min_touch_down_duration_in_seconds_for_click(double val) {
86 min_touch_down_duration_in_seconds_for_click_ = val; 98 min_touch_down_duration_in_seconds_for_click_ = val;
87 } 99 }
88 static int points_buffered_for_velocity() { 100 static int points_buffered_for_velocity() {
89 return points_buffered_for_velocity_; 101 return points_buffered_for_velocity_;
90 } 102 }
91 static void set_points_buffered_for_velocity(int val) { 103 static void set_points_buffered_for_velocity(int val) {
(...skipping 12 matching lines...) Expand all
104 rail_start_proportion_ = val; 116 rail_start_proportion_ = val;
105 } 117 }
106 118
107 private: 119 private:
108 // These are listed in alphabetical order ignoring underscores, to 120 // These are listed in alphabetical order ignoring underscores, to
109 // align with the associated list of preferences in 121 // align with the associated list of preferences in
110 // gesture_prefs_aura.cc. These two lists should be kept in sync. 122 // gesture_prefs_aura.cc. These two lists should be kept in sync.
111 static double long_press_time_in_seconds_; 123 static double long_press_time_in_seconds_;
112 static double max_seconds_between_double_click_; 124 static double max_seconds_between_double_click_;
113 static double max_separation_for_gesture_touches_in_pixels_; 125 static double max_separation_for_gesture_touches_in_pixels_;
126 static double max_swipe_deviation_ratio_;
114 static double max_touch_down_duration_in_seconds_for_click_; 127 static double max_touch_down_duration_in_seconds_for_click_;
115 static double max_touch_move_in_pixels_for_click_; 128 static double max_touch_move_in_pixels_for_click_;
116 static double min_distance_for_pinch_scroll_in_pixels_; 129 static double min_distance_for_pinch_scroll_in_pixels_;
117 static double min_flick_speed_squared_; 130 static double min_flick_speed_squared_;
118 static double min_pinch_update_distance_in_pixels_; 131 static double min_pinch_update_distance_in_pixels_;
119 static double min_rail_break_velocity_; 132 static double min_rail_break_velocity_;
120 static double min_scroll_delta_squared_; 133 static double min_scroll_delta_squared_;
134 static double min_swipe_speed_;
121 static double min_touch_down_duration_in_seconds_for_click_; 135 static double min_touch_down_duration_in_seconds_for_click_;
122 static int points_buffered_for_velocity_; 136 static int points_buffered_for_velocity_;
123 static double rail_break_proportion_; 137 static double rail_break_proportion_;
124 static double rail_start_proportion_; 138 static double rail_start_proportion_;
125 139
126 DISALLOW_COPY_AND_ASSIGN(GestureConfiguration); 140 DISALLOW_COPY_AND_ASSIGN(GestureConfiguration);
127 }; 141 };
128 142
129 } // namespace ui 143 } // namespace ui
130 144
131 #endif // UI_BASE_GESTURES_GESTURE_CONFIGURATION_H_ 145 #endif // UI_BASE_GESTURES_GESTURE_CONFIGURATION_H_
OLDNEW
« no previous file with comments | « ui/base/events.h ('k') | ui/base/gestures/gesture_configuration.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698