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

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

Issue 11827058: bookmarks: GetNameForURL() function is only used by gtk. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: update os_exchange_data_win_unittest.cc Created 7 years, 11 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 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 // Pastes from the clipboard. The new nodes are added to |parent|, unless 89 // Pastes from the clipboard. The new nodes are added to |parent|, unless
90 // |parent| is null in which case this does nothing. The nodes are inserted 90 // |parent| is null in which case this does nothing. The nodes are inserted
91 // at |index|. If |index| is -1 the nodes are added to the end. 91 // at |index|. If |index| is -1 the nodes are added to the end.
92 void PasteFromClipboard(BookmarkModel* model, 92 void PasteFromClipboard(BookmarkModel* model,
93 const BookmarkNode* parent, 93 const BookmarkNode* parent,
94 int index); 94 int index);
95 95
96 // Returns true if the user can copy from the pasteboard. 96 // Returns true if the user can copy from the pasteboard.
97 bool CanPasteFromClipboard(const BookmarkNode* node); 97 bool CanPasteFromClipboard(const BookmarkNode* node);
98 98
99 // Returns a name for the given URL. Used for drags into bookmark areas when
100 // the source doesn't specify a title.
101 string16 GetNameForURL(const GURL& url);
102
103 // Returns a vector containing up to |max_count| of the most recently modified 99 // Returns a vector containing up to |max_count| of the most recently modified
104 // folders. This never returns an empty vector. 100 // folders. This never returns an empty vector.
105 std::vector<const BookmarkNode*> GetMostRecentlyModifiedFolders( 101 std::vector<const BookmarkNode*> GetMostRecentlyModifiedFolders(
106 BookmarkModel* model, size_t max_count); 102 BookmarkModel* model, size_t max_count);
107 103
108 // Returns the most recently added bookmarks. This does not return folders, 104 // Returns the most recently added bookmarks. This does not return folders,
109 // only nodes of type url. 105 // only nodes of type url.
110 void GetMostRecentlyAddedEntries(BookmarkModel* model, 106 void GetMostRecentlyAddedEntries(BookmarkModel* model,
111 size_t count, 107 size_t count,
112 std::vector<const BookmarkNode*>* nodes); 108 std::vector<const BookmarkNode*>* nodes);
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
222 void RecordBookmarkLaunch(BookmarkLaunchLocation location); 218 void RecordBookmarkLaunch(BookmarkLaunchLocation location);
223 219
224 #if defined(OS_WIN) || defined(OS_CHROMEOS) || defined(USE_AURA) 220 #if defined(OS_WIN) || defined(OS_CHROMEOS) || defined(USE_AURA)
225 void DisableBookmarkBarViewAnimationsForTesting(bool disabled); 221 void DisableBookmarkBarViewAnimationsForTesting(bool disabled);
226 bool IsBookmarkBarViewAnimationsDisabled(); 222 bool IsBookmarkBarViewAnimationsDisabled();
227 #endif 223 #endif
228 224
229 } // namespace bookmark_utils 225 } // namespace bookmark_utils
230 226
231 #endif // CHROME_BROWSER_BOOKMARKS_BOOKMARK_UTILS_H_ 227 #endif // CHROME_BROWSER_BOOKMARKS_BOOKMARK_UTILS_H_
OLDNEW
« no previous file with comments | « chrome/browser/bookmarks/bookmark_node_data_unittest.cc ('k') | chrome/browser/bookmarks/bookmark_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698