| 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.support.v4.widget.DrawerLayout; | 7 import android.support.v4.widget.DrawerLayout; |
| 8 | 8 |
| 9 import org.chromium.chrome.browser.favicon.LargeIconBridge; | 9 import org.chromium.chrome.browser.favicon.LargeIconBridge; |
| 10 import org.chromium.chrome.browser.snackbar.SnackbarManager; | 10 import org.chromium.chrome.browser.snackbar.SnackbarManager; |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 void openAllBookmarks(); | 42 void openAllBookmarks(); |
| 43 | 43 |
| 44 /** | 44 /** |
| 45 * Corresponds to any folder named list item in the side drawer. Shows bookm
arks under the | 45 * Corresponds to any folder named list item in the side drawer. Shows bookm
arks under the |
| 46 * folder. | 46 * folder. |
| 47 * @param folder Parent folder that contains bookmarks to show as its childr
en. | 47 * @param folder Parent folder that contains bookmarks to show as its childr
en. |
| 48 */ | 48 */ |
| 49 void openFolder(BookmarkId folder); | 49 void openFolder(BookmarkId folder); |
| 50 | 50 |
| 51 /** | 51 /** |
| 52 * Corresponds to any filter named list item in the side drawer. Shows bookm
arks that match | |
| 53 * that filter. | |
| 54 * @param filter A filter that will narrow down a list of bookmarks to show. | |
| 55 */ | |
| 56 void openFilter(BookmarkFilter filter); | |
| 57 | |
| 58 /** | |
| 59 * Clear all selected items. After this call, {@link #isSelectionEnabled()}
will return false. | 52 * Clear all selected items. After this call, {@link #isSelectionEnabled()}
will return false. |
| 60 */ | 53 */ |
| 61 void clearSelection(); | 54 void clearSelection(); |
| 62 | 55 |
| 63 /** | 56 /** |
| 64 * Toggle the selection state of a bookmark. If the given bookmark is not | 57 * Toggle the selection state of a bookmark. If the given bookmark is not |
| 65 * editable, it will take no effect. | 58 * editable, it will take no effect. |
| 66 * @return True if the bookmark is selected after toggling. False otherwise. | 59 * @return True if the bookmark is selected after toggling. False otherwise. |
| 67 */ | 60 */ |
| 68 boolean toggleSelectionForBookmark(BookmarkId bookmark); | 61 boolean toggleSelectionForBookmark(BookmarkId bookmark); |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 145 /** | 138 /** |
| 146 * @return LargeIconBridge instance. By sharing the instance, we can also sh
are the cache. | 139 * @return LargeIconBridge instance. By sharing the instance, we can also sh
are the cache. |
| 147 */ | 140 */ |
| 148 LargeIconBridge getLargeIconBridge(); | 141 LargeIconBridge getLargeIconBridge(); |
| 149 | 142 |
| 150 /** | 143 /** |
| 151 * @return SnackbarManager instance. | 144 * @return SnackbarManager instance. |
| 152 */ | 145 */ |
| 153 SnackbarManager getSnackbarManager(); | 146 SnackbarManager getSnackbarManager(); |
| 154 } | 147 } |
| OLD | NEW |