OLD | NEW |
(Empty) | |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef UI_AURA_MUS_WINDOW_TREE_HOST_MUS_INIT_PARAMS_H_ |
| 6 #define UI_AURA_MUS_WINDOW_TREE_HOST_MUS_INIT_PARAMS_H_ |
| 7 |
| 8 #include <stdint.h> |
| 9 |
| 10 #include <map> |
| 11 #include <memory> |
| 12 #include <string> |
| 13 #include <vector> |
| 14 |
| 15 #include "cc/surfaces/frame_sink_id.h" |
| 16 #include "ui/aura/aura_export.h" |
| 17 |
| 18 namespace aura { |
| 19 |
| 20 class WindowPortMus; |
| 21 class WindowTreeClient; |
| 22 |
| 23 // Used to create a WindowTreeHostMus. The typical case is to use |
| 24 // CreateInitParamsForTopLevel(). |
| 25 struct AURA_EXPORT WindowTreeHostMusInitParams { |
| 26 WindowTreeHostMusInitParams(); |
| 27 WindowTreeHostMusInitParams(WindowTreeHostMusInitParams&& other); |
| 28 ~WindowTreeHostMusInitParams(); |
| 29 |
| 30 // The WindowTreeClient; must be specified. |
| 31 WindowTreeClient* window_tree_client = nullptr; |
| 32 |
| 33 // Used to create the Window; must be specified. |
| 34 std::unique_ptr<WindowPortMus> window_port; |
| 35 |
| 36 // Properties to send to the server as well as to set on the Window. |
| 37 std::map<std::string, std::vector<uint8_t>> properties; |
| 38 |
| 39 cc::FrameSinkId frame_sink_id; |
| 40 |
| 41 // Id of the display the window should be created on. |
| 42 int64_t display_id = 0; |
| 43 }; |
| 44 |
| 45 // Creates a WindowTreeHostMusInitParams that is used when creating a top-level |
| 46 // window. |
| 47 AURA_EXPORT WindowTreeHostMusInitParams CreateInitParamsForTopLevel( |
| 48 WindowTreeClient* window_tree_client, |
| 49 std::map<std::string, std::vector<uint8_t>> properties = |
| 50 std::map<std::string, std::vector<uint8_t>>()); |
| 51 |
| 52 } // namespace aura |
| 53 |
| 54 #endif // UI_AURA_MUS_WINDOW_TREE_HOST_MUS_INIT_PARAMS_H_ |
OLD | NEW |