Index: ui/app_list/views/all_apps_tile_item_view.h |
diff --git a/ui/app_list/views/all_apps_tile_item_view.h b/ui/app_list/views/all_apps_tile_item_view.h |
index da3a3ad60736087fbcd4c2a8a39c86ac3468aac5..546ca8a7744571c2ecb6c74901fc6666a9f3cfb9 100644 |
--- a/ui/app_list/views/all_apps_tile_item_view.h |
+++ b/ui/app_list/views/all_apps_tile_item_view.h |
@@ -7,24 +7,35 @@ |
#include <vector> |
+#include "ui/app_list/folder_image.h" |
#include "ui/app_list/views/tile_item_view.h" |
namespace app_list { |
+class AppListItemList; |
class ContentsView; |
// A tile item for the "All apps" button on the start page. |
-class AllAppsTileItemView : public TileItemView { |
+class AllAppsTileItemView : public TileItemView, FolderImageObserver { |
calamity
2014/10/28 05:12:58
Default inheritance? Intentional?
Matt Giuca
2014/10/29 07:11:23
No. Thanks.
|
public: |
- AllAppsTileItemView(ContentsView* contents_view); |
+ AllAppsTileItemView(ContentsView* contents_view, AppListItemList* item_list); |
~AllAppsTileItemView() override; |
+ // Generates the folder's icon from the icons of the items in the item list. |
+ void UpdateIcon(); |
+ |
// TileItemView overrides: |
void ButtonPressed(views::Button* sender, const ui::Event& event) override; |
+ protected: |
+ // FolderImageObserver overrides: |
+ void OnFolderImageUpdated(const gfx::ImageSkia& icon) override; |
+ |
private: |
ContentsView* contents_view_; |
+ |
+ FolderImage folder_image_; |
}; |
} // namespace app_list |