diff options
author | sky@google.com <sky@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-02-26 17:51:54 +0000 |
---|---|---|
committer | sky@google.com <sky@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-02-26 17:51:54 +0000 |
commit | 56c66f21ef57db319f453499d3bf1442e5a0455c (patch) | |
tree | a401e0c1e636b3796089081086cbb954e60ca59e /chrome/views/tree_model.h | |
parent | dddb3f5497326cb18f519bbbc4b79a8a5cbc53c9 (diff) | |
download | chromium_src-56c66f21ef57db319f453499d3bf1442e5a0455c.zip chromium_src-56c66f21ef57db319f453499d3bf1442e5a0455c.tar.gz chromium_src-56c66f21ef57db319f453499d3bf1442e5a0455c.tar.bz2 |
Adds ability for tree model to reorder its children. I'm going to use
this when sorting the contents of a bookmark folder.
BUG=1750
TEST=none
Review URL: http://codereview.chromium.org/28175
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@10477 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/views/tree_model.h')
-rw-r--r-- | chrome/views/tree_model.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/chrome/views/tree_model.h b/chrome/views/tree_model.h index 68a3ff7..3608fbc 100644 --- a/chrome/views/tree_model.h +++ b/chrome/views/tree_model.h @@ -39,6 +39,12 @@ class TreeModelObserver { int start, int count) = 0; + // Notification the children of |parent| have been reordered. Note, only + // the direct children of |parent| have been reordered, not descendants. + // TODO(sky): make this pure virtual after all sites have been updated. + virtual void TreeNodeChildrenReordered(TreeModel* model, + TreeModelNode* parent) {} + // Notification that the contents of a node has changed. virtual void TreeNodeChanged(TreeModel* model, TreeModelNode* node) = 0; }; |