OLD | NEW |
1 // Copyright 2017 The Chromium Authors. All rights reserved. | 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 | 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_INTERNAL_H_ | 5 #ifndef SERVICES_UI_DEMO_MUS_DEMO_INTERNAL_H_ |
6 #define SERVICES_UI_DEMO_MUS_DEMO_INTERNAL_H_ | 6 #define SERVICES_UI_DEMO_MUS_DEMO_INTERNAL_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <memory> | 9 #include <memory> |
10 #include <set> | 10 #include <set> |
11 #include <string> | 11 #include <string> |
12 #include <vector> | 12 #include <vector> |
13 | 13 |
14 #include "services/ui/demo/mus_demo.h" | 14 #include "services/ui/demo/mus_demo.h" |
15 #include "ui/aura/mus/window_manager_delegate.h" | 15 #include "ui/aura/mus/window_manager_delegate.h" |
16 | 16 |
17 namespace ui { | 17 namespace ui { |
18 namespace demo { | 18 namespace demo { |
19 | 19 |
20 // MusDemoInternal demonstrates Mus operating in "internal" mode: There is a | 20 // MusDemoInternal demonstrates Mus operating in "internal" mode: There is a |
21 // single acceleratedWidget for a single display and all aura windows are | 21 // single acceleratedWidget for a single display and all aura windows are |
22 // contained in that display. | 22 // contained in that display. |
23 class MusDemoInternal : public MusDemo, public aura::WindowManagerDelegate { | 23 class MusDemoInternal : public MusDemo, public aura::WindowManagerDelegate { |
24 public: | 24 public: |
25 MusDemoInternal(); | 25 MusDemoInternal(); |
26 ~MusDemoInternal() final; | 26 ~MusDemoInternal() final; |
27 | 27 |
28 private: | 28 private: |
29 // ui::demo::MusDemo: | 29 // ui::demo::MusDemo: |
30 void OnStartImpl(std::unique_ptr<aura::WindowTreeClient>* window_tree_client, | 30 void OnStartImpl() final; |
31 std::unique_ptr<WindowTreeData>* window_tree_data) final; | 31 std::unique_ptr<aura::WindowTreeClient> CreateWindowTreeClient() final; |
32 | 32 |
33 // aura::WindowManagerDelegate: | 33 // aura::WindowManagerDelegate: |
34 void SetWindowManagerClient(aura::WindowManagerClient* client) final; | 34 void SetWindowManagerClient(aura::WindowManagerClient* client) final; |
35 bool OnWmSetBounds(aura::Window* window, gfx::Rect* bounds) final; | 35 bool OnWmSetBounds(aura::Window* window, gfx::Rect* bounds) final; |
36 bool OnWmSetProperty(aura::Window* window, | 36 bool OnWmSetProperty(aura::Window* window, |
37 const std::string& name, | 37 const std::string& name, |
38 std::unique_ptr<std::vector<uint8_t>>* new_data) final; | 38 std::unique_ptr<std::vector<uint8_t>>* new_data) final; |
39 void OnWmSetCanFocus(aura::Window* window, bool can_focus) final; | 39 void OnWmSetCanFocus(aura::Window* window, bool can_focus) final; |
40 aura::Window* OnWmCreateTopLevelWindow( | 40 aura::Window* OnWmCreateTopLevelWindow( |
41 ui::mojom::WindowType window_type, | 41 ui::mojom::WindowType window_type, |
(...skipping 19 matching lines...) Expand all Loading... |
61 bool IsWindowActive(aura::Window* window) final; | 61 bool IsWindowActive(aura::Window* window) final; |
62 void OnWmDeactivateWindow(aura::Window* window) final; | 62 void OnWmDeactivateWindow(aura::Window* window) final; |
63 | 63 |
64 DISALLOW_COPY_AND_ASSIGN(MusDemoInternal); | 64 DISALLOW_COPY_AND_ASSIGN(MusDemoInternal); |
65 }; | 65 }; |
66 | 66 |
67 } // namespace demo | 67 } // namespace demo |
68 } // namespace ui | 68 } // namespace ui |
69 | 69 |
70 #endif // SERVICES_UI_DEMO_MUS_DEMO_INTERNAL_H_ | 70 #endif // SERVICES_UI_DEMO_MUS_DEMO_INTERNAL_H_ |
OLD | NEW |