OLD | NEW |
| (Empty) |
1 // Copyright (c) 2012 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_model.h" | |
6 | |
7 namespace ash { | |
8 | |
9 AppListModel::AppListModel() { | |
10 } | |
11 | |
12 AppListModel::~AppListModel() { | |
13 } | |
14 | |
15 void AppListModel::AddItem(AppListItemModel* item) { | |
16 items_.Add(item); | |
17 } | |
18 | |
19 void AppListModel::AddItemAt(int index, AppListItemModel* item) { | |
20 items_.AddAt(index, item); | |
21 } | |
22 | |
23 void AppListModel::DeleteItemAt(int index) { | |
24 items_.DeleteAt(index); | |
25 } | |
26 | |
27 AppListItemModel* AppListModel::GetItem(int index) { | |
28 return items_.item_at(index); | |
29 } | |
30 | |
31 void AppListModel::AddObserver(ui::ListModelObserver* observer) { | |
32 items_.AddObserver(observer); | |
33 } | |
34 | |
35 void AppListModel::RemoveObserver(ui::ListModelObserver* observer) { | |
36 items_.RemoveObserver(observer); | |
37 } | |
38 | |
39 } // namespace ash | |
OLD | NEW |