| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_WM_COMMON_WORKSPACE_WORKSPACE_LAYOUT_MANAGER_H_ | 5 #ifndef ASH_WM_COMMON_WORKSPACE_WORKSPACE_LAYOUT_MANAGER_H_ |
| 6 #define ASH_WM_COMMON_WORKSPACE_WORKSPACE_LAYOUT_MANAGER_H_ | 6 #define ASH_WM_COMMON_WORKSPACE_WORKSPACE_LAYOUT_MANAGER_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <set> | 9 #include <set> |
| 10 | 10 |
| 11 #include "ash/ash_export.h" | 11 #include "ash/wm/common/ash_wm_common_export.h" |
| 12 #include "ash/wm/common/window_state_observer.h" | 12 #include "ash/wm/common/window_state_observer.h" |
| 13 #include "ash/wm/common/wm_activation_observer.h" | 13 #include "ash/wm/common/wm_activation_observer.h" |
| 14 #include "ash/wm/common/wm_layout_manager.h" | 14 #include "ash/wm/common/wm_layout_manager.h" |
| 15 #include "ash/wm/common/wm_root_window_controller_observer.h" | 15 #include "ash/wm/common/wm_root_window_controller_observer.h" |
| 16 #include "ash/wm/common/wm_types.h" | 16 #include "ash/wm/common/wm_types.h" |
| 17 #include "ash/wm/common/wm_window_observer.h" | 17 #include "ash/wm/common/wm_window_observer.h" |
| 18 #include "base/macros.h" | 18 #include "base/macros.h" |
| 19 #include "ui/gfx/geometry/rect.h" | 19 #include "ui/gfx/geometry/rect.h" |
| 20 #include "ui/keyboard/keyboard_controller_observer.h" | 20 #include "ui/keyboard/keyboard_controller_observer.h" |
| 21 | 21 |
| 22 namespace ash { | 22 namespace ash { |
| 23 class WorkspaceLayoutManagerBackdropDelegate; | 23 class WorkspaceLayoutManagerBackdropDelegate; |
| 24 | 24 |
| 25 namespace wm { | 25 namespace wm { |
| 26 class WmGlobals; | 26 class WmGlobals; |
| 27 class WmRootWindowController; | 27 class WmRootWindowController; |
| 28 class WorkspaceLayoutManagerDelegate; | 28 class WorkspaceLayoutManagerDelegate; |
| 29 class WMEvent; | 29 class WMEvent; |
| 30 } | 30 } |
| 31 | 31 |
| 32 // LayoutManager used on the window created for a workspace. | 32 // LayoutManager used on the window created for a workspace. |
| 33 class ASH_EXPORT WorkspaceLayoutManager | 33 class ASH_WM_COMMON_EXPORT WorkspaceLayoutManager |
| 34 : public wm::WmLayoutManager, | 34 : public wm::WmLayoutManager, |
| 35 public wm::WmWindowObserver, | 35 public wm::WmWindowObserver, |
| 36 public wm::WmActivationObserver, | 36 public wm::WmActivationObserver, |
| 37 public keyboard::KeyboardControllerObserver, | 37 public keyboard::KeyboardControllerObserver, |
| 38 public wm::WmRootWindowControllerObserver, | 38 public wm::WmRootWindowControllerObserver, |
| 39 public wm::WindowStateObserver { | 39 public wm::WindowStateObserver { |
| 40 public: | 40 public: |
| 41 WorkspaceLayoutManager( | 41 WorkspaceLayoutManager( |
| 42 wm::WmWindow* window, | 42 wm::WmWindow* window, |
| 43 std::unique_ptr<wm::WorkspaceLayoutManagerDelegate> delegate); | 43 std::unique_ptr<wm::WorkspaceLayoutManagerDelegate> delegate); |
| (...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 140 // A window which covers the full container and which gets inserted behind the | 140 // A window which covers the full container and which gets inserted behind the |
| 141 // topmost visible window. | 141 // topmost visible window. |
| 142 std::unique_ptr<WorkspaceLayoutManagerBackdropDelegate> backdrop_delegate_; | 142 std::unique_ptr<WorkspaceLayoutManagerBackdropDelegate> backdrop_delegate_; |
| 143 | 143 |
| 144 DISALLOW_COPY_AND_ASSIGN(WorkspaceLayoutManager); | 144 DISALLOW_COPY_AND_ASSIGN(WorkspaceLayoutManager); |
| 145 }; | 145 }; |
| 146 | 146 |
| 147 } // namespace ash | 147 } // namespace ash |
| 148 | 148 |
| 149 #endif // ASH_WM_COMMON_WORKSPACE_WORKSPACE_LAYOUT_MANAGER_H_ | 149 #endif // ASH_WM_COMMON_WORKSPACE_WORKSPACE_LAYOUT_MANAGER_H_ |
| OLD | NEW |