OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 package org.chromium.chrome.browser.enhancedbookmarks; | 5 package org.chromium.chrome.browser.bookmarks; |
6 | 6 |
7 import android.util.Pair; | 7 import android.util.Pair; |
8 | 8 |
9 import org.chromium.base.annotations.CalledByNative; | 9 import org.chromium.base.annotations.CalledByNative; |
10 import org.chromium.components.bookmarks.BookmarkId; | 10 import org.chromium.components.bookmarks.BookmarkId; |
11 | 11 |
12 import java.util.List; | 12 import java.util.List; |
13 | 13 |
14 /** | 14 /** |
15 * Object that associates a BookmarkId with search term matches found in the boo
kmark's title and | 15 * Object that associates a BookmarkId with search term matches found in the boo
kmark's title and |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 return mUrlMatchPositions; | 56 return mUrlMatchPositions; |
57 } | 57 } |
58 | 58 |
59 @CalledByNative | 59 @CalledByNative |
60 private static BookmarkMatch createBookmarkMatch(BookmarkId bookmarkId, | 60 private static BookmarkMatch createBookmarkMatch(BookmarkId bookmarkId, |
61 List<Pair<Integer, Integer>> titleMatchPositions, | 61 List<Pair<Integer, Integer>> titleMatchPositions, |
62 List<Pair<Integer, Integer>> urlMatchPositions) { | 62 List<Pair<Integer, Integer>> urlMatchPositions) { |
63 return new BookmarkMatch(bookmarkId, titleMatchPositions, urlMatchPositi
ons); | 63 return new BookmarkMatch(bookmarkId, titleMatchPositions, urlMatchPositi
ons); |
64 } | 64 } |
65 } | 65 } |
OLD | NEW |