OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 package org.chromium.chrome.browser.enhancedbookmarks; |
| 6 |
| 7 import org.chromium.components.bookmarks.BookmarkId; |
| 8 |
| 9 import java.util.List; |
| 10 |
| 11 /** |
| 12 * Observer interface to get notification for UI mode changes, bookmark changes,
and other related |
| 13 * event that affects UI. All enhanced bookmark UI components are expected to im
plement this and |
| 14 * update themselves correctly on each event. |
| 15 */ |
| 16 interface EnhancedBookmarkUIObserver { |
| 17 void onEnhancedBookmarkDelegateInitialized(EnhancedBookmarkDelegate delegate
); |
| 18 |
| 19 /** |
| 20 * Called when the entire UI is being destroyed and will be no longer in use
. |
| 21 */ |
| 22 void onDestroy(); |
| 23 |
| 24 /** |
| 25 * @see EnhancedBookmarkDelegate#openAllBookmarks() |
| 26 */ |
| 27 void onAllBookmarksStateSet(); |
| 28 |
| 29 /** |
| 30 * @see EnhancedBookmarkDelegate#openFolder(BookmarkId) |
| 31 */ |
| 32 void onFolderStateSet(BookmarkId folder); |
| 33 |
| 34 /** |
| 35 * @see EnhancedBookmarkDelegate#openFilter(String) |
| 36 */ |
| 37 void onFilterStateSet(String filter); |
| 38 |
| 39 /** |
| 40 * Please refer to |
| 41 * {@link EnhancedBookmarkDelegate#toggleSelectionForBookmark(BookmarkId)}, |
| 42 * {@link EnhancedBookmarkDelegate#clearSelection()} and |
| 43 * {@link EnhancedBookmarkDelegate#getSelectedBookmarks()} |
| 44 */ |
| 45 void onSelectionStateChange(List<BookmarkId> selectedBookmarks); |
| 46 |
| 47 /** |
| 48 * @see EnhancedBookmarkDelegate#setListModeEnabled(boolean) |
| 49 */ |
| 50 void onListModeChange(boolean isListModeEnabled); |
| 51 } |
OLD | NEW |