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 MASH_WM_ROOT_WINDOW_CONTROLLER_H_ | 5 #ifndef MASH_WM_ROOT_WINDOW_CONTROLLER_H_ |
6 #define MASH_WM_ROOT_WINDOW_CONTROLLER_H_ | 6 #define MASH_WM_ROOT_WINDOW_CONTROLLER_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 | 9 |
10 #include "components/mus/public/cpp/window_observer.h" | 10 #include "components/mus/public/cpp/window_observer.h" |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 | 70 |
71 private: | 71 private: |
72 explicit RootWindowController(WindowManagerApplication* app); | 72 explicit RootWindowController(WindowManagerApplication* app); |
73 ~RootWindowController() override; | 73 ~RootWindowController() override; |
74 | 74 |
75 void AddAccelerators(); | 75 void AddAccelerators(); |
76 | 76 |
77 // WindowTreeDelegate: | 77 // WindowTreeDelegate: |
78 void OnEmbed(mus::Window* root) override; | 78 void OnEmbed(mus::Window* root) override; |
79 void OnConnectionLost(mus::WindowTreeConnection* connection) override; | 79 void OnConnectionLost(mus::WindowTreeConnection* connection) override; |
| 80 void OnEventObserved(const ui::Event& event) override; |
80 | 81 |
81 // mus::WindowObserver: | 82 // mus::WindowObserver: |
82 void OnWindowDestroyed(mus::Window* window) override; | 83 void OnWindowDestroyed(mus::Window* window) override; |
83 | 84 |
84 // Sets up the window containers used for z-space management. | 85 // Sets up the window containers used for z-space management. |
85 void CreateContainer(mash::wm::mojom::Container container, | 86 void CreateContainer(mash::wm::mojom::Container container, |
86 mash::wm::mojom::Container parent_container); | 87 mash::wm::mojom::Container parent_container); |
87 void CreateContainers(); | 88 void CreateContainers(); |
88 | 89 |
89 WindowManagerApplication* app_; | 90 WindowManagerApplication* app_; |
90 mus::Window* root_; | 91 mus::Window* root_; |
91 int window_count_; | 92 int window_count_; |
92 | 93 |
93 std::unique_ptr<WindowManager> window_manager_; | 94 std::unique_ptr<WindowManager> window_manager_; |
94 | 95 |
95 std::map<mus::Window*, std::unique_ptr<LayoutManager>> layout_manager_; | 96 std::map<mus::Window*, std::unique_ptr<LayoutManager>> layout_manager_; |
96 | 97 |
97 std::unique_ptr<ShadowController> shadow_controller_; | 98 std::unique_ptr<ShadowController> shadow_controller_; |
98 | 99 |
99 mus::mojom::DisplayPtr display_; | 100 mus::mojom::DisplayPtr display_; |
100 | 101 |
101 DISALLOW_COPY_AND_ASSIGN(RootWindowController); | 102 DISALLOW_COPY_AND_ASSIGN(RootWindowController); |
102 }; | 103 }; |
103 | 104 |
104 } // namespace wm | 105 } // namespace wm |
105 } // namespace mash | 106 } // namespace mash |
106 | 107 |
107 #endif // MASH_WM_ROOT_WINDOW_CONTROLLER_H_ | 108 #endif // MASH_WM_ROOT_WINDOW_CONTROLLER_H_ |
OLD | NEW |