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

Unified Diff: ui/app_list/search_result.cc

Issue 2949733002: Show Play Store rating and price in app list (Closed)
Patch Set: Apply fix to patch set 5 Created 3 years, 6 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_observer.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 12930dc1e970449095f9d222370854462a6e5da1..5eece0addc7c2a4c86f6e1913e4fee21db77a7a6 100644
--- a/ui/app_list/search_result.cc
+++ b/ui/app_list/search_result.cc
@@ -49,6 +49,18 @@ void SearchResult::SetBadgeIcon(const gfx::ImageSkia& badge_icon) {
observer.OnBadgeIconChanged();
}
+void SearchResult::SetRating(float rating) {
+ rating_ = rating;
+ for (auto& observer : observers_)
+ observer.OnRatingChanged();
+}
+
+void SearchResult::SetFormattedPrice(const base::string16& formatted_price) {
+ formatted_price_ = formatted_price;
+ for (auto& observer : observers_)
+ observer.OnFormattedPriceChanged();
+}
+
void SearchResult::SetIsMouseInView(bool mouse_is_inside) {
mouse_is_in_view_ = mouse_is_inside;
for (auto& observer : observers_)
« no previous file with comments | « ui/app_list/search_result.h ('k') | ui/app_list/search_result_observer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698