Chromium Code Reviews| Index: chrome/browser/ui/bookmarks/bookmark_utils_desktop.h |
| diff --git a/chrome/browser/ui/bookmarks/bookmark_utils_desktop.h b/chrome/browser/ui/bookmarks/bookmark_utils_desktop.h |
| index 062817bd9367af76de9b86e2116c5bb296f96392..846af962780ff3b3734f0a62e8cbccff2523df9f 100644 |
| --- a/chrome/browser/ui/bookmarks/bookmark_utils_desktop.h |
| +++ b/chrome/browser/ui/bookmarks/bookmark_utils_desktop.h |
| @@ -47,6 +47,18 @@ void OpenAll(gfx::NativeWindow parent, |
| WindowOpenDisposition initial_disposition, |
| content::BrowserContext* browser_context); |
| +// Returns the count of bookmarks that would be opened by OpenAll |
|
Peter Kasting
2017/04/13 04:52:09
This needs to document the args, at least the ones
Paezagon
2017/04/14 01:00:30
Done.
|
| +int OpenCount(gfx::NativeWindow parent, |
|
Peter Kasting
2017/04/13 04:52:09
We're trying to kill the chrome:: namespace, and i
Paezagon
2017/04/14 01:00:30
The OpenAll functions are used in both the C++ and
|
| + const std::vector<const bookmarks::BookmarkNode*>& nodes, |
| + bool offTheRecord = false, |
|
Peter Kasting
2017/04/13 04:52:09
Nit: I sort of feel like when half the callers wan
Paezagon
2017/04/14 01:00:29
I am treating incognito as a 'special case'. I don
Peter Kasting
2017/04/14 08:17:14
But like I said, fully half the callers set it. T
Paezagon
2017/04/14 18:47:24
Done.
|
| + content::BrowserContext* browser_context = NULL); |
| + |
| +// Convenience for OpenCount() with a single BookmarkNode. |
| +int OpenCount(gfx::NativeWindow parent, |
| + const bookmarks::BookmarkNode* node, |
| + bool offTheRecord = false, |
| + content::BrowserContext* browser_context = NULL); |
| + |
| // Asks the user before deleting a non-empty bookmark folder. |
| bool ConfirmDeleteBookmarkNode(const bookmarks::BookmarkNode* node, |
| gfx::NativeWindow window); |