Index: views/touchui/gesture_manager.h |
diff --git a/views/touchui/gesture_manager.h b/views/touchui/gesture_manager.h |
index f26aa98a9566a3d653c7277043ff5d079fe21b3e..492a4e644b44e3dac99ac78aab425cb123b22836 100644 |
--- a/views/touchui/gesture_manager.h |
+++ b/views/touchui/gesture_manager.h |
@@ -7,12 +7,11 @@ |
#pragma once |
#include "base/singleton.h" |
+#include "views/view.h" |
namespace views { |
-class View; |
class TouchEvent; |
- |
// A GestureManager singleton detects gestures occurring in the |
// incoming feed of touch events across all of the RootViews in |
// the system. In response to a given touch event, the GestureManager |
@@ -25,17 +24,16 @@ class GestureManager { |
static GestureManager* GetInstance(); |
- // TODO(sad): Use TouchStatus instead of bool for previouslyHandled. |
// Invoked for each touch event that could contribute to the current gesture. |
// Takes the event and the View that originated it and which will also |
- // be the target of any generated synthetic event. Finally, handled |
- // specifies if the event was actually handled explicitly by a view so that |
+ // be the target of any generated synthetic event. Finally, status |
+ // specifies if a touch sequence is in progress or not, so that the |
// GestureManager state can correctly reflect events that are handled |
// already. |
// Returns true if the event resulted in firing a synthetic event. |
virtual bool ProcessTouchEventForGesture(const TouchEvent& event, |
View* source, |
- bool previouslyHandled); |
+ View::TouchStatus status); |
// TODO(rjkroege): Write the remainder of this class. |
// It will appear in a subsequent CL. |