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

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

Issue 10956045: events: Cleanup the EventDispatcher API. (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/aura/root_window.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.h
diff --git a/ui/base/events/event_dispatcher.h b/ui/base/events/event_dispatcher.h
index 55cab111d8a80ab3ca11e34e015c8095b451c50f..85b46ce096fdd49b1c4df50cf29ed3d4ec794a40 100644
--- a/ui/base/events/event_dispatcher.h
+++ b/ui/base/events/event_dispatcher.h
@@ -23,11 +23,6 @@ class UI_EXPORT EventDispatcher {
// case the event can no longer be dispatched to the target).
virtual bool CanDispatchToTarget(EventTarget* target) = 0;
- // Allows the subclass to add additional event handlers to the dispatch
- // sequence.
- virtual void ProcessPreTargetList(EventHandlerList* list) = 0;
- virtual void ProcessPostTargetList(EventHandlerList* list) = 0;
-
template<class T>
int ProcessEvent(EventTarget* target, T* event) {
if (!target || !target->CanAcceptEvents())
@@ -38,7 +33,6 @@ class UI_EXPORT EventDispatcher {
EventHandlerList list;
target->GetPreTargetHandlers(&list);
- ProcessPreTargetList(&list);
dispatch_helper.set_phase(EP_PRETARGET);
int result = DispatchEventToEventHandlers(list, event);
if (result & ER_CONSUMED)
@@ -62,7 +56,6 @@ class UI_EXPORT EventDispatcher {
list.clear();
target->GetPostTargetHandlers(&list);
- ProcessPostTargetList(&list);
dispatch_helper.set_phase(EP_POSTTARGET);
result |= DispatchEventToEventHandlers(list, event);
return result;
« no previous file with comments | « ui/aura/root_window.cc ('k') | ui/base/events/event_dispatcher_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698