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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
55 // a call to RemoveWindowTreeData. | 55 // a call to RemoveWindowTreeData. |
56 void AppendWindowTreeData(std::unique_ptr<WindowTreeData> window_tree_data); | 56 void AppendWindowTreeData(std::unique_ptr<WindowTreeData> window_tree_data); |
57 void InitWindowTreeData( | 57 void InitWindowTreeData( |
58 std::unique_ptr<aura::WindowTreeHostMus> window_tree_host); | 58 std::unique_ptr<aura::WindowTreeHostMus> window_tree_host); |
59 void RemoveWindowTreeData(aura::WindowTreeHostMus* window_tree_host); | 59 void RemoveWindowTreeData(aura::WindowTreeHostMus* window_tree_host); |
60 | 60 |
61 aura::WindowTreeClient* window_tree_client() { | 61 aura::WindowTreeClient* window_tree_client() { |
62 return window_tree_client_.get(); | 62 return window_tree_client_.get(); |
63 } | 63 } |
64 | 64 |
65 const std::vector<std::unique_ptr<WindowTreeData>>& window_tree_data_list() | |
66 const { | |
67 return window_tree_data_list_; | |
68 } | |
69 | |
fwang
2017/03/07 09:21:24
This is introduced only for overriding HasPendingW
tonikitoo
2017/03/07 14:00:49
Done.
| |
65 private: | 70 private: |
66 virtual void OnStartImpl() = 0; | 71 virtual void OnStartImpl() = 0; |
67 virtual std::unique_ptr<aura::WindowTreeClient> CreateWindowTreeClient() = 0; | 72 virtual std::unique_ptr<aura::WindowTreeClient> CreateWindowTreeClient() = 0; |
68 bool HasPendingWindowTreeData() const; | 73 virtual bool HasPendingWindowTreeData() const; |
fwang
2017/03/07 09:21:24
Not needed (see above).
tonikitoo
2017/03/07 14:00:49
Done.
| |
69 | 74 |
70 // service_manager::Service: | 75 // service_manager::Service: |
71 void OnStart() override; | 76 void OnStart() override; |
72 bool OnConnect(const service_manager::ServiceInfo& remote_info, | 77 bool OnConnect(const service_manager::ServiceInfo& remote_info, |
73 service_manager::InterfaceRegistry* registry) override; | 78 service_manager::InterfaceRegistry* registry) override; |
74 | 79 |
75 // aura::WindowTreeClientDelegate: | 80 // aura::WindowTreeClientDelegate: |
76 void OnEmbed( | 81 void OnEmbed( |
77 std::unique_ptr<aura::WindowTreeHostMus> window_tree_host) override; | 82 std::unique_ptr<aura::WindowTreeHostMus> window_tree_host) override; |
78 void OnUnembed(aura::Window* root) override; | 83 void OnUnembed(aura::Window* root) override; |
(...skipping 16 matching lines...) Expand all Loading... | |
95 // next call to InitWindowTreeData. | 100 // next call to InitWindowTreeData. |
96 std::vector<std::unique_ptr<WindowTreeData>> window_tree_data_list_; | 101 std::vector<std::unique_ptr<WindowTreeData>> window_tree_data_list_; |
97 | 102 |
98 DISALLOW_COPY_AND_ASSIGN(MusDemo); | 103 DISALLOW_COPY_AND_ASSIGN(MusDemo); |
99 }; | 104 }; |
100 | 105 |
101 } // namespace demo | 106 } // namespace demo |
102 } // namespace ui | 107 } // namespace ui |
103 | 108 |
104 #endif // SERVICES_UI_DEMO_MUS_DEMO_H_ | 109 #endif // SERVICES_UI_DEMO_MUS_DEMO_H_ |
OLD | NEW |