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

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

Issue 2712203002: c++ / mojo changes for 'external window mode'
Patch Set: rebased 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
« no previous file with comments | « services/ui/demo/mus_demo_external.cc ('k') | services/ui/demo/window_tree_data.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 007b04f6d284c4d87c9775f239c2a8c65562e9c3..a31d9b485a5ed3aa2c93f201e76fad2a69de100a 100644
--- a/services/ui/demo/window_tree_data.h
+++ b/services/ui/demo/window_tree_data.h
@@ -27,12 +27,18 @@ class WindowTreeData {
// Initializes the window tree host and start drawing frames.
void Init(std::unique_ptr<aura::WindowTreeHostMus> window_tree_host);
- bool IsInitialized() const { return !!window_tree_host_; }
+ bool IsInitialized() const { return window_delegate_; }
const aura::WindowTreeHostMus* WindowTreeHost() const {
return window_tree_host_.get();
}
+ protected:
+ void SetWindowTreeHost(
+ std::unique_ptr<aura::WindowTreeHostMus> window_tree_host) {
+ window_tree_host_ = std::move(window_tree_host);
+ }
+
private:
// Draws one frame, incrementing the rotation angle.
void DrawFrame();
« no previous file with comments | « services/ui/demo/mus_demo_external.cc ('k') | services/ui/demo/window_tree_data.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698