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

Unified Diff: ui/app_list/app_list_model_observer.h

Issue 27438002: Store AppItems as pages in AppListModel. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address comments 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_model_observer.h
diff --git a/ui/app_list/app_list_model_observer.h b/ui/app_list/app_list_model_observer.h
index e409fa7fb436efb211624fd35bf5a093430f9f85..bd6d40fb357987974202663d2bd8507fd858329d 100644
--- a/ui/app_list/app_list_model_observer.h
+++ b/ui/app_list/app_list_model_observer.h
@@ -20,6 +20,14 @@ class APP_LIST_EXPORT AppListModelObserver {
// Invoked when AppListModel's current user's signin status has changed.
virtual void OnAppListModelSigninStatusChanged() {}
+ // Invoked when items on |page_index| change.
+ virtual void OnListItemsAdded(size_t page_index,
xiyuan 2013/10/18 23:04:08 nit: Rename to OnPageItemsAdded? OnListItemxxxx is
stevenjb 2013/10/19 01:04:43 Sounds reasonable.
+ size_t start, size_t count) {}
+ virtual void OnListItemsRemoved(size_t page_index,
+ size_t start, size_t count) {}
+ virtual void OnListItemMoved(size_t page_index,
+ size_t index, size_t target_index) {}
+
protected:
virtual ~AppListModelObserver() {}
};

Powered by Google App Engine
This is Rietveld 408576698