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

Unified Diff: views/widget/root_view.h

Issue 8364039: Initial views touchui GestureRecognizer support (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Wired gesture events into RootView and commandline switch enable-gesture Created 9 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
Index: views/widget/root_view.h
diff --git a/views/widget/root_view.h b/views/widget/root_view.h
index 3a2afb990e909c08c6b63d31472c19536441f88d..e712e5c52e4f4459b30659f2e96e29fce986ea9b 100644
--- a/views/widget/root_view.h
+++ b/views/widget/root_view.h
@@ -11,6 +11,7 @@
#include "base/memory/ref_counted.h"
#include "views/focus/focus_manager.h"
#include "views/focus/focus_search.h"
+#include "views/touchui/gesture_recognizer.h"
#include "views/view.h"
namespace ui {
@@ -113,6 +114,11 @@ class VIEWS_EXPORT RootView : public View, public FocusTraversable {
virtual void SetMouseHandler(View* new_mouse_handler) OVERRIDE;
virtual void GetAccessibleState(ui::AccessibleViewState* state) OVERRIDE;
+ // GestureManager invokes for recognized GestureEvents.
+ // Identify gesture handler view and passes the gesture events, returns true
+ // if gesture handler consumes else false.
+ bool ForwardGestureEvents(GestureRecognizer::Gestures* gestures);
+
protected:
// Overridden from View:
virtual void ViewHierarchyChanged(bool is_add, View* parent,
@@ -178,6 +184,9 @@ class VIEWS_EXPORT RootView : public View, public FocusTraversable {
// The view currently handling touch events.
View* touch_pressed_handler_;
+ // The view currently handling gesture events.
+ View* gesture_handler_;
rjkroege 2011/11/01 18:42:22 I'd call this "gesture_handling_view_" to align th
Gajen 2011/11/02 12:59:35 Agreed, will incorporate in.
Gajen 2011/11/08 08:11:44 Done.
+
// Focus ---------------------------------------------------------------------
// The focus search algorithm.

Powered by Google App Engine
This is Rietveld 408576698