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

Unified Diff: ui/aura/window_event_dispatcher.h

Issue 278183002: Revert of Unified Gesture Recognizer (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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/aura/gestures/gesture_recognizer_unittest.cc ('k') | ui/aura/window_event_dispatcher.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/window_event_dispatcher.h
diff --git a/ui/aura/window_event_dispatcher.h b/ui/aura/window_event_dispatcher.h
index 79ba3c7b2cbc17cf5c45f2994d6c21658cb90cc4..1a877f887349e889275e79c8b67a094e923e4e60 100644
--- a/ui/aura/window_event_dispatcher.h
+++ b/ui/aura/window_event_dispatcher.h
@@ -72,6 +72,11 @@
void DispatchCancelModeEvent();
+ // Handles a gesture event. Returns true if handled. Unlike the other
+ // event-dispatching function (e.g. for touch/mouse/keyboard events), gesture
+ // events are dispatched from GestureRecognizer instead of WindowTreeHost.
+ void DispatchGestureEvent(ui::GestureEvent* event);
+
// Dispatches a ui::ET_MOUSE_EXITED event at |point|.
// TODO(beng): needed only for WTH::OnCursorVisibilityChanged().
void DispatchMouseExitAtPoint(const gfx::Point& point);
@@ -179,7 +184,7 @@
// Overridden from ui::GestureEventHelper.
virtual bool CanDispatchToConsumer(ui::GestureConsumer* consumer) OVERRIDE;
- virtual void DispatchGestureEvent(ui::GestureEvent* event) OVERRIDE;
+ virtual void DispatchPostponedGestureEvent(ui::GestureEvent* event) OVERRIDE;
virtual void DispatchCancelTouchEvent(ui::TouchEvent* event) OVERRIDE;
// Overridden from WindowObserver:
« no previous file with comments | « ui/aura/gestures/gesture_recognizer_unittest.cc ('k') | ui/aura/window_event_dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698