Hide X11 dependencies when use_x11=0.
[chromium-blink-merge.git] / ui / app_list / app_list_model_observer.h
blobcc3d08e185309c83ebcf2728b7275c0fcc354f78
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 #ifndef UI_APP_LIST_APP_LIST_MODEL_OBSERVER_H_
6 #define UI_APP_LIST_APP_LIST_MODEL_OBSERVER_H_
8 #include "ui/app_list/app_list_export.h"
10 namespace app_list {
12 class AppListItem;
14 class APP_LIST_EXPORT AppListModelObserver {
15 public:
16 // Invoked when AppListModel's status has changed.
17 virtual void OnAppListModelStatusChanged() {}
19 // Triggered after |item| has been added to the model.
20 virtual void OnAppListItemAdded(AppListItem* item) {}
22 // Triggered just before an item is deleted from the model.
23 virtual void OnAppListItemWillBeDeleted(AppListItem* item) {}
25 // Triggered after |item| has moved or changed folders.
26 virtual void OnAppListItemUpdated(AppListItem* item) {}
28 protected:
29 virtual ~AppListModelObserver() {}
32 } // namespace app_list
34 #endif // UI_APP_LIST_APP_LIST_MODEL_OBSERVER_H_