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

Side by Side Diff: ash/mus/window_manager.cc

Issue 2118593002: mash: Migrate ShellDelegate ownership and access to WmShell. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Cleanup. Created 4 years, 5 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 unified diff | Download patch
OLDNEW
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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 ::ui::mojom::FrameDecorationValues::New(); 61 ::ui::mojom::FrameDecorationValues::New();
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 shell_.reset(new WmShellMus(window_tree_client_)); 71 shell_.reset(new WmShellMus(nullptr, window_tree_client_));
James Cook 2016/07/06 21:27:27 Put a TODO here explaining that the nullptr is the
msw 2016/07/06 21:58:55 Done.
72 lookup_.reset(new WmLookupMus); 72 lookup_.reset(new WmLookupMus);
73 } 73 }
74 74
75 void WindowManager::SetScreenLocked(bool is_locked) { 75 void WindowManager::SetScreenLocked(bool is_locked) {
76 // TODO: screen locked state needs to be persisted for newly added displays. 76 // TODO: screen locked state needs to be persisted for newly added displays.
77 for (auto& root_window_controller : root_window_controllers_) { 77 for (auto& root_window_controller : root_window_controllers_) {
78 WmWindowMus* non_lock_screen_containers_container = 78 WmWindowMus* non_lock_screen_containers_container =
79 root_window_controller->GetWindowByShellWindowId( 79 root_window_controller->GetWindowByShellWindowId(
80 kShellWindowId_NonLockScreenContainersContainer); 80 kShellWindowId_NonLockScreenContainersContainer);
81 non_lock_screen_containers_container->mus_window()->SetVisible(!is_locked); 81 non_lock_screen_containers_container->mus_window()->SetVisible(!is_locked);
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
236 break; 236 break;
237 default: 237 default:
238 FOR_EACH_OBSERVER(WindowManagerObserver, observers_, 238 FOR_EACH_OBSERVER(WindowManagerObserver, observers_,
239 OnAccelerator(id, event)); 239 OnAccelerator(id, event));
240 break; 240 break;
241 } 241 }
242 } 242 }
243 243
244 } // namespace mus 244 } // namespace mus
245 } // namespace ash 245 } // namespace ash
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698