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_COMMON_ROOT_WINDOW_CONTROLLER_COMMON_H_ | 5 #ifndef ASH_COMMON_ROOT_WINDOW_CONTROLLER_COMMON_H_ |
6 #define ASH_COMMON_ROOT_WINDOW_CONTROLLER_COMMON_H_ | 6 #define ASH_COMMON_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 |
| 12 class WmWindow; |
| 13 |
11 namespace wm { | 14 namespace wm { |
12 class RootWindowLayoutManager; | 15 class RootWindowLayoutManager; |
13 class WmWindow; | |
14 } | 16 } |
15 | 17 |
16 // This will eventually become what is RootWindowController. During the | 18 // This will eventually become what is RootWindowController. During the |
17 // transition it contains code used by both the aura and mus implementations. | 19 // transition it contains code used by both the aura and mus implementations. |
18 // It should *not* contain any aura specific code. | 20 // It should *not* contain any aura specific code. |
19 class RootWindowControllerCommon { | 21 class RootWindowControllerCommon { |
20 public: | 22 public: |
21 explicit RootWindowControllerCommon(wm::WmWindow* root); | 23 explicit RootWindowControllerCommon(WmWindow* root); |
22 ~RootWindowControllerCommon(); | 24 ~RootWindowControllerCommon(); |
23 | 25 |
24 // Creates the containers (WmWindows) used by the shell. | 26 // Creates the containers (WmWindows) used by the shell. |
25 void CreateContainers(); | 27 void CreateContainers(); |
26 | 28 |
27 // Creates the LayoutManagers for the windows created by CreateContainers(). | 29 // Creates the LayoutManagers for the windows created by CreateContainers(). |
28 void CreateLayoutManagers(); | 30 void CreateLayoutManagers(); |
29 | 31 |
30 wm::RootWindowLayoutManager* root_window_layout() { | 32 wm::RootWindowLayoutManager* root_window_layout() { |
31 return root_window_layout_; | 33 return root_window_layout_; |
32 } | 34 } |
33 | 35 |
34 private: | 36 private: |
35 wm::WmWindow* root_; | 37 WmWindow* root_; |
36 | 38 |
37 wm::RootWindowLayoutManager* root_window_layout_; | 39 wm::RootWindowLayoutManager* root_window_layout_; |
38 | 40 |
39 DISALLOW_COPY_AND_ASSIGN(RootWindowControllerCommon); | 41 DISALLOW_COPY_AND_ASSIGN(RootWindowControllerCommon); |
40 }; | 42 }; |
41 | 43 |
42 } // namespace ash | 44 } // namespace ash |
43 | 45 |
44 #endif // ASH_COMMON_ROOT_WINDOW_CONTROLLER_COMMON_H_ | 46 #endif // ASH_COMMON_ROOT_WINDOW_CONTROLLER_COMMON_H_ |
OLD | NEW |