blob: 25275018a201dae2f4d3b4bbfeb9863ba661d8d9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
// 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 UI_APP_LIST_APP_LIST_MODEL_OBSERVER_H_
#define UI_APP_LIST_APP_LIST_MODEL_OBSERVER_H_
#include "ui/app_list/app_list_export.h"
namespace app_list {
class AppListItem;
class APP_LIST_EXPORT AppListModelObserver {
public:
// Invoked when 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() {}
// Triggered after |item| has moved, changed folders, or changed properties.
virtual void OnAppListItemUpdated(AppListItem* item) {}
protected:
virtual ~AppListModelObserver() {}
};
} // namespace app_list
#endif // UI_APP_LIST_APP_LIST_MODEL_OBSERVER_H_
|