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

Unified Diff: chrome/views/tree_view.cc

Issue 9471: Adds import/export of bookmarks to bookmarks.html file.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 12 years, 1 month 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/views/tree_view.h ('k') | net/base/escape.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/views/tree_view.cc
===================================================================
--- chrome/views/tree_view.cc (revision 4885)
+++ chrome/views/tree_view.cc (working copy)
@@ -157,6 +157,18 @@
ExpandAll(model_->GetRoot());
}
+void TreeView::ExpandAll(TreeModelNode* node) {
+ DCHECK(node);
+ // Expand the node.
+ if (node != model_->GetRoot() || root_shown_)
+ TreeView_Expand(tree_view_, GetNodeDetails(node)->tree_item, TVE_EXPAND);
+ // And recursively expand all the children.
+ for (int i = model_->GetChildCount(node) - 1; i >= 0; --i) {
+ TreeModelNode* child = model_->GetChild(node, i);
+ ExpandAll(child);
+ }
+}
+
bool TreeView::IsExpanded(TreeModelNode* node) {
TreeModelNode* parent = model_->GetParent(node);
if (!parent)
@@ -470,18 +482,6 @@
return details ? details->tree_item : NULL;
}
-void TreeView::ExpandAll(TreeModelNode* node) {
- DCHECK(node);
- // Expand the node.
- if (node != model_->GetRoot() || root_shown_)
- TreeView_Expand(tree_view_, GetNodeDetails(node)->tree_item, TVE_EXPAND);
- // And recursively expand all the children.
- for (int i = model_->GetChildCount(node) - 1; i >= 0; --i) {
- TreeModelNode* child = model_->GetChild(node, i);
- ExpandAll(child);
- }
-}
-
void TreeView::DeleteRootItems() {
HTREEITEM root = TreeView_GetRoot(tree_view_);
if (root) {
« no previous file with comments | « chrome/views/tree_view.h ('k') | net/base/escape.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698