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

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

Issue 722563002: Add a card background to the app list search result groups. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@tilv
Patch Set: use constants in speech_view.cc Created 6 years, 1 month 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
« no previous file with comments | « ui/app_list/views/start_page_view.cc ('k') | ui/app_list/views/tile_item_view.cc » ('j') | 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 "base/strings/string16.h" 8 #include "base/strings/string16.h"
9 #include "ui/app_list/app_list_export.h" 9 #include "ui/app_list/app_list_export.h"
10 #include "ui/views/controls/button/button.h" 10 #include "ui/views/controls/button/button.h"
(...skipping 10 matching lines...) Expand all
21 21
22 namespace app_list { 22 namespace app_list {
23 23
24 // The view for a tile in the app list on the start/search page. 24 // The view for a tile in the app list on the start/search page.
25 class APP_LIST_EXPORT TileItemView : public views::CustomButton, 25 class APP_LIST_EXPORT TileItemView : public views::CustomButton,
26 public views::ButtonListener { 26 public views::ButtonListener {
27 public: 27 public:
28 TileItemView(); 28 TileItemView();
29 ~TileItemView() override; 29 ~TileItemView() override;
30 30
31 void SetTitleBackgroundColor(SkColor color);
32
31 protected: 33 protected:
32 void SetIcon(const gfx::ImageSkia& icon); 34 void SetIcon(const gfx::ImageSkia& icon);
33 35
34 void SetTitle(const base::string16& title); 36 void SetTitle(const base::string16& title);
35 37
36 private: 38 private:
37 // Overridden from views::View: 39 // Overridden from views::View:
38 gfx::Size GetPreferredSize() const override; 40 gfx::Size GetPreferredSize() const override;
39 41
40 views::ImageView* icon_; // Owned by views hierarchy. 42 views::ImageView* icon_; // Owned by views hierarchy.
41 views::Label* title_; // Owned by views hierarchy. 43 views::Label* title_; // Owned by views hierarchy.
42 44
43 DISALLOW_COPY_AND_ASSIGN(TileItemView); 45 DISALLOW_COPY_AND_ASSIGN(TileItemView);
44 }; 46 };
45 47
46 } // namespace app_list 48 } // namespace app_list
47 49
48 #endif // UI_APP_LIST_VIEWS_TILE_ITEM_VIEW_H_ 50 #endif // UI_APP_LIST_VIEWS_TILE_ITEM_VIEW_H_
OLDNEW
« no previous file with comments | « ui/app_list/views/start_page_view.cc ('k') | ui/app_list/views/tile_item_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698