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 |
11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
12 #include "base/compiler_specific.h" | 12 #include "base/compiler_specific.h" |
13 #include "base/logging.h" | 13 #include "base/logging.h" |
14 #include "base/memory/scoped_ptr.h" | 14 #include "base/memory/scoped_ptr.h" |
15 #include "base/memory/scoped_vector.h" | 15 #include "base/memory/scoped_vector.h" |
16 #include "base/observer_list.h" | 16 #include "base/observer_list.h" |
17 #include "base/string16.h" | 17 #include "base/strings/string16.h" |
18 #include "ui/base/models/tree_model.h" | 18 #include "ui/base/models/tree_model.h" |
19 | 19 |
20 namespace ui { | 20 namespace ui { |
21 | 21 |
22 // TreeNodeModel and TreeNodes provide an implementation of TreeModel around | 22 // TreeNodeModel and TreeNodes provide an implementation of TreeModel around |
23 // TreeNodes. | 23 // TreeNodes. |
24 // | 24 // |
25 // TreeNodes own their children, so that deleting a node deletes all | 25 // TreeNodes own their children, so that deleting a node deletes all |
26 // descendants. | 26 // descendants. |
27 // | 27 // |
(...skipping 267 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
295 | 295 |
296 // The root. | 296 // The root. |
297 scoped_ptr<NodeType> root_; | 297 scoped_ptr<NodeType> root_; |
298 | 298 |
299 DISALLOW_COPY_AND_ASSIGN(TreeNodeModel); | 299 DISALLOW_COPY_AND_ASSIGN(TreeNodeModel); |
300 }; | 300 }; |
301 | 301 |
302 } // namespace ui | 302 } // namespace ui |
303 | 303 |
304 #endif // UI_BASE_MODELS_TREE_NODE_MODEL_H_ | 304 #endif // UI_BASE_MODELS_TREE_NODE_MODEL_H_ |
OLD | NEW |