OLD | NEW |
| (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/mus/container_ids.h" | |
6 | |
7 #include "ash/common/shell_window_ids.h" | |
8 #include "ash/public/interfaces/container.mojom.h" | |
9 | |
10 using ash::mojom::Container; | |
11 | |
12 namespace ash { | |
13 namespace mus { | |
14 | |
15 int MashContainerToAshShellWindowId(Container container) { | |
16 switch (container) { | |
17 case Container::WALLPAPER: | |
18 return kShellWindowId_WallpaperContainer; | |
19 | |
20 case Container::USER_PRIVATE_SHELF: | |
21 return kShellWindowId_ShelfContainer; | |
22 | |
23 case Container::LOGIN_WINDOWS: | |
24 return kShellWindowId_LockScreenContainer; | |
25 | |
26 case Container::STATUS: | |
27 return kShellWindowId_StatusContainer; | |
28 | |
29 case Container::BUBBLES: | |
30 // TODO(sky): this mapping isn't right, but BUBBLES should go away once | |
31 // http://crbug.com/616859 lands. | |
32 return kShellWindowId_SettingBubbleContainer; | |
33 | |
34 case Container::MENUS: | |
35 return kShellWindowId_MenuContainer; | |
36 | |
37 case Container::DRAG_AND_TOOLTIPS: | |
38 return kShellWindowId_DragImageAndTooltipContainer; | |
39 | |
40 case Container::OVERLAY: | |
41 return kShellWindowId_OverlayContainer; | |
42 } | |
43 return kShellWindowId_Invalid; | |
44 } | |
45 | |
46 } // namespace mus | |
47 } // namespace ash | |
OLD | NEW |