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

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

Issue 2267803003: ash: Remove unnecessary WmShelf::SchedulePaint() method (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
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 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 91
92 // Returns true if the shelf is showing a context menu. 92 // Returns true if the shelf is showing a context menu.
93 bool IsShowingMenu() const; 93 bool IsShowingMenu() const;
94 94
95 // TODO(jamescook): Migrate this to ShelfWidget. 95 // TODO(jamescook): Migrate this to ShelfWidget.
96 bool IsShowingOverflowBubble() const; 96 bool IsShowingOverflowBubble() const;
97 97
98 // TODO(jamescook): Migrate to ShelfWidget::IsShelfVisible(). 98 // TODO(jamescook): Migrate to ShelfWidget::IsShelfVisible().
99 bool IsVisible() const; 99 bool IsVisible() const;
100 100
101 void SchedulePaint();
102
103 AppListButton* GetAppListButton() const; 101 AppListButton* GetAppListButton() const;
104 102
105 // Launch a 0-indexed shelf item in the shelf. 103 // Launch a 0-indexed shelf item in the shelf.
106 // A negative index launches the last shelf item in the shelf. 104 // A negative index launches the last shelf item in the shelf.
107 void LaunchAppIndexAt(int item_index); 105 void LaunchAppIndexAt(int item_index);
108 106
109 ShelfWidget* shelf_widget() { return shelf_widget_; } 107 ShelfWidget* shelf_widget() { return shelf_widget_; }
110 108
111 // TODO(msw): ShelfLayoutManager should not be accessed externally. 109 // TODO(msw): ShelfLayoutManager should not be accessed externally.
112 ShelfLayoutManager* shelf_layout_manager() { 110 ShelfLayoutManager* shelf_layout_manager() {
(...skipping 27 matching lines...) Expand all
140 138
141 ShelfAlignment alignment_ = SHELF_ALIGNMENT_BOTTOM; 139 ShelfAlignment alignment_ = SHELF_ALIGNMENT_BOTTOM;
142 ShelfAutoHideBehavior auto_hide_behavior_ = SHELF_AUTO_HIDE_BEHAVIOR_NEVER; 140 ShelfAutoHideBehavior auto_hide_behavior_ = SHELF_AUTO_HIDE_BEHAVIOR_NEVER;
143 141
144 DISALLOW_COPY_AND_ASSIGN(Shelf); 142 DISALLOW_COPY_AND_ASSIGN(Shelf);
145 }; 143 };
146 144
147 } // namespace ash 145 } // namespace ash
148 146
149 #endif // ASH_SHELF_SHELF_H_ 147 #endif // ASH_SHELF_SHELF_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698