OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_COMMON_SHELF_SHELF_MODEL_H_ | 5 #ifndef ASH_SHELF_SHELF_MODEL_H_ |
6 #define ASH_COMMON_SHELF_SHELF_MODEL_H_ | 6 #define ASH_SHELF_SHELF_MODEL_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <memory> | 9 #include <memory> |
10 | 10 |
11 #include "ash/ash_export.h" | 11 #include "ash/ash_export.h" |
12 #include "ash/common/shelf/shelf_item_types.h" | 12 #include "ash/shelf/shelf_item_types.h" |
13 #include "base/macros.h" | 13 #include "base/macros.h" |
14 #include "base/observer_list.h" | 14 #include "base/observer_list.h" |
15 | 15 |
16 namespace ash { | 16 namespace ash { |
17 | 17 |
18 class ShelfItemDelegate; | 18 class ShelfItemDelegate; |
19 class ShelfModelObserver; | 19 class ShelfModelObserver; |
20 | 20 |
21 // Model used for shelf items. Owns ShelfItemDelegates but does not create them. | 21 // Model used for shelf items. Owns ShelfItemDelegates but does not create them. |
22 class ASH_EXPORT ShelfModel { | 22 class ASH_EXPORT ShelfModel { |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
101 base::ObserverList<ShelfModelObserver> observers_; | 101 base::ObserverList<ShelfModelObserver> observers_; |
102 | 102 |
103 std::map<ShelfID, std::unique_ptr<ShelfItemDelegate>> | 103 std::map<ShelfID, std::unique_ptr<ShelfItemDelegate>> |
104 id_to_item_delegate_map_; | 104 id_to_item_delegate_map_; |
105 | 105 |
106 DISALLOW_COPY_AND_ASSIGN(ShelfModel); | 106 DISALLOW_COPY_AND_ASSIGN(ShelfModel); |
107 }; | 107 }; |
108 | 108 |
109 } // namespace ash | 109 } // namespace ash |
110 | 110 |
111 #endif // ASH_COMMON_SHELF_SHELF_MODEL_H_ | 111 #endif // ASH_SHELF_SHELF_MODEL_H_ |
OLD | NEW |