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

Unified Diff: mash/wm/container_ids.h

Issue 1980593002: Changes container names and adds a couple of more (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: change include Created 4 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « mash/wm/BUILD.gn ('k') | mash/wm/container_ids.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mash/wm/container_ids.h
diff --git a/mash/wm/container_ids.h b/mash/wm/container_ids.h
new file mode 100644
index 0000000000000000000000000000000000000000..432f0fec01d4bf3369c2781b11c81911c4fbf436
--- /dev/null
+++ b/mash/wm/container_ids.h
@@ -0,0 +1,33 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef MASH_WM_CONTAINER_IDS_H_
+#define MASH_WM_CONTAINER_IDS_H_
+
+#include <stddef.h>
+
+namespace mash {
+namespace wm {
+namespace mojom {
+enum class Container;
+}
+
+// Id used when there is no corresponding ash container.
+const int kUnknownAshId = -1;
+
+// The set of containers that allow their children to be active.
+extern const mojom::Container kActivationContainers[];
+
+// Number of kActivationContainers.
+extern const size_t kNumActivationContainers;
+
+// Converts window ids between ash (ash/wm/common/wm_shell_window_ids.h) and
+// mash.
+mojom::Container AshContainerToMashContainer(int shell_window_id);
+int MashContainerToAshContainer(mojom::Container container);
+
+} // namespace wm
+} // namespace mash
+
+#endif // MASH_WM_CONTAINER_IDS_H_
« no previous file with comments | « mash/wm/BUILD.gn ('k') | mash/wm/container_ids.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698