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

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

Issue 298823006: [Aura] Reduce frequency of PinchUpdate events. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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/gesture_detection/scale_gesture_detector.h
diff --git a/ui/events/gesture_detection/scale_gesture_detector.h b/ui/events/gesture_detection/scale_gesture_detector.h
index 08b62887c3a05ab137587ac2bc0cdf2cd8a975f8..99463953578bf03ea976f66146ea4af75eba68cb 100644
--- a/ui/events/gesture_detection/scale_gesture_detector.h
+++ b/ui/events/gesture_detection/scale_gesture_detector.h
@@ -33,6 +33,10 @@ class ScaleGestureDetector : public GestureDetector::SimpleGestureListener {
// Whether double-tap drag scaling is enabled.
bool quick_scale_enabled;
+
+ // Minimum pinch span change before pinch occurs (in dips). See
+ // crbug.com/373318.
+ float min_pinch_update_distance;
jdduke (slow) 2014/05/21 19:30:37 Maybe call this |min_pinch_update_span_delta|?
tdresser 2014/05/22 12:31:44 Done.
};
class ScaleGestureListener {
@@ -140,6 +144,8 @@ class ScaleGestureDetector : public GestureDetector::SimpleGestureListener {
float double_tap_focus_y_;
DoubleTapMode double_tap_mode_;
+ float min_pinch_update_distance_;
+
bool event_before_or_above_starting_gesture_event_;
scoped_ptr<GestureDetector> gesture_detector_;

Powered by Google App Engine
This is Rietveld 408576698