OLD | NEW |
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/ash_focus_rules.h" | 5 #include "ash/wm/ash_focus_rules.h" |
6 | 6 |
| 7 #include "ash/common/shell_window_ids.h" |
7 #include "ash/common/wm/window_state.h" | 8 #include "ash/common/wm/window_state.h" |
8 #include "ash/shell.h" | 9 #include "ash/shell.h" |
9 #include "ash/shell_delegate.h" | 10 #include "ash/shell_delegate.h" |
10 #include "ash/shell_window_ids.h" | |
11 #include "ash/wm/mru_window_tracker.h" | 11 #include "ash/wm/mru_window_tracker.h" |
12 #include "ash/wm/window_state_aura.h" | 12 #include "ash/wm/window_state_aura.h" |
13 #include "ui/aura/window.h" | 13 #include "ui/aura/window.h" |
14 | 14 |
15 namespace ash { | 15 namespace ash { |
16 namespace wm { | 16 namespace wm { |
17 namespace { | 17 namespace { |
18 | 18 |
19 // These are the list of container ids of containers which may contain windows | 19 // These are the list of container ids of containers which may contain windows |
20 // that need to be activated in the order that they should be activated. | 20 // that need to be activated in the order that they should be activated. |
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
183 if (*i != ignore && | 183 if (*i != ignore && |
184 window_state->CanActivate() && | 184 window_state->CanActivate() && |
185 !window_state->IsMinimized()) | 185 !window_state->IsMinimized()) |
186 return *i; | 186 return *i; |
187 } | 187 } |
188 return NULL; | 188 return NULL; |
189 } | 189 } |
190 | 190 |
191 } // namespace wm | 191 } // namespace wm |
192 } // namespace ash | 192 } // namespace ash |
OLD | NEW |