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

Unified Diff: ui/base/models/list_model_observer.h

Issue 10956052: Add a ListModel::Move. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase + nit in #2 Created 8 years, 3 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 | « ui/base/models/list_model.h ('k') | ui/base/models/list_model_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/models/list_model_observer.h
diff --git a/ui/base/models/list_model_observer.h b/ui/base/models/list_model_observer.h
index 4b31cb1c39beb2a3698fbbdc5a386b4094e30210..3f59da979829602173c2b17b47f145ca9371b551 100644
--- a/ui/base/models/list_model_observer.h
+++ b/ui/base/models/list_model_observer.h
@@ -20,6 +20,10 @@ class UI_EXPORT ListModelObserver {
// removal.
virtual void ListItemsRemoved(size_t start, size_t count) = 0;
+ // Invoked after an item has been moved. See ListModel::Move() for details
+ // of the arguments.
+ virtual void ListItemMoved(size_t index, size_t target_index) = 0;
+
// Invoked after items has been changed.
virtual void ListItemsChanged(size_t start, size_t count) = 0;
« no previous file with comments | « ui/base/models/list_model.h ('k') | ui/base/models/list_model_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698