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

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

Issue 397343003: Introduce centered view and bottom view for home card. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix Created 6 years, 5 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 | Annotate | Revision Log
« athena/home/home_card_impl.cc ('K') | « athena/home/minimized_home.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_TILE_ITEM_VIEW_H_ 5 #ifndef UI_APP_LIST_VIEWS_TILE_ITEM_VIEW_H_
6 #define UI_APP_LIST_VIEWS_TILE_ITEM_VIEW_H_ 6 #define UI_APP_LIST_VIEWS_TILE_ITEM_VIEW_H_
7 7
8 #include "ui/app_list/app_list_export.h"
8 #include "ui/views/controls/button/button.h" 9 #include "ui/views/controls/button/button.h"
9 #include "ui/views/controls/button/custom_button.h" 10 #include "ui/views/controls/button/custom_button.h"
10 11
11 namespace views { 12 namespace views {
12 class ImageView; 13 class ImageView;
13 class Label; 14 class Label;
14 } 15 }
15 16
16 namespace app_list { 17 namespace app_list {
17 18
18 class AppListItem; 19 class AppListItem;
19 20
20 // The view for a tile in the app list on the start/search page. 21 // The view for a tile in the app list on the start/search page.
21 class TileItemView : public views::CustomButton, public views::ButtonListener { 22 class APP_LIST_EXPORT TileItemView : public views::CustomButton,
23 public views::ButtonListener {
22 public: 24 public:
23 TileItemView(); 25 TileItemView();
24 virtual ~TileItemView(); 26 virtual ~TileItemView();
25 27
26 void SetAppListItem(AppListItem* item); 28 void SetAppListItem(AppListItem* item);
27 29
28 private: 30 private:
29 class TileItemBackground; 31 class TileItemBackground;
30 32
31 // Overridden from views::View: 33 // Overridden from views::View:
(...skipping 10 matching lines...) Expand all
42 views::Label* title_; // Owned by views hierarchy. 44 views::Label* title_; // Owned by views hierarchy.
43 45
44 TileItemBackground* background_; 46 TileItemBackground* background_;
45 47
46 DISALLOW_COPY_AND_ASSIGN(TileItemView); 48 DISALLOW_COPY_AND_ASSIGN(TileItemView);
47 }; 49 };
48 50
49 } // namespace app_list 51 } // namespace app_list
50 52
51 #endif // UI_APP_LIST_VIEWS_TILE_ITEM_VIEW_H_ 53 #endif // UI_APP_LIST_VIEWS_TILE_ITEM_VIEW_H_
OLDNEW
« athena/home/home_card_impl.cc ('K') | « athena/home/minimized_home.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698