diff options
author | sky@google.com <sky@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-02-25 00:22:01 +0000 |
---|---|---|
committer | sky@google.com <sky@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-02-25 00:22:01 +0000 |
commit | e2f86d9313ffcdd815e2828f9c0cbf16728d74be (patch) | |
tree | 7f36ab3693ce0e9cd64f1329d811dcf99bbd0590 /chrome/views | |
parent | 938cc1c0e38e21c3dfcbf21527c3d41349e86519 (diff) | |
download | chromium_src-e2f86d9313ffcdd815e2828f9c0cbf16728d74be.zip chromium_src-e2f86d9313ffcdd815e2828f9c0cbf16728d74be.tar.gz chromium_src-e2f86d9313ffcdd815e2828f9c0cbf16728d74be.tar.bz2 |
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
Diffstat (limited to 'chrome/views')
-rw-r--r-- | chrome/views/tree_node_model.h | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/chrome/views/tree_node_model.h b/chrome/views/tree_node_model.h index 18b93f9..52126d6 100644 --- a/chrome/views/tree_node_model.h +++ b/chrome/views/tree_node_model.h @@ -92,11 +92,6 @@ class TreeNode : public TreeModelNode { 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 @@ class TreeNode : public TreeModelNode { 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 @@ class TreeNodeModel : public TreeModel { } // namespace views #endif // CHROME_VIEWS_TREE_NODE_MODEL_H__ - |