aura: Implement app list M19 mock.
[chromium-blink-merge.git] / ash / app_list / app_list_model.cc
blob2d93fbe7676dc474f18c00830e90d0eaa214c966
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.
5 #include "ash/app_list/app_list_model.h"
7 namespace ash {
9 AppListModel::AppListModel() {
12 AppListModel::~AppListModel() {
15 void AppListModel::AddItem(AppListItemModel* item) {
16 items_.Add(item);
19 AppListItemModel* AppListModel::GetItem(int index) {
20 return items_.item_at(index);
23 void AppListModel::AddObserver(ui::ListModelObserver* observer) {
24 items_.AddObserver(observer);
27 void AppListModel::RemoveObserver(ui::ListModelObserver* observer) {
28 items_.RemoveObserver(observer);
31 } // namespace ash