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_SHELF_LAYOUT_MANAGER_H_ | 5 #ifndef ASH_WM_SHELF_LAYOUT_MANAGER_H_ |
6 #define ASH_WM_SHELF_LAYOUT_MANAGER_H_ | 6 #define ASH_WM_SHELF_LAYOUT_MANAGER_H_ |
7 | 7 |
8 #include "ash/ash_export.h" | 8 #include "ash/ash_export.h" |
9 #include "ash/launcher/launcher.h" | 9 #include "ash/launcher/launcher.h" |
10 #include "ash/shell_observer.h" | 10 #include "ash/shell_observer.h" |
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
207 (visibility_state != AUTO_HIDE || | 207 (visibility_state != AUTO_HIDE || |
208 other.auto_hide_state == auto_hide_state) && | 208 other.auto_hide_state == auto_hide_state) && |
209 other.is_screen_locked == is_screen_locked; | 209 other.is_screen_locked == is_screen_locked; |
210 } | 210 } |
211 | 211 |
212 VisibilityState visibility_state; | 212 VisibilityState visibility_state; |
213 AutoHideState auto_hide_state; | 213 AutoHideState auto_hide_state; |
214 bool is_screen_locked; | 214 bool is_screen_locked; |
215 }; | 215 }; |
216 | 216 |
217 // Returns the bounds the specified window should be when maximized. | 217 // Returns the bounds the work area of |window|. |
218 gfx::Rect GetMaximizedWindowBounds(aura::Window* window); | 218 gfx::Rect GetWorkAreaBounds(aura::Window* window); |
219 gfx::Rect GetUnmaximizedWorkAreaBounds(aura::Window* window); | |
220 | 219 |
221 // Sets the visibility of the shelf to |state|. | 220 // Sets the visibility of the shelf to |state|. |
222 void SetState(VisibilityState visibility_state); | 221 void SetState(VisibilityState visibility_state); |
223 | 222 |
224 // Stops any animations. | 223 // Stops any animations. |
225 void StopAnimating(); | 224 void StopAnimating(); |
226 | 225 |
227 // Returns the width (if aligned to the side) or height (if aligned to the | 226 // Returns the width (if aligned to the side) or height (if aligned to the |
228 // bottom). | 227 // bottom). |
229 void GetShelfSize(int* width, int* height); | 228 void GetShelfSize(int* width, int* height); |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
317 // Used to delay updating shelf background. | 316 // Used to delay updating shelf background. |
318 UpdateShelfObserver* update_shelf_observer_; | 317 UpdateShelfObserver* update_shelf_observer_; |
319 | 318 |
320 DISALLOW_COPY_AND_ASSIGN(ShelfLayoutManager); | 319 DISALLOW_COPY_AND_ASSIGN(ShelfLayoutManager); |
321 }; | 320 }; |
322 | 321 |
323 } // namespace internal | 322 } // namespace internal |
324 } // namespace ash | 323 } // namespace ash |
325 | 324 |
326 #endif // ASH_WM_SHELF_LAYOUT_MANAGER_H_ | 325 #endif // ASH_WM_SHELF_LAYOUT_MANAGER_H_ |
OLD | NEW |