| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/folder_image.h" | 5 #include "ui/app_list/folder_image.h" |
| 6 | 6 |
| 7 #include <vector> | 7 #include <vector> |
| 8 | 8 |
| 9 #include "base/macros.h" | 9 #include "base/macros.h" |
| 10 #include "ui/app_list/app_list_constants.h" | 10 #include "ui/app_list/app_list_constants.h" |
| (...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 216 | 216 |
| 217 void FolderImage::RedrawIconAndNotify() { | 217 void FolderImage::RedrawIconAndNotify() { |
| 218 FolderImageSource::Icons top_icons; | 218 FolderImageSource::Icons top_icons; |
| 219 for (const auto* item : top_items_) | 219 for (const auto* item : top_items_) |
| 220 top_icons.push_back(item->icon()); | 220 top_icons.push_back(item->icon()); |
| 221 | 221 |
| 222 const gfx::Size icon_size = gfx::Size(kGridIconDimension, kGridIconDimension); | 222 const gfx::Size icon_size = gfx::Size(kGridIconDimension, kGridIconDimension); |
| 223 icon_ = | 223 icon_ = |
| 224 gfx::ImageSkia(new FolderImageSource(top_icons, icon_size), icon_size); | 224 gfx::ImageSkia(new FolderImageSource(top_icons, icon_size), icon_size); |
| 225 | 225 |
| 226 FOR_EACH_OBSERVER(FolderImageObserver, observers_, OnFolderImageUpdated()); | 226 for (auto& observer : observers_) |
| 227 observer.OnFolderImageUpdated(); |
| 227 } | 228 } |
| 228 | 229 |
| 229 } // namespace app_list | 230 } // namespace app_list |
| OLD | NEW |