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

Side by Side Diff: ash/common/shell_window_ids.cc

Issue 2430593002: mash: Use ash shell window container ids instead of ash::mojom::Container (Closed)
Patch Set: rebase Created 4 years, 2 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
« no previous file with comments | « ash/common/shell_window_ids.h ('k') | ash/common/system/chromeos/ime_menu/ime_menu_tray.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #include "ash/common/shell_window_ids.h"
6
7 #include "base/macros.h"
8
9 namespace ash {
10
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
13 // containers appearing later in the list.
14 const int kActivatableShellWindowIds[] = {
15 kShellWindowId_OverlayContainer, kShellWindowId_LockSystemModalContainer,
16 kShellWindowId_SettingBubbleContainer, kShellWindowId_LockScreenContainer,
17 kShellWindowId_SystemModalContainer, kShellWindowId_AlwaysOnTopContainer,
18 kShellWindowId_AppListContainer, kShellWindowId_DefaultContainer,
19
20 // Docked, panel, launcher and status are intentionally checked after other
21 // containers even though these layers are higher. The user expects their
22 // windows to be focused before these elements.
23 kShellWindowId_DockedContainer, kShellWindowId_PanelContainer,
24 kShellWindowId_ShelfContainer, kShellWindowId_StatusContainer,
25 };
26
27 const size_t kNumActivatableShellWindowIds =
28 arraysize(kActivatableShellWindowIds);
29
30 bool IsActivatableShellWindowId(int id) {
31 for (size_t i = 0; i < kNumActivatableShellWindowIds; i++) {
32 if (id == kActivatableShellWindowIds[i])
33 return true;
34 }
35 return false;
36 }
37
38 } // namespace ash
OLDNEW
« no previous file with comments | « ash/common/shell_window_ids.h ('k') | ash/common/system/chromeos/ime_menu/ime_menu_tray.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698