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

Unified Diff: ui/app_list/views/tile_item_view.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/views/tile_item_view.h
diff --git a/ui/app_list/views/tile_item_view.h b/ui/app_list/views/tile_item_view.h
index 62e1c2ef35d9f3458704a2c6f900dba47ed9f788..abe9cd18c2269101370e5c8fe689601f2f56e5ed 100644
--- a/ui/app_list/views/tile_item_view.h
+++ b/ui/app_list/views/tile_item_view.h
@@ -63,6 +63,10 @@ class APP_LIST_EXPORT TileItemView : public views::CustomButton,
void SetBadgeIcon(const gfx::ImageSkia& badge_icon);
void SetTitle(const base::string16& title);
+ void SetPrice(const base::string16& title);
+
xiyuan 2017/06/20 22:19:23 nit: strip empty lines and put the new method in t
weidongg 2017/06/22 00:59:16 Done.
+ void SetRating(const base::string16& rating);
+
private:
void UpdateBackgroundColor();
@@ -77,9 +81,14 @@ class APP_LIST_EXPORT TileItemView : public views::CustomButton,
views::ImageView* icon_; // Owned by views hierarchy.
views::ImageView* badge_; // Owned by views hierarchy.
views::Label* title_; // Owned by views hierarchy.
+ views::Label* price_; // Owned by views hierarchy.
+ views::Label* rating_; // Owned by views hierarchy.
bool selected_ = false;
+ // True if the fullscreen app list feature is enabled.
+ const bool is_fullscreen_app_list_enabled_;
+
DISALLOW_COPY_AND_ASSIGN(TileItemView);
};

Powered by Google App Engine
This is Rietveld 408576698