| OLD | NEW |
| (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_ | |
| OLD | NEW |