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

Side by Side Diff: ui/base/models/tree_node_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/models/list_model.h ('k') | ui/base/user_activity/user_activity_detector.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_TREE_NODE_MODEL_H_ 5 #ifndef UI_BASE_MODELS_TREE_NODE_MODEL_H_
6 #define UI_BASE_MODELS_TREE_NODE_MODEL_H_ 6 #define UI_BASE_MODELS_TREE_NODE_MODEL_H_
7 7
8 #include <algorithm> 8 #include <algorithm>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after
285 285
286 void SetTitle(TreeModelNode* node, 286 void SetTitle(TreeModelNode* node,
287 const base::string16& title) override { 287 const base::string16& title) override {
288 DCHECK(node); 288 DCHECK(node);
289 AsNode(node)->SetTitle(title); 289 AsNode(node)->SetTitle(title);
290 NotifyObserverTreeNodeChanged(node); 290 NotifyObserverTreeNodeChanged(node);
291 } 291 }
292 292
293 private: 293 private:
294 // The observers. 294 // The observers.
295 ObserverList<TreeModelObserver> observer_list_; 295 base::ObserverList<TreeModelObserver> observer_list_;
296 296
297 // The root. 297 // The root.
298 scoped_ptr<NodeType> root_; 298 scoped_ptr<NodeType> root_;
299 299
300 DISALLOW_COPY_AND_ASSIGN(TreeNodeModel); 300 DISALLOW_COPY_AND_ASSIGN(TreeNodeModel);
301 }; 301 };
302 302
303 } // namespace ui 303 } // namespace ui
304 304
305 #endif // UI_BASE_MODELS_TREE_NODE_MODEL_H_ 305 #endif // UI_BASE_MODELS_TREE_NODE_MODEL_H_
OLDNEW
« no previous file with comments | « ui/base/models/list_model.h ('k') | ui/base/user_activity/user_activity_detector.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698