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

Side by Side Diff: ash/mus/container_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/mus/container_ids.h ('k') | ash/mus/disconnected_app_handler.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/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
OLDNEW
« no previous file with comments | « ash/mus/container_ids.h ('k') | ash/mus/disconnected_app_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698