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

Unified Diff: ui/events/gesture_detection/gesture_provider.h

Issue 340343013: Provide max gesture bounds and option to ignore touch size during pinch (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Code review Created 6 years, 6 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/gesture_detection/gesture_provider.h
diff --git a/ui/events/gesture_detection/gesture_provider.h b/ui/events/gesture_detection/gesture_provider.h
index e9407c7e699d5803dc1238461b8c0dd91570d55f..84a926902946422c671839e371bc0905b271cab4 100644
--- a/ui/events/gesture_detection/gesture_provider.h
+++ b/ui/events/gesture_detection/gesture_provider.h
@@ -45,11 +45,12 @@ class GESTURE_DETECTION_EXPORT GestureProvider {
// removed touch point. Defaults to false.
bool gesture_begin_end_types_enabled;
- // The minimum size (both length and width, in dips) of the generated
+ // The min and max size (both length and width, in dips) of the generated
// bounding box for all gesture types. This is useful for touch streams
- // that may report zero or unreasonably small touch sizes.
- // Defaults to 0.
+ // that may report zero or unreasonably small or large touch sizes.
+ // Both values default to 0 (disabled).
float min_gesture_bounds_length;
+ float max_gesture_bounds_length;
};
GestureProvider(const Config& config, GestureProviderClient* client);
@@ -129,6 +130,7 @@ class GESTURE_DETECTION_EXPORT GestureProvider {
const bool gesture_begin_end_types_enabled_;
const float min_gesture_bounds_length_;
+ const float max_gesture_bounds_length_;
};
} // namespace ui
« no previous file with comments | « ui/events/gesture_detection/gesture_config_helper_android.cc ('k') | ui/events/gesture_detection/gesture_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698