OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_BASE_MODELS_LIST_MODEL_H_ | 5 #ifndef UI_BASE_MODELS_LIST_MODEL_H_ |
6 #define UI_BASE_MODELS_LIST_MODEL_H_ | 6 #define UI_BASE_MODELS_LIST_MODEL_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
127 typename ScopedVector<ItemType>::const_iterator begin() const { | 127 typename ScopedVector<ItemType>::const_iterator begin() const { |
128 return items_.begin(); | 128 return items_.begin(); |
129 } | 129 } |
130 typename ScopedVector<ItemType>::iterator end() { return items_.end(); } | 130 typename ScopedVector<ItemType>::iterator end() { return items_.end(); } |
131 typename ScopedVector<ItemType>::const_iterator end() const { | 131 typename ScopedVector<ItemType>::const_iterator end() const { |
132 return items_.end(); | 132 return items_.end(); |
133 } | 133 } |
134 | 134 |
135 private: | 135 private: |
136 ScopedVector<ItemType> items_; | 136 ScopedVector<ItemType> items_; |
137 ObserverList<ListModelObserver> observers_; | 137 base::ObserverList<ListModelObserver> observers_; |
138 | 138 |
139 DISALLOW_COPY_AND_ASSIGN(ListModel<ItemType>); | 139 DISALLOW_COPY_AND_ASSIGN(ListModel<ItemType>); |
140 }; | 140 }; |
141 | 141 |
142 } // namespace ui | 142 } // namespace ui |
143 | 143 |
144 #endif // UI_BASE_MODELS_LIST_MODEL_H_ | 144 #endif // UI_BASE_MODELS_LIST_MODEL_H_ |
OLD | NEW |