| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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_UTILS_H_ | 5 #ifndef CHROME_BROWSER_BOOKMARKS_BOOKMARK_UTILS_H_ |
| 6 #define CHROME_BROWSER_BOOKMARKS_BOOKMARK_UTILS_H_ | 6 #define CHROME_BROWSER_BOOKMARKS_BOOKMARK_UTILS_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 const BookmarkNode* drop_parent, | 64 const BookmarkNode* drop_parent, |
| 65 int index); | 65 int index); |
| 66 | 66 |
| 67 // Clones drag data, adding newly created nodes to |parent| starting at | 67 // Clones drag data, adding newly created nodes to |parent| starting at |
| 68 // |index_to_add_at|. | 68 // |index_to_add_at|. |
| 69 void CloneDragData(BookmarkModel* model, | 69 void CloneDragData(BookmarkModel* model, |
| 70 const std::vector<BookmarkDragData::Element>& elements, | 70 const std::vector<BookmarkDragData::Element>& elements, |
| 71 const BookmarkNode* parent, | 71 const BookmarkNode* parent, |
| 72 int index_to_add_at); | 72 int index_to_add_at); |
| 73 | 73 |
| 74 // Begins dragging a group of bookmarks. |
| 75 void DragBookmarks(Profile* profile, |
| 76 const std::vector<const BookmarkNode*>& nodes, |
| 77 gfx::NativeView view); |
| 78 |
| 74 // Recursively opens all bookmarks. |initial_disposition| dictates how the | 79 // Recursively opens all bookmarks. |initial_disposition| dictates how the |
| 75 // first URL is opened, all subsequent URLs are opened as background tabs. | 80 // first URL is opened, all subsequent URLs are opened as background tabs. |
| 76 // |navigator| is used to open the URLs. If |navigator| is NULL the last | 81 // |navigator| is used to open the URLs. If |navigator| is NULL the last |
| 77 // tabbed browser with the profile |profile| is used. If there is no browser | 82 // tabbed browser with the profile |profile| is used. If there is no browser |
| 78 // with the specified profile a new one is created. | 83 // with the specified profile a new one is created. |
| 79 void OpenAll(gfx::NativeWindow parent, | 84 void OpenAll(gfx::NativeWindow parent, |
| 80 Profile* profile, | 85 Profile* profile, |
| 81 PageNavigator* navigator, | 86 PageNavigator* navigator, |
| 82 const std::vector<const BookmarkNode*>& nodes, | 87 const std::vector<const BookmarkNode*>& nodes, |
| 83 WindowOpenDisposition initial_disposition); | 88 WindowOpenDisposition initial_disposition); |
| (...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 195 // Number of bookmarks we'll open before prompting the user to see if they | 200 // Number of bookmarks we'll open before prompting the user to see if they |
| 196 // really want to open all. | 201 // really want to open all. |
| 197 // | 202 // |
| 198 // NOTE: treat this as a const. It is not const as various tests change the | 203 // NOTE: treat this as a const. It is not const as various tests change the |
| 199 // value. | 204 // value. |
| 200 extern int num_urls_before_prompting; | 205 extern int num_urls_before_prompting; |
| 201 | 206 |
| 202 } // namespace bookmark_utils | 207 } // namespace bookmark_utils |
| 203 | 208 |
| 204 #endif // CHROME_BROWSER_BOOKMARKS_BOOKMARK_UTILS_H_ | 209 #endif // CHROME_BROWSER_BOOKMARKS_BOOKMARK_UTILS_H_ |
| OLD | NEW |