OLD | NEW |
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 Loading... |
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_ |
OLD | NEW |