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

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

Issue 10825323: gesture: Make sure a combination of sync/async touch-events work correctly. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: tot-merge Created 8 years, 4 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/aura/root_window.cc ('k') | ui/base/gestures/gesture_recognizer_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/gestures/gesture_recognizer_impl.h
diff --git a/ui/base/gestures/gesture_recognizer_impl.h b/ui/base/gestures/gesture_recognizer_impl.h
index 8b4300106416607a851ebc45417e4b030ca594db..b591531ed181e841b43ac80494565773d1a66c16 100644
--- a/ui/base/gestures/gesture_recognizer_impl.h
+++ b/ui/base/gestures/gesture_recognizer_impl.h
@@ -46,6 +46,15 @@ class UI_EXPORT GestureRecognizerImpl : public GestureRecognizer {
virtual GestureSequence* GetGestureSequenceForConsumer(GestureConsumer* c);
private:
+ // Sets up the target consumer for gestures based on the touch-event.
+ void SetupTargets(const TouchEvent& event, GestureConsumer* consumer);
+
+ // Processes the next queued touch-event (and discards the touch-event). The
+ // called must take ownership of the returned gestures and free them when they
+ // are not needed anymore.
+ Gestures* AdvanceTouchQueueByOne(GestureConsumer* consumer,
+ ui::TouchStatus status);
+
// Overridden from GestureRecognizer
virtual Gestures* ProcessTouchEventForGesture(
const TouchEvent& event,
« no previous file with comments | « ui/aura/root_window.cc ('k') | ui/base/gestures/gesture_recognizer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698