| 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 <set> | 8 #include <set> |
| 9 | 9 |
| 10 #include "ash/shell_observer.h" | 10 #include "ash/shell_observer.h" |
| (...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 100 void AdjustWindowSizeForScreenChange(aura::Window* window, | 100 void AdjustWindowSizeForScreenChange(aura::Window* window, |
| 101 AdjustWindowReason reason); | 101 AdjustWindowReason reason); |
| 102 | 102 |
| 103 // Updates the bounds of the window from a show state change. | 103 // Updates the bounds of the window from a show state change. |
| 104 void UpdateBoundsFromShowState(aura::Window* window); | 104 void UpdateBoundsFromShowState(aura::Window* window); |
| 105 | 105 |
| 106 // If |window| is maximized or fullscreen the bounds of the window are set and | 106 // If |window| is maximized or fullscreen the bounds of the window are set and |
| 107 // true is returned. Does nothing otherwise. | 107 // true is returned. Does nothing otherwise. |
| 108 bool SetMaximizedOrFullscreenBounds(aura::Window* window); | 108 bool SetMaximizedOrFullscreenBounds(aura::Window* window); |
| 109 | 109 |
| 110 // set the bitmask with edges |
| 111 int CalculateStuckEdges(aura::Window* window); |
| 112 |
| 113 // restores stuck state for edges |
| 114 gfx::Rect AdjustWindowBoundsForStuckEdges(aura::Window* window, |
| 115 const gfx::Rect& bounds); |
| 116 |
| 110 WorkspaceManager* workspace_manager(); | 117 WorkspaceManager* workspace_manager(); |
| 111 | 118 |
| 112 aura::RootWindow* root_window_; | 119 aura::RootWindow* root_window_; |
| 113 | 120 |
| 114 Workspace* workspace_; | 121 Workspace* workspace_; |
| 115 | 122 |
| 116 // Set of windows we're listening to. | 123 // Set of windows we're listening to. |
| 117 WindowSet windows_; | 124 WindowSet windows_; |
| 118 | 125 |
| 119 // The work area. Cached to avoid unnecessarily moving windows during a | 126 // The work area. Cached to avoid unnecessarily moving windows during a |
| 120 // workspace switch. | 127 // workspace switch. |
| 121 gfx::Rect work_area_; | 128 gfx::Rect work_area_; |
| 122 | 129 |
| 123 DISALLOW_COPY_AND_ASSIGN(WorkspaceLayoutManager); | 130 DISALLOW_COPY_AND_ASSIGN(WorkspaceLayoutManager); |
| 124 }; | 131 }; |
| 125 | 132 |
| 126 } // namespace internal | 133 } // namespace internal |
| 127 } // namespace ash | 134 } // namespace ash |
| 128 | 135 |
| 129 #endif // ASH_WM_WORKSPACE_WORKSPACE_LAYOUT_MANAGER_H_ | 136 #endif // ASH_WM_WORKSPACE_WORKSPACE_LAYOUT_MANAGER_H_ |
| OLD | NEW |