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

Unified Diff: ui/app_list/search_result.cc

Issue 2949733002: Show Play Store rating and price in app list (Closed)
Patch Set: Rebase 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
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..bd0719d87af16349e2f237162fa2fe5b13c779fd 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::SetPrice(const base::string16& price) {
+ price_ = price;
+ for (auto& observer : observers_)
+ observer.OnPriceChanged();
+}
+
void SearchResult::SetIsMouseInView(bool mouse_is_inside) {
mouse_is_in_view_ = mouse_is_inside;
for (auto& observer : observers_)

Powered by Google App Engine
This is Rietveld 408576698