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

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

Issue 2154523002: Move AccessibilityDelegate ownership to ash::WmShell (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@setmediadelegate
Patch Set: fix mash_unittests 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
« no previous file with comments | « ash/mus/shell_delegate_mus.cc ('k') | ash/shell.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 ::ui::mojom::FrameDecorationValues::New(); 88 ::ui::mojom::FrameDecorationValues::New();
89 const gfx::Insets client_area_insets = 89 const gfx::Insets client_area_insets =
90 NonClientFrameController::GetPreferredClientAreaInsets(); 90 NonClientFrameController::GetPreferredClientAreaInsets();
91 frame_decoration_values->normal_client_area_insets = client_area_insets; 91 frame_decoration_values->normal_client_area_insets = client_area_insets;
92 frame_decoration_values->maximized_client_area_insets = client_area_insets; 92 frame_decoration_values->maximized_client_area_insets = client_area_insets;
93 frame_decoration_values->max_title_bar_button_width = 93 frame_decoration_values->max_title_bar_button_width =
94 NonClientFrameController::GetMaxTitleBarButtonWidth(); 94 NonClientFrameController::GetMaxTitleBarButtonWidth();
95 window_manager_client_->SetFrameDecorationValues( 95 window_manager_client_->SetFrameDecorationValues(
96 std::move(frame_decoration_values)); 96 std::move(frame_decoration_values));
97 97
98 std::unique_ptr<ShellDelegate> shell_delegate( 98 std::unique_ptr<ShellDelegate> shell_delegate(new ShellDelegateMus(
99 new ShellDelegateMus(base::MakeUnique<AppListPresenterStub>())); 99 base::MakeUnique<AppListPresenterStub>(), connector_));
100 shell_.reset(new WmShellMus(std::move(shell_delegate), window_tree_client_, 100 shell_.reset(new WmShellMus(std::move(shell_delegate), window_tree_client_));
101 connector_));
102 shell_->Initialize(); 101 shell_->Initialize();
103 lookup_.reset(new WmLookupMus); 102 lookup_.reset(new WmLookupMus);
104 } 103 }
105 104
106 void WindowManager::SetScreenLocked(bool is_locked) { 105 void WindowManager::SetScreenLocked(bool is_locked) {
107 // TODO: screen locked state needs to be persisted for newly added displays. 106 // TODO: screen locked state needs to be persisted for newly added displays.
108 for (auto& root_window_controller : root_window_controllers_) { 107 for (auto& root_window_controller : root_window_controllers_) {
109 WmWindowMus* non_lock_screen_containers_container = 108 WmWindowMus* non_lock_screen_containers_container =
110 root_window_controller->GetWindowByShellWindowId( 109 root_window_controller->GetWindowByShellWindowId(
111 kShellWindowId_NonLockScreenContainersContainer); 110 kShellWindowId_NonLockScreenContainersContainer);
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after
297 FOR_EACH_OBSERVER(WindowManagerObserver, observers_, 296 FOR_EACH_OBSERVER(WindowManagerObserver, observers_,
298 OnAccelerator(id, event)); 297 OnAccelerator(id, event));
299 break; 298 break;
300 } 299 }
301 300
302 return ui::mojom::EventResult::HANDLED; 301 return ui::mojom::EventResult::HANDLED;
303 } 302 }
304 303
305 } // namespace mus 304 } // namespace mus
306 } // namespace ash 305 } // namespace ash
OLDNEW
« no previous file with comments | « ash/mus/shell_delegate_mus.cc ('k') | ash/shell.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698