blob: f2ff9223606f439cb481a7b7c085097b2c47fa75 [file] [log] [blame]
// Copyright 2018 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 CHROME_BROWSER_UI_APP_LIST_APP_LIST_MODEL_UPDATER_DELEGATE_H_
#define CHROME_BROWSER_UI_APP_LIST_APP_LIST_MODEL_UPDATER_DELEGATE_H_
class ChromeAppListItem;
// A delegate interface of AppListModelUpdater to perform
// additional work on ChromeAppListItem changes.
class AppListModelUpdaterDelegate {
public:
// Triggered after an item has been added to the model.
virtual void OnAppListItemAdded(ChromeAppListItem* item) {}
// Triggered just before an item is deleted from the model.
virtual void OnAppListItemWillBeDeleted(ChromeAppListItem* item) {}
// Triggered after an item has moved, changed folders, or changed properties.
virtual void OnAppListItemUpdated(ChromeAppListItem* item) {}
protected:
virtual ~AppListModelUpdaterDelegate() {}
};
#endif // CHROME_BROWSER_UI_APP_LIST_APP_LIST_MODEL_UPDATER_DELEGATE_H_