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

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

Issue 10692164: Remove browser::FindTabbedBrowser call in bookmark_utils.cc. All callers, with the exception of met… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 5 months 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
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_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 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 int index_to_add_at); 77 int index_to_add_at);
78 78
79 // Begins dragging a folder of bookmarks. 79 // Begins dragging a folder of bookmarks.
80 void DragBookmarks(Profile* profile, 80 void DragBookmarks(Profile* profile,
81 const std::vector<const BookmarkNode*>& nodes, 81 const std::vector<const BookmarkNode*>& nodes,
82 gfx::NativeView view); 82 gfx::NativeView view);
83 83
84 // Opens all the bookmarks in |nodes| that are of type url and all the child 84 // Opens all the bookmarks in |nodes| that are of type url and all the child
85 // bookmarks that are of type url for folders in |nodes|. |initial_disposition| 85 // bookmarks that are of type url for folders in |nodes|. |initial_disposition|
86 // dictates how the first URL is opened, all subsequent URLs are opened as 86 // dictates how the first URL is opened, all subsequent URLs are opened as
87 // background tabs. |navigator| is used to open the URLs. If |navigator| is 87 // background tabs. |navigator| is used to open the URLs.
88 // NULL the last tabbed browser with the profile |profile| is used. If there is
89 // no browser with the specified profile a new one is created.
90 void OpenAll(gfx::NativeWindow parent, 88 void OpenAll(gfx::NativeWindow parent,
91 Profile* profile,
92 content::PageNavigator* navigator, 89 content::PageNavigator* navigator,
93 const std::vector<const BookmarkNode*>& nodes, 90 const std::vector<const BookmarkNode*>& nodes,
94 WindowOpenDisposition initial_disposition); 91 WindowOpenDisposition initial_disposition);
95 92
96 // Convenience for |OpenAll| with a single BookmarkNode. 93 // Convenience for |OpenAll| with a single BookmarkNode.
97 void OpenAll(gfx::NativeWindow parent, 94 void OpenAll(gfx::NativeWindow parent,
98 Profile* profile,
99 content::PageNavigator* navigator, 95 content::PageNavigator* navigator,
100 const BookmarkNode* node, 96 const BookmarkNode* node,
101 WindowOpenDisposition initial_disposition); 97 WindowOpenDisposition initial_disposition);
102 98
103 // Copies nodes onto the clipboard. If |remove_nodes| is true the nodes are 99 // Copies nodes onto the clipboard. If |remove_nodes| is true the nodes are
104 // removed after copied to the clipboard. The nodes are copied in such a way 100 // removed after copied to the clipboard. The nodes are copied in such a way
105 // that if pasted again copies are made. 101 // that if pasted again copies are made.
106 void CopyToClipboard(BookmarkModel* model, 102 void CopyToClipboard(BookmarkModel* model,
107 const std::vector<const BookmarkNode*>& nodes, 103 const std::vector<const BookmarkNode*>& nodes,
108 bool remove_nodes); 104 bool remove_nodes);
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
262 void RecordBookmarkLaunch(BookmarkLaunchLocation location); 258 void RecordBookmarkLaunch(BookmarkLaunchLocation location);
263 259
264 #if defined(OS_WIN) || defined(OS_CHROMEOS) || defined(USE_AURA) 260 #if defined(OS_WIN) || defined(OS_CHROMEOS) || defined(USE_AURA)
265 void DisableBookmarkBarViewAnimationsForTesting(bool disabled); 261 void DisableBookmarkBarViewAnimationsForTesting(bool disabled);
266 bool IsBookmarkBarViewAnimationsDisabled(); 262 bool IsBookmarkBarViewAnimationsDisabled();
267 #endif 263 #endif
268 264
269 } // namespace bookmark_utils 265 } // namespace bookmark_utils
270 266
271 #endif // CHROME_BROWSER_BOOKMARKS_BOOKMARK_UTILS_H_ 267 #endif // CHROME_BROWSER_BOOKMARKS_BOOKMARK_UTILS_H_
OLDNEW
« no previous file with comments | « chrome/browser/bookmarks/bookmark_context_menu_controller_unittest.cc ('k') | chrome/browser/bookmarks/bookmark_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698