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

Unified Diff: ui/app_list/app_list_item_model.h

Issue 12208040: [win] Add a progress bar in the app launcher for app installs. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: respond to comments Created 7 years, 10 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/app_list_item_model.h
diff --git a/ui/app_list/app_list_item_model.h b/ui/app_list/app_list_item_model.h
index ca382de3e4d53c238d29c7f5733e66a0ede57c30..332c0bda53e35f661ebbc995fe992ad0b31f01f1 100644
--- a/ui/app_list/app_list_item_model.h
+++ b/ui/app_list/app_list_item_model.h
@@ -36,6 +36,12 @@ class APP_LIST_EXPORT AppListItemModel {
void SetHighlighted(bool highlighted);
bool highlighted() const { return highlighted_; }
+ void SetIsInstalling(bool is_installing);
+ virtual bool is_installing() const { return is_installing_; }
tfarina 2013/02/06 15:37:34 why this needs to be virtual? Are you overriding i
xiyuan 2013/02/06 19:10:37 Right. This and percent_downloaded() below should
koz (OOO until 15th September) 2013/02/07 03:13:23 Done.
+
+ void SetPercentDownloaded(int percent_downloaded);
+ virtual int percent_downloaded() const { return percent_downloaded_; }
+
void AddObserver(AppListItemModelObserver* observer);
void RemoveObserver(AppListItemModelObserver* observer);
@@ -47,6 +53,8 @@ class APP_LIST_EXPORT AppListItemModel {
gfx::ImageSkia icon_;
std::string title_;
bool highlighted_;
+ bool is_installing_;
+ int percent_downloaded_;
ObserverList<AppListItemModelObserver> observers_;

Powered by Google App Engine
This is Rietveld 408576698