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

Unified Diff: ui/events/platform/platform_event_source.cc

Issue 666673005: Explicitly coerce PostDispatchAction to uint32_t in DispatchEvent() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@ui_enums
Patch Set: sigh. Windows. Created 6 years, 2 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_source.cc
diff --git a/ui/events/platform/platform_event_source.cc b/ui/events/platform/platform_event_source.cc
index 9607ab78232e971d8b4b099829f5395b47722694..e89b20e49ac6247582b8b618d10290ab4face02f 100644
--- a/ui/events/platform/platform_event_source.cc
+++ b/ui/events/platform/platform_event_source.cc
@@ -63,7 +63,7 @@ void PlatformEventSource::RemovePlatformEventObserver(
}
uint32_t PlatformEventSource::DispatchEvent(PlatformEvent platform_event) {
- uint32_t action = POST_DISPATCH_PERFORM_DEFAULT;
+ uint32_t action = kPostDispatchPerformDefault;
FOR_EACH_OBSERVER(PlatformEventObserver, observers_,
WillProcessEvent(platform_event));
@@ -71,13 +71,13 @@ uint32_t PlatformEventSource::DispatchEvent(PlatformEvent platform_event) {
if (overridden_dispatcher_)
action = overridden_dispatcher_->DispatchEvent(platform_event);
- if ((action & POST_DISPATCH_PERFORM_DEFAULT) &&
+ if ((action & kPostDispatchPerformDefault) &&
dispatchers_.might_have_observers()) {
ObserverList<PlatformEventDispatcher>::Iterator iter(dispatchers_);
while (PlatformEventDispatcher* dispatcher = iter.GetNext()) {
if (dispatcher->CanDispatchEvent(platform_event))
action = dispatcher->DispatchEvent(platform_event);
- if (action & POST_DISPATCH_STOP_PROPAGATION)
+ if (action & kPostDispatchStopPropagation)
break;
}
}

Powered by Google App Engine
This is Rietveld 408576698