Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef SERVICES_UI_DEMO_MUS_DEMO_EXTERNAL_H_ | |
| 6 #define SERVICES_UI_DEMO_MUS_DEMO_EXTERNAL_H_ | |
| 7 | |
| 8 #include <memory> | |
| 9 #include <vector> | |
| 10 | |
| 11 #include "services/ui/demo/mus_demo.h" | |
| 12 #include "services/ui/public/interfaces/window_tree_host.mojom.h" | |
| 13 | |
| 14 namespace ui { | |
| 15 namespace demo { | |
| 16 | |
| 17 class MusDemoExternal : public MusDemo { | |
| 18 public: | |
| 19 MusDemoExternal(); | |
| 20 ~MusDemoExternal() final; | |
| 21 | |
| 22 private: | |
| 23 void OnStartImpl(std::unique_ptr<aura::WindowTreeClient>& window_tree_client, | |
|
kylechar
2017/02/21 15:15:10
// MusDemo:
kylechar
2017/02/21 15:15:11
I didn't notice this wasn't const in a previous CL
fwang
2017/02/21 17:30:18
Done. I don't really like the OnStartImpl. Note af
| |
| 24 std::unique_ptr<WindowTreeData>& window_tree_data) final; | |
| 25 | |
| 26 // aura::WindowTreeClientDelegate: | |
| 27 void OnEmbed(std::unique_ptr<aura::WindowTreeHostMus> window_tree_host) final; | |
| 28 void OnEmbedRootDestroyed(aura::WindowTreeHostMus* window_tree_host) final; | |
| 29 | |
| 30 mojom::WindowTreeHostFactoryPtr window_tree_host_factory_; | |
| 31 | |
| 32 DISALLOW_COPY_AND_ASSIGN(MusDemoExternal); | |
| 33 }; | |
| 34 | |
| 35 } // namespace demo | |
| 36 } // namespace ui | |
| 37 | |
| 38 #endif // SERVICES_UI_DEMO_MUS_DEMO_EXTERNAL_H_ | |
| OLD | NEW |