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_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 Loading... |
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_ |
OLD | NEW |