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

Unified Diff: ui/views/widget/widget.cc

Issue 11568006: events: Update scroll and touch handlers to not return EventResult. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: self-nit Created 8 years 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 | « ui/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: ui/views/widget/widget.cc
diff --git a/ui/views/widget/widget.cc b/ui/views/widget/widget.cc
index 48d7f24c1a1a952111e99e4b5874e3a73c2814a8..4ecf46b19ca18948e66c315c56b94fcc1d2bdaa8 100644
--- a/ui/views/widget/widget.cc
+++ b/ui/views/widget/widget.cc
@@ -1173,15 +1173,15 @@ void Widget::OnMouseCaptureLost() {
is_mouse_button_pressed_ = false;
}
-ui::EventResult Widget::OnTouchEvent(ui::TouchEvent* event) {
+void Widget::OnTouchEvent(ui::TouchEvent* event) {
ScopedEvent scoped(this, *event);
- return static_cast<internal::RootView*>(GetRootView())->
+ static_cast<internal::RootView*>(GetRootView())->
DispatchTouchEvent(event);
}
-ui::EventResult Widget::OnScrollEvent(ui::ScrollEvent* event) {
+void Widget::OnScrollEvent(ui::ScrollEvent* event) {
ScopedEvent scoped(this, *event);
- return static_cast<internal::RootView*>(GetRootView())->
+ static_cast<internal::RootView*>(GetRootView())->
DispatchScrollEvent(event);
}
« no previous file with comments | « ui/views/widget/widget.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698