Index: chrome/android/java/src/org/chromium/chrome/browser/bookmarks/BookmarkSearchRow.java |
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/bookmarks/BookmarkSearchRow.java b/chrome/android/java/src/org/chromium/chrome/browser/bookmarks/BookmarkSearchRow.java |
deleted file mode 100644 |
index c81ddd7f26f894153b86a6156f771aa15eb01c5d..0000000000000000000000000000000000000000 |
--- a/chrome/android/java/src/org/chromium/chrome/browser/bookmarks/BookmarkSearchRow.java |
+++ /dev/null |
@@ -1,67 +0,0 @@ |
-// Copyright 2015 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.chrome.browser.bookmarks; |
- |
-import android.content.Context; |
-import android.util.AttributeSet; |
- |
-import org.chromium.chrome.browser.bookmarks.BookmarkBridge.BookmarkItem; |
-import org.chromium.components.bookmarks.BookmarkId; |
- |
-/** |
- * A view representing each row shown in {@link BookmarkSearchRow}. Note this type of row is |
- * not selectable for now. |
- */ |
-public class BookmarkSearchRow extends BookmarkItemRow { |
- |
- /** |
- * A listener that is triggered when a search result is selected. |
- */ |
- interface SearchHistoryDelegate { |
- /** |
- * Save the current search term to search history. This is called when a search result has |
- * been clicked. |
- */ |
- public void saveSearchHistory(); |
- } |
- |
- private SearchHistoryDelegate mHistoryDelegate; |
- |
- /** |
- * Constructor for xml inflation. |
- */ |
- public BookmarkSearchRow(Context context, AttributeSet attrs) { |
- super(context, attrs); |
- } |
- |
- @Override |
- protected void onFinishInflate() { |
- super.onFinishInflate(); |
- } |
- |
- @Override |
- BookmarkItem setBookmarkId(BookmarkId bookmarkId) { |
- BookmarkItem item = super.setBookmarkId(bookmarkId); |
- return item; |
- } |
- |
- @Override |
- protected boolean isSelectable() { |
- return false; |
- } |
- |
- @Override |
- public void onClick() { |
- mDelegate.openBookmark(mBookmarkId, BookmarkLaunchLocation.SEARCH); |
- mHistoryDelegate.saveSearchHistory(); |
- } |
- |
- /** |
- * Sets the delegate that handles saving search history. |
- */ |
- void setSearchHistoryDelegate(SearchHistoryDelegate delegate) { |
- mHistoryDelegate = delegate; |
- } |
-} |