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

Side by Side Diff: ui/app_list/folder_image.cc

Issue 2422873002: Remove usage of FOR_EACH_OBSERVER macro in ui/app_list (Closed)
Patch Set: Created 4 years, 2 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
« no previous file with comments | « ui/app_list/app_list_model.cc ('k') | ui/app_list/pagination_model.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « ui/app_list/app_list_model.cc ('k') | ui/app_list/pagination_model.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698