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