| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 CHROME_VIEWS_CONTROLS_TREE_TREE_NODE_MODEL_H_ | 5 #ifndef CHROME_VIEWS_CONTROLS_TREE_TREE_NODE_MODEL_H_ |
| 6 #define CHROME_VIEWS_CONTROLS_TREE_TREE_NODE_MODEL_H_ | 6 #define CHROME_VIEWS_CONTROLS_TREE_TREE_NODE_MODEL_H_ |
| 7 | 7 |
| 8 #include <algorithm> | 8 #include <algorithm> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| 11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
| 12 #include "base/scoped_ptr.h" | 12 #include "base/scoped_ptr.h" |
| 13 #include "chrome/common/scoped_vector.h" | 13 #include "base/scoped_vector.h" |
| 14 #include "base/stl_util-inl.h" |
| 14 #include "chrome/views/controls/tree/tree_model.h" | 15 #include "chrome/views/controls/tree/tree_model.h" |
| 15 | 16 |
| 16 namespace views { | 17 namespace views { |
| 17 | 18 |
| 18 // TreeNodeModel and TreeNodes provide an implementation of TreeModel around | 19 // TreeNodeModel and TreeNodes provide an implementation of TreeModel around |
| 19 // TreeNodes. TreeNodes form a directed acyclic graph. | 20 // TreeNodes. TreeNodes form a directed acyclic graph. |
| 20 // | 21 // |
| 21 // TreeNodes own their children, so that deleting a node deletes all | 22 // TreeNodes own their children, so that deleting a node deletes all |
| 22 // descendants. | 23 // descendants. |
| 23 // | 24 // |
| (...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 273 | 274 |
| 274 // The observer. | 275 // The observer. |
| 275 TreeModelObserver* observer_; | 276 TreeModelObserver* observer_; |
| 276 | 277 |
| 277 DISALLOW_COPY_AND_ASSIGN(TreeNodeModel); | 278 DISALLOW_COPY_AND_ASSIGN(TreeNodeModel); |
| 278 }; | 279 }; |
| 279 | 280 |
| 280 } // namespace views | 281 } // namespace views |
| 281 | 282 |
| 282 #endif // CHROME_VIEWS_CONTROLS_TREE_TREE_NODE_MODEL_H_ | 283 #endif // CHROME_VIEWS_CONTROLS_TREE_TREE_NODE_MODEL_H_ |
| OLD | NEW |