| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "ash/mus/window_manager.h" | 5 #include "ash/mus/window_manager.h" |
| 6 | 6 |
| 7 #include <stdint.h> | 7 #include <stdint.h> |
| 8 | 8 |
| 9 #include <utility> | 9 #include <utility> |
| 10 | 10 |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 const gfx::Insets client_area_insets = | 62 const gfx::Insets client_area_insets = |
| 63 NonClientFrameController::GetPreferredClientAreaInsets(); | 63 NonClientFrameController::GetPreferredClientAreaInsets(); |
| 64 frame_decoration_values->normal_client_area_insets = client_area_insets; | 64 frame_decoration_values->normal_client_area_insets = client_area_insets; |
| 65 frame_decoration_values->maximized_client_area_insets = client_area_insets; | 65 frame_decoration_values->maximized_client_area_insets = client_area_insets; |
| 66 frame_decoration_values->max_title_bar_button_width = | 66 frame_decoration_values->max_title_bar_button_width = |
| 67 NonClientFrameController::GetMaxTitleBarButtonWidth(); | 67 NonClientFrameController::GetMaxTitleBarButtonWidth(); |
| 68 window_manager_client_->SetFrameDecorationValues( | 68 window_manager_client_->SetFrameDecorationValues( |
| 69 std::move(frame_decoration_values)); | 69 std::move(frame_decoration_values)); |
| 70 | 70 |
| 71 // TODO(msw): Provide a valid ShellDelegate here; maybe port ShellDelegateMus? | 71 // TODO(msw): Provide a valid ShellDelegate here; maybe port ShellDelegateMus? |
| 72 shell_.reset(new WmShellMus(nullptr, window_tree_client_)); | 72 shell_.reset(new WmShellMus(nullptr, window_tree_client_, connector_)); |
| 73 lookup_.reset(new WmLookupMus); | 73 lookup_.reset(new WmLookupMus); |
| 74 } | 74 } |
| 75 | 75 |
| 76 void WindowManager::SetScreenLocked(bool is_locked) { | 76 void WindowManager::SetScreenLocked(bool is_locked) { |
| 77 // TODO: screen locked state needs to be persisted for newly added displays. | 77 // TODO: screen locked state needs to be persisted for newly added displays. |
| 78 for (auto& root_window_controller : root_window_controllers_) { | 78 for (auto& root_window_controller : root_window_controllers_) { |
| 79 WmWindowMus* non_lock_screen_containers_container = | 79 WmWindowMus* non_lock_screen_containers_container = |
| 80 root_window_controller->GetWindowByShellWindowId( | 80 root_window_controller->GetWindowByShellWindowId( |
| 81 kShellWindowId_NonLockScreenContainersContainer); | 81 kShellWindowId_NonLockScreenContainersContainer); |
| 82 non_lock_screen_containers_container->mus_window()->SetVisible(!is_locked); | 82 non_lock_screen_containers_container->mus_window()->SetVisible(!is_locked); |
| (...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 249 const base::Callback<void(bool)>& on_done) { | 249 const base::Callback<void(bool)>& on_done) { |
| 250 NOTIMPLEMENTED(); | 250 NOTIMPLEMENTED(); |
| 251 } | 251 } |
| 252 | 252 |
| 253 void WindowManager::OnWmCancelMoveLoop(::ui::Window* window) { | 253 void WindowManager::OnWmCancelMoveLoop(::ui::Window* window) { |
| 254 NOTIMPLEMENTED(); | 254 NOTIMPLEMENTED(); |
| 255 } | 255 } |
| 256 | 256 |
| 257 } // namespace mus | 257 } // namespace mus |
| 258 } // namespace ash | 258 } // namespace ash |
| OLD | NEW |