| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_EVENTS_GESTURE_DETECTION_GESTURE_PROVIDER_H_ | 5 #ifndef UI_EVENTS_GESTURE_DETECTION_GESTURE_PROVIDER_H_ |
| 6 #define UI_EVENTS_GESTURE_DETECTION_GESTURE_PROVIDER_H_ | 6 #define UI_EVENTS_GESTURE_DETECTION_GESTURE_PROVIDER_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 10 #include "ui/events/gesture_detection/gesture_detection_export.h" | 10 #include "ui/events/gesture_detection/gesture_detection_export.h" |
| (...skipping 24 matching lines...) Expand all Loading... |
| 35 | 35 |
| 36 // If |disable_click_delay| is true and double-tap support is disabled, | 36 // If |disable_click_delay| is true and double-tap support is disabled, |
| 37 // there will be no delay before tap events. When double-tap support is | 37 // there will be no delay before tap events. When double-tap support is |
| 38 // enabled, there will always be a delay before a tap event is fired, in | 38 // enabled, there will always be a delay before a tap event is fired, in |
| 39 // order to allow the double tap gesture to occur without firing any tap | 39 // order to allow the double tap gesture to occur without firing any tap |
| 40 // events. | 40 // events. |
| 41 bool disable_click_delay; | 41 bool disable_click_delay; |
| 42 | 42 |
| 43 // If |gesture_begin_end_types_enabled| is true, fire an ET_GESTURE_BEGIN | 43 // If |gesture_begin_end_types_enabled| is true, fire an ET_GESTURE_BEGIN |
| 44 // event for every added touch point, and an ET_GESTURE_END event for every | 44 // event for every added touch point, and an ET_GESTURE_END event for every |
| 45 // removed touch point. Defaults to false. | 45 // removed touch point. This requires one ACTION_CANCEL event to be sent per |
| 46 // touch point, which only occurs on Aura. Defaults to false. |
| 46 bool gesture_begin_end_types_enabled; | 47 bool gesture_begin_end_types_enabled; |
| 47 | 48 |
| 48 // The min and max size (both length and width, in dips) of the generated | 49 // The min and max size (both length and width, in dips) of the generated |
| 49 // bounding box for all gesture types. This is useful for touch streams | 50 // bounding box for all gesture types. This is useful for touch streams |
| 50 // that may report zero or unreasonably small or large touch sizes. | 51 // that may report zero or unreasonably small or large touch sizes. |
| 51 // Both values default to 0 (disabled). | 52 // Both values default to 0 (disabled). |
| 52 float min_gesture_bounds_length; | 53 float min_gesture_bounds_length; |
| 53 float max_gesture_bounds_length; | 54 float max_gesture_bounds_length; |
| 54 }; | 55 }; |
| 55 | 56 |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 129 | 130 |
| 130 const bool gesture_begin_end_types_enabled_; | 131 const bool gesture_begin_end_types_enabled_; |
| 131 | 132 |
| 132 const float min_gesture_bounds_length_; | 133 const float min_gesture_bounds_length_; |
| 133 const float max_gesture_bounds_length_; | 134 const float max_gesture_bounds_length_; |
| 134 }; | 135 }; |
| 135 | 136 |
| 136 } // namespace ui | 137 } // namespace ui |
| 137 | 138 |
| 138 #endif // UI_EVENTS_GESTURE_DETECTION_GESTURE_PROVIDER_H_ | 139 #endif // UI_EVENTS_GESTURE_DETECTION_GESTURE_PROVIDER_H_ |
| OLD | NEW |