OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |