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

Unified Diff: services/ui/demo/window_tree_data.cc

Issue 2622103004: Mus Demo: Demonstrate external window mode (Closed)
Patch Set: Only disable the assert in external mode for now. Created 3 years, 10 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/demo/window_tree_data.cc
diff --git a/services/ui/demo/window_tree_data.cc b/services/ui/demo/window_tree_data.cc
index 3d78c94df668343d7eb38d73ca32305ff5fd923c..9810b9fddc36a112d1a3ff3d2cefa5428625e5bd 100644
--- a/services/ui/demo/window_tree_data.cc
+++ b/services/ui/demo/window_tree_data.cc
@@ -59,6 +59,13 @@ void DrawSquare(const gfx::Rect& bounds,
WindowTreeData::WindowTreeData(int square_size) : square_size_(square_size) {}
+WindowTreeData::WindowTreeData(mojom::WindowTreeHostFactory* factory,
+ mojom::WindowTreeClientPtr tree_client,
+ int square_size)
+ : square_size_(square_size) {
+ factory->CreateWindowTreeHost(MakeRequest(&host_), std::move(tree_client));
+}
+
WindowTreeData::~WindowTreeData() {}
aura::Window* WindowTreeData::bitmap_window() {

Powered by Google App Engine
This is Rietveld 408576698