| 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_TREE_NODE_MODEL_H__ | 5 #ifndef CHROME_VIEWS_TREE_NODE_MODEL_H__ |
| 6 #define CHROME_VIEWS_TREE_NODE_MODEL_H__ | 6 #define CHROME_VIEWS_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 "chrome/common/scoped_vector.h" | 13 #include "chrome/common/scoped_vector.h" |
| 13 #include "chrome/views/tree_model.h" | 14 #include "chrome/views/tree_model.h" |
| 14 | 15 |
| 15 namespace views { | 16 namespace views { |
| 16 | 17 |
| 17 // TreeNodeModel and TreeNodes provide an implementation of TreeModel around | 18 // TreeNodeModel and TreeNodes provide an implementation of TreeModel around |
| 18 // TreeNodes. TreeNodes form a directed acyclic graph. | 19 // TreeNodes. TreeNodes form a directed acyclic graph. |
| 19 // | 20 // |
| 20 // TreeNodes own their children, so that deleting a node deletes all | 21 // TreeNodes own their children, so that deleting a node deletes all |
| 21 // descendants. | 22 // descendants. |
| (...skipping 250 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 272 | 273 |
| 273 // The observer. | 274 // The observer. |
| 274 TreeModelObserver* observer_; | 275 TreeModelObserver* observer_; |
| 275 | 276 |
| 276 DISALLOW_COPY_AND_ASSIGN(TreeNodeModel); | 277 DISALLOW_COPY_AND_ASSIGN(TreeNodeModel); |
| 277 }; | 278 }; |
| 278 | 279 |
| 279 } // namespace views | 280 } // namespace views |
| 280 | 281 |
| 281 #endif // CHROME_VIEWS_TREE_NODE_MODEL_H__ | 282 #endif // CHROME_VIEWS_TREE_NODE_MODEL_H__ |
| OLD | NEW |