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

Side by Side Diff: ui/app_list/views/all_apps_tile_item_view.h

Issue 2898743002: Draggable peeking/fullscreen launcher with transparent background. (Closed)
Patch Set: Migrated from wm_shelf to shelf and addressed comments! Created 3 years, 6 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef UI_APP_LIST_VIEWS_ALL_APPS_TILE_ITEM_VIEW_H_ 5 #ifndef UI_APP_LIST_VIEWS_ALL_APPS_TILE_ITEM_VIEW_H_
6 #define UI_APP_LIST_VIEWS_ALL_APPS_TILE_ITEM_VIEW_H_ 6 #define UI_APP_LIST_VIEWS_ALL_APPS_TILE_ITEM_VIEW_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "ui/app_list/views/app_list_view.h"
10 #include "ui/app_list/views/tile_item_view.h" 11 #include "ui/app_list/views/tile_item_view.h"
11 12
12 namespace app_list { 13 namespace app_list {
13 14
14 class ContentsView; 15 class ContentsView;
15 16
16 // A tile item for the "All apps" button on the start page. 17 // A tile item for the "All apps" button on the start page.
17 class AllAppsTileItemView : public TileItemView { 18 class AllAppsTileItemView : public TileItemView {
18 public: 19 public:
19 explicit AllAppsTileItemView(ContentsView* contents_view); 20 explicit AllAppsTileItemView(ContentsView* contents_view,
21 AppListView* app_list_view);
20 22
21 ~AllAppsTileItemView() override; 23 ~AllAppsTileItemView() override;
22 24
23 void UpdateIcon(); 25 void UpdateIcon();
24 26
25 // TileItemView overrides: 27 // TileItemView overrides:
26 void ButtonPressed(views::Button* sender, const ui::Event& event) override; 28 void ButtonPressed(views::Button* sender, const ui::Event& event) override;
27 29
28 private: 30 private:
29 ContentsView* contents_view_; 31 ContentsView* contents_view_;
32 AppListView* app_list_view_;
vadimt 2017/05/26 01:27:56 AppListView* const app_list_view_; Also a comment
newcomer 2017/05/26 17:11:27 Done.
30 33
31 DISALLOW_COPY_AND_ASSIGN(AllAppsTileItemView); 34 DISALLOW_COPY_AND_ASSIGN(AllAppsTileItemView);
32 }; 35 };
33 36
34 } // namespace app_list 37 } // namespace app_list
35 38
36 #endif // UI_APP_LIST_VIEWS_ALL_APPS_TILE_ITEM_VIEW_H_ 39 #endif // UI_APP_LIST_VIEWS_ALL_APPS_TILE_ITEM_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698