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 #ifndef MASH_WM_CONTAINER_IDS_H_ | 5 #ifndef ASH_MUS_CONTAINER_IDS_H_ |
6 #define MASH_WM_CONTAINER_IDS_H_ | 6 #define ASH_MUS_CONTAINER_IDS_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 | 9 |
10 namespace ash { | 10 namespace ash { |
11 namespace mojom { | 11 namespace mojom { |
12 enum class Container; | 12 enum class Container; |
13 } | 13 } |
14 } | |
15 | 14 |
16 namespace mash { | 15 namespace mus { |
17 namespace wm { | |
18 // Id used when there is no corresponding ash container. | 16 // Id used when there is no corresponding ash container. |
19 const int kUnknownAshId = -1; | 17 const int kUnknownAshId = -1; |
20 | 18 |
21 // The set of containers that allow their children to be active. | 19 // The set of containers that allow their children to be active. |
22 extern const ash::mojom::Container kActivationContainers[]; | 20 extern const mojom::Container kActivationContainers[]; |
23 | 21 |
24 // Number of kActivationContainers. | 22 // Number of kActivationContainers. |
25 extern const size_t kNumActivationContainers; | 23 extern const size_t kNumActivationContainers; |
26 | 24 |
27 // Converts window ids between ash (ash/common/shell_window_ids.h) and | 25 // Converts window ids between ash (ash/common/shell_window_ids.h) and |
28 // mash. | 26 // mash. |
29 ash::mojom::Container AshContainerToMashContainer(int shell_window_id); | 27 mojom::Container AshContainerToMashContainer(int shell_window_id); |
30 int MashContainerToAshContainer(ash::mojom::Container container); | 28 int MashContainerToAshContainer(mojom::Container container); |
31 | 29 |
32 } // namespace wm | 30 } // namespace mus |
33 } // namespace mash | 31 } // namespace ash |
34 | 32 |
35 #endif // MASH_WM_CONTAINER_IDS_H_ | 33 #endif // ASH_MUS_CONTAINER_IDS_H_ |
OLD | NEW |