Index: ui/events/gesture_detection/gesture_provider.cc |
diff --git a/ui/events/gesture_detection/gesture_provider.cc b/ui/events/gesture_detection/gesture_provider.cc |
index 3535ad604af64a545669830e250c32c9986043e1..5f10b354f0d1e45f53d39669900c1c4b3491b12c 100644 |
--- a/ui/events/gesture_detection/gesture_provider.cc |
+++ b/ui/events/gesture_detection/gesture_provider.cc |
@@ -11,7 +11,7 @@ |
#include "ui/events/event_constants.h" |
#include "ui/events/gesture_detection/gesture_event_data.h" |
#include "ui/events/gesture_detection/gesture_listeners.h" |
-#include "ui/events/gesture_detection/motion_event.h" |
+#include "ui/events/gesture_detection/motion_event_generic.h" |
#include "ui/events/gesture_detection/scale_gesture_listeners.h" |
#include "ui/gfx/geometry/point_f.h" |
@@ -711,6 +711,14 @@ bool GestureProvider::OnTouchEvent(const MotionEvent& event) { |
return true; |
} |
+void GestureProvider::ResetDetection() { |
+ ui::MotionEventGeneric synthetic_cancel(ui::MotionEvent::ACTION_CANCEL, |
+ base::TimeTicks::Now(), |
+ ui::PointerProperties()); |
+ OnTouchEvent(synthetic_cancel); |
+ DCHECK(!current_down_event_); |
+} |
+ |
void GestureProvider::SetMultiTouchZoomSupportEnabled(bool enabled) { |
gesture_listener_->SetMultiTouchZoomEnabled(enabled); |
} |