| 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 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 82 // when dragging panels to reposition them with respect to the other panels. | 82 // when dragging panels to reposition them with respect to the other panels. |
| 83 void UpdateIconPositionForWindow(WmWindow* window); | 83 void UpdateIconPositionForWindow(WmWindow* window); |
| 84 | 84 |
| 85 // Activates the the shelf item specified by the index in the list of shelf | 85 // Activates the the shelf item specified by the index in the list of shelf |
| 86 // items. | 86 // items. |
| 87 void ActivateShelfItem(int index); | 87 void ActivateShelfItem(int index); |
| 88 | 88 |
| 89 // Cycles the window focus linearly over the current shelf items. | 89 // Cycles the window focus linearly over the current shelf items. |
| 90 void CycleWindowLinear(CycleDirection direction); | 90 void CycleWindowLinear(CycleDirection direction); |
| 91 | 91 |
| 92 // Returns true if the shelf is showing a context menu. | |
| 93 bool IsShowingMenu() const; | |
| 94 | |
| 95 // TODO(jamescook): Migrate this to ShelfWidget. | |
| 96 bool IsShowingOverflowBubble() const; | |
| 97 | |
| 98 // TODO(jamescook): Migrate to ShelfWidget::IsShelfVisible(). | |
| 99 bool IsVisible() const; | |
| 100 | |
| 101 AppListButton* GetAppListButton() const; | 92 AppListButton* GetAppListButton() const; |
| 102 | 93 |
| 103 // Launch a 0-indexed shelf item in the shelf. | 94 // Launch a 0-indexed shelf item in the shelf. |
| 104 // A negative index launches the last shelf item in the shelf. | 95 // A negative index launches the last shelf item in the shelf. |
| 105 void LaunchAppIndexAt(int item_index); | 96 void LaunchAppIndexAt(int item_index); |
| 106 | 97 |
| 107 ShelfWidget* shelf_widget() { return shelf_widget_; } | 98 ShelfWidget* shelf_widget() { return shelf_widget_; } |
| 108 | 99 |
| 109 // TODO(msw): ShelfLayoutManager should not be accessed externally. | 100 // TODO(msw): ShelfLayoutManager should not be accessed externally. |
| 110 ShelfLayoutManager* shelf_layout_manager() { | 101 ShelfLayoutManager* shelf_layout_manager() { |
| (...skipping 27 matching lines...) Expand all Loading... |
| 138 | 129 |
| 139 ShelfAlignment alignment_ = SHELF_ALIGNMENT_BOTTOM; | 130 ShelfAlignment alignment_ = SHELF_ALIGNMENT_BOTTOM; |
| 140 ShelfAutoHideBehavior auto_hide_behavior_ = SHELF_AUTO_HIDE_BEHAVIOR_NEVER; | 131 ShelfAutoHideBehavior auto_hide_behavior_ = SHELF_AUTO_HIDE_BEHAVIOR_NEVER; |
| 141 | 132 |
| 142 DISALLOW_COPY_AND_ASSIGN(Shelf); | 133 DISALLOW_COPY_AND_ASSIGN(Shelf); |
| 143 }; | 134 }; |
| 144 | 135 |
| 145 } // namespace ash | 136 } // namespace ash |
| 146 | 137 |
| 147 #endif // ASH_SHELF_SHELF_H_ | 138 #endif // ASH_SHELF_SHELF_H_ |
| OLD | NEW |