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

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

Issue 439703002: Allow app list tiles to show search results in the experimental app list. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix merge Created 6 years, 4 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 e319915abbc8774afb844b1d0403e5a07e81bf9d..2f6cefdf732e13405753c7de143fde62aa4a6d3e 100644
--- a/ui/app_list/views/tile_item_view.h
+++ b/ui/app_list/views/tile_item_view.h
@@ -6,6 +6,7 @@
#define UI_APP_LIST_VIEWS_TILE_ITEM_VIEW_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"
@@ -16,16 +17,17 @@ class Label;
namespace app_list {
-class AppListItem;
+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 views::ButtonListener,
+ public SearchResultObserver {
public:
TileItemView();
virtual ~TileItemView();
- void SetAppListItem(AppListItem* item);
+ void SetSearchResult(SearchResult* item);
private:
class TileItemBackground;
@@ -37,8 +39,12 @@ class APP_LIST_EXPORT TileItemView : public views::CustomButton,
virtual void ButtonPressed(views::Button* sender,
const ui::Event& event) OVERRIDE;
+ // Overridden from SearchResultObserver:
+ virtual void OnIconChanged() OVERRIDE;
+ virtual void OnResultDestroying() OVERRIDE;
+
// Owned by the model provided by the AppListViewDelegate.
- AppListItem* item_;
+ 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