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

Unified Diff: ui/events/platform/platform_event_dispatcher.h

Issue 274383002: events: Remove ability to terminate a nested message-loop from the event-source. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: tot-merge Created 6 years, 7 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
Index: ui/events/platform/platform_event_dispatcher.h
diff --git a/ui/events/platform/platform_event_dispatcher.h b/ui/events/platform/platform_event_dispatcher.h
index 5cc91db7befafd70c3b46a03c853546df8e835a6..bda035d8f0f64f337d10d3fcf846afb62e0325a7 100644
--- a/ui/events/platform/platform_event_dispatcher.h
+++ b/ui/events/platform/platform_event_dispatcher.h
@@ -15,9 +15,8 @@ namespace ui {
// explanation of the meaning of the flags.
enum PostDispatchAction {
POST_DISPATCH_NONE = 0x0,
- POST_DISPATCH_QUIT_LOOP = 0x1,
- POST_DISPATCH_PERFORM_DEFAULT = 0x2,
- POST_DISPATCH_STOP_PROPAGATION = 0x4,
+ POST_DISPATCH_PERFORM_DEFAULT = 0x1,
+ POST_DISPATCH_STOP_PROPAGATION = 0x2,
};
// PlatformEventDispatcher receives events from a PlatformEventSource and
@@ -30,12 +29,9 @@ class EVENTS_EXPORT PlatformEventDispatcher {
// Dispatches |event|. If this is not the default dispatcher, then the
// dispatcher can request that the default dispatcher gets a chance to
// dispatch the event by setting POST_DISPATCH_PERFORM_DEFAULT to the return
- // value. If a nested message-loop is active, then the dispatcher can signal
- // that the nested message-loop should be terminated by setting
- // POST_DISPATCH_QUIT_LOOP flag on the return value. If the dispatcher has
- // processed the event, and no other dispatcher should be allowed to dispatch
- // the event, then the dispatcher should set POST_DISPATCH_STOP_PROPAGATION
- // flag on the return value.
+ // value. If the dispatcher has processed the event, and no other dispatcher
+ // should be allowed to dispatch the event, then the dispatcher should set
+ // POST_DISPATCH_STOP_PROPAGATION flag on the return value.
virtual uint32_t DispatchEvent(const PlatformEvent& event) = 0;
protected:

Powered by Google App Engine
This is Rietveld 408576698