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

Unified Diff: ash/app_list/app_list_model.cc

Issue 9559005: aura: Implement app list M19 mock. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix nit in #2 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
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..d0eb2359a1fddbe3c3d2d2775ccceff1b404be91 100644
--- a/ash/app_list/app_list_model.cc
+++ b/ash/app_list/app_list_model.cc
@@ -1,4 +1,4 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -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());
sky 2012/03/01 00:26:57 The same check is in ListModel::item_at, so nuke t
xiyuan 2012/03/01 19:58:47 Done.
+ 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

Powered by Google App Engine
This is Rietveld 408576698