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

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

Issue 10916210: events: Inlcude the event-phase and event-result in Event. (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_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 ec9c5ac54e8eeee7d2638ca0664ec06d9c471d99..23bad57e82cf8a7a7719531c528cfe786b4bc3ad 100644
--- a/ui/base/events/event_dispatcher.cc
+++ b/ui/base/events/event_dispatcher.cc
@@ -44,4 +44,15 @@ EventResult EventDispatcher::DispatchEventToSingleHandler(EventHandler* handler,
return handler->OnGestureEvent(event);
}
+////////////////////////////////////////////////////////////////////////////////
+// EventDispatcher::ScopedDispatchHelper
+
+EventDispatcher::ScopedDispatchHelper::ScopedDispatchHelper(Event* event)
+ : Event::DispatcherApi(event) {
+}
+
+EventDispatcher::ScopedDispatchHelper::~ScopedDispatchHelper() {
+ set_phase(EP_POSTDISPATCH);
+}
+
} // namespace ui
« 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