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

Unified Diff: chrome/browser/bookmarks/bookmark_editor.h

Issue 8438037: Change 'Add Page' to show a simple input dialog with --use-more-webui. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Address comments Created 9 years, 1 month 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
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;
« no previous file with comments | « chrome/browser/bookmarks/bookmark_context_menu_controller.cc ('k') | chrome/browser/bookmarks/bookmark_editor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698