| 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 ASH_LAUNCHER_LAUNCHER_MODEL_H_ | 5 #ifndef ASH_LAUNCHER_LAUNCHER_MODEL_H_ |
| 6 #define ASH_LAUNCHER_LAUNCHER_MODEL_H_ | 6 #define ASH_LAUNCHER_LAUNCHER_MODEL_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| 11 #include "ash/launcher/launcher_types.h" | 11 #include "ash/launcher/launcher_types.h" |
| 12 #include "base/observer_list.h" | 12 #include "base/observer_list.h" |
| 13 #include "ash/ash_export.h" | 13 #include "ash/ash_export.h" |
| 14 | 14 |
| 15 namespace aura { | 15 namespace aura { |
| 16 class Window; | 16 class Window; |
| 17 } | 17 } |
| 18 | 18 |
| 19 namespace aura_shell { | 19 namespace ash { |
| 20 | 20 |
| 21 class LauncherModelObserver; | 21 class LauncherModelObserver; |
| 22 | 22 |
| 23 // Model used by LauncherView. | 23 // Model used by LauncherView. |
| 24 class ASH_EXPORT LauncherModel { | 24 class ASH_EXPORT LauncherModel { |
| 25 public: | 25 public: |
| 26 LauncherModel(); | 26 LauncherModel(); |
| 27 ~LauncherModel(); | 27 ~LauncherModel(); |
| 28 | 28 |
| 29 // Adds a new item to the model. | 29 // Adds a new item to the model. |
| (...skipping 25 matching lines...) Expand all Loading... |
| 55 void AddObserver(LauncherModelObserver* observer); | 55 void AddObserver(LauncherModelObserver* observer); |
| 56 void RemoveObserver(LauncherModelObserver* observer); | 56 void RemoveObserver(LauncherModelObserver* observer); |
| 57 | 57 |
| 58 private: | 58 private: |
| 59 LauncherItems items_; | 59 LauncherItems items_; |
| 60 ObserverList<LauncherModelObserver> observers_; | 60 ObserverList<LauncherModelObserver> observers_; |
| 61 | 61 |
| 62 DISALLOW_COPY_AND_ASSIGN(LauncherModel); | 62 DISALLOW_COPY_AND_ASSIGN(LauncherModel); |
| 63 }; | 63 }; |
| 64 | 64 |
| 65 } // namespace aura_shell | 65 } // namespace ash |
| 66 | 66 |
| 67 #endif // ASH_LAUNCHER_LAUNCHER_MODEL_H_ | 67 #endif // ASH_LAUNCHER_LAUNCHER_MODEL_H_ |
| OLD | NEW |