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

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

Issue 184663002: Omnibox: Make URLs of Bookmarks Searchable (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: tested; works Created 6 years, 8 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
(Empty)
1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_BOOKMARKS_BOOKMARK_TITLE_MATCH_H_
6 #define CHROME_BROWSER_BOOKMARKS_BOOKMARK_TITLE_MATCH_H_
7
8 #include <stddef.h>
9
10 #include <utility>
11 #include <vector>
12
13 class BookmarkNode;
14
15 struct BookmarkTitleMatch {
16 // Each MatchPosition is the [begin, end) positions of a match within a
17 // string.
18 typedef std::pair<size_t, size_t> MatchPosition;
19 typedef std::vector<MatchPosition> MatchPositions;
20
21 BookmarkTitleMatch();
22 ~BookmarkTitleMatch();
23
24 // The matching node of a query.
25 const BookmarkNode* node;
26
27 // Location of the matching words in the title of the node.
28 MatchPositions match_positions;
29 };
30
31 #endif // CHROME_BROWSER_BOOKMARKS_BOOKMARK_TITLE_MATCH_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698