| Index: ui/aura_shell/launcher/launcher_view.cc
|
| diff --git a/ui/aura_shell/launcher/launcher_view.cc b/ui/aura_shell/launcher/launcher_view.cc
|
| index ed2f362805d18e48b027b0afa743c89418a7f18f..561b26d79473493b29f56d19a55ce95ef1976720 100644
|
| --- a/ui/aura_shell/launcher/launcher_view.cc
|
| +++ b/ui/aura_shell/launcher/launcher_view.cc
|
| @@ -123,7 +123,18 @@ void LauncherView::LauncherItemRemoved(int index) {
|
| }
|
|
|
| void LauncherView::LauncherItemImagesChanged(int index) {
|
| - // TODO: implement me.
|
| + // TODO: implement better coordinate conversion.
|
| + const LauncherItem& item(model_->items()[index]);
|
| + if (item.type == TYPE_TABBED) {
|
| + TabbedLauncherButton* button =
|
| + static_cast<TabbedLauncherButton*>(child_at(index + 1));
|
| + gfx::Size pref = button->GetPreferredSize();
|
| + button->SetImages(item.tab_images);
|
| + if (pref != button->GetPreferredSize())
|
| + Resize();
|
| + else
|
| + button->SchedulePaint();
|
| + }
|
| }
|
|
|
| void LauncherView::ButtonPressed(views::Button* sender,
|
|
|