OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |