OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_H_ | 5 #ifndef ASH_SHELF_SHELF_H_ |
6 #define ASH_SHELF_SHELF_H_ | 6 #define ASH_SHELF_SHELF_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
(...skipping 17 matching lines...) Expand all Loading... |
28 | 28 |
29 namespace gfx { | 29 namespace gfx { |
30 class Rect; | 30 class Rect; |
31 } | 31 } |
32 | 32 |
33 namespace views { | 33 namespace views { |
34 class View; | 34 class View; |
35 } | 35 } |
36 | 36 |
37 namespace ash { | 37 namespace ash { |
| 38 class AppListButton; |
38 class FocusCycler; | 39 class FocusCycler; |
39 class ShelfDelegate; | 40 class ShelfDelegate; |
40 class ShelfIconObserver; | 41 class ShelfIconObserver; |
41 class ShelfModel; | 42 class ShelfModel; |
42 class ShelfView; | 43 class ShelfView; |
43 class WmShelf; | 44 class WmShelf; |
44 | 45 |
45 namespace test { | 46 namespace test { |
46 class ShelfTestAPI; | 47 class ShelfTestAPI; |
47 } | 48 } |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
129 // Returns true if the shelf is showing a context menu. | 130 // Returns true if the shelf is showing a context menu. |
130 bool IsShowingMenu() const; | 131 bool IsShowingMenu() const; |
131 | 132 |
132 bool IsShowingOverflowBubble() const; | 133 bool IsShowingOverflowBubble() const; |
133 | 134 |
134 void SetVisible(bool visible) const; | 135 void SetVisible(bool visible) const; |
135 bool IsVisible() const; | 136 bool IsVisible() const; |
136 | 137 |
137 void SchedulePaint(); | 138 void SchedulePaint(); |
138 | 139 |
139 views::View* GetAppListButtonView() const; | 140 AppListButton* GetAppListButton() const; |
140 | 141 |
141 // Launch a 0-indexed shelf item in the shelf. | 142 // Launch a 0-indexed shelf item in the shelf. |
142 // A negative index launches the last shelf item in the shelf. | 143 // A negative index launches the last shelf item in the shelf. |
143 void LaunchAppIndexAt(int item_index); | 144 void LaunchAppIndexAt(int item_index); |
144 | 145 |
145 ShelfWidget* shelf_widget() { return shelf_widget_; } | 146 ShelfWidget* shelf_widget() { return shelf_widget_; } |
146 | 147 |
147 // TODO(msw): ShelfLayoutManager should not be accessed externally. | 148 // TODO(msw): ShelfLayoutManager should not be accessed externally. |
148 ShelfLayoutManager* shelf_layout_manager() { | 149 ShelfLayoutManager* shelf_layout_manager() { |
149 return shelf_widget_->shelf_layout_manager(); | 150 return shelf_widget_->shelf_layout_manager(); |
(...skipping 18 matching lines...) Expand all Loading... |
168 | 169 |
169 ShelfAlignment alignment_ = SHELF_ALIGNMENT_BOTTOM; | 170 ShelfAlignment alignment_ = SHELF_ALIGNMENT_BOTTOM; |
170 ShelfAutoHideBehavior auto_hide_behavior_ = SHELF_AUTO_HIDE_BEHAVIOR_NEVER; | 171 ShelfAutoHideBehavior auto_hide_behavior_ = SHELF_AUTO_HIDE_BEHAVIOR_NEVER; |
171 | 172 |
172 DISALLOW_COPY_AND_ASSIGN(Shelf); | 173 DISALLOW_COPY_AND_ASSIGN(Shelf); |
173 }; | 174 }; |
174 | 175 |
175 } // namespace ash | 176 } // namespace ash |
176 | 177 |
177 #endif // ASH_SHELF_SHELF_H_ | 178 #endif // ASH_SHELF_SHELF_H_ |
OLD | NEW |