Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1665)

Side by Side Diff: ash/shelf/shelf.h

Issue 2267183002: ash: Remove unnecessary utility methods from ash::Shelf (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nits Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ash/common/shelf/wm_shelf.cc ('k') | ash/shelf/shelf.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « ash/common/shelf/wm_shelf.cc ('k') | ash/shelf/shelf.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698