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

Unified Diff: ui/app_list/views/search_result_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/app_list_view_unittest.cc ('k') | ui/app_list/views/search_result_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/search_result_tile_item_view.h
diff --git a/ui/app_list/views/search_result_tile_item_view.h b/ui/app_list/views/search_result_tile_item_view.h
new file mode 100644
index 0000000000000000000000000000000000000000..149b3b5d1daee8772700ede866abb9eba13c3e91
--- /dev/null
+++ b/ui/app_list/views/search_result_tile_item_view.h
@@ -0,0 +1,40 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef UI_APP_LIST_VIEWS_SEARCH_RESULT_TILE_ITEM_VIEW_H_
+#define UI_APP_LIST_VIEWS_SEARCH_RESULT_TILE_ITEM_VIEW_H_
+
+#include "ui/app_list/search_result_observer.h"
+#include "ui/app_list/views/tile_item_view.h"
+
+namespace app_list {
+
+class SearchResult;
+
+// A TileItemView that displays a search result.
+class APP_LIST_EXPORT SearchResultTileItemView : public TileItemView,
+ public SearchResultObserver {
+ public:
+ SearchResultTileItemView();
+ ~SearchResultTileItemView() override;
+
+ void SetSearchResult(SearchResult* item);
+
+ // Overridden from TileItemView:
+ void ButtonPressed(views::Button* sender, const ui::Event& event) override;
+
+ // Overridden from SearchResultObserver:
+ void OnIconChanged() override;
+ void OnResultDestroying() override;
+
+ private:
+ // Owned by the model provided by the AppListViewDelegate.
+ SearchResult* item_;
+
+ DISALLOW_COPY_AND_ASSIGN(SearchResultTileItemView);
+};
+
+} // namespace app_list
+
+#endif // UI_APP_LIST_VIEWS_SEARCH_RESULT_TILE_ITEM_VIEW_H_
« no previous file with comments | « ui/app_list/views/app_list_view_unittest.cc ('k') | ui/app_list/views/search_result_tile_item_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698