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

Unified Diff: views/touchui/gesture_manager.h

Issue 6253005: touch: Gesture manager receives the touch-sequence status. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 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 | « no previous file | views/touchui/gesture_manager.cc » ('j') | views/widget/root_view.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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.
« no previous file with comments | « no previous file | views/touchui/gesture_manager.cc » ('j') | views/widget/root_view.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698