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

Side by Side Diff: ui/app_list/views/app_list_item_view.cc

Issue 14327015: app_list: Fix label misalignment after installation. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 8 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #include "ui/app_list/views/app_list_item_view.h" 5 #include "ui/app_list/views/app_list_item_view.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "base/utf_string_conversions.h" 9 #include "base/utf_string_conversions.h"
10 #include "grit/ui_resources.h" 10 #include "grit/ui_resources.h"
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
175 title_->PaintToBackingImage(); 175 title_->PaintToBackingImage();
176 } 176 }
177 177
178 void AppListItemView::ItemIconChanged() { 178 void AppListItemView::ItemIconChanged() {
179 UpdateIcon(); 179 UpdateIcon();
180 } 180 }
181 181
182 void AppListItemView::ItemTitleChanged() { 182 void AppListItemView::ItemTitleChanged() {
183 title_->SetText(UTF8ToUTF16(model_->title())); 183 title_->SetText(UTF8ToUTF16(model_->title()));
184 title_->Invalidate(); 184 title_->Invalidate();
185 Layout();
185 } 186 }
186 187
187 void AppListItemView::ItemHighlightedChanged() { 188 void AppListItemView::ItemHighlightedChanged() {
188 apps_grid_view_->EnsureViewVisible(this); 189 apps_grid_view_->EnsureViewVisible(this);
189 SchedulePaint(); 190 SchedulePaint();
190 } 191 }
191 192
192 void AppListItemView::ItemIsInstallingChanged() { 193 void AppListItemView::ItemIsInstallingChanged() {
193 if (model_->is_installing()) 194 if (model_->is_installing())
194 apps_grid_view_->EnsureViewVisible(this); 195 apps_grid_view_->EnsureViewVisible(this);
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after
399 SetTouchDragging(false); 400 SetTouchDragging(false);
400 break; 401 break;
401 default: 402 default:
402 break; 403 break;
403 } 404 }
404 if (!event->handled()) 405 if (!event->handled())
405 CustomButton::OnGestureEvent(event); 406 CustomButton::OnGestureEvent(event);
406 } 407 }
407 408
408 } // namespace app_list 409 } // namespace app_list
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698