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

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

Issue 1907323003: Drag and drop cleans up touch sequences from the source window. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix Mac. Created 4 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
« no previous file with comments | « ui/events/gestures/gesture_recognizer.h ('k') | ui/events/gestures/gesture_recognizer_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/events/gestures/gesture_recognizer_impl.h
diff --git a/ui/events/gestures/gesture_recognizer_impl.h b/ui/events/gestures/gesture_recognizer_impl.h
index 1710d532099ec8fefb5fd7ff0b31c10677e5054e..afbcfb2c272fada8699c2331e6d4f0fc8de25ac0 100644
--- a/ui/events/gestures/gesture_recognizer_impl.h
+++ b/ui/events/gestures/gesture_recognizer_impl.h
@@ -38,13 +38,20 @@ class EVENTS_EXPORT GestureRecognizerImpl : public GestureRecognizer,
std::vector<GestureEventHelper*>& helpers() { return helpers_; }
+ // Returns a list of events of type |type|, one for each pointer down on
+ // |consumer|. Event locations are pulled from the active pointers.
+ std::vector<std::unique_ptr<TouchEvent>> GetEventPerPointForConsumer(
+ GestureConsumer* consumer,
+ EventType type);
+
// Overridden from GestureRecognizer
GestureConsumer* GetTouchLockedTarget(const TouchEvent& event) override;
GestureConsumer* GetTargetForLocation(const gfx::PointF& location,
int source_device_id) override;
void CancelActiveTouchesExcept(GestureConsumer* not_cancelled) override;
void TransferEventsTo(GestureConsumer* current_consumer,
- GestureConsumer* new_consumer) override;
+ GestureConsumer* new_consumer,
+ ShouldCancelTouches should_cancel_touches) override;
bool GetLastTouchPointForTarget(GestureConsumer* consumer,
gfx::PointF* point) override;
bool CancelActiveTouches(GestureConsumer* consumer) override;
« no previous file with comments | « ui/events/gestures/gesture_recognizer.h ('k') | ui/events/gestures/gesture_recognizer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698