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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 ShelfLayoutManager* shelf_layout_manager() { return shelf_layout_manager_; } | 61 ShelfLayoutManager* shelf_layout_manager() { return shelf_layout_manager_; } |
62 StatusAreaWidget* status_area_widget() const { return status_area_widget_; } | 62 StatusAreaWidget* status_area_widget() const { return status_area_widget_; } |
63 | 63 |
64 ShelfView* CreateShelfView(); | 64 ShelfView* CreateShelfView(); |
65 void PostCreateShelf(); | 65 void PostCreateShelf(); |
66 | 66 |
67 // Set visibility of the shelf. | 67 // Set visibility of the shelf. |
68 void SetShelfVisibility(bool visible); | 68 void SetShelfVisibility(bool visible); |
69 bool IsShelfVisible() const; | 69 bool IsShelfVisible() const; |
70 | 70 |
| 71 bool IsShowingAppList() const; |
71 bool IsShowingContextMenu() const; | 72 bool IsShowingContextMenu() const; |
72 | |
73 bool IsShowingOverflowBubble() const; | 73 bool IsShowingOverflowBubble() const; |
74 | 74 |
75 // Sets the focus cycler. Also adds the shelf to the cycle. | 75 // Sets the focus cycler. Also adds the shelf to the cycle. |
76 void SetFocusCycler(FocusCycler* focus_cycler); | 76 void SetFocusCycler(FocusCycler* focus_cycler); |
77 FocusCycler* GetFocusCycler(); | 77 FocusCycler* GetFocusCycler(); |
78 | 78 |
79 // Called by the activation delegate, before the shelf is activated | 79 // Called by the activation delegate, before the shelf is activated |
80 // when no other windows are visible. | 80 // when no other windows are visible. |
81 void WillActivateAsFallback() { activating_as_fallback_ = true; } | 81 void WillActivateAsFallback() { activating_as_fallback_ = true; } |
82 | 82 |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
137 ShelfView* shelf_view_; | 137 ShelfView* shelf_view_; |
138 ShelfBackgroundAnimator background_animator_; | 138 ShelfBackgroundAnimator background_animator_; |
139 bool activating_as_fallback_; | 139 bool activating_as_fallback_; |
140 | 140 |
141 DISALLOW_COPY_AND_ASSIGN(ShelfWidget); | 141 DISALLOW_COPY_AND_ASSIGN(ShelfWidget); |
142 }; | 142 }; |
143 | 143 |
144 } // namespace ash | 144 } // namespace ash |
145 | 145 |
146 #endif // ASH_COMMON_SHELF_SHELF_WIDGET_H_ | 146 #endif // ASH_COMMON_SHELF_SHELF_WIDGET_H_ |
OLD | NEW |