| 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_MUS_ROOT_WINDOW_CONTROLLER_H_ | 5 #ifndef ASH_MUS_ROOT_WINDOW_CONTROLLER_H_ |
| 6 #define ASH_MUS_ROOT_WINDOW_CONTROLLER_H_ | 6 #define ASH_MUS_ROOT_WINDOW_CONTROLLER_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "ash/mus/disconnected_app_handler.h" | 10 #include "ash/mus/disconnected_app_handler.h" |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 namespace gfx { | 21 namespace gfx { |
| 22 class Insets; | 22 class Insets; |
| 23 } | 23 } |
| 24 | 24 |
| 25 namespace service_manager { | 25 namespace service_manager { |
| 26 class Connector; | 26 class Connector; |
| 27 } | 27 } |
| 28 | 28 |
| 29 namespace ash { | 29 namespace ash { |
| 30 | 30 |
| 31 class WmShelf; |
| 32 |
| 31 namespace mus { | 33 namespace mus { |
| 32 | 34 |
| 33 class WindowManager; | 35 class WindowManager; |
| 34 class WmRootWindowControllerMus; | 36 class WmRootWindowControllerMus; |
| 35 class WmShelfMus; | |
| 36 class WmTestBase; | 37 class WmTestBase; |
| 37 class WmTestHelper; | 38 class WmTestHelper; |
| 38 class WmWindowMus; | 39 class WmWindowMus; |
| 39 | 40 |
| 40 // RootWindowController manages the windows and state for a single display. | 41 // RootWindowController manages the windows and state for a single display. |
| 41 // RootWindowController takes ownership of the WindowTreeHostMus that it passed | 42 // RootWindowController takes ownership of the WindowTreeHostMus that it passed |
| 42 // to it. | 43 // to it. |
| 43 class RootWindowController { | 44 class RootWindowController { |
| 44 public: | 45 public: |
| 45 RootWindowController( | 46 RootWindowController( |
| (...skipping 22 matching lines...) Expand all Loading... |
| 68 void SetDisplay(const display::Display& display); | 69 void SetDisplay(const display::Display& display); |
| 69 | 70 |
| 70 WindowManager* window_manager() { return window_manager_; } | 71 WindowManager* window_manager() { return window_manager_; } |
| 71 | 72 |
| 72 aura::WindowTreeHostMus* window_tree_host() { | 73 aura::WindowTreeHostMus* window_tree_host() { |
| 73 return window_tree_host_.get(); | 74 return window_tree_host_.get(); |
| 74 } | 75 } |
| 75 | 76 |
| 76 const display::Display& display() const { return display_; } | 77 const display::Display& display() const { return display_; } |
| 77 | 78 |
| 78 WmShelfMus* wm_shelf() { return wm_shelf_.get(); } | 79 WmShelf* wm_shelf() { return wm_shelf_.get(); } |
| 79 | 80 |
| 80 private: | 81 private: |
| 81 friend class WmTestBase; | 82 friend class WmTestBase; |
| 82 friend class WmTestHelper; | 83 friend class WmTestHelper; |
| 83 | 84 |
| 84 gfx::Rect CalculateDefaultBounds( | 85 gfx::Rect CalculateDefaultBounds( |
| 85 aura::Window* container_window, | 86 aura::Window* container_window, |
| 86 const std::map<std::string, std::vector<uint8_t>>* properties) const; | 87 const std::map<std::string, std::vector<uint8_t>>* properties) const; |
| 87 gfx::Rect GetMaximizedWindowBounds() const; | 88 gfx::Rect GetMaximizedWindowBounds() const; |
| 88 | 89 |
| 89 WindowManager* window_manager_; | 90 WindowManager* window_manager_; |
| 90 std::unique_ptr<aura::WindowTreeHostMus> window_tree_host_; | 91 std::unique_ptr<aura::WindowTreeHostMus> window_tree_host_; |
| 91 int window_count_ = 0; | 92 int window_count_ = 0; |
| 92 | 93 |
| 93 display::Display display_; | 94 display::Display display_; |
| 94 | 95 |
| 95 std::unique_ptr<WmRootWindowControllerMus> wm_root_window_controller_; | 96 std::unique_ptr<WmRootWindowControllerMus> wm_root_window_controller_; |
| 96 std::unique_ptr<WmShelfMus> wm_shelf_; | 97 std::unique_ptr<WmShelf> wm_shelf_; |
| 97 | 98 |
| 98 std::unique_ptr<aura::client::WindowParentingClient> parenting_client_; | 99 std::unique_ptr<aura::client::WindowParentingClient> parenting_client_; |
| 99 | 100 |
| 100 std::unique_ptr<DisconnectedAppHandler> disconnected_app_handler_; | 101 std::unique_ptr<DisconnectedAppHandler> disconnected_app_handler_; |
| 101 | 102 |
| 102 DISALLOW_COPY_AND_ASSIGN(RootWindowController); | 103 DISALLOW_COPY_AND_ASSIGN(RootWindowController); |
| 103 }; | 104 }; |
| 104 | 105 |
| 105 } // namespace mus | 106 } // namespace mus |
| 106 } // namespace ash | 107 } // namespace ash |
| 107 | 108 |
| 108 #endif // ASH_MUS_ROOT_WINDOW_CONTROLLER_H_ | 109 #endif // ASH_MUS_ROOT_WINDOW_CONTROLLER_H_ |
| OLD | NEW |