| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 APP_TREE_NODE_MODEL_H_ | 5 #ifndef APP_TREE_NODE_MODEL_H_ |
| 6 #define APP_TREE_NODE_MODEL_H_ | 6 #define APP_TREE_NODE_MODEL_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <algorithm> | 9 #include <algorithm> |
| 10 #include <vector> | 10 #include <vector> |
| 11 | 11 |
| 12 #include "app/tree_model.h" | 12 #include "app/tree_model.h" |
| 13 #include "base/basictypes.h" | 13 #include "base/basictypes.h" |
| 14 #include "base/logging.h" |
| 14 #include "base/observer_list.h" | 15 #include "base/observer_list.h" |
| 15 #include "base/scoped_ptr.h" | 16 #include "base/scoped_ptr.h" |
| 16 #include "base/scoped_vector.h" | 17 #include "base/scoped_vector.h" |
| 17 #include "base/stl_util-inl.h" | 18 #include "base/stl_util-inl.h" |
| 18 #include "base/string16.h" | 19 #include "base/string16.h" |
| 19 | 20 |
| 20 // TreeNodeModel and TreeNodes provide an implementation of TreeModel around | 21 // TreeNodeModel and TreeNodes provide an implementation of TreeModel around |
| 21 // TreeNodes. TreeNodes form a directed acyclic graph. | 22 // TreeNodes. TreeNodes form a directed acyclic graph. |
| 22 // | 23 // |
| 23 // TreeNodes own their children, so that deleting a node deletes all | 24 // TreeNodes own their children, so that deleting a node deletes all |
| (...skipping 281 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 305 private: | 306 private: |
| 306 // The observers. | 307 // The observers. |
| 307 ObserverList<TreeModelObserver> observer_list_; | 308 ObserverList<TreeModelObserver> observer_list_; |
| 308 // The root. | 309 // The root. |
| 309 scoped_ptr<NodeType> root_; | 310 scoped_ptr<NodeType> root_; |
| 310 | 311 |
| 311 DISALLOW_COPY_AND_ASSIGN(TreeNodeModel); | 312 DISALLOW_COPY_AND_ASSIGN(TreeNodeModel); |
| 312 }; | 313 }; |
| 313 | 314 |
| 314 #endif // APP_TREE_NODE_MODEL_H_ | 315 #endif // APP_TREE_NODE_MODEL_H_ |
| OLD | NEW |