summaryrefslogtreecommitdiffstats
path: root/chrome/browser/bookmarks
diff options
context:
space:
mode:
authortfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-06-20 10:46:59 +0000
committertfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-06-20 10:46:59 +0000
commita3780f095bd01d7d121dc414dd528262dcd30381 (patch)
treee0914e432831e14f2ef085f471fd4503d51cd30d /chrome/browser/bookmarks
parent2693c145b86201f18404f6d0e2fb62260c9622bc (diff)
downloadchromium_src-a3780f095bd01d7d121dc414dd528262dcd30381.zip
chromium_src-a3780f095bd01d7d121dc414dd528262dcd30381.tar.gz
chromium_src-a3780f095bd01d7d121dc414dd528262dcd30381.tar.bz2
bookmarks: Fix the documentation for BookmarkEditor::Show() method.
BUG=None R=sky@chromium.org NOTRY=true Review URL: https://chromiumcodereview.appspot.com/17337003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@207396 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/bookmarks')
-rw-r--r--chrome/browser/bookmarks/bookmark_editor.h17
1 files changed, 7 insertions, 10 deletions
diff --git a/chrome/browser/bookmarks/bookmark_editor.h b/chrome/browser/bookmarks/bookmark_editor.h
index b398028..357bc06 100644
--- a/chrome/browser/bookmarks/bookmark_editor.h
+++ b/chrome/browser/bookmarks/bookmark_editor.h
@@ -12,7 +12,6 @@
#include "chrome/browser/bookmarks/bookmark_model.h"
#include "ui/gfx/native_widget_types.h"
-class Browser;
class GURL;
class Profile;
@@ -22,6 +21,8 @@ class BookmarkEditor {
public:
// An enumeration of the possible configurations offered.
enum Configuration {
+ // If Configuration is SHOW_TREE, a tree is shown allowing the user to
+ // choose the parent of the node.
SHOW_TREE,
NO_TREE
};
@@ -74,8 +75,8 @@ class BookmarkEditor {
// If type == EXISTING_NODE this gives the existing node.
const BookmarkNode* existing_node;
- // If type == NEW_URL or type == NEW_FOLDER this gives the parent node
- // to place the new node in.
+ // If type == NEW_URL or type == NEW_FOLDER this gives the initial parent
+ // node to place the new node in.
const BookmarkNode* parent_node;
// If type == NEW_URL or type == NEW_FOLDER this gives the index to insert
@@ -94,13 +95,9 @@ class BookmarkEditor {
explicit EditDetails(Type node_type);
};
- // Shows the bookmark editor. If --use-more-webui is enabled use the bookmark
- // manager to add or edit bookmarks. The bookmark editor allows editing an
- // existing node or creating a new bookmark node (as determined by
- // |details.type|). If |configuration| is SHOW_TREE, a tree is shown allowing
- // the user to choose the parent of the node.
- // |parent| gives the initial parent to select in the tree for the node.
- // |parent| is only used if |details.existing_node| is null.
+ // Shows the bookmark editor. The bookmark editor allows editing an existing
+ // node or creating a new bookmark node (as determined by |details.type|).
+ // |details.parent_node| is only used if |details.existing_node| is null.
static void Show(gfx::NativeWindow parent_window,
Profile* profile,
const EditDetails& details,