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" |
11 #include "components/mus/public/cpp/window_tree_delegate.h" | 11 #include "components/mus/public/cpp/window_tree_delegate.h" |
12 #include "components/mus/public/interfaces/window_manager_constants.mojom.h" | 12 #include "components/mus/public/interfaces/window_manager_constants.mojom.h" |
13 #include "components/mus/public/interfaces/window_tree_host.mojom.h" | 13 #include "components/mus/public/interfaces/window_tree_host.mojom.h" |
14 #include "mash/wm/public/interfaces/container.mojom.h" | 14 #include "mash/wm/public/interfaces/container.mojom.h" |
15 #include "mojo/public/cpp/bindings/binding.h" | 15 #include "mojo/public/cpp/bindings/binding.h" |
16 #include "ui/gfx/display.h" | 16 #include "ui/display/display.h" |
17 | 17 |
18 namespace mus { | 18 namespace mus { |
19 class WindowManagerClient; | 19 class WindowManagerClient; |
20 } | 20 } |
21 | 21 |
22 namespace shell { | 22 namespace shell { |
23 class Connector; | 23 class Connector; |
24 } | 24 } |
25 | 25 |
26 namespace ui { | 26 namespace ui { |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 | 61 |
62 mus::Window* GetWindowForContainer(mojom::Container container); | 62 mus::Window* GetWindowForContainer(mojom::Container container); |
63 bool WindowIsContainer(const mus::Window* window) const; | 63 bool WindowIsContainer(const mus::Window* window) const; |
64 | 64 |
65 WindowManager* window_manager() { return window_manager_.get(); } | 65 WindowManager* window_manager() { return window_manager_.get(); } |
66 | 66 |
67 mus::WindowManagerClient* window_manager_client(); | 67 mus::WindowManagerClient* window_manager_client(); |
68 | 68 |
69 void OnAccelerator(uint32_t id, const ui::Event& event); | 69 void OnAccelerator(uint32_t id, const ui::Event& event); |
70 | 70 |
71 const gfx::Display& display() const { return display_; } | 71 const display::Display& display() const { return display_; } |
72 | 72 |
73 ShelfLayoutManager* GetShelfLayoutManager(); | 73 ShelfLayoutManager* GetShelfLayoutManager(); |
74 StatusLayoutManager* GetStatusLayoutManager(); | 74 StatusLayoutManager* GetStatusLayoutManager(); |
75 | 75 |
76 private: | 76 private: |
77 explicit RootWindowController(WindowManagerApplication* app); | 77 explicit RootWindowController(WindowManagerApplication* app); |
78 ~RootWindowController() override; | 78 ~RootWindowController() override; |
79 | 79 |
80 void AddAccelerators(); | 80 void AddAccelerators(); |
81 | 81 |
(...skipping 13 matching lines...) Expand all Loading... |
95 WindowManagerApplication* app_; | 95 WindowManagerApplication* app_; |
96 mus::Window* root_; | 96 mus::Window* root_; |
97 int window_count_; | 97 int window_count_; |
98 | 98 |
99 std::unique_ptr<WindowManager> window_manager_; | 99 std::unique_ptr<WindowManager> window_manager_; |
100 | 100 |
101 std::map<mus::Window*, std::unique_ptr<LayoutManager>> layout_manager_; | 101 std::map<mus::Window*, std::unique_ptr<LayoutManager>> layout_manager_; |
102 | 102 |
103 std::unique_ptr<ShadowController> shadow_controller_; | 103 std::unique_ptr<ShadowController> shadow_controller_; |
104 | 104 |
105 gfx::Display display_; | 105 display::Display display_; |
106 | 106 |
107 DISALLOW_COPY_AND_ASSIGN(RootWindowController); | 107 DISALLOW_COPY_AND_ASSIGN(RootWindowController); |
108 }; | 108 }; |
109 | 109 |
110 } // namespace wm | 110 } // namespace wm |
111 } // namespace mash | 111 } // namespace mash |
112 | 112 |
113 #endif // MASH_WM_ROOT_WINDOW_CONTROLLER_H_ | 113 #endif // MASH_WM_ROOT_WINDOW_CONTROLLER_H_ |
OLD | NEW |