OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/wm/maximize_mode/maximize_mode_window_manager.h" | 5 #include "ash/wm/maximize_mode/maximize_mode_window_manager.h" |
6 | 6 |
7 #include "ash/root_window_controller.h" | 7 #include "ash/root_window_controller.h" |
8 #include "ash/shell.h" | 8 #include "ash/shell.h" |
9 #include "ash/shell_window_ids.h" | 9 #include "ash/shell_window_ids.h" |
10 #include "ash/wm/maximize_mode/maximize_mode_window_state.h" | 10 #include "ash/wm/maximize_mode/maximize_mode_window_state.h" |
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
204 if (backdrops_hidden_) | 204 if (backdrops_hidden_) |
205 return; | 205 return; |
206 // Inform the WorkspaceLayoutManager that we want to show a backdrop behind | 206 // Inform the WorkspaceLayoutManager that we want to show a backdrop behind |
207 // the topmost window of its container. | 207 // the topmost window of its container. |
208 Shell::RootWindowControllerList controllers = | 208 Shell::RootWindowControllerList controllers = |
209 Shell::GetAllRootWindowControllers(); | 209 Shell::GetAllRootWindowControllers(); |
210 for (Shell::RootWindowControllerList::iterator iter = controllers.begin(); | 210 for (Shell::RootWindowControllerList::iterator iter = controllers.begin(); |
211 iter != controllers.end(); ++iter) { | 211 iter != controllers.end(); ++iter) { |
212 RootWindowController* controller = *iter; | 212 RootWindowController* controller = *iter; |
213 aura::Window* container = Shell::GetContainer( | 213 aura::Window* container = Shell::GetContainer( |
214 controller->root_window(), kShellWindowId_DefaultContainer); | 214 controller->GetRootWindow(), kShellWindowId_DefaultContainer); |
215 controller->workspace_controller()->SetMaximizeBackdropDelegate( | 215 controller->workspace_controller()->SetMaximizeBackdropDelegate( |
216 scoped_ptr<WorkspaceLayoutManagerDelegate>( | 216 scoped_ptr<WorkspaceLayoutManagerDelegate>( |
217 enable ? new WorkspaceBackdropDelegate(container) : NULL)); | 217 enable ? new WorkspaceBackdropDelegate(container) : NULL)); |
218 } | 218 } |
219 } | 219 } |
220 | 220 |
221 } // namespace ash | 221 } // namespace ash |
OLD | NEW |