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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 | 53 |
54 // Overriden from WindowObserver: | 54 // Overriden from WindowObserver: |
55 virtual void OnWindowPropertyChanged(aura::Window* window, | 55 virtual void OnWindowPropertyChanged(aura::Window* window, |
56 const void* key, | 56 const void* key, |
57 intptr_t old) OVERRIDE; | 57 intptr_t old) OVERRIDE; |
58 | 58 |
59 private: | 59 private: |
60 // Overridden from BaseLayoutManager: | 60 // Overridden from BaseLayoutManager: |
61 virtual void ShowStateChanged(aura::Window* window, | 61 virtual void ShowStateChanged(aura::Window* window, |
62 ui::WindowShowState last_show_state) OVERRIDE; | 62 ui::WindowShowState last_show_state) OVERRIDE; |
63 virtual void AdjustWindowSizesForScreenChange( | 63 virtual void AdjustWindowsBoundsForWorkAreaChange( |
64 AdjustWindowReason reason) OVERRIDE; | 64 AdjustWindowReason reason) OVERRIDE; |
65 virtual void AdjustWindowSizeForScreenChange( | 65 virtual void AdjustWindowBounds(aura::Window* window, |
66 aura::Window* window, | 66 AdjustWindowReason reason) OVERRIDE; |
67 AdjustWindowReason reason) OVERRIDE; | |
68 | 67 |
69 void UpdateDesktopVisibility(); | 68 void UpdateDesktopVisibility(); |
70 | 69 |
71 // Updates the bounds of the window from a show state change. | 70 // Updates the bounds of the window from a show state change. |
72 void UpdateBoundsFromShowState(aura::Window* window); | 71 void UpdateBoundsFromShowState(aura::Window* window); |
73 | 72 |
74 // If |window| is maximized or fullscreen the bounds of the window are set and | 73 // If |window| is maximized or fullscreen the bounds of the window are set and |
75 // true is returned. Does nothing otherwise. | 74 // true is returned. Does nothing otherwise. |
76 bool SetMaximizedOrFullscreenBounds(aura::Window* window); | 75 bool SetMaximizedOrFullscreenBounds(aura::Window* window); |
77 | 76 |
78 internal::ShelfLayoutManager* shelf_; | 77 internal::ShelfLayoutManager* shelf_; |
79 aura::Window* window_; | 78 aura::Window* window_; |
80 | 79 |
81 // The work area. Cached to avoid unnecessarily moving windows during a | 80 // The work area. Cached to avoid unnecessarily moving windows during a |
82 // workspace switch. | 81 // workspace switch. |
83 gfx::Rect work_area_; | 82 gfx::Rect work_area_; |
84 | 83 |
85 DISALLOW_COPY_AND_ASSIGN(WorkspaceLayoutManager); | 84 DISALLOW_COPY_AND_ASSIGN(WorkspaceLayoutManager); |
86 }; | 85 }; |
87 | 86 |
88 } // namespace internal | 87 } // namespace internal |
89 } // namespace ash | 88 } // namespace ash |
90 | 89 |
91 #endif // ASH_WM_WORKSPACE_WORKSPACE_LAYOUT_MANAGER_H_ | 90 #endif // ASH_WM_WORKSPACE_WORKSPACE_LAYOUT_MANAGER_H_ |
OLD | NEW |