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

Unified Diff: views/widget/widget.cc

Issue 8364039: Initial views touchui GestureRecognizer support (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Implemenation of GR, independent of View/GM and more test in views_unittes Created 9 years, 1 month 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
« chrome/common/chrome_switches.h ('K') | « views/widget/widget.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: views/widget/widget.cc
diff --git a/views/widget/widget.cc b/views/widget/widget.cc
index 029b92025cc87ea3ba31e3d4d58e2c365c1388ec..55ce4962358f68f2b9966793283fc6e6fd3e5f5c 100644
--- a/views/widget/widget.cc
+++ b/views/widget/widget.cc
@@ -1041,6 +1041,11 @@ ui::TouchStatus Widget::OnTouchEvent(const TouchEvent& event) {
return static_cast<internal::RootView*>(GetRootView())->OnTouchEvent(event);
}
+bool Widget::OnGestureEvent(const GestureEvent& event) {
+ ScopedEvent scoped(this, event);
+ return static_cast<internal::RootView*>(GetRootView())->OnGestureEvent(event);
+}
+
bool Widget::ExecuteCommand(int command_id) {
return widget_delegate_->ExecuteWindowsCommand(command_id);
}
« chrome/common/chrome_switches.h ('K') | « views/widget/widget.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698