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_SHELF_SHELF_MODEL_H_ | 5 #ifndef ASH_SHELF_SHELF_MODEL_H_ |
6 #define ASH_SHELF_SHELF_MODEL_H_ | 6 #define ASH_SHELF_SHELF_MODEL_H_ |
7 | 7 |
8 #include "ash/ash_export.h" | 8 #include "ash/ash_export.h" |
9 #include "ash/shelf/shelf_item_types.h" | 9 #include "ash/shelf/shelf_item_types.h" |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
84 // Makes sure |index| is in line with the type-based order of items. If that | 84 // Makes sure |index| is in line with the type-based order of items. If that |
85 // is not the case, adjusts index by shifting it to the valid range and | 85 // is not the case, adjusts index by shifting it to the valid range and |
86 // returns the new value. | 86 // returns the new value. |
87 int ValidateInsertionIndex(ShelfItemType type, int index) const; | 87 int ValidateInsertionIndex(ShelfItemType type, int index) const; |
88 | 88 |
89 // ID assigned to the next item. | 89 // ID assigned to the next item. |
90 ShelfID next_id_; | 90 ShelfID next_id_; |
91 | 91 |
92 ShelfItems items_; | 92 ShelfItems items_; |
93 Status status_; | 93 Status status_; |
94 ObserverList<ShelfModelObserver> observers_; | 94 base::ObserverList<ShelfModelObserver> observers_; |
95 | 95 |
96 DISALLOW_COPY_AND_ASSIGN(ShelfModel); | 96 DISALLOW_COPY_AND_ASSIGN(ShelfModel); |
97 }; | 97 }; |
98 | 98 |
99 } // namespace ash | 99 } // namespace ash |
100 | 100 |
101 #endif // ASH_SHELF_SHELF_MODEL_H_ | 101 #endif // ASH_SHELF_SHELF_MODEL_H_ |
OLD | NEW |