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.
#ifndef ASH_APP_LIST_MODEL_APP_LIST_MODEL_OBSERVER_H_
#define ASH_APP_LIST_MODEL_APP_LIST_MODEL_OBSERVER_H_
#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 {
public:
// 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) {}
protected:
virtual ~AppListModelObserver() {}
};
} // namespace app_list
#endif // ASH_APP_LIST_MODEL_APP_LIST_MODEL_OBSERVER_H_