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_COMMON_SHELF_SHELF_WIDGET_H_ | 5 #ifndef ASH_COMMON_SHELF_SHELF_WIDGET_H_ |
6 #define ASH_COMMON_SHELF_SHELF_WIDGET_H_ | 6 #define ASH_COMMON_SHELF_SHELF_WIDGET_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 | 9 |
10 #include "ash/ash_export.h" | 10 #include "ash/ash_export.h" |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 // is true. The |animation_time_ms| will be used as animation duration. | 53 // is true. The |animation_time_ms| will be used as animation duration. |
54 void HideShelfBehindBlackBar(bool hide, int animation_time_ms); | 54 void HideShelfBehindBlackBar(bool hide, int animation_time_ms); |
55 bool IsShelfHiddenBehindBlackBar() const; | 55 bool IsShelfHiddenBehindBlackBar() const; |
56 | 56 |
57 ShelfLayoutManager* shelf_layout_manager() { return shelf_layout_manager_; } | 57 ShelfLayoutManager* shelf_layout_manager() { return shelf_layout_manager_; } |
58 StatusAreaWidget* status_area_widget() const { return status_area_widget_; } | 58 StatusAreaWidget* status_area_widget() const { return status_area_widget_; } |
59 | 59 |
60 ShelfView* CreateShelfView(); | 60 ShelfView* CreateShelfView(); |
61 void PostCreateShelf(); | 61 void PostCreateShelf(); |
62 | 62 |
63 // Set visibility of the shelf. | |
64 void SetShelfVisibility(bool visible); | |
65 bool IsShelfVisible() const; | 63 bool IsShelfVisible() const; |
66 | 64 |
67 bool IsShowingAppList() const; | 65 bool IsShowingAppList() const; |
68 bool IsShowingContextMenu() const; | 66 bool IsShowingContextMenu() const; |
69 bool IsShowingOverflowBubble() const; | 67 bool IsShowingOverflowBubble() const; |
70 | 68 |
71 // Sets the focus cycler. Also adds the shelf to the cycle. | 69 // Sets the focus cycler. Also adds the shelf to the cycle. |
72 void SetFocusCycler(FocusCycler* focus_cycler); | 70 void SetFocusCycler(FocusCycler* focus_cycler); |
73 FocusCycler* GetFocusCycler(); | 71 FocusCycler* GetFocusCycler(); |
74 | 72 |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
119 ShelfView* shelf_view_; | 117 ShelfView* shelf_view_; |
120 ShelfBackgroundAnimator background_animator_; | 118 ShelfBackgroundAnimator background_animator_; |
121 bool activating_as_fallback_; | 119 bool activating_as_fallback_; |
122 | 120 |
123 DISALLOW_COPY_AND_ASSIGN(ShelfWidget); | 121 DISALLOW_COPY_AND_ASSIGN(ShelfWidget); |
124 }; | 122 }; |
125 | 123 |
126 } // namespace ash | 124 } // namespace ash |
127 | 125 |
128 #endif // ASH_COMMON_SHELF_SHELF_WIDGET_H_ | 126 #endif // ASH_COMMON_SHELF_SHELF_WIDGET_H_ |
OLD | NEW |