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

Side by Side Diff: ash/aura/wm_root_window_controller_aura.cc

Issue 2041583004: mash: Move WmShelfAura ownership to RootWindowController and init it earlier (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@moveshelftypes
Patch Set: . Created 4 years, 6 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 | « no previous file | ash/aura/wm_shelf_aura.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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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/aura/wm_root_window_controller_aura.h" 5 #include "ash/aura/wm_root_window_controller_aura.h"
6 6
7 #include "ash/aura/wm_shelf_aura.h" 7 #include "ash/aura/wm_shelf_aura.h"
8 #include "ash/aura/wm_shell_aura.h" 8 #include "ash/aura/wm_shell_aura.h"
9 #include "ash/aura/wm_window_aura.h" 9 #include "ash/aura/wm_window_aura.h"
10 #include "ash/common/wm_root_window_controller_observer.h" 10 #include "ash/common/wm_root_window_controller_observer.h"
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 71
72 wm::WorkspaceWindowState WmRootWindowControllerAura::GetWorkspaceWindowState() { 72 wm::WorkspaceWindowState WmRootWindowControllerAura::GetWorkspaceWindowState() {
73 return root_window_controller_->workspace_controller()->GetWindowState(); 73 return root_window_controller_->workspace_controller()->GetWindowState();
74 } 74 }
75 75
76 AlwaysOnTopController* WmRootWindowControllerAura::GetAlwaysOnTopController() { 76 AlwaysOnTopController* WmRootWindowControllerAura::GetAlwaysOnTopController() {
77 return root_window_controller_->always_on_top_controller(); 77 return root_window_controller_->always_on_top_controller();
78 } 78 }
79 79
80 WmShelf* WmRootWindowControllerAura::GetShelf() { 80 WmShelf* WmRootWindowControllerAura::GetShelf() {
81 return root_window_controller_->shelf_widget() 81 return root_window_controller_->wm_shelf_aura();
82 ? root_window_controller_->shelf_widget()->shelf()->wm_shelf()
83 : nullptr;
84 } 82 }
85 83
86 WmWindow* WmRootWindowControllerAura::GetWindow() { 84 WmWindow* WmRootWindowControllerAura::GetWindow() {
87 return WmWindowAura::Get(root_window_controller_->GetRootWindow()); 85 return WmWindowAura::Get(root_window_controller_->GetRootWindow());
88 } 86 }
89 87
90 void WmRootWindowControllerAura::ConfigureWidgetInitParamsForContainer( 88 void WmRootWindowControllerAura::ConfigureWidgetInitParamsForContainer(
91 views::Widget* widget, 89 views::Widget* widget,
92 int shell_container_id, 90 int shell_container_id,
93 views::Widget::InitParams* init_params) { 91 views::Widget::InitParams* init_params) {
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 void WmRootWindowControllerAura::OnShelfAlignmentChanged( 135 void WmRootWindowControllerAura::OnShelfAlignmentChanged(
138 aura::Window* root_window) { 136 aura::Window* root_window) {
139 if (root_window != root_window_controller_->GetRootWindow()) 137 if (root_window != root_window_controller_->GetRootWindow())
140 return; 138 return;
141 139
142 FOR_EACH_OBSERVER(WmRootWindowControllerObserver, observers_, 140 FOR_EACH_OBSERVER(WmRootWindowControllerObserver, observers_,
143 OnShelfAlignmentChanged()); 141 OnShelfAlignmentChanged());
144 } 142 }
145 143
146 } // namespace ash 144 } // namespace ash
OLDNEW
« no previous file with comments | « no previous file | ash/aura/wm_shelf_aura.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698