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

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

Issue 9562013: Revert 124433 - Adding persistance for gesture recognition parms. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 9 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 | Annotate | Revision Log
« no previous file with comments | « chrome/common/pref_names.cc ('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) 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_AURA_GESTURES_GESTURE_CONFIGURATION_H_ 5 #ifndef UI_AURA_GESTURES_GESTURE_CONFIGURATION_H_
6 #define UI_AURA_GESTURES_GESTURE_CONFIGURATION_H_ 6 #define UI_AURA_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/aura/aura_export.h"
11 10
12 namespace aura { 11 namespace aura {
13 12
14 // TODO: Expand this design to support multiple OS configuration 13 // TODO: Expand this design to support multiple OS configuration
15 // approaches (windows, chrome, others). This would turn into an 14 // approaches (windows, chrome, others). This would turn into an
16 // abstract base class. 15 // abstract base class.
17 16
18 class AURA_EXPORT GestureConfiguration { 17 class GestureConfiguration {
19 public: 18 public:
20 static double max_touch_down_duration_in_seconds_for_click() { 19 static double max_touch_down_duration_in_seconds_for_click() {
21 return max_touch_down_duration_in_seconds_for_click_; 20 return max_touch_down_duration_in_seconds_for_click_;
22 } 21 }
23 static void set_max_touch_down_duration_in_seconds_for_click(double val) { 22 static void set_max_touch_down_duration_in_seconds_for_click(double val) {
24 max_touch_down_duration_in_seconds_for_click_ = val; 23 max_touch_down_duration_in_seconds_for_click_ = val;
25 } 24 }
26 static double min_touch_down_duration_in_seconds_for_click() { 25 static double min_touch_down_duration_in_seconds_for_click() {
27 return min_touch_down_duration_in_seconds_for_click_; 26 return min_touch_down_duration_in_seconds_for_click_;
28 } 27 }
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 static double min_flick_speed_squared_; 66 static double min_flick_speed_squared_;
68 static double minimum_pinch_update_distance_in_pixels_; 67 static double minimum_pinch_update_distance_in_pixels_;
69 static double minimum_distance_for_pinch_scroll_in_pixels_; 68 static double minimum_distance_for_pinch_scroll_in_pixels_;
70 69
71 DISALLOW_COPY_AND_ASSIGN(GestureConfiguration); 70 DISALLOW_COPY_AND_ASSIGN(GestureConfiguration);
72 }; 71 };
73 72
74 } // namespace aura 73 } // namespace aura
75 74
76 #endif // UI_AURA_GESTURES_GESTURE_CONFIGURATION_H_ 75 #endif // UI_AURA_GESTURES_GESTURE_CONFIGURATION_H_
OLDNEW
« no previous file with comments | « chrome/common/pref_names.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698