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

Unified Diff: chrome/browser/custom_home_pages_table_model.h

Issue 7044136: Support drag&drop for startup pages (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Fixed review issues Created 9 years, 6 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 | « no previous file | chrome/browser/custom_home_pages_table_model.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/custom_home_pages_table_model.h
diff --git a/chrome/browser/custom_home_pages_table_model.h b/chrome/browser/custom_home_pages_table_model.h
index 51455645ac4a1a38a1b081419494705e875cc48a..0403d8d796391a3af03ba57fb69c53a68eefda81 100644
--- a/chrome/browser/custom_home_pages_table_model.h
+++ b/chrome/browser/custom_home_pages_table_model.h
@@ -33,6 +33,11 @@ class CustomHomePagesTableModel : public ui::TableModel {
// Sets the set of urls that this model contains.
void SetURLs(const std::vector<GURL>& urls);
+ // Collect all entries indexed by |index_list|, and moves them to be right
+ // before the element addressed by |insert_before|. Used by Drag&Drop.
+ // Expects |index_list| to be ordered ascending.
+ void MoveURLs(int insert_before, const std::vector<int>& index_list);
+
// Adds an entry at the specified index.
void Add(int index, const GURL& url);
« no previous file with comments | « no previous file | chrome/browser/custom_home_pages_table_model.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698