1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef UI_APP_LIST_VIEWS_ALL_APPS_TILE_ITEM_VIEW_H_
6 #define UI_APP_LIST_VIEWS_ALL_APPS_TILE_ITEM_VIEW_H_
10 #include "ui/app_list/folder_image.h"
11 #include "ui/app_list/views/tile_item_view.h"
15 class AppListItemList
;
18 // A tile item for the "All apps" button on the start page.
19 class AllAppsTileItemView
: public TileItemView
, public FolderImageObserver
{
21 AllAppsTileItemView(ContentsView
* contents_view
, AppListItemList
* item_list
);
23 ~AllAppsTileItemView() override
;
25 // Generates the folder's icon from the icons of the items in the item list.
28 // TileItemView overrides:
29 void ButtonPressed(views::Button
* sender
, const ui::Event
& event
) override
;
31 // FolderImageObserver overrides:
32 void OnFolderImageUpdated() override
;
35 ContentsView
* contents_view_
;
37 FolderImage folder_image_
;
40 } // namespace app_list
42 #endif // UI_APP_LIST_VIEWS_ALL_APPS_TILE_ITEM_VIEW_H_