summaryrefslogtreecommitdiffstats
path: root/chrome/browser/bookmarks/bookmark_utils.h
diff options
context:
space:
mode:
authorsky@google.com <sky@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-12-10 17:22:32 +0000
committersky@google.com <sky@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-12-10 17:22:32 +0000
commitcb362ccc87064ae0ee4459ee089e00972b4a76e7 (patch)
tree46af771471ea7700d18dfbfa173e544e14c83998 /chrome/browser/bookmarks/bookmark_utils.h
parentf5b43627c9d7faeca9475c38ec67960c1fca46af (diff)
downloadchromium_src-cb362ccc87064ae0ee4459ee089e00972b4a76e7.zip
chromium_src-cb362ccc87064ae0ee4459ee089e00972b4a76e7.tar.gz
chromium_src-cb362ccc87064ae0ee4459ee089e00972b4a76e7.tar.bz2
Changes bookmark manager search to use contains vs starts with and to
search urls. BUG=4065 TEST=create the URL foo.com and type 'foo.com' in the bookmark manager search box. Make sure the url you just typed shows up in the table. Review URL: http://codereview.chromium.org/13679 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@6714 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/bookmarks/bookmark_utils.h')
-rw-r--r--chrome/browser/bookmarks/bookmark_utils.h14
1 files changed, 10 insertions, 4 deletions
diff --git a/chrome/browser/bookmarks/bookmark_utils.h b/chrome/browser/bookmarks/bookmark_utils.h
index 9405919..7a83caa 100644
--- a/chrome/browser/bookmarks/bookmark_utils.h
+++ b/chrome/browser/bookmarks/bookmark_utils.h
@@ -104,13 +104,19 @@ void GetBookmarksMatchingText(BookmarkModel* model,
size_t max_count,
std::vector<TitleMatch>* matches);
-// Returns true if the specified bookmark's title matches the specified
-// text.
-bool DoesBookmarkMatchText(const std::wstring& text, BookmarkNode* node);
-
// Returns true if |n1| was added more recently than |n2|.
bool MoreRecentlyAdded(BookmarkNode* n1, BookmarkNode* n2);
+// Returns up to |max_count| bookmarks from |model| whose url or title contains
+// the text |text|.
+void GetBookmarksContainingText(BookmarkModel* model,
+ const std::wstring& text,
+ size_t max_count,
+ std::vector<BookmarkNode*>* nodes);
+
+// Returns true if |node|'s url or title contains the string |text|.
+bool DoesBookmarkContainText(BookmarkNode* node, const std::wstring& text);
+
// Number of bookmarks we'll open before prompting the user to see if they
// really want to open all.
//