OLD | NEW |
---|---|
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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> |
11 | 11 |
12 #include "base/string16.h" | 12 #include "base/string16.h" |
13 #include "ui/gfx/native_widget_types.h" | 13 #include "ui/gfx/native_widget_types.h" |
14 | 14 |
15 class BookmarkNode; | 15 class BookmarkNode; |
16 class GURL; | 16 class GURL; |
17 class Profile; | 17 class Profile; |
18 class Browser; | |
18 | 19 |
19 // Small, cross platform interface that shows the correct platform specific | 20 // Small, cross platform interface that shows the correct platform specific |
20 // bookmark editor dialog. | 21 // bookmark editor dialog. |
21 class BookmarkEditor { | 22 class BookmarkEditor { |
22 public: | 23 public: |
23 // An enumeration of the possible configurations offered. | 24 // An enumeration of the possible configurations offered. |
24 enum Configuration { | 25 enum Configuration { |
25 SHOW_TREE, | 26 SHOW_TREE, |
26 NO_TREE | 27 NO_TREE |
27 }; | 28 }; |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
86 // existing node or creating a new bookmark node (as determined by | 87 // existing node or creating a new bookmark node (as determined by |
87 // |details.type|). If |configuration| is SHOW_TREE, a tree is shown allowing | 88 // |details.type|). If |configuration| is SHOW_TREE, a tree is shown allowing |
88 // the user to choose the parent of the node. | 89 // the user to choose the parent of the node. |
89 // |parent| gives the initial parent to select in the tree for the node. | 90 // |parent| gives the initial parent to select in the tree for the node. |
90 // |parent| is only used if |details.existing_node| is null. | 91 // |parent| is only used if |details.existing_node| is null. |
91 static void Show(gfx::NativeWindow parent_window, | 92 static void Show(gfx::NativeWindow parent_window, |
92 Profile* profile, | 93 Profile* profile, |
93 const EditDetails& details, | 94 const EditDetails& details, |
94 Configuration configuration); | 95 Configuration configuration); |
95 | 96 |
97 static void ShowBookmarkAllTabsDialog(Browser* browser); | |
mazda
2011/11/10 06:03:46
Please add comment.
yoshiki
2011/11/10 07:54:38
Done.
| |
98 | |
96 private: | 99 private: |
97 // Shows the native bookmark editor. | 100 // Shows the native bookmark editor. |
98 // TODO(flackr): Remove parent argument. | 101 // TODO(flackr): Remove parent argument. |
99 static void ShowNative(gfx::NativeWindow parent_window, | 102 static void ShowNative(gfx::NativeWindow parent_window, |
100 Profile* profile, | 103 Profile* profile, |
101 const BookmarkNode* parent, | 104 const BookmarkNode* parent, |
102 const EditDetails& details, | 105 const EditDetails& details, |
103 Configuration configuration); | 106 Configuration configuration); |
104 | 107 |
105 // Shows the WebUI bookmark editor. | 108 // Shows the WebUI bookmark editor. |
106 static void ShowWebUI(Profile* profile, | 109 static void ShowWebUI(Profile* profile, |
107 const EditDetails& details); | 110 const EditDetails& details); |
108 }; | 111 }; |
109 | 112 |
110 #endif // CHROME_BROWSER_BOOKMARKS_BOOKMARK_EDITOR_H_ | 113 #endif // CHROME_BROWSER_BOOKMARKS_BOOKMARK_EDITOR_H_ |
OLD | NEW |