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 207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
218 (visibility_state != SHELF_AUTO_HIDE || | 218 (visibility_state != SHELF_AUTO_HIDE || |
219 other.auto_hide_state == auto_hide_state) && | 219 other.auto_hide_state == auto_hide_state) && |
220 other.is_screen_locked == is_screen_locked; | 220 other.is_screen_locked == is_screen_locked; |
221 } | 221 } |
222 | 222 |
223 ShelfVisibilityState visibility_state; | 223 ShelfVisibilityState visibility_state; |
224 ShelfAutoHideState auto_hide_state; | 224 ShelfAutoHideState auto_hide_state; |
225 bool is_screen_locked; | 225 bool is_screen_locked; |
226 }; | 226 }; |
227 | 227 |
| 228 // Returns shelf visibility state based on current value of auto hide |
| 229 // behavior setting. |
| 230 ShelfVisibilityState GetShelfVisibilityState(); |
| 231 |
228 // Sets the visibility of the shelf to |state|. | 232 // Sets the visibility of the shelf to |state|. |
229 void SetState(ShelfVisibilityState visibility_state); | 233 void SetState(ShelfVisibilityState visibility_state); |
230 | 234 |
231 // Stops any animations. | 235 // Stops any animations. |
232 void StopAnimating(); | 236 void StopAnimating(); |
233 | 237 |
234 // Returns the width (if aligned to the side) or height (if aligned to the | 238 // Returns the width (if aligned to the side) or height (if aligned to the |
235 // bottom). | 239 // bottom). |
236 void GetShelfSize(int* width, int* height); | 240 void GetShelfSize(int* width, int* height); |
237 | 241 |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
321 // Used to delay updating shelf background. | 325 // Used to delay updating shelf background. |
322 UpdateShelfObserver* update_shelf_observer_; | 326 UpdateShelfObserver* update_shelf_observer_; |
323 | 327 |
324 DISALLOW_COPY_AND_ASSIGN(ShelfLayoutManager); | 328 DISALLOW_COPY_AND_ASSIGN(ShelfLayoutManager); |
325 }; | 329 }; |
326 | 330 |
327 } // namespace internal | 331 } // namespace internal |
328 } // namespace ash | 332 } // namespace ash |
329 | 333 |
330 #endif // ASH_WM_SHELF_LAYOUT_MANAGER_H_ | 334 #endif // ASH_WM_SHELF_LAYOUT_MANAGER_H_ |
OLD | NEW |