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

Unified Diff: chrome/views/tree_view.h

Issue 28175: Adds ability for tree model to reorder its children. I'm going to use... (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/views/tree_model.h ('k') | chrome/views/tree_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/views/tree_view.h
===================================================================
--- chrome/views/tree_view.h (revision 10251)
+++ chrome/views/tree_view.h (working copy)
@@ -105,6 +105,8 @@
TreeModelNode* parent,
int start,
int count);
+ virtual void TreeNodeChildrenReordered(TreeModel* model,
+ TreeModelNode* parent);
virtual void TreeNodeChanged(TreeModel* model, TreeModelNode* node);
// Sets the controller, which may be null. TreeView does not take ownership
@@ -234,6 +236,11 @@
// Creates the image list to use for the tree.
HIMAGELIST CreateImageList();
+ // Returns the HTREEITEM for |node|. This is intended to be called when a
+ // model mutation event occur with |node| as the parent. This returns null
+ // if the user has never expanded |node| or all of its parents.
+ HTREEITEM GetTreeItemForNodeDuringMutation(TreeModelNode* node);
+
// The window function installed on the treeview.
static LRESULT CALLBACK TreeWndProc(HWND window,
UINT message,
« no previous file with comments | « chrome/views/tree_model.h ('k') | chrome/views/tree_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698