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

Side by Side Diff: chrome/views/tree_view.h

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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/test/unit/unittests.vcproj ('k') | chrome/views/tree_view.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_VIEWS_TREE_VIEW_H__ 5 #ifndef CHROME_VIEWS_TREE_VIEW_H__
6 #define CHROME_VIEWS_TREE_VIEW_H__ 6 #define CHROME_VIEWS_TREE_VIEW_H__
7 7
8 #include <map> 8 #include <map>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 140
141 // Returns the selected node, or NULL if nothing is selected. 141 // Returns the selected node, or NULL if nothing is selected.
142 TreeModelNode* GetSelectedNode(); 142 TreeModelNode* GetSelectedNode();
143 143
144 // Make sure node and all its parents are expanded. 144 // Make sure node and all its parents are expanded.
145 void Expand(TreeModelNode* node); 145 void Expand(TreeModelNode* node);
146 146
147 // Convenience to expand ALL nodes in the tree. 147 // Convenience to expand ALL nodes in the tree.
148 void ExpandAll(); 148 void ExpandAll();
149 149
150 // Invoked from ExpandAll(). Expands the supplied node and recursively
151 // invokes itself with all children.
152 void ExpandAll(TreeModelNode* node);
153
150 // Returns true if the specified node is expanded. 154 // Returns true if the specified node is expanded.
151 bool IsExpanded(TreeModelNode* node); 155 bool IsExpanded(TreeModelNode* node);
152 156
153 // Sets whether the root is shown. If true, the root node of the tree is 157 // Sets whether the root is shown. If true, the root node of the tree is
154 // shown, if false only the children of the root are shown. The default is 158 // shown, if false only the children of the root are shown. The default is
155 // true. 159 // true.
156 void SetRootShown(bool root_visible); 160 void SetRootShown(bool root_visible);
157 161
158 // TreeModelObserver methods. Don't call these directly, instead your model 162 // TreeModelObserver methods. Don't call these directly, instead your model
159 // should notify the observer TreeView adds to it. 163 // should notify the observer TreeView adds to it.
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
246 // From the native TreeView. 250 // From the native TreeView.
247 // 251 //
248 // This should be treated as const, but can't due to timing in creating the 252 // This should be treated as const, but can't due to timing in creating the
249 // entry. 253 // entry.
250 HTREEITEM tree_item; 254 HTREEITEM tree_item;
251 255
252 // Whether the children have been loaded. 256 // Whether the children have been loaded.
253 bool loaded_children; 257 bool loaded_children;
254 }; 258 };
255 259
256 // Invoked from ExpandAll(). Expands the supplied node and recursively
257 // invokes itself with all children.
258 void ExpandAll(TreeModelNode* node);
259
260 // Deletes the root items from the treeview. This is used when the model 260 // Deletes the root items from the treeview. This is used when the model
261 // changes. 261 // changes.
262 void DeleteRootItems(); 262 void DeleteRootItems();
263 263
264 // Creates the root items in the treeview from the model. This is used when 264 // Creates the root items in the treeview from the model. This is used when
265 // the model changes. 265 // the model changes.
266 void CreateRootItems(); 266 void CreateRootItems();
267 267
268 // Creates and adds an item to the treeview. parent_item identifies the 268 // Creates and adds an item to the treeview. parent_item identifies the
269 // parent and is null for root items. after dictates where among the 269 // parent and is null for root items. after dictates where among the
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
351 bool has_custom_icons_; 351 bool has_custom_icons_;
352 352
353 HIMAGELIST image_list_; 353 HIMAGELIST image_list_;
354 354
355 DISALLOW_COPY_AND_ASSIGN(TreeView); 355 DISALLOW_COPY_AND_ASSIGN(TreeView);
356 }; 356 };
357 357
358 } // namespace views 358 } // namespace views
359 359
360 #endif // CHROME_VIEWS_TREE_VIEW_H__ 360 #endif // CHROME_VIEWS_TREE_VIEW_H__
OLDNEW
« no previous file with comments | « chrome/test/unit/unittests.vcproj ('k') | chrome/views/tree_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698