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

Unified Diff: ui/events/gestures/gesture_configuration.h

Issue 251543003: Unified Gesture Recognizer (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address jdduke comments. Created 6 years, 7 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 side-by-side diff with in-line comments
Download patch
Index: ui/events/gestures/gesture_configuration.h
diff --git a/ui/events/gestures/gesture_configuration.h b/ui/events/gestures/gesture_configuration.h
index 1338e1d2b5e311f1ac44881c0fe60c36f3e59d42..f121b75d8db84a7a3f31b4e98e066071faa4973c 100644
--- a/ui/events/gestures/gesture_configuration.h
+++ b/ui/events/gestures/gesture_configuration.h
@@ -6,7 +6,7 @@
#define UI_EVENTS_GESTURES_GESTURE_CONFIGURATION_H_
#include "base/basictypes.h"
-#include "ui/events/events_export.h"
+#include "ui/events/events_base_export.h"
namespace ui {
@@ -14,7 +14,7 @@ namespace ui {
// approaches (windows, chrome, others). This would turn into an
// abstract base class.
-class EVENTS_EXPORT GestureConfiguration {
+class EVENTS_BASE_EXPORT GestureConfiguration {
jdduke (slow) 2014/05/05 16:57:09 Hmm, do we want this in events_base? Android doesn
tdresser 2014/05/05 17:45:14 Let's leave cleaning that up until we sort out the
jdduke (slow) 2014/05/05 17:52:48 sgtm, maybe file a bug if there's not one already?
tdresser 2014/05/05 18:11:18 Bug is https://code.google.com/p/chromium/issues/d
public:
// Number of parameters in the array of parameters for the fling acceleration
// curve.
@@ -143,6 +143,15 @@ class EVENTS_EXPORT GestureConfiguration {
static void set_min_touch_down_duration_in_seconds_for_click(double val) {
min_touch_down_duration_in_seconds_for_click_ = val;
}
+
+ static int min_scaling_span_in_pixels() {
+ return min_scaling_span_in_pixels_;
+ };
+
+ static void set_min_scaling_span_in_pixels(int val) {
+ min_scaling_span_in_pixels_ = val;
+ }
+
static int points_buffered_for_velocity() {
return points_buffered_for_velocity_;
}
@@ -235,6 +244,7 @@ class EVENTS_EXPORT GestureConfiguration {
static float min_scroll_velocity_;
static double min_swipe_speed_;
static double min_touch_down_duration_in_seconds_for_click_;
+ static int min_scaling_span_in_pixels_;
static int points_buffered_for_velocity_;
static double rail_break_proportion_;
static double rail_start_proportion_;

Powered by Google App Engine
This is Rietveld 408576698