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

Unified Diff: ui/app_list/folder_image.cc

Issue 953743003: FolderImage: Const correctness. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/app_list/folder_image.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/app_list/folder_image.cc
diff --git a/ui/app_list/folder_image.cc b/ui/app_list/folder_image.cc
index ad6b083b38a3416a88e57f905e0a56db995d908d..a542f553b1d103fcd9c1d46ba178304b81ee9160 100644
--- a/ui/app_list/folder_image.cc
+++ b/ui/app_list/folder_image.cc
@@ -132,7 +132,7 @@ void FolderImage::UpdateIcon() {
RedrawIconAndNotify();
}
-const gfx::ImageSkia& FolderImage::GetTopIcon(size_t item_index) {
+const gfx::ImageSkia& FolderImage::GetTopIcon(size_t item_index) const {
CHECK_LT(item_index, top_items_.size());
return top_items_[item_index]->icon();
}
@@ -171,7 +171,7 @@ std::vector<gfx::Rect> FolderImage::GetTopIconsBounds(
gfx::Rect FolderImage::GetTargetIconRectInFolderForItem(
AppListItem* item,
- const gfx::Rect& folder_icon_bounds) {
+ const gfx::Rect& folder_icon_bounds) const {
for (size_t i = 0; i < top_items_.size(); ++i) {
if (item->id() == top_items_[i]->id()) {
std::vector<gfx::Rect> rects = GetTopIconsBounds(folder_icon_bounds);
« no previous file with comments | « ui/app_list/folder_image.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698