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 { | |
|
kylechar
2017/02/21 19:15:59
Can you add a class level comment for what externa
fwang
2017/02/21 19:30:04
Done.
| |
| 18 public: | |
| 19 MusDemoExternal(); | |
| 20 ~MusDemoExternal() final; | |
| 21 | |
| 22 private: | |
| 23 // ui::demo::MusDemo: | |
| 24 void OnStartImpl(std::unique_ptr<aura::WindowTreeClient>* window_tree_client, | |
| 25 std::unique_ptr<WindowTreeData>* window_tree_data) final; | |
| 26 | |
| 27 // aura::WindowTreeClientDelegate: | |
| 28 void OnEmbed(std::unique_ptr<aura::WindowTreeHostMus> window_tree_host) final; | |
| 29 void OnEmbedRootDestroyed(aura::WindowTreeHostMus* window_tree_host) final; | |
| 30 | |
| 31 mojom::WindowTreeHostFactoryPtr window_tree_host_factory_; | |
| 32 | |
| 33 DISALLOW_COPY_AND_ASSIGN(MusDemoExternal); | |
| 34 }; | |
| 35 | |
| 36 } // namespace demo | |
| 37 } // namespace ui | |
| 38 | |
| 39 #endif // SERVICES_UI_DEMO_MUS_DEMO_EXTERNAL_H_ | |
| OLD | NEW |