OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 COMPONENTS_BOOKMARKS_CORE_BROWSER_BOOKMARK_TITLE_MATCH_H_ | 5 #ifndef COMPONENTS_BOOKMARKS_BROWSER_BOOKMARK_TITLE_MATCH_H_ |
6 #define COMPONENTS_BOOKMARKS_CORE_BROWSER_BOOKMARK_TITLE_MATCH_H_ | 6 #define COMPONENTS_BOOKMARKS_BROWSER_BOOKMARK_TITLE_MATCH_H_ |
7 | 7 |
8 #include <cstddef> | 8 #include <cstddef> |
9 #include <utility> | 9 #include <utility> |
10 #include <vector> | 10 #include <vector> |
11 | 11 |
12 class BookmarkNode; | 12 class BookmarkNode; |
13 | 13 |
14 struct BookmarkMatch { | 14 struct BookmarkMatch { |
15 // Each MatchPosition is the [begin, end) positions of a match within a | 15 // Each MatchPosition is the [begin, end) positions of a match within a |
16 // string. | 16 // string. |
(...skipping 17 matching lines...) Expand all Loading... |
34 // The matching node of a query. | 34 // The matching node of a query. |
35 const BookmarkNode* node; | 35 const BookmarkNode* node; |
36 | 36 |
37 // Location of the matching words in the title of the node. | 37 // Location of the matching words in the title of the node. |
38 MatchPositions title_match_positions; | 38 MatchPositions title_match_positions; |
39 | 39 |
40 // Location of the matching words in the URL of the node. | 40 // Location of the matching words in the URL of the node. |
41 MatchPositions url_match_positions; | 41 MatchPositions url_match_positions; |
42 }; | 42 }; |
43 | 43 |
44 #endif // COMPONENTS_BOOKMARKS_CORE_BROWSER_BOOKMARK_TITLE_MATCH_H_ | 44 #endif // COMPONENTS_BOOKMARKS_BROWSER_BOOKMARK_TITLE_MATCH_H_ |
OLD | NEW |