Adds ability to sort the children of a node in the bookmark model. I
plan on doing this in chunks, next phase is updating observers, then
changing the bookmark manager to call into the new method.
BUG=1750
TEST=none yet
Review URL: http://codereview.chromium.org/27082
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@10313 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/chrome/views/tree_node_model.h b/chrome/views/tree_node_model.h
index 18b93f9..52126d6f 100644
--- a/chrome/views/tree_node_model.h
+++ b/chrome/views/tree_node_model.h
@@ -92,11 +92,6 @@
return node;
}
- // Returns the children.
- std::vector<NodeType*> GetChildren() {
- return children_->v;
- }
-
// Returns the number of children.
int GetChildCount() {
return static_cast<int>(children_->size());
@@ -146,6 +141,9 @@
return parent_ ? parent_->HasAncestor(ancestor) : false;
}
+ protected:
+ std::vector<NodeType*>& children() { return children_.get(); }
+
private:
// Title displayed in the tree.
std::wstring title_;
@@ -274,4 +272,3 @@
} // namespace views
#endif // CHROME_VIEWS_TREE_NODE_MODEL_H__
-