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

Unified Diff: ui/app_list/views/tile_item_view.h

Issue 665233002: Experimental app list: Added "All apps" button on start page. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git/+/app-list-factor-folderimagesource
Patch Set: Rebase. Created 6 years, 2 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 side-by-side diff with in-line comments
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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/app_list/views/tile_item_view.h
diff --git a/ui/app_list/views/tile_item_view.h b/ui/app_list/views/tile_item_view.h
index 4853584c6e730421212e80bb9051dd4962181249..9140fa22c77667c5ddb7c323852cae13cb8141e9 100644
--- a/ui/app_list/views/tile_item_view.h
+++ b/ui/app_list/views/tile_item_view.h
@@ -5,11 +5,15 @@
#ifndef UI_APP_LIST_VIEWS_TILE_ITEM_VIEW_H_
#define UI_APP_LIST_VIEWS_TILE_ITEM_VIEW_H_
+#include "base/strings/string16.h"
#include "ui/app_list/app_list_export.h"
-#include "ui/app_list/search_result_observer.h"
#include "ui/views/controls/button/button.h"
#include "ui/views/controls/button/custom_button.h"
+namespace gfx {
+class ImageSkia;
+}
+
namespace views {
class ImageView;
class Label;
@@ -17,32 +21,22 @@ class Label;
namespace app_list {
-class SearchResult;
-
// The view for a tile in the app list on the start/search page.
class APP_LIST_EXPORT TileItemView : public views::CustomButton,
- public views::ButtonListener,
- public SearchResultObserver {
+ public views::ButtonListener {
public:
TileItemView();
~TileItemView() override;
- void SetSearchResult(SearchResult* item);
+ protected:
+ void SetIcon(const gfx::ImageSkia& icon);
+
+ void SetTitle(const base::string16& title);
private:
// Overridden from views::View:
gfx::Size GetPreferredSize() const override;
- // Overridden from views::ButtonListener:
- void ButtonPressed(views::Button* sender, const ui::Event& event) override;
-
- // Overridden from SearchResultObserver:
- void OnIconChanged() override;
- void OnResultDestroying() override;
-
- // Owned by the model provided by the AppListViewDelegate.
- SearchResult* item_;
-
views::ImageView* icon_; // Owned by views hierarchy.
views::Label* title_; // Owned by views hierarchy.
« 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