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

Unified Diff: components/mus/ws/focus_controller.cc

Issue 1527183003: Change mojo enums to be scoped enums in the generated C++ bindings. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@mojo-binding-equals
Patch Set: Created 4 years, 12 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: components/mus/ws/focus_controller.cc
diff --git a/components/mus/ws/focus_controller.cc b/components/mus/ws/focus_controller.cc
index 5cf98446e9a526548a9dd4164bbcb01010906942..d2fa693a722724fa6ca7593a0dde2132dc8a2169 100644
--- a/components/mus/ws/focus_controller.cc
+++ b/components/mus/ws/focus_controller.cc
@@ -155,7 +155,7 @@ bool FocusController::CanBeActivated(ServerWindow* window) const {
if (props.count(mojom::WindowManager::kShowState_Property)) {
is_minimized =
props.find(mojom::WindowManager::kShowState_Property)->second[0] ==
- mus::mojom::SHOW_STATE_MINIMIZED;
+ static_cast<int>(mus::mojom::ShowState::MINIMIZED);
}
if (!is_minimized)
return false;

Powered by Google App Engine
This is Rietveld 408576698