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

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

Issue 8497008: Implement Bookmark All Tabs Dialog with WebUI. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: review fix 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | chrome/browser/bookmarks/bookmark_editor.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 // Shows the bookmark all tabs dialog.
98 static void ShowBookmarkAllTabsDialog(Browser* browser);
99
100 #if !defined(USE_AURA)
101 // Shows the native bookmark all tabs dialog. This is delegated from
102 // ShowBookmarkAllTabsDialog() when use_aura is not set.
103 static void ShowNativeBookmarkAllTabsDialog(Browser* browser);
104 #endif // !defined(USE_AURA)
105
96 private: 106 private:
97 // Shows the native bookmark editor. 107 // Shows the native bookmark editor.
98 // TODO(flackr): Remove parent argument. 108 // TODO(flackr): Remove parent argument.
99 static void ShowNative(gfx::NativeWindow parent_window, 109 static void ShowNative(gfx::NativeWindow parent_window,
100 Profile* profile, 110 Profile* profile,
101 const BookmarkNode* parent, 111 const BookmarkNode* parent,
102 const EditDetails& details, 112 const EditDetails& details,
103 Configuration configuration); 113 Configuration configuration);
104 114
105 // Shows the WebUI bookmark editor. 115 // Shows the WebUI bookmark editor.
106 static void ShowWebUI(Profile* profile, 116 static void ShowWebUI(Profile* profile,
107 const EditDetails& details); 117 const EditDetails& details);
108 }; 118 };
109 119
110 #endif // CHROME_BROWSER_BOOKMARKS_BOOKMARK_EDITOR_H_ 120 #endif // CHROME_BROWSER_BOOKMARKS_BOOKMARK_EDITOR_H_
OLDNEW
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | chrome/browser/bookmarks/bookmark_editor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698