| Index: chrome/browser/bookmarks/bookmark_editor.h
|
| diff --git a/chrome/browser/bookmarks/bookmark_editor.h b/chrome/browser/bookmarks/bookmark_editor.h
|
| index 5b3a6ab43042659f6df6f17999f589e6a85f6052..4375914c71c41a8dedff6f57c17106fa66b823f1 100644
|
| --- a/chrome/browser/bookmarks/bookmark_editor.h
|
| +++ b/chrome/browser/bookmarks/bookmark_editor.h
|
| @@ -33,12 +33,14 @@ class BookmarkEditor {
|
| static EditDetails EditNode(const BookmarkNode* node);
|
|
|
| // Returns an EditDetails instance for the user adding a bookmark within
|
| - // a given parent node.
|
| - static EditDetails AddNodeInFolder(const BookmarkNode* parent_node);
|
| + // a given parent node with a specified index.
|
| + static EditDetails AddNodeInFolder(const BookmarkNode* parent_node,
|
| + int index);
|
|
|
| // Returns an EditDetails instance for the user adding a folder within a
|
| - // given parent node.
|
| - static EditDetails AddFolder(const BookmarkNode* parent_node);
|
| + // given parent node with a specified index.
|
| + static EditDetails AddFolder(const BookmarkNode* parent_node,
|
| + int index);
|
|
|
| enum Type {
|
| // The user is editing an existing node in the model. The node the user
|
| @@ -67,6 +69,10 @@ class BookmarkEditor {
|
| // to place the new node in.
|
| const BookmarkNode* parent_node;
|
|
|
| + // If type == NEW_URL or type == NEW_FOLDER this gives the index to insert
|
| + // the new node at.
|
| + int index;
|
| +
|
| // If type == NEW_FOLDER, this is the urls/title pairs to add to the
|
| // folder.
|
| std::vector<std::pair<GURL, string16> > urls;
|
|
|