Chromium Code Reviews| Index: ui/base/models/tree_node_model.h |
| diff --git a/ui/base/models/tree_node_model.h b/ui/base/models/tree_node_model.h |
| index 29443f938f971ef1569f454e5c0686ceb6e4182e..29f8ece2afa927381a830aba3d89bf52beea88b7 100644 |
| --- a/ui/base/models/tree_node_model.h |
| +++ b/ui/base/models/tree_node_model.h |
| @@ -112,6 +112,9 @@ class TreeNode : public TreeModelNode { |
| // Returns the number of children. |
| int child_count() const { return static_cast<int>(children_->size()); } |
| + // Returns whether the |children_| is empty. |
|
sky
2011/06/08 15:52:26
Returns true if this nodes has no children.
tfarina
2011/06/08 17:33:43
Done.
|
| + bool empty() const { return children_.empty(); } |
| + |
| // Returns the number of all nodes in the subtree rooted at this node, |
| // including this node. |
| int GetTotalNodeCount() const { |