| 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 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 95 | 95 |
| 96 // Cycles the window focus linearly over the current shelf items. | 96 // Cycles the window focus linearly over the current shelf items. |
| 97 void CycleWindowLinear(CycleDirection direction); | 97 void CycleWindowLinear(CycleDirection direction); |
| 98 | 98 |
| 99 void AddIconObserver(ShelfIconObserver* observer); | 99 void AddIconObserver(ShelfIconObserver* observer); |
| 100 void RemoveIconObserver(ShelfIconObserver* observer); | 100 void RemoveIconObserver(ShelfIconObserver* observer); |
| 101 | 101 |
| 102 // Returns true if the shelf is showing a context menu. | 102 // Returns true if the shelf is showing a context menu. |
| 103 bool IsShowingMenu() const; | 103 bool IsShowingMenu() const; |
| 104 | 104 |
| 105 // TODO(jamescook): Migrate this to ShelfWidget. |
| 105 bool IsShowingOverflowBubble() const; | 106 bool IsShowingOverflowBubble() const; |
| 106 | 107 |
| 107 void SetVisible(bool visible) const; | 108 void SetVisible(bool visible) const; |
| 108 bool IsVisible() const; | 109 bool IsVisible() const; |
| 109 | 110 |
| 110 void SchedulePaint(); | 111 void SchedulePaint(); |
| 111 | 112 |
| 112 AppListButton* GetAppListButton() const; | 113 AppListButton* GetAppListButton() const; |
| 113 | 114 |
| 114 // Launch a 0-indexed shelf item in the shelf. | 115 // Launch a 0-indexed shelf item in the shelf. |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 149 | 150 |
| 150 ShelfAlignment alignment_ = SHELF_ALIGNMENT_BOTTOM; | 151 ShelfAlignment alignment_ = SHELF_ALIGNMENT_BOTTOM; |
| 151 ShelfAutoHideBehavior auto_hide_behavior_ = SHELF_AUTO_HIDE_BEHAVIOR_NEVER; | 152 ShelfAutoHideBehavior auto_hide_behavior_ = SHELF_AUTO_HIDE_BEHAVIOR_NEVER; |
| 152 | 153 |
| 153 DISALLOW_COPY_AND_ASSIGN(Shelf); | 154 DISALLOW_COPY_AND_ASSIGN(Shelf); |
| 154 }; | 155 }; |
| 155 | 156 |
| 156 } // namespace ash | 157 } // namespace ash |
| 157 | 158 |
| 158 #endif // ASH_SHELF_SHELF_H_ | 159 #endif // ASH_SHELF_SHELF_H_ |
| OLD | NEW |