OLD | NEW |
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" |
10 | 11 |
11 namespace aura { | 12 namespace aura { |
12 | 13 |
13 // TODO: Expand this design to support multiple OS configuration | 14 // TODO: Expand this design to support multiple OS configuration |
14 // approaches (windows, chrome, others). This would turn into an | 15 // approaches (windows, chrome, others). This would turn into an |
15 // abstract base class. | 16 // abstract base class. |
16 | 17 |
17 class GestureConfiguration { | 18 class AURA_EXPORT GestureConfiguration { |
18 public: | 19 public: |
19 static double max_touch_down_duration_in_seconds_for_click() { | 20 static double max_touch_down_duration_in_seconds_for_click() { |
20 return max_touch_down_duration_in_seconds_for_click_; | 21 return max_touch_down_duration_in_seconds_for_click_; |
21 } | 22 } |
22 static void set_max_touch_down_duration_in_seconds_for_click(double val) { | 23 static void set_max_touch_down_duration_in_seconds_for_click(double val) { |
23 max_touch_down_duration_in_seconds_for_click_ = val; | 24 max_touch_down_duration_in_seconds_for_click_ = val; |
24 } | 25 } |
25 static double min_touch_down_duration_in_seconds_for_click() { | 26 static double min_touch_down_duration_in_seconds_for_click() { |
26 return min_touch_down_duration_in_seconds_for_click_; | 27 return min_touch_down_duration_in_seconds_for_click_; |
27 } | 28 } |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 static double min_flick_speed_squared_; | 67 static double min_flick_speed_squared_; |
67 static double minimum_pinch_update_distance_in_pixels_; | 68 static double minimum_pinch_update_distance_in_pixels_; |
68 static double minimum_distance_for_pinch_scroll_in_pixels_; | 69 static double minimum_distance_for_pinch_scroll_in_pixels_; |
69 | 70 |
70 DISALLOW_COPY_AND_ASSIGN(GestureConfiguration); | 71 DISALLOW_COPY_AND_ASSIGN(GestureConfiguration); |
71 }; | 72 }; |
72 | 73 |
73 } // namespace aura | 74 } // namespace aura |
74 | 75 |
75 #endif // UI_AURA_GESTURES_GESTURE_CONFIGURATION_H_ | 76 #endif // UI_AURA_GESTURES_GESTURE_CONFIGURATION_H_ |
OLD | NEW |