| OLD | NEW |
| (Empty) |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #include "ash/app_list/app_list_item_group_model.h" | |
| 6 | |
| 7 namespace ash { | |
| 8 | |
| 9 AppListItemGroupModel::AppListItemGroupModel(const std::string& title) | |
| 10 : title_(title) { | |
| 11 } | |
| 12 | |
| 13 AppListItemGroupModel::~AppListItemGroupModel() { | |
| 14 } | |
| 15 | |
| 16 void AppListItemGroupModel::AddItem(AppListItemModel* item) { | |
| 17 items_.Add(item); | |
| 18 } | |
| 19 | |
| 20 AppListItemModel* AppListItemGroupModel::GetItem(int index) { | |
| 21 DCHECK(index >= 0 && index < item_count()); | |
| 22 return items_.item_at(index); | |
| 23 } | |
| 24 | |
| 25 } // namespace ash | |
| OLD | NEW |