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

Side by Side Diff: ash/common/root_window_controller_common.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/aura/wm_root_window_controller_aura.cc ('k') | ash/common/root_window_controller_common.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef ASH_COMMON_ROOT_WINDOW_CONTROLLER_COMMON_H_
6 #define ASH_COMMON_ROOT_WINDOW_CONTROLLER_COMMON_H_
7
8 #include <memory>
9
10 #include "ash/ash_export.h"
11 #include "base/macros.h"
12
13 namespace ash {
14
15 class WmWindow;
16 class WorkspaceController;
17
18 namespace wm {
19 class RootWindowLayoutManager;
20 }
21
22 // This will eventually become what is RootWindowController. During the
23 // transition it contains code used by both the aura and mus implementations.
24 // It should *not* contain any aura specific code.
25 class ASH_EXPORT RootWindowControllerCommon {
26 public:
27 explicit RootWindowControllerCommon(WmWindow* root);
28 ~RootWindowControllerCommon();
29
30 // Creates the containers (WmWindows) used by the shell.
31 void CreateContainers();
32
33 // Creates the LayoutManagers for the windows created by CreateContainers().
34 void CreateLayoutManagers();
35
36 void DeleteWorkspaceController();
37
38 wm::RootWindowLayoutManager* root_window_layout() {
39 return root_window_layout_;
40 }
41
42 WorkspaceController* workspace_controller() {
43 return workspace_controller_.get();
44 }
45
46 private:
47 WmWindow* root_;
48
49 wm::RootWindowLayoutManager* root_window_layout_;
50
51 std::unique_ptr<WorkspaceController> workspace_controller_;
52
53 DISALLOW_COPY_AND_ASSIGN(RootWindowControllerCommon);
54 };
55
56 } // namespace ash
57
58 #endif // ASH_COMMON_ROOT_WINDOW_CONTROLLER_COMMON_H_
OLDNEW
« no previous file with comments | « ash/aura/wm_root_window_controller_aura.cc ('k') | ash/common/root_window_controller_common.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698