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

Unified Diff: ui/app_list/folder_image.h

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 | « no previous file | ui/app_list/folder_image.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/app_list/folder_image.h
diff --git a/ui/app_list/folder_image.h b/ui/app_list/folder_image.h
index 3006a8666e1960270768063340dae20de66a0bd1..1842d97b41f9725347ab33f5d06b9620b4c8c6f0 100644
--- a/ui/app_list/folder_image.h
+++ b/ui/app_list/folder_image.h
@@ -47,7 +47,7 @@ class APP_LIST_EXPORT FolderImage : public AppListItemListObserver,
const gfx::ImageSkia& icon() const { return icon_; }
// Returns the icon of one of the top items with |item_index|.
- const gfx::ImageSkia& GetTopIcon(size_t item_index);
+ const gfx::ImageSkia& GetTopIcon(size_t item_index) const;
// Calculates the top item icons' bounds inside |folder_icon_bounds|.
// Returns the bounds of top item icons in sequence of top left, top right,
@@ -63,7 +63,7 @@ class APP_LIST_EXPORT FolderImage : public AppListItemListObserver,
// The Rect returned is in the same coordinates of |folder_icon_bounds|.
gfx::Rect GetTargetIconRectInFolderForItem(
AppListItem* item,
- const gfx::Rect& folder_icon_bounds);
+ const gfx::Rect& folder_icon_bounds) const;
void AddObserver(FolderImageObserver* observer);
void RemoveObserver(FolderImageObserver* observer);
« no previous file with comments | « no previous file | ui/app_list/folder_image.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698