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

Unified Diff: ui/base/gestures/gesture_recognizer.h

Issue 11188012: gesture recognizer: Remove the touch-event queue. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: tot-merge Created 8 years, 2 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/base/events/event_constants.cc ('k') | ui/base/gestures/gesture_recognizer_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/gestures/gesture_recognizer.h
diff --git a/ui/base/gestures/gesture_recognizer.h b/ui/base/gestures/gesture_recognizer.h
index a49997faaa53298cd809da87ffd8250b18e444f5..f03b985d23f8f7bb1d4fa6ad12b852954af58b3c 100644
--- a/ui/base/gestures/gesture_recognizer.h
+++ b/ui/base/gestures/gesture_recognizer.h
@@ -32,19 +32,9 @@ class UI_EXPORT GestureRecognizer {
ui::EventResult result,
GestureConsumer* consumer) = 0;
- // Touch-events can be queued to be played back at a later time. The queues
- // are identified by the target window.
- virtual void QueueTouchEventForGesture(GestureConsumer* consumer,
- const TouchEvent& event) = 0;
-
- // Process the touch-event in the queue for the window. Returns a list of
- // zero or more GestureEvents identified after processing the queueud
- // TouchEvent. Caller is responsible for freeing up Gestures.
- virtual Gestures* AdvanceTouchQueue(GestureConsumer* consumer,
- bool processed) = 0;
-
- // Flushes the touch event queue (or removes the queue) for the window.
- virtual void FlushTouchQueue(GestureConsumer* consumer) = 0;
+ // This is called when the consumer is destroyed. So this should cleanup any
+ // internal state maintained for |consumer|.
+ virtual void CleanupStateForConsumer(GestureConsumer* consumer) = 0;
// Return the window which should handle this TouchEvent, in the case where
// the touch is already associated with a target.
« no previous file with comments | « ui/base/events/event_constants.cc ('k') | ui/base/gestures/gesture_recognizer_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698