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. |