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

Side by Side Diff: ash/wm/maximize_mode/maximize_mode_window_manager.cc

Issue 201573015: Introdcue AshWindowTreeHost and move ash/chrome specific code in WTH to ash. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 8 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 | Annotate | Revision Log
« no previous file with comments | « ash/test/test_shell_delegate.cc ('k') | ash/wm/window_manager_unittest.cc » ('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 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
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
OLDNEW
« no previous file with comments | « ash/test/test_shell_delegate.cc ('k') | ash/wm/window_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698