| Index: mash/wm/window_manager_application.cc
|
| diff --git a/mash/wm/window_manager_application.cc b/mash/wm/window_manager_application.cc
|
| index 414de004ac2d5fca4eef40ceba37363860a2dcf2..d96568d5ecb52651183c08644b6792631a4f4c2b 100644
|
| --- a/mash/wm/window_manager_application.cc
|
| +++ b/mash/wm/window_manager_application.cc
|
| @@ -63,8 +63,8 @@ bool WindowManagerApplication::WindowIsContainer(
|
| void WindowManagerApplication::AddAccelerators() {
|
| window_tree_host_->AddAccelerator(
|
| kWindowSwitchCmd,
|
| - mus::CreateKeyMatcher(mus::mojom::KEYBOARD_CODE_TAB,
|
| - mus::mojom::EVENT_FLAGS_CONTROL_DOWN),
|
| + mus::CreateKeyMatcher(mus::mojom::KeyboardCode::TAB,
|
| + mus::mojom::kEventFlagControlDown),
|
| base::Bind(&AssertTrue));
|
| }
|
|
|
| @@ -116,13 +116,13 @@ void WindowManagerApplication::OnEmbed(mus::Window* root) {
|
| root_->AddObserver(this);
|
| CreateContainers();
|
| background_layout_.reset(new BackgroundLayout(
|
| - GetWindowForContainer(mojom::CONTAINER_USER_BACKGROUND)));
|
| + GetWindowForContainer(mojom::Container::USER_BACKGROUND)));
|
| shelf_layout_.reset(
|
| - new ShelfLayout(GetWindowForContainer(mojom::CONTAINER_USER_SHELF)));
|
| + new ShelfLayout(GetWindowForContainer(mojom::Container::USER_SHELF)));
|
|
|
| - mus::Window* window = GetWindowForContainer(mojom::CONTAINER_USER_WINDOWS);
|
| + mus::Window* window = GetWindowForContainer(mojom::Container::USER_WINDOWS);
|
| window_layout_.reset(
|
| - new WindowLayout(GetWindowForContainer(mojom::CONTAINER_USER_WINDOWS)));
|
| + new WindowLayout(GetWindowForContainer(mojom::Container::USER_WINDOWS)));
|
| window_tree_host_->AddActivationParent(window->id());
|
| window_tree_host_->SetTitle("Mash");
|
|
|
| @@ -189,8 +189,9 @@ void WindowManagerApplication::OnWindowDestroyed(mus::Window* window) {
|
|
|
| void WindowManagerApplication::CreateContainers() {
|
| for (uint16_t container =
|
| - static_cast<uint16_t>(mojom::CONTAINER_ALL_USER_BACKGROUND);
|
| - container < static_cast<uint16_t>(mojom::CONTAINER_COUNT); ++container) {
|
| + static_cast<uint16_t>(mojom::Container::ALL_USER_BACKGROUND);
|
| + container < static_cast<uint16_t>(mojom::Container::COUNT);
|
| + ++container) {
|
| mus::Window* window = root_->connection()->NewWindow();
|
| DCHECK_EQ(mus::LoWord(window->id()), container)
|
| << "Containers must be created before other windows!";
|
|
|