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

Unified Diff: ui/aura/root_window.h

Issue 9221014: aura: Gesture event plumbing (skeleton). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: copyright Created 8 years, 11 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/event_filter_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 d38a535e3296bbb95dbed52b0da4e2f97bc0bb5f..030774ec9cbd92e53ecc77d1c6ab460201c450f9 100644
--- a/ui/aura/root_window.h
+++ b/ui/aura/root_window.h
@@ -39,6 +39,7 @@ class ScreenAura;
class StackingClient;
class ScrollEvent;
class TouchEvent;
+class GestureEvent;
// RootWindow is responsible for hosting a set of windows.
class AURA_EXPORT RootWindow : public ui::CompositorDelegate,
@@ -94,6 +95,11 @@ class AURA_EXPORT RootWindow : public ui::CompositorDelegate,
// Handles a touch event. Returns true if handled.
bool DispatchTouchEvent(TouchEvent* event);
+ // 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 RootWindowHost.
+ bool DispatchGestureEvent(GestureEvent* event);
+
// Called when the host changes size.
void OnHostResized(const gfx::Size& size);
@@ -156,6 +162,7 @@ class AURA_EXPORT RootWindow : public ui::CompositorDelegate,
bool ProcessMouseEvent(Window* target, MouseEvent* event);
bool ProcessKeyEvent(Window* target, KeyEvent* event);
ui::TouchStatus ProcessTouchEvent(Window* target, TouchEvent* event);
+ ui::GestureStatus ProcessGestureEvent(Window* target, GestureEvent* event);
// Overridden from Window:
virtual bool CanFocus() const OVERRIDE;
« no previous file with comments | « ui/aura/event_filter_unittest.cc ('k') | ui/aura/root_window.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698