| OLD | NEW |
| 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 UI_AURA_SHELL_LAUNCHER_MODEL_OBSERVER_H_ | 5 #ifndef UI_AURA_SHELL_LAUNCHER_MODEL_OBSERVER_H_ |
| 6 #define UI_AURA_SHELL_LAUNCHER_MODEL_OBSERVER_H_ | 6 #define UI_AURA_SHELL_LAUNCHER_MODEL_OBSERVER_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "ui/aura_shell/aura_shell_export.h" | 9 #include "ui/aura_shell/aura_shell_export.h" |
| 10 | 10 |
| 11 namespace aura_shell { | 11 namespace aura_shell { |
| 12 | 12 |
| 13 class AURA_SHELL_EXPORT LauncherModelObserver { | 13 class AURA_SHELL_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 when the selection changes. | 22 // Invoked when the images of an item change. |
| 23 virtual void LauncherSelectionChanged() = 0; | 23 virtual void LauncherItemImagesChanged(int index) = 0; |
| 24 | 24 |
| 25 protected: | 25 protected: |
| 26 virtual ~LauncherModelObserver() {} | 26 virtual ~LauncherModelObserver() {} |
| 27 }; | 27 }; |
| 28 | 28 |
| 29 } // namespace aura_shell | 29 } // namespace aura_shell |
| 30 | 30 |
| 31 #endif // UI_AURA_SHELL_LAUNCHER_MODEL_OBSERVER_H_ | 31 #endif // UI_AURA_SHELL_LAUNCHER_MODEL_OBSERVER_H_ |
| OLD | NEW |