Supervised user whitelists: Cleanup
[chromium-blink-merge.git] / ui / app_list / views / all_apps_tile_item_view.h
blob150d5535af49c1206ab47c96b36b71947326b38b
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_
8 #include <vector>
10 #include "ui/app_list/folder_image.h"
11 #include "ui/app_list/views/tile_item_view.h"
13 namespace app_list {
15 class AppListItemList;
16 class ContentsView;
18 // A tile item for the "All apps" button on the start page.
19 class AllAppsTileItemView : public TileItemView, public FolderImageObserver {
20 public:
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.
26 void UpdateIcon();
28 // TileItemView overrides:
29 void ButtonPressed(views::Button* sender, const ui::Event& event) override;
31 // FolderImageObserver overrides:
32 void OnFolderImageUpdated() override;
34 private:
35 ContentsView* contents_view_;
37 FolderImage folder_image_;
40 } // namespace app_list
42 #endif // UI_APP_LIST_VIEWS_ALL_APPS_TILE_ITEM_VIEW_H_