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

Unified Diff: ui/app_list/folder_image.h

Issue 687913003: app_list: Moved FolderImageSource into folder_image.cc. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@ares-allapps-icon
Patch Set: Formatting (the ClangFormat rules have changed). Created 6 years, 1 month 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/app_list.gyp ('k') | 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 2f69e3b6add2bb28b93f95bc17a526e5788addfc..7217d0e487b5fd48ec67df609a5985fc1cc9ac6d 100644
--- a/ui/app_list/folder_image.h
+++ b/ui/app_list/folder_image.h
@@ -49,6 +49,12 @@ class APP_LIST_EXPORT FolderImage : public AppListItemListObserver,
// Returns the icon of one of the top items with |item_index|.
const gfx::ImageSkia& GetTopIcon(size_t item_index);
+ // Calculates the top item icons' bounds inside |folder_icon_bounds|.
+ // Returns the bounds of top item icons in sequence of top left, top right,
+ // bottom left, bottom right.
+ static std::vector<gfx::Rect> GetTopIconsBounds(
+ const gfx::Rect& folder_icon_bounds);
+
// Returns the target icon bounds for |item| to fly back to its parent folder
// icon in animation UI. If |item| is one of the top item icon, this will
// match its corresponding top item icon in the folder icon. Otherwise,
« no previous file with comments | « ui/app_list/app_list.gyp ('k') | ui/app_list/folder_image.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698