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

Unified Diff: components/bookmarks/common/android/java/src/org/chromium/components/bookmarks/BookmarkMatch.java

Issue 1184613002: [Android] Remove search feature from enhanced bookmarks (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: components/bookmarks/common/android/java/src/org/chromium/components/bookmarks/BookmarkMatch.java
diff --git a/components/bookmarks/common/android/java/src/org/chromium/components/bookmarks/BookmarkMatch.java b/components/bookmarks/common/android/java/src/org/chromium/components/bookmarks/BookmarkMatch.java
deleted file mode 100644
index 84770911044c159865c72d087583ec9c41306f5b..0000000000000000000000000000000000000000
--- a/components/bookmarks/common/android/java/src/org/chromium/components/bookmarks/BookmarkMatch.java
+++ /dev/null
@@ -1,64 +0,0 @@
-// Copyright 2014 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-package org.chromium.components.bookmarks;
-
-import android.util.Pair;
-
-import org.chromium.base.CalledByNative;
-
-import java.util.List;
-
-/**
- * Object that associates a BookmarkId with search term matches found in the bookmark's title and
- * url.
- */
-public class BookmarkMatch {
-
- private final BookmarkId mBookmarkId;
- private final List<Pair<Integer, Integer>> mTitleMatchPositions;
- private final List<Pair<Integer, Integer>> mUrlMatchPositions;
-
- /**
- * @param bookmarkId The BookmarkId fassociated with this match.
- * @param titleMatchPositions A list of [begin, end) positions for matches in the title;
- * may be null.
- * @param urlMatchPositions A list of [begin, end) positions for matches in the url;
- * may be null.
- */
- public BookmarkMatch(BookmarkId bookmarkId, List<Pair<Integer, Integer>> titleMatchPositions,
- List<Pair<Integer, Integer>> urlMatchPositions) {
- mBookmarkId = bookmarkId;
- mTitleMatchPositions = titleMatchPositions;
- mUrlMatchPositions = urlMatchPositions;
- }
-
- /**
- * @return The BookmarkId associated with this match.
- */
- public BookmarkId getBookmarkId() {
- return mBookmarkId;
- }
-
- /**
- * @return A list of [begin, end) positions for matches in the title; may return null.
- */
- public List<Pair<Integer, Integer>> getTitleMatchPositions() {
- return mTitleMatchPositions;
- }
-
- /**
- * @return A list of [begin, end) positions for matches in the url; may return null.
- */
- public List<Pair<Integer, Integer>> getUrlMatchPositions() {
- return mUrlMatchPositions;
- }
-
- @CalledByNative
- private static BookmarkMatch createBookmarkMatch(BookmarkId bookmarkId,
- List<Pair<Integer, Integer>> titleMatchPositions,
- List<Pair<Integer, Integer>> urlMatchPositions) {
- return new BookmarkMatch(bookmarkId, titleMatchPositions, urlMatchPositions);
- }
-}
« no previous file with comments | « chrome/browser/enhanced_bookmarks/android/enhanced_bookmarks_bridge.cc ('k') | components/enhanced_bookmarks.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698