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

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

Issue 23654037: Add panels as a single group of windows per display for overview window cycling. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix restored panel relayout when some panels minimized. Created 7 years, 3 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/ash.gyp ('k') | ash/wm/overview/scoped_transform_overview_window.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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/mru_window_tracker.h" 5 #include "ash/wm/mru_window_tracker.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "ash/session_state_delegate.h" 9 #include "ash/session_state_delegate.h"
10 #include "ash/shell.h" 10 #include "ash/shell.h"
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 if (!top_most_at_end) 83 if (!top_most_at_end)
84 std::reverse(windows.begin(), windows.end()); 84 std::reverse(windows.begin(), windows.end());
85 85
86 return windows; 86 return windows;
87 } 87 }
88 88
89 } // namespace 89 } // namespace
90 90
91 const int kSwitchableWindowContainerIds[] = { 91 const int kSwitchableWindowContainerIds[] = {
92 internal::kShellWindowId_DefaultContainer, 92 internal::kShellWindowId_DefaultContainer,
93 internal::kShellWindowId_AlwaysOnTopContainer 93 internal::kShellWindowId_AlwaysOnTopContainer,
94 internal::kShellWindowId_PanelContainer
94 }; 95 };
95 96
96 const size_t kSwitchableWindowContainerIdsLength = 97 const size_t kSwitchableWindowContainerIdsLength =
97 arraysize(kSwitchableWindowContainerIds); 98 arraysize(kSwitchableWindowContainerIds);
98 99
99 ////////////////////////////////////////////////////////////////////////////// 100 //////////////////////////////////////////////////////////////////////////////
100 // MruWindowTracker, public: 101 // MruWindowTracker, public:
101 102
102 MruWindowTracker::MruWindowTracker( 103 MruWindowTracker::MruWindowTracker(
103 aura::client::ActivationClient* activation_client) 104 aura::client::ActivationClient* activation_client)
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
176 177
177 void MruWindowTracker::OnWillRemoveWindow(aura::Window* window) { 178 void MruWindowTracker::OnWillRemoveWindow(aura::Window* window) {
178 mru_windows_.remove(window); 179 mru_windows_.remove(window);
179 } 180 }
180 181
181 void MruWindowTracker::OnWindowDestroying(aura::Window* window) { 182 void MruWindowTracker::OnWindowDestroying(aura::Window* window) {
182 window->RemoveObserver(this); 183 window->RemoveObserver(this);
183 } 184 }
184 185
185 } // namespace ash 186 } // namespace ash
OLDNEW
« no previous file with comments | « ash/ash.gyp ('k') | ash/wm/overview/scoped_transform_overview_window.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698