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

Side by Side Diff: ash/mus/container_ids.h

Issue 2033843003: Makes ash/mus use RootWindowControllerCommon (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@move_mash_wm
Patch Set: merge fail 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
« no previous file with comments | « ash/mus/bridge/wm_window_mus.h ('k') | ash/mus/container_ids.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 ASH_MUS_CONTAINER_IDS_H_ 5 #ifndef ASH_MUS_CONTAINER_IDS_H_
6 #define ASH_MUS_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 14
15 namespace mus { 15 namespace mus {
16 // Id used when there is no corresponding ash container.
17 const int kUnknownAshId = -1;
18 16
19 // The set of containers that allow their children to be active. 17 // Converts a Container to a shell window ids (ash/common/shell_window_ids.h).
20 extern const mojom::Container kActivationContainers[]; 18 int MashContainerToAshShellWindowId(mojom::Container container);
21
22 // Number of kActivationContainers.
23 extern const size_t kNumActivationContainers;
24
25 // Converts window ids between ash (ash/common/shell_window_ids.h) and
26 // mash.
27 mojom::Container AshContainerToMashContainer(int shell_window_id);
28 int MashContainerToAshContainer(mojom::Container container);
29 19
30 } // namespace mus 20 } // namespace mus
31 } // namespace ash 21 } // namespace ash
32 22
33 #endif // ASH_MUS_CONTAINER_IDS_H_ 23 #endif // ASH_MUS_CONTAINER_IDS_H_
OLDNEW
« no previous file with comments | « ash/mus/bridge/wm_window_mus.h ('k') | ash/mus/container_ids.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698