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

Side by Side Diff: mash/wm/container_ids.h

Issue 2025413002: Moves RootWindowControllerCommon and LayoutManager to common (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@use_root_window_controller_common
Patch Set: add back static_assert Created 4 years, 6 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
OLDNEW
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 MASH_WM_CONTAINER_IDS_H_
6 #define MASH_WM_CONTAINER_IDS_H_ 6 #define MASH_WM_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 } 14 }
15 15
16 namespace mash { 16 namespace mash {
17 namespace wm { 17 namespace wm {
18 // Id used when there is no corresponding ash container. 18 // Id used when there is no corresponding ash container.
19 const int kUnknownAshId = -1; 19 const int kUnknownAshId = -1;
20 20
21 // The set of containers that allow their children to be active. 21 // The set of containers that allow their children to be active.
22 extern const ash::mojom::Container kActivationContainers[]; 22 extern const ash::mojom::Container kActivationContainers[];
23 23
24 // Number of kActivationContainers. 24 // Number of kActivationContainers.
25 extern const size_t kNumActivationContainers; 25 extern const size_t kNumActivationContainers;
26 26
27 // Converts window ids between ash (ash/common/wm/wm_shell_window_ids.h) and 27 // Converts window ids between ash (ash/common/shell_window_ids.h) and
28 // mash. 28 // mash.
29 ash::mojom::Container AshContainerToMashContainer(int shell_window_id); 29 ash::mojom::Container AshContainerToMashContainer(int shell_window_id);
30 int MashContainerToAshContainer(ash::mojom::Container container); 30 int MashContainerToAshContainer(ash::mojom::Container container);
31 31
32 } // namespace wm 32 } // namespace wm
33 } // namespace mash 33 } // namespace mash
34 34
35 #endif // MASH_WM_CONTAINER_IDS_H_ 35 #endif // MASH_WM_CONTAINER_IDS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698