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

Unified Diff: ui/app_list/app_list_item_model.h

Issue 25859005: Elim ActivateAppListItem, ChromeAppListItem (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix static cast in AppModelBuilder, add AppType Created 7 years, 2 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 e9675a83ee1d0aaf10daa8fa5e0945351931048f..1defc5a557f8eb8927713faf6c88c588178213f4 100644
--- a/ui/app_list/app_list_item_model.h
+++ b/ui/app_list/app_list_item_model.h
@@ -51,6 +51,15 @@ class APP_LIST_EXPORT AppListItemModel {
void AddObserver(AppListItemModelObserver* observer);
void RemoveObserver(AppListItemModelObserver* observer);
+ // Returns a string identifier for the subclass (defaults to "").
+ virtual std::string AppType() const;
+
+ // Activates (opens) the item. Does nothing by default.
+ virtual void Activate(int event_flags);
+
+ // Updates the item (called when the model may have changed).
+ virtual void Update();
+
// Returns the context menu model for this item, or NULL if there is currently
// no menu for the item (e.g. during install).
// Note the returned menu model is owned by this item.

Powered by Google App Engine
This is Rietveld 408576698