OLD | NEW |
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 Loading... |
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 Loading... |
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_ |
OLD | NEW |