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

Side by Side Diff: ash/root_window_controller_common.h

Issue 2032613002: Converts RootWindowLayoutManager to common types (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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/root_window_controller.cc ('k') | ash/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
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_ROOT_WINDOW_CONTROLLER_COMMON_H_ 5 #ifndef ASH_ROOT_WINDOW_CONTROLLER_COMMON_H_
6 #define ASH_ROOT_WINDOW_CONTROLLER_COMMON_H_ 6 #define ASH_ROOT_WINDOW_CONTROLLER_COMMON_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 9
10 namespace ash { 10 namespace ash {
11 namespace wm { 11 namespace wm {
12 class RootWindowLayoutManager;
12 class WmWindow; 13 class WmWindow;
13 } 14 }
14 15
15 // This will eventually become what is RootWindowController. During the 16 // This will eventually become what is RootWindowController. During the
16 // transition it contains code used by both the aura and mus implementations. 17 // transition it contains code used by both the aura and mus implementations.
17 // It should *not* contain any aura specific code. 18 // It should *not* contain any aura specific code.
18 class RootWindowControllerCommon { 19 class RootWindowControllerCommon {
19 public: 20 public:
20 explicit RootWindowControllerCommon(wm::WmWindow* root); 21 explicit RootWindowControllerCommon(wm::WmWindow* root);
21 ~RootWindowControllerCommon(); 22 ~RootWindowControllerCommon();
22 23
23 // Creates the containers (WmWindows) used by the shell. 24 // Creates the containers (WmWindows) used by the shell.
24 void CreateContainers(); 25 void CreateContainers();
25 26
27 // Creates the LayoutManagers for the windows created by CreateContainers().
28 void CreateLayoutManagers();
29
30 wm::RootWindowLayoutManager* root_window_layout() {
31 return root_window_layout_;
32 }
33
26 private: 34 private:
27 wm::WmWindow* root_; 35 wm::WmWindow* root_;
28 36
37 wm::RootWindowLayoutManager* root_window_layout_;
38
29 DISALLOW_COPY_AND_ASSIGN(RootWindowControllerCommon); 39 DISALLOW_COPY_AND_ASSIGN(RootWindowControllerCommon);
30 }; 40 };
31 41
32 } // namespace ash 42 } // namespace ash
33 43
34 #endif // ASH_ROOT_WINDOW_CONTROLLER_COMMON_H_ 44 #endif // ASH_ROOT_WINDOW_CONTROLLER_COMMON_H_
OLDNEW
« no previous file with comments | « ash/root_window_controller.cc ('k') | ash/root_window_controller_common.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698