| 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.bookmarks; | 5 package org.chromium.chrome.browser.bookmarks; |
| 6 | 6 |
| 7 import android.content.Context; | 7 import android.content.Context; |
| 8 import android.os.Parcelable; | 8 import android.os.Parcelable; |
| 9 import android.support.v7.widget.Toolbar; | 9 import android.support.v7.widget.Toolbar; |
| 10 import android.text.Editable; | 10 import android.text.Editable; |
| (...skipping 341 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 352 mBookmarkModel = mDelegate.getModel(); | 352 mBookmarkModel = mDelegate.getModel(); |
| 353 } | 353 } |
| 354 | 354 |
| 355 @Override | 355 @Override |
| 356 public void onDestroy() { | 356 public void onDestroy() { |
| 357 mBookmarkModel.removeObserver(mModelObserver); | 357 mBookmarkModel.removeObserver(mModelObserver); |
| 358 mDelegate.removeUIObserver(this); | 358 mDelegate.removeUIObserver(this); |
| 359 } | 359 } |
| 360 | 360 |
| 361 @Override | 361 @Override |
| 362 public void onAllBookmarksStateSet() { | |
| 363 } | |
| 364 | |
| 365 @Override | |
| 366 public void onFolderStateSet(BookmarkId folder) { | 362 public void onFolderStateSet(BookmarkId folder) { |
| 367 } | 363 } |
| 368 | 364 |
| 369 @Override | 365 @Override |
| 370 public void onSelectionStateChange(List<BookmarkId> selectedBookmarks) { | 366 public void onSelectionStateChange(List<BookmarkId> selectedBookmarks) { |
| 371 } | 367 } |
| 372 | 368 |
| 373 private class ResultListAdapter extends BaseAdapter { | 369 private class ResultListAdapter extends BaseAdapter { |
| 374 private BookmarkDelegate mDelegate; | 370 private BookmarkDelegate mDelegate; |
| 375 private List<BookmarkMatch> mBookmarktList; | 371 private List<BookmarkMatch> mBookmarktList; |
| (...skipping 27 matching lines...) Expand all Loading... |
| 403 R.layout.bookmark_search_row, parent, false); | 399 R.layout.bookmark_search_row, parent, false); |
| 404 } | 400 } |
| 405 final BookmarkSearchRow row = (BookmarkSearchRow) convertView; | 401 final BookmarkSearchRow row = (BookmarkSearchRow) convertView; |
| 406 row.onBookmarkDelegateInitialized(mDelegate); | 402 row.onBookmarkDelegateInitialized(mDelegate); |
| 407 row.setBookmarkId(bookmarkMatch.getBookmarkId()); | 403 row.setBookmarkId(bookmarkMatch.getBookmarkId()); |
| 408 row.setSearchHistoryDelegate(BookmarkSearchView.this); | 404 row.setSearchHistoryDelegate(BookmarkSearchView.this); |
| 409 return convertView; | 405 return convertView; |
| 410 } | 406 } |
| 411 } | 407 } |
| 412 } | 408 } |
| OLD | NEW |