| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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/common/shell_window_ids.h" | 5 #include "ash/shared/shell_window_ids.h" |
| 6 | 6 |
| 7 #include "base/macros.h" | 7 #include "base/macros.h" |
| 8 | 8 |
| 9 namespace ash { | 9 namespace ash { |
| 10 | 10 |
| 11 // NOTE: this list is ordered by activation order. That is, windows in | 11 // NOTE: this list is ordered by activation order. That is, windows in |
| 12 // containers appearing earlier in the list are activated before windows in | 12 // containers appearing earlier in the list are activated before windows in |
| 13 // containers appearing later in the list. | 13 // containers appearing later in the list. |
| 14 const int kActivatableShellWindowIds[] = { | 14 const int kActivatableShellWindowIds[] = { |
| 15 kShellWindowId_OverlayContainer, kShellWindowId_LockSystemModalContainer, | 15 kShellWindowId_OverlayContainer, kShellWindowId_LockSystemModalContainer, |
| (...skipping 13 matching lines...) Expand all Loading... |
| 29 | 29 |
| 30 bool IsActivatableShellWindowId(int id) { | 30 bool IsActivatableShellWindowId(int id) { |
| 31 for (size_t i = 0; i < kNumActivatableShellWindowIds; i++) { | 31 for (size_t i = 0; i < kNumActivatableShellWindowIds; i++) { |
| 32 if (id == kActivatableShellWindowIds[i]) | 32 if (id == kActivatableShellWindowIds[i]) |
| 33 return true; | 33 return true; |
| 34 } | 34 } |
| 35 return false; | 35 return false; |
| 36 } | 36 } |
| 37 | 37 |
| 38 } // namespace ash | 38 } // namespace ash |
| OLD | NEW |