blob: 0388aa0205da25668738813309b422afb796d982 (
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
|
// Copyright (c) 2011 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_AURA_SHELL_LAUNCHER_MODEL_OBSERVER_H_
#define UI_AURA_SHELL_LAUNCHER_MODEL_OBSERVER_H_
#pragma once
#include "ui/aura_shell/aura_shell_export.h"
namespace aura_shell {
class AURA_SHELL_EXPORT LauncherModelObserver {
public:
// Invoked after an item has been added to the model.
virtual void LauncherItemAdded(int index) = 0;
// Invoked after an item has been removed. |index| is the index the item was
// at.
virtual void LauncherItemRemoved(int index) = 0;
// Invoked after an item has been moved. See LauncherModel::Move() for details
// of the arguments.
virtual void LauncherItemMoved(int start_index, int target_index) = 0;
// Invoked when the images of an item change.
virtual void LauncherItemImagesChanged(int index) = 0;
protected:
virtual ~LauncherModelObserver() {}
};
} // namespace aura_shell
#endif // UI_AURA_SHELL_LAUNCHER_MODEL_OBSERVER_H_
|