Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(237)

Side by Side Diff: ui/base/models/list_model.h

Issue 1162943002: Replace more ObserverList with base::ObserverList. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@observer
Patch Set: Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ui/base/ime/remote_input_method_win.cc ('k') | ui/base/models/tree_node_model.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « ui/base/ime/remote_input_method_win.cc ('k') | ui/base/models/tree_node_model.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698