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 ASH_MUS_ROOT_WINDOW_CONTROLLER_H_ | 5 #ifndef ASH_MUS_ROOT_WINDOW_CONTROLLER_H_ |
6 #define ASH_MUS_ROOT_WINDOW_CONTROLLER_H_ | 6 #define ASH_MUS_ROOT_WINDOW_CONTROLLER_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 | 9 |
10 #include "ash/mus/disconnected_app_handler.h" | 10 #include "ash/mus/disconnected_app_handler.h" |
11 #include "ash/mus/shelf_layout_manager_delegate.h" | 11 #include "ash/mus/shelf_layout_manager_delegate.h" |
12 #include "ash/public/interfaces/container.mojom.h" | 12 #include "ash/public/interfaces/container.mojom.h" |
13 #include "services/ui/public/cpp/window_observer.h" | 13 #include "services/ui/public/cpp/window_observer.h" |
14 #include "services/ui/public/interfaces/window_manager_constants.mojom.h" | 14 #include "services/ui/public/interfaces/window_manager_constants.mojom.h" |
15 #include "ui/display/display.h" | 15 #include "ui/display/display.h" |
16 | 16 |
17 namespace shell { | 17 namespace shell { |
18 class Connector; | 18 class Connector; |
19 } | 19 } |
20 | 20 |
21 namespace ash { | 21 namespace ash { |
22 | 22 |
23 class AlwaysOnTopController; | 23 class AlwaysOnTopController; |
24 class RootWindowControllerCommon; | 24 class RootWindowControllerCommon; |
25 class WorkspaceLayoutManager; | 25 class WorkspaceLayoutManager; |
26 | 26 |
27 namespace mus { | 27 namespace mus { |
28 | 28 |
29 class LayoutManager; | 29 class LayoutManager; |
30 class ShelfLayoutManager; | |
31 class StatusLayoutManager; | |
32 class WindowManager; | 30 class WindowManager; |
33 class WmRootWindowControllerMus; | 31 class WmRootWindowControllerMus; |
34 class WmShelfMus; | 32 class WmShelfMus; |
35 class WmTestBase; | 33 class WmTestBase; |
36 class WmTestHelper; | 34 class WmTestHelper; |
37 class WmWindowMus; | 35 class WmWindowMus; |
38 | 36 |
39 // RootWindowController manages the windows and state for a single display. | 37 // RootWindowController manages the windows and state for a single display. |
40 // RootWindowController is tied to the lifetime of the ui::Window it is | 38 // RootWindowController is tied to the lifetime of the ui::Window it is |
41 // created with. It is assumed the RootWindowController is deleted once the | 39 // created with. It is assumed the RootWindowController is deleted once the |
(...skipping 15 matching lines...) Expand all Loading... |
57 std::map<std::string, std::vector<uint8_t>>* properties); | 55 std::map<std::string, std::vector<uint8_t>>* properties); |
58 | 56 |
59 ui::Window* GetWindowForContainer(mojom::Container container); | 57 ui::Window* GetWindowForContainer(mojom::Container container); |
60 | 58 |
61 WmWindowMus* GetWindowByShellWindowId(int id); | 59 WmWindowMus* GetWindowByShellWindowId(int id); |
62 | 60 |
63 WindowManager* window_manager() { return window_manager_; } | 61 WindowManager* window_manager() { return window_manager_; } |
64 | 62 |
65 const display::Display& display() const { return display_; } | 63 const display::Display& display() const { return display_; } |
66 | 64 |
67 ShelfLayoutManager* GetShelfLayoutManager(); | |
68 StatusLayoutManager* GetStatusLayoutManager(); | |
69 WorkspaceLayoutManager* workspace_layout_manager() { | 65 WorkspaceLayoutManager* workspace_layout_manager() { |
70 return workspace_layout_manager_; | 66 return workspace_layout_manager_; |
71 } | 67 } |
72 | 68 |
73 AlwaysOnTopController* always_on_top_controller() { | 69 AlwaysOnTopController* always_on_top_controller() { |
74 return always_on_top_controller_.get(); | 70 return always_on_top_controller_.get(); |
75 } | 71 } |
76 | 72 |
77 WmShelfMus* wm_shelf() { return wm_shelf_.get(); } | 73 WmShelfMus* wm_shelf() { return wm_shelf_.get(); } |
78 | 74 |
(...skipping 29 matching lines...) Expand all Loading... |
108 | 104 |
109 std::unique_ptr<DisconnectedAppHandler> disconnected_app_handler_; | 105 std::unique_ptr<DisconnectedAppHandler> disconnected_app_handler_; |
110 | 106 |
111 DISALLOW_COPY_AND_ASSIGN(RootWindowController); | 107 DISALLOW_COPY_AND_ASSIGN(RootWindowController); |
112 }; | 108 }; |
113 | 109 |
114 } // namespace mus | 110 } // namespace mus |
115 } // namespace ash | 111 } // namespace ash |
116 | 112 |
117 #endif // ASH_MUS_ROOT_WINDOW_CONTROLLER_H_ | 113 #endif // ASH_MUS_ROOT_WINDOW_CONTROLLER_H_ |
OLD | NEW |