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

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

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.h
diff --git a/services/ui/demo/window_tree_data.h b/services/ui/demo/window_tree_data.h
index 0e1bcbd0806f8cc96f1feb5cdaf4c26a18b5d571..a80856ef71c14978389e2b6a44563a7eb3a6115a 100644
--- a/services/ui/demo/window_tree_data.h
+++ b/services/ui/demo/window_tree_data.h
@@ -7,6 +7,7 @@
#include "base/memory/ptr_util.h"
#include "base/timer/timer.h"
+#include "services/ui/public/interfaces/window_tree_host.mojom.h"
namespace aura {
class Window;
@@ -23,6 +24,9 @@ namespace demo {
class WindowTreeData {
public:
explicit WindowTreeData(int square_size);
kylechar 2017/02/21 15:15:11 What is the difference between the two constructor
fwang 2017/02/21 17:30:19 The new one is only used in external mode. I've mo
+ explicit WindowTreeData(mojom::WindowTreeHostFactory* factory,
kylechar 2017/02/21 15:15:11 Only constructor with a single parameter should be
fwang 2017/02/21 17:30:19 Done.
+ mojom::WindowTreeClientPtr tree_client,
+ int square_size);
~WindowTreeData();
// Initializes the window tree host and start drawing frames.
@@ -39,6 +43,10 @@ class WindowTreeData {
// The Window tree host corresponding to this data.
std::unique_ptr<aura::WindowTreeHostMus> window_tree_host_;
+ // When the WindowTreeData is created with WindowTreeHostFactory, this holds
+ // the Mojo pointer to the window tree host.
+ mojom::WindowTreeHostPtr host_;
kylechar 2017/02/21 15:15:11 Is this only needed for external mode? Can we some
fwang 2017/02/21 17:30:19 Yes. All these data will be moved to a WindowTreeD
+
// Destroys itself when the window gets destroyed.
aura_extra::ImageWindowDelegate* window_delegate_ = nullptr;

Powered by Google App Engine
This is Rietveld 408576698