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 display { |
| 15 class Display; |
| 16 } |
| 17 |
| 18 namespace ui { |
| 19 namespace demo { |
| 20 |
| 21 class MusDemoExternal : public MusDemo { |
| 22 public: |
| 23 MusDemoExternal(); |
| 24 ~MusDemoExternal() final; |
| 25 |
| 26 private: |
| 27 // ui::demo::MusDemo: |
| 28 void OnStartImpl(std::unique_ptr<aura::WindowTreeClient>* window_tree_client, |
| 29 std::unique_ptr<WindowTreeData>* window_tree_data) final; |
| 30 |
| 31 // aura::WindowTreeClientDelegate: |
| 32 void OnEmbed(std::unique_ptr<aura::WindowTreeHostMus> window_tree_host) final; |
| 33 void OnEmbedRootDestroyed(aura::WindowTreeHostMus* window_tree_host) final; |
| 34 |
| 35 std::unique_ptr<display::Display> fake_display_; |
| 36 mojom::WindowTreeHostFactoryPtr window_tree_host_factory_; |
| 37 |
| 38 DISALLOW_COPY_AND_ASSIGN(MusDemoExternal); |
| 39 }; |
| 40 |
| 41 } // namespace demo |
| 42 } // namespace ui |
| 43 |
| 44 #endif // SERVICES_UI_DEMO_MUS_DEMO_EXTERNAL_H_ |
OLD | NEW |