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

Unified Diff: ash/app_list/app_list_model.cc

Issue 9479031: aura: Implement new app list mock. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix compilation error Created 8 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
« no previous file with comments | « ash/app_list/app_list_model.h ('k') | ash/app_list/app_list_model_view.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/app_list/app_list_model.cc
diff --git a/ash/app_list/app_list_model.cc b/ash/app_list/app_list_model.cc
index 8362dd67c69f6f395f0527a09ac14a8ce35fdff4..b9d43e71f5db5effadb9952affc7f2fe804fcd57 100644
--- a/ash/app_list/app_list_model.cc
+++ b/ash/app_list/app_list_model.cc
@@ -12,21 +12,21 @@ AppListModel::AppListModel() {
AppListModel::~AppListModel() {
}
-void AppListModel::AddGroup(AppListItemGroupModel* group) {
- groups_.Add(group);
+void AppListModel::AddItem(AppListItemModel* item) {
+ items_.Add(item);
}
-AppListItemGroupModel* AppListModel::GetGroup(int index) {
- DCHECK(index >= 0 && index < group_count());
- return groups_.item_at(index);
+AppListItemModel* AppListModel::GetItem(int index) {
+ DCHECK(index >= 0 && index < item_count());
+ return items_.item_at(index);
}
void AppListModel::AddObserver(ui::ListModelObserver* observer) {
- groups_.AddObserver(observer);
+ items_.AddObserver(observer);
}
void AppListModel::RemoveObserver(ui::ListModelObserver* observer) {
- groups_.RemoveObserver(observer);
+ items_.RemoveObserver(observer);
}
} // namespace ash
« no previous file with comments | « ash/app_list/app_list_model.h ('k') | ash/app_list/app_list_model_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698