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

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

Issue 3176024: Convert wstrings in bookmarks, part 4. (Closed)
Patch Set: Created 10 years, 4 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
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 172 matching lines...) Expand 10 before | Expand all | Expand 10 after
183 // Toggles whether the bookmark bar is shown only on the new tab page or on 183 // Toggles whether the bookmark bar is shown only on the new tab page or on
184 // all tabs. This is a preference modifier, not a visual modifier. 184 // all tabs. This is a preference modifier, not a visual modifier.
185 void ToggleWhenVisible(Profile* profile); 185 void ToggleWhenVisible(Profile* profile);
186 186
187 // Register user preferences for BookmarksBar. 187 // Register user preferences for BookmarksBar.
188 void RegisterUserPrefs(PrefService* prefs); 188 void RegisterUserPrefs(PrefService* prefs);
189 189
190 // Fills in the URL and title for a bookmark of |tab_contents|. 190 // Fills in the URL and title for a bookmark of |tab_contents|.
191 void GetURLAndTitleToBookmark(TabContents* tab_contents, 191 void GetURLAndTitleToBookmark(TabContents* tab_contents,
192 GURL* url, 192 GURL* url,
193 std::wstring* title); 193 string16* title);
194 194
195 // Returns, by reference in |urls|, the url and title pairs for each open 195 // Returns, by reference in |urls|, the url and title pairs for each open
196 // tab in browser. 196 // tab in browser.
197 void GetURLsForOpenTabs(Browser* browser, 197 void GetURLsForOpenTabs(Browser* browser,
198 std::vector<std::pair<GURL, std::wstring> >* urls); 198 std::vector<std::pair<GURL, string16> >* urls);
199 199
200 // Returns the parent for newly created folders/bookmarks. If |selection| has 200 // Returns the parent for newly created folders/bookmarks. If |selection| has
201 // one element and it is a folder, |selection[0]| is returned, otherwise 201 // one element and it is a folder, |selection[0]| is returned, otherwise
202 // |parent| is returned. If |index| is non-null it is set to the index newly 202 // |parent| is returned. If |index| is non-null it is set to the index newly
203 // added nodes should be added at. 203 // added nodes should be added at.
204 const BookmarkNode* GetParentForNewNodes( 204 const BookmarkNode* GetParentForNewNodes(
205 const BookmarkNode* parent, 205 const BookmarkNode* parent,
206 const std::vector<const BookmarkNode*>& selection, 206 const std::vector<const BookmarkNode*>& selection,
207 int* index); 207 int* index);
208 208
209 // Number of bookmarks we'll open before prompting the user to see if they 209 // Number of bookmarks we'll open before prompting the user to see if they
210 // really want to open all. 210 // really want to open all.
211 // 211 //
212 // NOTE: treat this as a const. It is not const as various tests change the 212 // NOTE: treat this as a const. It is not const as various tests change the
213 // value. 213 // value.
214 extern int num_urls_before_prompting; 214 extern int num_urls_before_prompting;
215 215
216 } // namespace bookmark_utils 216 } // namespace bookmark_utils
217 217
218 #endif // CHROME_BROWSER_BOOKMARKS_BOOKMARK_UTILS_H_ 218 #endif // CHROME_BROWSER_BOOKMARKS_BOOKMARK_UTILS_H_
OLDNEW
« no previous file with comments | « chrome/browser/bookmarks/bookmark_model_unittest.cc ('k') | chrome/browser/bookmarks/bookmark_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698