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

Side by Side Diff: services/ui/demo/mus_demo.h

Issue 2622103004: Mus Demo: Demonstrate external window mode (Closed)
Patch Set: Add description of internal VS external modes ; fix namespace comment 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 unified diff | Download patch
« no previous file with comments | « services/ui/demo/manifest.json ('k') | services/ui/demo/mus_demo.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef SERVICES_UI_DEMO_MUS_DEMO_H_ 5 #ifndef SERVICES_UI_DEMO_MUS_DEMO_H_
6 #define SERVICES_UI_DEMO_MUS_DEMO_H_ 6 #define SERVICES_UI_DEMO_MUS_DEMO_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 ~MusDemo() override; 43 ~MusDemo() override;
44 44
45 protected: 45 protected:
46 void AddPrimaryDisplay(const display::Display& display); 46 void AddPrimaryDisplay(const display::Display& display);
47 void InitWindowTreeData( 47 void InitWindowTreeData(
48 std::unique_ptr<aura::WindowTreeHostMus> window_tree_host); 48 std::unique_ptr<aura::WindowTreeHostMus> window_tree_host);
49 void CleanupWindowTreeData(); 49 void CleanupWindowTreeData();
50 50
51 private: 51 private:
52 virtual void OnStartImpl( 52 virtual void OnStartImpl(
53 std::unique_ptr<aura::WindowTreeClient>& window_tree_client, 53 std::unique_ptr<aura::WindowTreeClient>* window_tree_client,
54 std::unique_ptr<WindowTreeData>& window_tree_data) = 0; 54 std::unique_ptr<WindowTreeData>* window_tree_data) = 0;
55 55
56 // service_manager::Service: 56 // service_manager::Service:
57 void OnStart() override; 57 void OnStart() override;
58 bool OnConnect(const service_manager::ServiceInfo& remote_info, 58 bool OnConnect(const service_manager::ServiceInfo& remote_info,
59 service_manager::InterfaceRegistry* registry) override; 59 service_manager::InterfaceRegistry* registry) override;
60 60
61 // aura::WindowTreeClientDelegate: 61 // aura::WindowTreeClientDelegate:
62 void OnEmbed( 62 void OnEmbed(
63 std::unique_ptr<aura::WindowTreeHostMus> window_tree_host) override; 63 std::unique_ptr<aura::WindowTreeHostMus> window_tree_host) override;
64 void OnUnembed(aura::Window* root) override; 64 void OnUnembed(aura::Window* root) override;
(...skipping 13 matching lines...) Expand all
78 78
79 std::unique_ptr<WindowTreeData> window_tree_data_; 79 std::unique_ptr<WindowTreeData> window_tree_data_;
80 80
81 DISALLOW_COPY_AND_ASSIGN(MusDemo); 81 DISALLOW_COPY_AND_ASSIGN(MusDemo);
82 }; 82 };
83 83
84 } // namespace demo 84 } // namespace demo
85 } // namespace ui 85 } // namespace ui
86 86
87 #endif // SERVICES_UI_DEMO_MUS_DEMO_H_ 87 #endif // SERVICES_UI_DEMO_MUS_DEMO_H_
OLDNEW
« no previous file with comments | « services/ui/demo/manifest.json ('k') | services/ui/demo/mus_demo.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698