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