summaryrefslogtreecommitdiffstats
path: root/chrome/views/tree_model.h
diff options
context:
space:
mode:
authorsky@google.com <sky@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-02-26 17:51:54 +0000
committersky@google.com <sky@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-02-26 17:51:54 +0000
commit56c66f21ef57db319f453499d3bf1442e5a0455c (patch)
treea401e0c1e636b3796089081086cbb954e60ca59e /chrome/views/tree_model.h
parentdddb3f5497326cb18f519bbbc4b79a8a5cbc53c9 (diff)
downloadchromium_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.h6
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;
};