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

Unified Diff: ui/views/controls/menu/menu_event_dispatcher_linux.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/views/controls/menu/menu_event_dispatcher_linux.cc
diff --git a/ui/views/controls/menu/menu_event_dispatcher_linux.cc b/ui/views/controls/menu/menu_event_dispatcher_linux.cc
index 181ba241afeafb375aac569cd01d5101f7f0582a..46a76747862cf8cddf7ced9dde0e29127b912a55 100644
--- a/ui/views/controls/menu/menu_event_dispatcher_linux.cc
+++ b/ui/views/controls/menu/menu_event_dispatcher_linux.cc
@@ -83,8 +83,8 @@ uint32_t MenuEventDispatcher::DispatchEvent(const ui::PlatformEvent& event) {
if (should_quit || menu_controller_->exit_type() != MenuController::EXIT_NONE)
menu_controller_->TerminateNestedMessageLoop();
- return should_perform_default ? ui::POST_DISPATCH_PERFORM_DEFAULT
- : ui::POST_DISPATCH_NONE;
+ return should_perform_default ? ui::kPostDispatchPerformDefault
+ : ui::kPostDispatchNone;
}
} // namespace internal

Powered by Google App Engine
This is Rietveld 408576698