| 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/shelf_types.h" | 10 #include "ash/shelf_types.h" |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 101 void SetLauncher(Launcher* launcher); | 101 void SetLauncher(Launcher* launcher); |
| 102 Launcher* launcher() { return launcher_; } | 102 Launcher* launcher() { return launcher_; } |
| 103 | 103 |
| 104 // Returns the ideal bounds of the shelf assuming it is visible. | 104 // Returns the ideal bounds of the shelf assuming it is visible. |
| 105 gfx::Rect GetIdealBounds(); | 105 gfx::Rect GetIdealBounds(); |
| 106 | 106 |
| 107 // Stops any animations and sets the bounds of the launcher and status | 107 // Stops any animations and sets the bounds of the launcher and status |
| 108 // widgets. | 108 // widgets. |
| 109 void LayoutShelf(); | 109 void LayoutShelf(); |
| 110 | 110 |
| 111 // Returns shelf visibility state based on current value of auto hide |
| 112 // behavior setting. |
| 113 ShelfVisibilityState CalculateShelfVisibility(); |
| 114 |
| 115 // Returns shelf visibility state based on current value of auto hide |
| 116 // behavior setting. |
| 117 ShelfVisibilityState CalculateShelfVisibilityWhileDragging(); |
| 118 |
| 111 // Updates the visibility state. | 119 // Updates the visibility state. |
| 112 void UpdateVisibilityState(); | 120 void UpdateVisibilityState(); |
| 113 | 121 |
| 114 // Invoked by the shelf/launcher when the auto-hide state may have changed. | 122 // Invoked by the shelf/launcher when the auto-hide state may have changed. |
| 115 void UpdateAutoHideState(); | 123 void UpdateAutoHideState(); |
| 116 | 124 |
| 117 ShelfVisibilityState visibility_state() const { | 125 ShelfVisibilityState visibility_state() const { |
| 118 return state_.visibility_state; | 126 return state_.visibility_state; |
| 119 } | 127 } |
| 120 ShelfAutoHideState auto_hide_state() const { return state_.auto_hide_state; } | 128 ShelfAutoHideState auto_hide_state() const { return state_.auto_hide_state; } |
| (...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 321 // Used to delay updating shelf background. | 329 // Used to delay updating shelf background. |
| 322 UpdateShelfObserver* update_shelf_observer_; | 330 UpdateShelfObserver* update_shelf_observer_; |
| 323 | 331 |
| 324 DISALLOW_COPY_AND_ASSIGN(ShelfLayoutManager); | 332 DISALLOW_COPY_AND_ASSIGN(ShelfLayoutManager); |
| 325 }; | 333 }; |
| 326 | 334 |
| 327 } // namespace internal | 335 } // namespace internal |
| 328 } // namespace ash | 336 } // namespace ash |
| 329 | 337 |
| 330 #endif // ASH_WM_SHELF_LAYOUT_MANAGER_H_ | 338 #endif // ASH_WM_SHELF_LAYOUT_MANAGER_H_ |
| OLD | NEW |