Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(555)

Side by Side Diff: ash/launcher/launcher_model_observer.h

Issue 9033007: Rename the aura_shell namespace to ash (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 12 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef ASH_LAUNCHER_LAUNCHER_MODEL_OBSERVER_H_ 5 #ifndef ASH_LAUNCHER_LAUNCHER_MODEL_OBSERVER_H_
6 #define ASH_LAUNCHER_LAUNCHER_MODEL_OBSERVER_H_ 6 #define ASH_LAUNCHER_LAUNCHER_MODEL_OBSERVER_H_
7 #pragma once 7 #pragma once
8 8
9 #include "ash/ash_export.h" 9 #include "ash/ash_export.h"
10 10
11 namespace aura_shell { 11 namespace ash {
12 12
13 class ASH_EXPORT LauncherModelObserver { 13 class ASH_EXPORT LauncherModelObserver {
14 public: 14 public:
15 // Invoked after an item has been added to the model. 15 // Invoked after an item has been added to the model.
16 virtual void LauncherItemAdded(int index) = 0; 16 virtual void LauncherItemAdded(int index) = 0;
17 17
18 // Invoked after an item has been removed. |index| is the index the item was 18 // Invoked after an item has been removed. |index| is the index the item was
19 // at. 19 // at.
20 virtual void LauncherItemRemoved(int index) = 0; 20 virtual void LauncherItemRemoved(int index) = 0;
21 21
22 // Invoked after an item has been moved. See LauncherModel::Move() for details 22 // Invoked after an item has been moved. See LauncherModel::Move() for details
23 // of the arguments. 23 // of the arguments.
24 virtual void LauncherItemMoved(int start_index, int target_index) = 0; 24 virtual void LauncherItemMoved(int start_index, int target_index) = 0;
25 25
26 // Invoked when the images of an item change. 26 // Invoked when the images of an item change.
27 virtual void LauncherItemImagesChanged(int index) = 0; 27 virtual void LauncherItemImagesChanged(int index) = 0;
28 28
29 // Signals that LauncherItemImagesChanged() is going to be sent in the 29 // Signals that LauncherItemImagesChanged() is going to be sent in the
30 // near future. 30 // near future.
31 virtual void LauncherItemImagesWillChange(int index) = 0; 31 virtual void LauncherItemImagesWillChange(int index) = 0;
32 32
33 protected: 33 protected:
34 virtual ~LauncherModelObserver() {} 34 virtual ~LauncherModelObserver() {}
35 }; 35 };
36 36
37 } // namespace aura_shell 37 } // namespace ash
38 38
39 #endif // ASH_LAUNCHER_LAUNCHER_MODEL_OBSERVER_H_ 39 #endif // ASH_LAUNCHER_LAUNCHER_MODEL_OBSERVER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698