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

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: Added GestureSignature enum type 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
« no previous file with comments | « 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 acc7108bbf5940db385b0d45726db80fc2e1a7f3..ccb9bda966cea2bae1942d0426f32b912d4c8a32 100644
--- a/views/widget/widget.cc
+++ b/views/widget/widget.cc
@@ -1049,7 +1049,12 @@ void Widget::OnMouseCaptureLost() {
ui::TouchStatus Widget::OnTouchEvent(const TouchEvent& event) {
ScopedEvent scoped(this, event);
- return static_cast<internal::RootView*>(GetRootView())->OnTouchEvent(event);
+ return GetRootView()->OnTouchEvent(event);
+}
+
+bool Widget::OnGestureEvent(const GestureEvent& event) {
+ ScopedEvent scoped(this, event);
+ GetRootView()->OnGestureEvent(event);
}
bool Widget::ExecuteCommand(int command_id) {
« no previous file with comments | « views/widget/widget.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698