summaryrefslogtreecommitdiffstats
path: root/ui/app_list/app_list_model_view.cc
diff options
context:
space:
mode:
authortfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-05-14 01:21:29 +0000
committertfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-05-14 01:21:29 +0000
commitef862fbe6710fe0d212b9d18edc4829cf0946e57 (patch)
tree5cc04bb7b6c33a9b1b647a35d51625a718172b88 /ui/app_list/app_list_model_view.cc
parentbb6305b531bb0e5e714d16d6bf5bb0168c876d31 (diff)
downloadchromium_src-ef862fbe6710fe0d212b9d18edc4829cf0946e57.zip
chromium_src-ef862fbe6710fe0d212b9d18edc4829cf0946e57.tar.gz
chromium_src-ef862fbe6710fe0d212b9d18edc4829cf0946e57.tar.bz2
app_list: Remove unneeded forward declaration from app_list_model.h.
And while I'm here rename GetItem to GetItemAt, as it's more consistent with the other names used in this class (AddItemAt, DeleteItemAt, etc.). R=xiyuan@chromium.org Review URL: https://chromiumcodereview.appspot.com/10332135 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@136815 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui/app_list/app_list_model_view.cc')
-rw-r--r--ui/app_list/app_list_model_view.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/app_list/app_list_model_view.cc b/ui/app_list/app_list_model_view.cc
index 5b4a771..9ebf2e0 100644
--- a/ui/app_list/app_list_model_view.cc
+++ b/ui/app_list/app_list_model_view.cc
@@ -119,7 +119,7 @@ void AppListModelView::Update() {
return;
for (int i = 0; i < model_->item_count(); ++i)
- AddChildView(new AppListItemView(this, model_->GetItem(i), listener_));
+ AddChildView(new AppListItemView(this, model_->GetItemAt(i), listener_));
Layout();
SchedulePaint();
@@ -280,7 +280,7 @@ void AppListModelView::OnPaintFocusBorder(gfx::Canvas* canvas) {
void AppListModelView::ListItemsAdded(int start, int count) {
for (int i = start; i < start + count; ++i) {
- AddChildViewAt(new AppListItemView(this, model_->GetItem(i), listener_),
+ AddChildViewAt(new AppListItemView(this, model_->GetItemAt(i), listener_),
i);
}
Layout();