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

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

Issue 11308322: events: Start changing EventHandler interface to not return a value. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . 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/base/events/event_dispatcher.h ('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 188523d4cfebb8d28f6059d5c50962e42fa4861a..1be042172d164e55db8e7d91abde064215ba2fcc 100644
--- a/ui/base/events/event_dispatcher.cc
+++ b/ui/base/events/event_dispatcher.cc
@@ -19,9 +19,9 @@ EventDispatcher::~EventDispatcher() {
////////////////////////////////////////////////////////////////////////////////
// EventDispatcher, private:
-EventResult EventDispatcher::DispatchEventToSingleHandler(EventHandler* handler,
+void EventDispatcher::DispatchEventToSingleHandler(EventHandler* handler,
Event* event) {
- return handler->OnEvent(event);
+ handler->OnEvent(event);
}
////////////////////////////////////////////////////////////////////////////////
@@ -29,6 +29,7 @@ EventResult EventDispatcher::DispatchEventToSingleHandler(EventHandler* handler,
EventDispatcher::ScopedDispatchHelper::ScopedDispatchHelper(Event* event)
: Event::DispatcherApi(event) {
+ set_result(ui::ER_UNHANDLED);
}
EventDispatcher::ScopedDispatchHelper::~ScopedDispatchHelper() {
« no previous file with comments | « ui/base/events/event_dispatcher.h ('k') | ui/base/events/event_dispatcher_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698