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

Unified Diff: ui/app_list/views/all_apps_tile_item_view.h

Issue 682843004: Experimental app list: "All apps" button has a folder-like icon. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@ares-allapps-button
Patch Set: Use range-based for loops where possible. Created 6 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 side-by-side diff with in-line comments
Download patch
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..150d5535af49c1206ab47c96b36b71947326b38b 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,34 @@
#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, public FolderImageObserver {
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;
+ // FolderImageObserver overrides:
+ void OnFolderImageUpdated() override;
+
private:
ContentsView* contents_view_;
+
+ FolderImage folder_image_;
};
} // namespace app_list

Powered by Google App Engine
This is Rietveld 408576698