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

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

Issue 2045793002: Moves MruWindowTracker into common (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@mru_window_tracker
Patch Set: not relative 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
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/window_cycle_list.h" 5 #include "ash/wm/window_cycle_list.h"
6 6
7 #include "ash/common/wm/mru_window_tracker.h"
7 #include "ash/common/wm/window_state.h" 8 #include "ash/common/wm/window_state.h"
8 #include "ash/common/wm_window.h" 9 #include "ash/common/wm_window.h"
9 #include "ash/shell.h" 10 #include "ash/shell.h"
10 #include "ash/wm/mru_window_tracker.h"
11 #include "ash/wm/window_animations.h" 11 #include "ash/wm/window_animations.h"
12 #include "ash/wm/window_util.h" 12 #include "ash/wm/window_util.h"
13 13
14 namespace ash { 14 namespace ash {
15 15
16 // Returns the window immediately below |window| in the current container. 16 // Returns the window immediately below |window| in the current container.
17 WmWindow* GetWindowBelow(WmWindow* window) { 17 WmWindow* GetWindowBelow(WmWindow* window) {
18 WmWindow* parent = window->GetParent(); 18 WmWindow* parent = window->GetParent();
19 if (!parent) 19 if (!parent)
20 return nullptr; 20 return nullptr;
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
160 CHECK(i != windows_.end()); 160 CHECK(i != windows_.end());
161 int removed_index = static_cast<int>(i - windows_.begin()); 161 int removed_index = static_cast<int>(i - windows_.begin());
162 windows_.erase(i); 162 windows_.erase(i);
163 if (current_index_ > removed_index || 163 if (current_index_ > removed_index ||
164 current_index_ == static_cast<int>(windows_.size())) { 164 current_index_ == static_cast<int>(windows_.size())) {
165 current_index_--; 165 current_index_--;
166 } 166 }
167 } 167 }
168 168
169 } // namespace ash 169 } // namespace ash
OLDNEW
« no previous file with comments | « ash/wm/window_cycle_controller.cc ('k') | chrome/browser/chromeos/extensions/wallpaper_private_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698