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

Side by Side Diff: ash/wm/window_cycle_controller.cc

Issue 11201002: Removes worskpace 1 code. Will rename next. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove constants and add back kDisableLoginAnimations Created 8 years, 2 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/wm/window_animations_unittest.cc ('k') | ash/wm/workspace/base_workspace_manager.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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/window_cycle_controller.h" 5 #include "ash/wm/window_cycle_controller.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "ash/shell_delegate.h" 9 #include "ash/shell_delegate.h"
10 #include "ash/shell_window_ids.h" 10 #include "ash/shell_window_ids.h"
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 for (size_t i = 0; i < window->children().size(); ++i) 98 for (size_t i = 0; i < window->children().size(); ++i)
99 AddAllChildren(window->children()[i], windows); 99 AddAllChildren(window->children()[i], windows);
100 } 100 }
101 101
102 // Adds the windows that can be cycled through for the specified window id to 102 // Adds the windows that can be cycled through for the specified window id to
103 // |windows|. 103 // |windows|.
104 void AddCycleWindows(aura::RootWindow* root, 104 void AddCycleWindows(aura::RootWindow* root,
105 int container_id, 105 int container_id,
106 WindowCycleList::WindowList* windows) { 106 WindowCycleList::WindowList* windows) {
107 aura::Window* container = Shell::GetContainer(root, container_id); 107 aura::Window* container = Shell::GetContainer(root, container_id);
108 if (container_id == internal::kShellWindowId_DefaultContainer && 108 if (container_id == internal::kShellWindowId_DefaultContainer)
109 internal::WorkspaceController::IsWorkspace2Enabled()) {
110 AddWorkspace2Children(container, windows); 109 AddWorkspace2Children(container, windows);
111 } else { 110 else
112 AddAllChildren(container, windows); 111 AddAllChildren(container, windows);
113 }
114 } 112 }
115 113
116 } // namespace 114 } // namespace
117 115
118 ////////////////////////////////////////////////////////////////////////////// 116 //////////////////////////////////////////////////////////////////////////////
119 // WindowCycleController, public: 117 // WindowCycleController, public:
120 118
121 WindowCycleController::WindowCycleController( 119 WindowCycleController::WindowCycleController(
122 internal::ActivationController* activation_controller) 120 internal::ActivationController* activation_controller)
123 : activation_controller_(activation_controller) { 121 : activation_controller_(activation_controller) {
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after
314 mru_windows_.remove(window); 312 mru_windows_.remove(window);
315 if (window->id() == internal::kShellWindowId_WorkspaceContainer) 313 if (window->id() == internal::kShellWindowId_WorkspaceContainer)
316 window->RemoveObserver(this); 314 window->RemoveObserver(this);
317 } 315 }
318 316
319 void WindowCycleController::OnWindowDestroying(aura::Window* window) { 317 void WindowCycleController::OnWindowDestroying(aura::Window* window) {
320 window->RemoveObserver(this); 318 window->RemoveObserver(this);
321 } 319 }
322 320
323 } // namespace ash 321 } // namespace ash
OLDNEW
« no previous file with comments | « ash/wm/window_animations_unittest.cc ('k') | ash/wm/workspace/base_workspace_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698