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

Unified Diff: views/widget/root_view.cc

Issue 8364039: Initial views touchui GestureRecognizer support (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Added ForwardGestureEvents()in RootView and incorporated 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/widget/root_view.cc
diff --git a/views/widget/root_view.cc b/views/widget/root_view.cc
index b4467f490ca0c41a88cd4b179ea8db0066e88a84..4b70ffdfe7a2ae7bd0f6851a131a45b6e79fb8e0 100644
--- a/views/widget/root_view.cc
+++ b/views/widget/root_view.cc
@@ -16,6 +16,7 @@
#include "views/focus/view_storage.h"
#include "views/layout/fill_layout.h"
#include "views/touchui/gesture_manager.h"
+#include "views/touchui/gesture_recognizer.h"
#include "views/widget/widget.h"
namespace views {
@@ -438,6 +439,17 @@ void RootView::CalculateOffsetToAncestorWithLayer(gfx::Point* offset,
////////////////////////////////////////////////////////////////////////////////
// RootView, private:
+void RootView::ForwardGestureEvents(Gestures* gestures) {
+ scoped_ptr<Gestures> events;
+ events.reset(gestures);
+ for (int i = 0; i < events->size(); i++) {
+ GestureEvent* event = gestures->at(i).GestureEvent();
+ // TODO(Gajen): Identify correct view and call respective view's
rjkroege 2011/10/27 23:10:07 Please don't leave this code out. :-)
Gajen 2011/10/31 13:34:30 Now made this public.
+ // ProcessGestureEvent().
+ }
+ return;
+}
+
// Input -----------------------------------------------------------------------
void RootView::UpdateCursor(const MouseEvent& event) {

Powered by Google App Engine
This is Rietveld 408576698