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

Side by Side Diff: ash/common/root_window_controller_common.h

Issue 2033843003: Makes ash/mus use RootWindowControllerCommon (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@move_mash_wm
Patch Set: merge fail 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/aura/wm_window_aura.cc ('k') | ash/common/shell_window_ids.h » ('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_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_
OLDNEW
« no previous file with comments | « ash/aura/wm_window_aura.cc ('k') | ash/common/shell_window_ids.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698