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

Unified Diff: ui/app_list/search_result.h

Issue 2949733002: Show Play Store rating and price in app list (Closed)
Patch Set: 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.h
diff --git a/ui/app_list/search_result.h b/ui/app_list/search_result.h
index 1eb49a78ad02f14a2436c3bd0bf5da244caaed8f..e57861f639d9e0ad80034aadbcfaf1d7f14c38f3 100644
--- a/ui/app_list/search_result.h
+++ b/ui/app_list/search_result.h
@@ -113,6 +113,14 @@ class APP_LIST_EXPORT SearchResult {
const Tags& details_tags() const { return details_tags_; }
void set_details_tags(const Tags& tags) { details_tags_ = tags; }
+ double price() const { return price_; }
+ const base::string16& GetPriceString() const;
+ void SetPrice(double price);
xiyuan 2017/06/20 22:19:22 Is there a way to clear price and rating info? Tha
weidongg 2017/06/22 00:59:16 Yes, Done.
+
+ double rating() const { return rating_; }
+ const base::string16& GetRatingString() const;
+ void SetRating(double rating);
+
views::View* view() const { return view_; }
void set_view(views::View* view) { view_ = view; }
@@ -198,6 +206,11 @@ class APP_LIST_EXPORT SearchResult {
base::string16 details_;
Tags details_tags_;
+ double rating_; // amount of the app's stars in play store.
+ base::string16 rating_string_;
+ double price_; // price of the app in play store.
+ base::string16 price_string_;
+
// Unowned pointer to a view containing a rendered result, or nullptr if there
// is no such view for the result.
// The view has set_owned_by_client() property set. It's a responsibility of

Powered by Google App Engine
This is Rietveld 408576698