Index: services/ui/ws/window_tree_host_factory.cc |
diff --git a/services/ui/ws/window_tree_host_factory.cc b/services/ui/ws/window_tree_host_factory.cc |
index 1a2170b0a67144aeeaf31f6260afcce47ada1e00..5ac83b554c562cb973417d5228988be52f33cf6c 100644 |
--- a/services/ui/ws/window_tree_host_factory.cc |
+++ b/services/ui/ws/window_tree_host_factory.cc |
@@ -7,6 +7,7 @@ |
#include "services/ui/ws/display.h" |
#include "services/ui/ws/display_binding.h" |
#include "services/ui/ws/window_server.h" |
+#include "services/ui/ws/window_tree.h" |
namespace ui { |
namespace ws { |
@@ -37,5 +38,17 @@ void WindowTreeHostFactory::CreateWindowTreeHost( |
display->Init(platform_display_init_params_, std::move(display_binding)); |
} |
+void WindowTreeHostFactory::CreatePlatformWindow( |
+ mojom::WindowTreeHostRequest tree_host_request, |
+ Id transport_window_id) { |
+ tree_->WillCreateRootDisplay(transport_window_id); |
+ |
+ Display* display = new Display(window_server_); |
+ std::unique_ptr<DisplayBindingImpl> display_binding( |
+ new DisplayBindingImpl(std::move(tree_host_request), display, user_id_, |
+ nullptr /* tree_client */, window_server_)); |
+ display->Init(platform_display_init_params_, std::move(display_binding)); |
+} |
+ |
} // namespace ws |
} // namespace ui |