Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(191)

Side by Side Diff: ash/mus/root_window_controller.h

Issue 2297893002: Merges RootWindowControllerCommon into WmRootWindowController (Closed)
Patch Set: feedback Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ash/mus/bridge/wm_root_window_controller_mus.cc ('k') | ash/mus/root_window_controller.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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/public/interfaces/container.mojom.h" 11 #include "ash/public/interfaces/container.mojom.h"
12 #include "services/ui/public/cpp/window_observer.h" 12 #include "services/ui/public/cpp/window_observer.h"
13 #include "services/ui/public/interfaces/window_manager_constants.mojom.h" 13 #include "services/ui/public/interfaces/window_manager_constants.mojom.h"
14 #include "ui/display/display.h" 14 #include "ui/display/display.h"
15 15
16 namespace shell { 16 namespace shell {
17 class Connector; 17 class Connector;
18 } 18 }
19 19
20 namespace ash { 20 namespace ash {
21 21
22 class AlwaysOnTopController; 22 class AlwaysOnTopController;
23 class RootWindowControllerCommon;
24 class WorkspaceLayoutManager; 23 class WorkspaceLayoutManager;
25 24
26 namespace mus { 25 namespace mus {
27 26
28 class LayoutManager; 27 class LayoutManager;
29 class WindowManager; 28 class WindowManager;
30 class WmRootWindowControllerMus; 29 class WmRootWindowControllerMus;
31 class WmShelfMus; 30 class WmShelfMus;
32 class WmTestBase; 31 class WmTestBase;
33 class WmTestHelper; 32 class WmTestHelper;
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 77
79 // Creates the necessary set of layout managers in the shell windows. 78 // Creates the necessary set of layout managers in the shell windows.
80 void CreateLayoutManagers(); 79 void CreateLayoutManagers();
81 80
82 WindowManager* window_manager_; 81 WindowManager* window_manager_;
83 ui::Window* root_; 82 ui::Window* root_;
84 int window_count_ = 0; 83 int window_count_ = 0;
85 84
86 display::Display display_; 85 display::Display display_;
87 86
88 std::unique_ptr<RootWindowControllerCommon> root_window_controller_common_;
89
90 std::unique_ptr<WmRootWindowControllerMus> wm_root_window_controller_; 87 std::unique_ptr<WmRootWindowControllerMus> wm_root_window_controller_;
91 std::unique_ptr<WmShelfMus> wm_shelf_; 88 std::unique_ptr<WmShelfMus> wm_shelf_;
92 89
93 // Owned by the corresponding container. 90 // Owned by the corresponding container.
94 WorkspaceLayoutManager* workspace_layout_manager_ = nullptr; 91 WorkspaceLayoutManager* workspace_layout_manager_ = nullptr;
95 std::map<ui::Window*, std::unique_ptr<LayoutManager>> layout_managers_; 92 std::map<ui::Window*, std::unique_ptr<LayoutManager>> layout_managers_;
96 93
97 std::unique_ptr<AlwaysOnTopController> always_on_top_controller_; 94 std::unique_ptr<AlwaysOnTopController> always_on_top_controller_;
98 95
99 std::unique_ptr<DisconnectedAppHandler> disconnected_app_handler_; 96 std::unique_ptr<DisconnectedAppHandler> disconnected_app_handler_;
100 97
101 DISALLOW_COPY_AND_ASSIGN(RootWindowController); 98 DISALLOW_COPY_AND_ASSIGN(RootWindowController);
102 }; 99 };
103 100
104 } // namespace mus 101 } // namespace mus
105 } // namespace ash 102 } // namespace ash
106 103
107 #endif // ASH_MUS_ROOT_WINDOW_CONTROLLER_H_ 104 #endif // ASH_MUS_ROOT_WINDOW_CONTROLLER_H_
OLDNEW
« no previous file with comments | « ash/mus/bridge/wm_root_window_controller_mus.cc ('k') | ash/mus/root_window_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698