Index: ui/app_list/search_result.cc |
diff --git a/ui/app_list/search_result.cc b/ui/app_list/search_result.cc |
index 771251fcb9bcd37ffcfa606ba83d51410c4fcb90..bfa1da9b6a7dfc10fb9ce2256c654243ebd04032 100644 |
--- a/ui/app_list/search_result.cc |
+++ b/ui/app_list/search_result.cc |
@@ -4,6 +4,7 @@ |
#include "ui/app_list/search_result.h" |
+#include "ui/app_list/app_list_constants.h" |
#include "ui/app_list/search_result_observer.h" |
namespace app_list { |
@@ -67,6 +68,17 @@ void SearchResult::SetPercentDownloaded(int percent_downloaded) { |
OnPercentDownloadedChanged()); |
} |
+int SearchResult::GetPreferredIconDimension() const { |
+ switch (display_type_) { |
+ case DISPLAY_TILE: |
+ return kTileIconSize; |
+ case DISPLAY_LIST: |
+ return kListIconSize; |
+ } |
+ NOTREACHED(); |
+ return 0; |
+} |
+ |
void SearchResult::NotifyItemInstalled() { |
FOR_EACH_OBSERVER(SearchResultObserver, observers_, OnItemInstalled()); |
} |