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

Unified Diff: ash/launcher/launcher_view.cc

Issue 22527003: ash:Shelf Overflow Button (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ash/launcher/launcher_view.h ('k') | ash/launcher/overflow_bubble.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/launcher/launcher_view.cc
diff --git a/ash/launcher/launcher_view.cc b/ash/launcher/launcher_view.cc
index 3d328929e4c2252562eaf512a00c6e56de32f3f4..155a0b7845c997d23e1e4f893f2cd7f8df34f43b 100644
--- a/ash/launcher/launcher_view.cc
+++ b/ash/launcher/launcher_view.cc
@@ -465,6 +465,15 @@ void LauncherView::OnShelfAlignmentChanged() {
overflow_bubble_->Hide();
}
+void LauncherView::SchedulePaintForAllButtons() {
+ for (int i = 0; i < view_model_->view_size(); ++i) {
+ if (i >= first_visible_index_ && i <= last_visible_index_)
+ view_model_->view_at(i)->SchedulePaint();
+ }
+ if (overflow_button_ && overflow_button_->visible())
+ overflow_button_->SchedulePaint();
+}
+
gfx::Rect LauncherView::GetIdealBoundsOfItemIcon(LauncherID id) {
int index = model_->ItemIndexByID(id);
if (index == -1 || (index > last_visible_index_ &&
« no previous file with comments | « ash/launcher/launcher_view.h ('k') | ash/launcher/overflow_bubble.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698