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

Unified Diff: ui/app_list/app_list_item_model.h

Issue 14533006: Drag and drop between app list and launcher - First patch (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed Created 7 years, 7 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 d0acd765848949e7f6fc743f11300bc40edab823..d437564ef7526a0560344a8a2740c1ef9305332c 100644
--- a/ui/app_list/app_list_item_model.h
+++ b/ui/app_list/app_list_item_model.h
@@ -43,6 +43,9 @@ class APP_LIST_EXPORT AppListItemModel {
void SetPercentDownloaded(int percent_downloaded);
int percent_downloaded() const { return percent_downloaded_; }
+ void set_app_id(const std::string& app_id) { app_id_ = app_id; }
+ const std::string& app_id() { return app_id_; }
+
void AddObserver(AppListItemModelObserver* observer);
void RemoveObserver(AppListItemModelObserver* observer);
@@ -57,6 +60,7 @@ class APP_LIST_EXPORT AppListItemModel {
bool highlighted_;
bool is_installing_;
int percent_downloaded_;
+ std::string app_id_;
ObserverList<AppListItemModelObserver> observers_;

Powered by Google App Engine
This is Rietveld 408576698