summaryrefslogtreecommitdiffstats
path: root/ui/aura_shell/launcher/launcher_view.cc
diff options
context:
space:
mode:
Diffstat (limited to 'ui/aura_shell/launcher/launcher_view.cc')
-rw-r--r--ui/aura_shell/launcher/launcher_view.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/ui/aura_shell/launcher/launcher_view.cc b/ui/aura_shell/launcher/launcher_view.cc
index 68a8ed8..eb71ef2 100644
--- a/ui/aura_shell/launcher/launcher_view.cc
+++ b/ui/aura_shell/launcher/launcher_view.cc
@@ -539,6 +539,13 @@ void LauncherView::LauncherItemMoved(int start_index, int target_index) {
AnimateToIdealBounds();
}
+void LauncherView::LauncherItemImagesWillChange(int index) {
+ const LauncherItem& item(model_->items()[index]);
+ views::View* view = view_model_->view_at(index);
+ if (item.type == TYPE_TABBED)
+ static_cast<TabbedLauncherButton*>(view)->PrepareForImageChange();
+}
+
void LauncherView::MousePressedOnButton(views::View* view,
const views::MouseEvent& event) {
if (view_model_->GetIndexOfView(view) == -1 || view_model_->view_size() <= 1)