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

Unified Diff: ui/base/events/event_dispatcher.cc

Issue 10964051: events: Clean up dispatching code for touch-events. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 3 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
« no previous file with comments | « ui/base/events/event_constants.cc ('k') | ui/base/events/event_dispatcher_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/events/event_dispatcher.cc
diff --git a/ui/base/events/event_dispatcher.cc b/ui/base/events/event_dispatcher.cc
index 23bad57e82cf8a7a7719531c528cfe786b4bc3ad..ce0452e88090e5eca14519a620e3f2d39f7b69c7 100644
--- a/ui/base/events/event_dispatcher.cc
+++ b/ui/base/events/event_dispatcher.cc
@@ -32,11 +32,7 @@ EventResult EventDispatcher::DispatchEventToSingleHandler(EventHandler* handler,
EventResult EventDispatcher::DispatchEventToSingleHandler(EventHandler* handler,
TouchEvent* event) {
- // TODO(sad): This needs fixing (especially for the QUEUED_ status).
- TouchStatus status = handler->OnTouchEvent(event);
- return status == ui::TOUCH_STATUS_UNKNOWN ? ER_UNHANDLED :
- status == ui::TOUCH_STATUS_QUEUED_END ? ER_CONSUMED :
- ER_HANDLED;
+ return handler->OnTouchEvent(event);
}
EventResult EventDispatcher::DispatchEventToSingleHandler(EventHandler* handler,
« no previous file with comments | « ui/base/events/event_constants.cc ('k') | ui/base/events/event_dispatcher_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698