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

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

Issue 2700493005: Mus Demo: Refactor code to prepare multiple windows in external mode (Closed)
Patch Set: Rename MusExternal::tree_client_ & describes the helper functions for WindowTreeData. 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
« no previous file with comments | « services/ui/demo/mus_demo.cc ('k') | services/ui/demo/mus_demo_external.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/ui/demo/mus_demo_external.h
diff --git a/services/ui/demo/mus_demo_external.h b/services/ui/demo/mus_demo_external.h
index a3a8ca945c58add9e180a6f609fdac2f01814b22..13f920ac438af1124b9cbb55d8b67e54a80d488a 100644
--- a/services/ui/demo/mus_demo_external.h
+++ b/services/ui/demo/mus_demo_external.h
@@ -22,15 +22,19 @@ class MusDemoExternal : public MusDemo {
~MusDemoExternal() final;
private:
+ void OpenNewWindow();
+
// ui::demo::MusDemo:
- void OnStartImpl(std::unique_ptr<aura::WindowTreeClient>* window_tree_client,
- std::unique_ptr<WindowTreeData>* window_tree_data) final;
+ void OnStartImpl() final;
+ std::unique_ptr<aura::WindowTreeClient> CreateWindowTreeClient() final;
// aura::WindowTreeClientDelegate:
void OnEmbed(std::unique_ptr<aura::WindowTreeHostMus> window_tree_host) final;
void OnEmbedRootDestroyed(aura::WindowTreeHostMus* window_tree_host) final;
mojom::WindowTreeHostFactoryPtr window_tree_host_factory_;
+ mojom::WindowTreeClientPtr window_tree_client_mojo_;
+ size_t initialized_windows_count_ = 0;
DISALLOW_COPY_AND_ASSIGN(MusDemoExternal);
};
« no previous file with comments | « services/ui/demo/mus_demo.cc ('k') | services/ui/demo/mus_demo_external.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698