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

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: 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
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..8a0e39ad2923b5e4f29aaa08fbb74d32fcc0cf5d
--- /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 "mash/wm/public/interfaces/container.mojom.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_

Powered by Google App Engine
This is Rietveld 408576698