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

Unified Diff: views/touchui/gesture_manager.h

Issue 8364039: Initial views touchui GestureRecognizer support (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Event injection as per Robert comments 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/touchui/gesture_manager.h
diff --git a/views/touchui/gesture_manager.h b/views/touchui/gesture_manager.h
index 12fee961b7a75d23104c9b784dc49ad6398627d2..49b29de003ba85a6f85bb3b552e8dd96506e1a94 100644
--- a/views/touchui/gesture_manager.h
+++ b/views/touchui/gesture_manager.h
@@ -7,6 +7,7 @@
#pragma once
#include "base/memory/singleton.h"
+#include "views/touchui/gesture_recognizer.h"
#include "views/view.h"
namespace ui {
@@ -48,6 +49,16 @@ class VIEWS_EXPORT GestureManager {
private:
friend struct DefaultSingletonTraits<GestureManager>;
+ // Source view's RootView, This instance is not owned by GestureManager.
+ // See ProcessTouchEventForGesture() for source definition.
+ // Note: Simultaneous Gestures happening across two different RootViews are
+ // Not Recognized. Exception to this is TYPE_CHILD widget which still could
+ // be NativeWidgetGtk.
+ RootView* root_view_;
rjkroege 2011/10/24 17:41:09 Why do we need this pointer when the view of inter
Gajen 2011/10/25 14:32:29 GestureManager being singleton, can be in all poss
+
+ // GestureRecognizer instance.
+ GestureRecognizer gesture_recognizer;
rjkroege 2011/10/24 17:41:09 members need a trailing _ More general observatio
Gajen 2011/10/25 14:32:29 Done
+
DISALLOW_COPY_AND_ASSIGN(GestureManager);
};

Powered by Google App Engine
This is Rietveld 408576698