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

Unified Diff: ui/views/view.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/view.h ('k') | ui/views/view_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/view.cc
diff --git a/ui/views/view.cc b/ui/views/view.cc
index ba0023c224b7b92633d0376fe230cd495b95310b..2fb4fdff9750be17cc633b3f53323d374e9f4d18 100644
--- a/ui/views/view.cc
+++ b/ui/views/view.cc
@@ -875,12 +875,10 @@ ui::EventResult View::OnMouseEvent(ui::MouseEvent* event) {
return ui::ER_UNHANDLED;
}
-ui::EventResult View::OnScrollEvent(ui::ScrollEvent* event) {
- return ui::ER_UNHANDLED;
+void View::OnScrollEvent(ui::ScrollEvent* event) {
}
-ui::EventResult View::OnTouchEvent(ui::TouchEvent* event) {
- return ui::ER_UNHANDLED;
+void View::OnTouchEvent(ui::TouchEvent* event) {
}
void View::OnGestureEvent(ui::GestureEvent* event) {
@@ -1994,8 +1992,8 @@ void View::ProcessMouseReleased(const ui::MouseEvent& event) {
// WARNING: we may have been deleted.
}
-ui::EventResult View::ProcessTouchEvent(ui::TouchEvent* event) {
- return OnTouchEvent(event);
+void View::ProcessTouchEvent(ui::TouchEvent* event) {
+ OnTouchEvent(event);
}
void View::ProcessGestureEvent(ui::GestureEvent* event) {
« no previous file with comments | « ui/views/view.h ('k') | ui/views/view_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698