Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(7802)

Unified Diff: chrome/views/tree_node_model.h

Issue 27082: Adds ability to sort the children of a node in the bookmark model. I... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/bookmarks/bookmark_model_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/views/tree_node_model.h
===================================================================
--- chrome/views/tree_node_model.h (revision 10251)
+++ chrome/views/tree_node_model.h (working copy)
@@ -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__
-
« no previous file with comments | « chrome/browser/bookmarks/bookmark_model_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698