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

Unified Diff: ui/app_list/search_result.cc

Issue 10872099: ash: Add support for additional icons in apps search list. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix compile Created 8 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/search_result.h ('k') | ui/app_list/search_result_list_view.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/app_list/search_result.cc
diff --git a/ui/app_list/search_result.cc b/ui/app_list/search_result.cc
index b0704fb3654ffda2757571bc1055bd2dc765fe01..597ea60eacde7a97108590efdf34f18058ee6c15 100644
--- a/ui/app_list/search_result.cc
+++ b/ui/app_list/search_result.cc
@@ -8,6 +8,19 @@
namespace app_list {
+SearchResult::ActionIconSet::ActionIconSet(const gfx::ImageSkia& base_image,
+ const gfx::ImageSkia& hover_image,
+ const gfx::ImageSkia& pressed_image,
+ const string16& tooltip_text)
+ : base_image(base_image),
+ hover_image(hover_image),
+ pressed_image(pressed_image),
+ tooltip_text(tooltip_text) {
+}
+
+SearchResult::ActionIconSet::~ActionIconSet() {
+}
+
SearchResult::SearchResult() {
}
@@ -21,6 +34,13 @@ void SearchResult::SetIcon(const gfx::ImageSkia& icon) {
OnIconChanged());
}
+void SearchResult::SetActionIcons(const std::vector<ActionIconSet>& sets) {
+ action_icons_ = sets;
+ FOR_EACH_OBSERVER(SearchResultObserver,
+ observers_,
+ OnActionIconsChanged());
+}
+
void SearchResult::AddObserver(SearchResultObserver* observer) {
observers_.AddObserver(observer);
}
« no previous file with comments | « ui/app_list/search_result.h ('k') | ui/app_list/search_result_list_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698