Chromium Code Reviews| 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..81a100088fac865d16070d52dc34f619f657be8f |
| --- /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 parent a new top-level window and returns it. The returned |
|
msw
2017/01/18 23:31:27
nit: parents
sky
2017/01/19 01:02:20
Done.
|
| +// aura::Window is owned by it's parent. |
|
msw
2017/01/18 23:31:27
nit: "its"
sky
2017/01/19 01:02:20
Done.
|
| +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_ |