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

Side by Side Diff: chrome/browser/bookmarks/bookmark_editor.h

Issue 7572022: Use bookmark manager to add/edit bookmark pages with webui_dialogs=1. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Windows build compatibility. Created 9 years, 4 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_BOOKMARKS_BOOKMARK_EDITOR_H_ 5 #ifndef CHROME_BROWSER_BOOKMARKS_BOOKMARK_EDITOR_H_
6 #define CHROME_BROWSER_BOOKMARKS_BOOKMARK_EDITOR_H_ 6 #define CHROME_BROWSER_BOOKMARKS_BOOKMARK_EDITOR_H_
7 #pragma once 7 #pragma once
8 8
9 #include <utility> 9 #include <utility>
10 #include <vector> 10 #include <vector>
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 // folder. 57 // folder.
58 std::vector<std::pair<GURL, string16> > urls; 58 std::vector<std::pair<GURL, string16> > urls;
59 }; 59 };
60 60
61 // Shows the bookmark editor. The bookmark editor allows editing an 61 // Shows the bookmark editor. The bookmark editor allows editing an
62 // existing node or creating a new bookmark node (as determined by 62 // existing node or creating a new bookmark node (as determined by
63 // |details.type|). If |configuration| is SHOW_TREE, a tree is shown allowing 63 // |details.type|). If |configuration| is SHOW_TREE, a tree is shown allowing
64 // the user to choose the parent of the node. 64 // the user to choose the parent of the node.
65 // |parent| gives the initial parent to select in the tree for the node. 65 // |parent| gives the initial parent to select in the tree for the node.
66 // |parent| is only used if |details.existing_node| is null. 66 // |parent| is only used if |details.existing_node| is null.
67 // TODO(flackr): Rename this to ShowNative and add cross platform Show method
68 // which will show a WebUI version of the dialog if --pure-views is set.
67 static void Show(gfx::NativeWindow parent_window, 69 static void Show(gfx::NativeWindow parent_window,
68 Profile* profile, 70 Profile* profile,
69 const BookmarkNode* parent, 71 const BookmarkNode* parent,
70 const EditDetails& details, 72 const EditDetails& details,
71 Configuration configuration); 73 Configuration configuration);
72 }; 74 };
73 75
74 #endif // CHROME_BROWSER_BOOKMARKS_BOOKMARK_EDITOR_H_ 76 #endif // CHROME_BROWSER_BOOKMARKS_BOOKMARK_EDITOR_H_
OLDNEW
« no previous file with comments | « chrome/browser/bookmarks/bookmark_context_menu_controller.cc ('k') | chrome/browser/browser_resources.grd » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698