summaryrefslogtreecommitdiffstats
path: root/ui/app_list/search_result.cc
diff options
context:
space:
mode:
Diffstat (limited to 'ui/app_list/search_result.cc')
-rw-r--r--ui/app_list/search_result.cc12
1 files changed, 12 insertions, 0 deletions
diff --git a/ui/app_list/search_result.cc b/ui/app_list/search_result.cc
index 771251f..bfa1da9 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());
}