Chromium Code Reviews| 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_; |