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

Unified Diff: services/ui/ws/window_tree_host_factory.cc

Issue 2712203002: c++ / mojo changes for 'external window mode'
Patch Set: addressed sky/fwang feedback (take 5), simpler mus_demo changes / passing unittests Created 3 years, 9 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: 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

Powered by Google App Engine
This is Rietveld 408576698