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

Unified Diff: ash/mus/top_level_window_factory.h

Issue 2642003002: Removes ash::mus::RootWindowController (Closed)
Patch Set: feedback Created 3 years, 11 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: ash/mus/top_level_window_factory.h
diff --git a/ash/mus/top_level_window_factory.h b/ash/mus/top_level_window_factory.h
new file mode 100644
index 0000000000000000000000000000000000000000..5f4a2b3f5c28238d9e4e09ef0d3f3f2505ad8b58
--- /dev/null
+++ b/ash/mus/top_level_window_factory.h
@@ -0,0 +1,39 @@
+// Copyright 2017 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 ASH_MUS_TOP_LEVEL_WINDOW_FACTORY_H_
+#define ASH_MUS_TOP_LEVEL_WINDOW_FACTORY_H_
+
+#include <stdint.h>
+
+#include <map>
+#include <string>
+#include <vector>
+
+namespace aura {
+class Window;
+}
+
+namespace ui {
+namespace mojom {
+enum class WindowType;
+}
+}
+
+namespace ash {
+namespace mus {
+
+class WindowManager;
+
+// Creates and parents a new top-level window and returns it. The returned
+// aura::Window is owned by its parent.
+aura::Window* CreateAndParentTopLevelWindow(
+ WindowManager* window_manager,
+ ui::mojom::WindowType window_type,
+ std::map<std::string, std::vector<uint8_t>>* properties);
+
+} // namespace mus
+} // namespace ash
+
+#endif // ASH_MUS_TOP_LEVEL_WINDOW_FACTORY_H_

Powered by Google App Engine
This is Rietveld 408576698