| 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_SHELF_SHELF_WIDGET_H_ | 5 #ifndef ASH_SHELF_SHELF_WIDGET_H_ |
| 6 #define ASH_SHELF_SHELF_WIDGET_H_ | 6 #define ASH_SHELF_SHELF_WIDGET_H_ |
| 7 | 7 |
| 8 #include "ash/ash_export.h" | 8 #include "ash/ash_export.h" |
| 9 #include "ash/shelf/background_animator.h" | 9 #include "ash/shelf/background_animator.h" |
| 10 #include "ash/shelf/shelf_layout_manager_observer.h" | 10 #include "ash/shelf/shelf_layout_manager_observer.h" |
| (...skipping 27 matching lines...) Expand all Loading... |
| 38 static bool ShelfAlignmentAllowed(); | 38 static bool ShelfAlignmentAllowed(); |
| 39 | 39 |
| 40 void SetAlignment(ShelfAlignment alignmnet); | 40 void SetAlignment(ShelfAlignment alignmnet); |
| 41 ShelfAlignment GetAlignment() const; | 41 ShelfAlignment GetAlignment() const; |
| 42 | 42 |
| 43 // Sets the shelf's background type. | 43 // Sets the shelf's background type. |
| 44 void SetPaintsBackground(ShelfBackgroundType background_type, | 44 void SetPaintsBackground(ShelfBackgroundType background_type, |
| 45 BackgroundAnimatorChangeType change_type); | 45 BackgroundAnimatorChangeType change_type); |
| 46 ShelfBackgroundType GetBackgroundType() const; | 46 ShelfBackgroundType GetBackgroundType() const; |
| 47 | 47 |
| 48 // Hide the shelf behind a black bar during e.g. a user transition when |hide| |
| 49 // is true. The |animation_time_ms| will be used as animation duration. |
| 50 void HideShelfBehindBlackBar(bool hide, int animation_time_ms); |
| 51 bool IsShelfHiddenBehindBlackBar() const; |
| 52 |
| 48 // Causes shelf items to be slightly dimmed (e.g. when a window is maximized). | 53 // Causes shelf items to be slightly dimmed (e.g. when a window is maximized). |
| 49 void SetDimsShelf(bool dimming); | 54 void SetDimsShelf(bool dimming); |
| 50 bool GetDimsShelf() const; | 55 bool GetDimsShelf() const; |
| 51 | 56 |
| 52 ShelfLayoutManager* shelf_layout_manager() { return shelf_layout_manager_; } | 57 ShelfLayoutManager* shelf_layout_manager() { return shelf_layout_manager_; } |
| 53 Shelf* shelf() const { return shelf_.get(); } | 58 Shelf* shelf() const { return shelf_.get(); } |
| 54 StatusAreaWidget* status_area_widget() const { return status_area_widget_; } | 59 StatusAreaWidget* status_area_widget() const { return status_area_widget_; } |
| 55 | 60 |
| 56 void CreateShelf(); | 61 void CreateShelf(); |
| 57 | 62 |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 104 // during CloseChildWindows of the associated RootWindowController. | 109 // during CloseChildWindows of the associated RootWindowController. |
| 105 DelegateView* delegate_view_; | 110 DelegateView* delegate_view_; |
| 106 BackgroundAnimator background_animator_; | 111 BackgroundAnimator background_animator_; |
| 107 bool activating_as_fallback_; | 112 bool activating_as_fallback_; |
| 108 aura::Window* window_container_; | 113 aura::Window* window_container_; |
| 109 }; | 114 }; |
| 110 | 115 |
| 111 } // namespace ash | 116 } // namespace ash |
| 112 | 117 |
| 113 #endif // ASH_SHELF_SHELF_WIDGET_H_ | 118 #endif // ASH_SHELF_SHELF_WIDGET_H_ |
| OLD | NEW |