blob: bf9c908978b5859450712fe4558768ff9dee56de [file] [log] [blame]
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include <string>
#include "ash/app_list/model/app_list_model.h"
#include "ash/app_list/model/app_list_model_export.h"
namespace app_list {
class AppListItem;
class APP_LIST_MODEL_EXPORT AppListModelObserver {
// Triggered after AppListModel's status has changed.
virtual void OnAppListModelStatusChanged() {}
// Triggered after |item| has been added to the model.
virtual void OnAppListItemAdded(AppListItem* item) {}
// Triggered just before an item is deleted from the model.
virtual void OnAppListItemWillBeDeleted(AppListItem* item) {}
// Triggered just after an item is deleted from the model.
virtual void OnAppListItemDeleted(const std::string& id) {}
// Triggered after |item| has moved, changed folders, or changed properties.
virtual void OnAppListItemUpdated(AppListItem* item) {}
// Triggered when the custom launcher page enabled state is changed.
virtual void OnCustomLauncherPageEnabledStateChanged(bool enabled) {}
virtual ~AppListModelObserver() {}
} // namespace app_list