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

Side by Side Diff: chrome/browser/ui/bookmarks/bookmark_utils.h

Issue 11572031: "Open All Bookmarks in Incognito Window" opens only valid URLs (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: modify mac build failure Created 8 years 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_UI_BOOKMARKS_BOOKMARK_UTILS_H_ 5 #ifndef CHROME_BROWSER_UI_BOOKMARKS_BOOKMARK_UTILS_H_
6 #define CHROME_BROWSER_UI_BOOKMARKS_BOOKMARK_UTILS_H_ 6 #define CHROME_BROWSER_UI_BOOKMARKS_BOOKMARK_UTILS_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/string16.h" 10 #include "base/string16.h"
(...skipping 12 matching lines...) Expand all
23 23
24 namespace chrome { 24 namespace chrome {
25 25
26 // Opens all the bookmarks in |nodes| that are of type url and all the child 26 // Opens all the bookmarks in |nodes| that are of type url and all the child
27 // bookmarks that are of type url for folders in |nodes|. |initial_disposition| 27 // bookmarks that are of type url for folders in |nodes|. |initial_disposition|
28 // dictates how the first URL is opened, all subsequent URLs are opened as 28 // dictates how the first URL is opened, all subsequent URLs are opened as
29 // background tabs. |navigator| is used to open the URLs. 29 // background tabs. |navigator| is used to open the URLs.
30 void OpenAll(gfx::NativeWindow parent, 30 void OpenAll(gfx::NativeWindow parent,
31 content::PageNavigator* navigator, 31 content::PageNavigator* navigator,
32 const std::vector<const BookmarkNode*>& nodes, 32 const std::vector<const BookmarkNode*>& nodes,
33 WindowOpenDisposition initial_disposition); 33 WindowOpenDisposition initial_disposition,
34 content::BrowserContext* browser_context);
34 35
35 // Convenience for OpenAll() with a single BookmarkNode. 36 // Convenience for OpenAll() with a single BookmarkNode.
36 void OpenAll(gfx::NativeWindow parent, 37 void OpenAll(gfx::NativeWindow parent,
37 content::PageNavigator* navigator, 38 content::PageNavigator* navigator,
38 const BookmarkNode* node, 39 const BookmarkNode* node,
39 WindowOpenDisposition initial_disposition); 40 WindowOpenDisposition initial_disposition,
41 content::BrowserContext* browser_context);
40 42
41 // Asks the user before deleting a non-empty bookmark folder. 43 // Asks the user before deleting a non-empty bookmark folder.
42 bool ConfirmDeleteBookmarkNode(const BookmarkNode* node, 44 bool ConfirmDeleteBookmarkNode(const BookmarkNode* node,
43 gfx::NativeWindow window); 45 gfx::NativeWindow window);
44 46
45 // Shows the bookmark all tabs dialog. 47 // Shows the bookmark all tabs dialog.
46 void ShowBookmarkAllTabsDialog(Browser* browser); 48 void ShowBookmarkAllTabsDialog(Browser* browser);
47 49
48 // Returns true if |selection| has at least one bookmark of type url. 50 // Returns true if |selection| has at least one bookmark of type url.
49 bool HasBookmarkURLs(const std::vector<const BookmarkNode*>& selection); 51 bool HasBookmarkURLs(const std::vector<const BookmarkNode*>& selection);
50 52
51 // Fills in the URL and title for a bookmark of |web_contents|. 53 // Fills in the URL and title for a bookmark of |web_contents|.
52 void GetURLAndTitleToBookmark(content::WebContents* web_contents, 54 void GetURLAndTitleToBookmark(content::WebContents* web_contents,
53 GURL* url, 55 GURL* url,
54 string16* title); 56 string16* title);
55 57
56 // Toggles whether the bookmark bar is shown only on the new tab page or on 58 // Toggles whether the bookmark bar is shown only on the new tab page or on
57 // all tabs. This is a preference modifier, not a visual modifier. 59 // all tabs. This is a preference modifier, not a visual modifier.
58 void ToggleBookmarkBarWhenVisible(content::BrowserContext* browser_context); 60 void ToggleBookmarkBarWhenVisible(content::BrowserContext* browser_context);
59 61
60 } // namespace chrome 62 } // namespace chrome
61 63
62 #endif // CHROME_BROWSER_UI_BOOKMARKS_BOOKMARK_UTILS_H_ 64 #endif // CHROME_BROWSER_UI_BOOKMARKS_BOOKMARK_UTILS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698