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

Unified Diff: ash/mus/root_window_controller.cc

Issue 2633293005: Converts mash to use Shell (Closed)
Patch Set: feedback Created 3 years, 11 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
« no previous file with comments | « ash/mus/keyboard_ui_mus.cc ('k') | ash/mus/shell_delegate_mus.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/mus/root_window_controller.cc
diff --git a/ash/mus/root_window_controller.cc b/ash/mus/root_window_controller.cc
index 53f9a19b392f2a3506cf91a76bc9a59829ae026c..c67910804e0863825d3d8116c125ae792fbd6f69 100644
--- a/ash/mus/root_window_controller.cc
+++ b/ash/mus/root_window_controller.cc
@@ -76,13 +76,16 @@ RootWindowController::RootWindowController(
window_tree_host_(window_tree_host.get()),
window_count_(0),
display_(display) {
- ash::InitRootWindowSettings(window_tree_host->window());
+ RootWindowSettings* root_window_settings =
+ InitRootWindowSettings(window_tree_host->window());
+ root_window_settings->display_id = display.id();
window_tree_host->window()->SetProperty(kRootWindowControllerKey, this);
- WmShellMus::Get()->AddRootWindowController(this);
ash_root_window_controller_ = base::WrapUnique(
new ash::RootWindowController(nullptr, window_tree_host.release()));
ash_root_window_controller_->Init(root_window_type);
+ // TODO: To avoid lots of IPC AddActivationParent() should take an array.
+ // http://crbug.com/682048.
for (size_t i = 0; i < kNumActivatableShellWindowIds; ++i) {
window_manager_->window_manager_client()->AddActivationParent(
GetWindowByShellWindowId(kActivatableShellWindowIds[i])->aura_window());
@@ -92,7 +95,6 @@ RootWindowController::RootWindowController(
RootWindowController::~RootWindowController() {
Shutdown();
ash_root_window_controller_.reset();
- WmShellMus::Get()->RemoveRootWindowController(this);
}
// static
« no previous file with comments | « ash/mus/keyboard_ui_mus.cc ('k') | ash/mus/shell_delegate_mus.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698