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/aura/root_window.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/aura/gestures/gesture_recognizer_unittest.cc ('k') | ui/aura/root_window.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/root_window.h
diff --git a/ui/aura/root_window.h b/ui/aura/root_window.h
index 3670e843924b3f7376d225a681f7c27269281e41..427a532892e81020209c5d1bbad201b7b5173dd7 100644
--- a/ui/aura/root_window.h
+++ b/ui/aura/root_window.h
@@ -203,13 +203,14 @@ class AURA_EXPORT RootWindow : public ui::CompositorDelegate,
// Gesture Recognition -------------------------------------------------------
- // When a touch event is dispatched to a Window, it can notify the RootWindow
- // to queue the touch event for asynchronous gesture recognition. These are
- // the entry points for the asynchronous processing of the queued touch
- // events.
- // Process the next touch event for gesture recognition. |processed| indicates
- // whether the queued event was processed by the window or not.
- void AdvanceQueuedTouchEvent(Window* window, bool processed);
+ // When a touch event is dispatched to a Window, it may want to process the
+ // touch event asynchronously. In such cases, the window should consume the
+ // event during the event dispatch. Once the event is properly processed, the
+ // window should let the RootWindow know about the result of the event
+ // processing, so that gesture events can be properly created and dispatched.
+ void ProcessedTouchEvent(ui::TouchEvent* event,
+ Window* window,
+ ui::EventResult result);
ui::GestureRecognizer* gesture_recognizer() const {
return gesture_recognizer_.get();
« no previous file with comments | « ui/aura/gestures/gesture_recognizer_unittest.cc ('k') | ui/aura/root_window.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698