| 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_WORKSPACE_WORKSPACE_LAYOUT_MANAGER_H_ | 5 #ifndef ASH_WM_WORKSPACE_WORKSPACE_LAYOUT_MANAGER_H_ |
| 6 #define ASH_WM_WORKSPACE_WORKSPACE_LAYOUT_MANAGER_H_ | 6 #define ASH_WM_WORKSPACE_WORKSPACE_LAYOUT_MANAGER_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <set> | 9 #include <set> |
| 10 | 10 |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 #include "ui/keyboard/keyboard_controller_observer.h" | 21 #include "ui/keyboard/keyboard_controller_observer.h" |
| 22 #include "ui/wm/public/activation_change_observer.h" | 22 #include "ui/wm/public/activation_change_observer.h" |
| 23 | 23 |
| 24 namespace keyboard { | 24 namespace keyboard { |
| 25 class KeyboardController; | 25 class KeyboardController; |
| 26 } | 26 } |
| 27 | 27 |
| 28 namespace ash { | 28 namespace ash { |
| 29 | 29 |
| 30 class RootWindowController; | 30 class RootWindowController; |
| 31 class WmShell; | |
| 32 class WmWindow; | 31 class WmWindow; |
| 33 class WorkspaceLayoutManagerBackdropDelegate; | 32 class WorkspaceLayoutManagerBackdropDelegate; |
| 34 | 33 |
| 35 namespace wm { | 34 namespace wm { |
| 36 class WMEvent; | 35 class WMEvent; |
| 37 } | 36 } |
| 38 | 37 |
| 39 // LayoutManager used on the window created for a workspace. | 38 // LayoutManager used on the window created for a workspace. |
| 40 class ASH_EXPORT WorkspaceLayoutManager | 39 class ASH_EXPORT WorkspaceLayoutManager |
| 41 : public WmLayoutManager, | 40 : public WmLayoutManager, |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 119 // has changed. | 118 // has changed. |
| 120 void UpdateFullscreenState(); | 119 void UpdateFullscreenState(); |
| 121 | 120 |
| 122 // Updates the always-on-top state for windows managed by this layout | 121 // Updates the always-on-top state for windows managed by this layout |
| 123 // manager. | 122 // manager. |
| 124 void UpdateAlwaysOnTop(WmWindow* window_on_top); | 123 void UpdateAlwaysOnTop(WmWindow* window_on_top); |
| 125 | 124 |
| 126 WmWindow* window_; | 125 WmWindow* window_; |
| 127 WmWindow* root_window_; | 126 WmWindow* root_window_; |
| 128 RootWindowController* root_window_controller_; | 127 RootWindowController* root_window_controller_; |
| 129 WmShell* shell_; | |
| 130 | 128 |
| 131 // Set of windows we're listening to. | 129 // Set of windows we're listening to. |
| 132 WindowSet windows_; | 130 WindowSet windows_; |
| 133 | 131 |
| 134 // The work area in the coordinates of |window_|. | 132 // The work area in the coordinates of |window_|. |
| 135 gfx::Rect work_area_in_parent_; | 133 gfx::Rect work_area_in_parent_; |
| 136 | 134 |
| 137 // True if this workspace is currently in fullscreen mode. | 135 // True if this workspace is currently in fullscreen mode. |
| 138 bool is_fullscreen_; | 136 bool is_fullscreen_; |
| 139 | 137 |
| 140 // A window which covers the full container and which gets inserted behind the | 138 // A window which covers the full container and which gets inserted behind the |
| 141 // topmost visible window. | 139 // topmost visible window. |
| 142 std::unique_ptr<WorkspaceLayoutManagerBackdropDelegate> backdrop_delegate_; | 140 std::unique_ptr<WorkspaceLayoutManagerBackdropDelegate> backdrop_delegate_; |
| 143 | 141 |
| 144 ScopedObserver<keyboard::KeyboardController, | 142 ScopedObserver<keyboard::KeyboardController, |
| 145 keyboard::KeyboardControllerObserver> | 143 keyboard::KeyboardControllerObserver> |
| 146 keyboard_observer_; | 144 keyboard_observer_; |
| 147 | 145 |
| 148 DISALLOW_COPY_AND_ASSIGN(WorkspaceLayoutManager); | 146 DISALLOW_COPY_AND_ASSIGN(WorkspaceLayoutManager); |
| 149 }; | 147 }; |
| 150 | 148 |
| 151 } // namespace ash | 149 } // namespace ash |
| 152 | 150 |
| 153 #endif // ASH_WM_WORKSPACE_WORKSPACE_LAYOUT_MANAGER_H_ | 151 #endif // ASH_WM_WORKSPACE_WORKSPACE_LAYOUT_MANAGER_H_ |
| OLD | NEW |