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

Unified Diff: views/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/view.h
diff --git a/views/view.h b/views/view.h
index 0e06113c916b178ad0097e81d8a5d2a575e7ab29..9a2e04ec3a2b8b42f2a29aaa372065b2f1622c06 100644
--- a/views/view.h
+++ b/views/view.h
@@ -587,6 +587,11 @@ class VIEWS_EXPORT View : public ui::LayerDelegate,
// does nothing. Override as needed.
virtual ui::TouchStatus OnTouchEvent(const TouchEvent& event);
+ // This method is invoked for each GestureEvent recognized from GestureManager
+ // Default implementation does nothing. Override as needed.
+ virtual ui::GestureStatus OnGestureEvent(const GestureEvent& event);
+
+
// Set the MouseHandler for a drag session.
//
// A drag session is a stream of mouse events starting
@@ -1274,6 +1279,10 @@ class VIEWS_EXPORT View : public ui::LayerDelegate,
// the result of OnTouchEvent.
ui::TouchStatus ProcessTouchEvent(const TouchEvent& event);
+ // GestureManager will invoke this with incoming GestureEvents. Returns the
+ // the result of OnGestureEvent.
+ ui::GestureStatus ProcessGestureEvent(const GestureEvent& event);
+
// Accelerators --------------------------------------------------------------
// Registers this view's keyboard accelerators that are not registered to

Powered by Google App Engine
This is Rietveld 408576698