| OLD | NEW |
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 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_SHELF_SHELF_LAYOUT_MANAGER_H_ | 5 #ifndef ASH_SHELF_SHELF_LAYOUT_MANAGER_H_ |
| 6 #define ASH_SHELF_SHELF_LAYOUT_MANAGER_H_ | 6 #define ASH_SHELF_SHELF_LAYOUT_MANAGER_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "ash/ash_export.h" | 10 #include "ash/ash_export.h" |
| (...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 114 // Returns whether the shelf and its contents (shelf, status) are visible | 114 // Returns whether the shelf and its contents (shelf, status) are visible |
| 115 // on the screen. | 115 // on the screen. |
| 116 bool IsVisible() const; | 116 bool IsVisible() const; |
| 117 | 117 |
| 118 // Returns the ideal bounds of the shelf assuming it is visible. | 118 // Returns the ideal bounds of the shelf assuming it is visible. |
| 119 gfx::Rect GetIdealBounds(); | 119 gfx::Rect GetIdealBounds(); |
| 120 | 120 |
| 121 // Returns the docked area bounds. | 121 // Returns the docked area bounds. |
| 122 const gfx::Rect& dock_bounds() const { return dock_bounds_; } | 122 const gfx::Rect& dock_bounds() const { return dock_bounds_; } |
| 123 | 123 |
| 124 // Returns the bounds within the root window not occupied by the shelf. | |
| 125 const gfx::Rect& non_shelf_bounds() const { return non_shelf_bounds_; } | |
| 126 | |
| 127 // Stops any animations and sets the bounds of the shelf and status | 124 // Stops any animations and sets the bounds of the shelf and status |
| 128 // widgets. | 125 // widgets. |
| 129 void LayoutShelf(); | 126 void LayoutShelf(); |
| 130 | 127 |
| 131 // Returns shelf visibility state based on current value of auto hide | 128 // Returns shelf visibility state based on current value of auto hide |
| 132 // behavior setting. | 129 // behavior setting. |
| 133 ShelfVisibilityState CalculateShelfVisibility(); | 130 ShelfVisibilityState CalculateShelfVisibility(); |
| 134 | 131 |
| 135 // Updates the visibility state. | 132 // Updates the visibility state. |
| 136 void UpdateVisibilityState(); | 133 void UpdateVisibilityState(); |
| (...skipping 258 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 395 | 392 |
| 396 // Used to delay updating shelf background. | 393 // Used to delay updating shelf background. |
| 397 UpdateShelfObserver* update_shelf_observer_; | 394 UpdateShelfObserver* update_shelf_observer_; |
| 398 | 395 |
| 399 // The bounds of the keyboard. | 396 // The bounds of the keyboard. |
| 400 gfx::Rect keyboard_bounds_; | 397 gfx::Rect keyboard_bounds_; |
| 401 | 398 |
| 402 // The bounds of the dock. | 399 // The bounds of the dock. |
| 403 gfx::Rect dock_bounds_; | 400 gfx::Rect dock_bounds_; |
| 404 | 401 |
| 405 // The bounds within the root window not occupied by the shelf. | |
| 406 gfx::Rect non_shelf_bounds_; | |
| 407 | |
| 408 // The show hide animation duration override or 0 for default. | 402 // The show hide animation duration override or 0 for default. |
| 409 int duration_override_in_ms_; | 403 int duration_override_in_ms_; |
| 410 | 404 |
| 411 DISALLOW_COPY_AND_ASSIGN(ShelfLayoutManager); | 405 DISALLOW_COPY_AND_ASSIGN(ShelfLayoutManager); |
| 412 }; | 406 }; |
| 413 | 407 |
| 414 } // namespace ash | 408 } // namespace ash |
| 415 | 409 |
| 416 #endif // ASH_SHELF_SHELF_LAYOUT_MANAGER_H_ | 410 #endif // ASH_SHELF_SHELF_LAYOUT_MANAGER_H_ |
| OLD | NEW |