OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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.ntp.cards; | 5 package org.chromium.chrome.browser.ntp.cards; |
6 | 6 |
7 import org.chromium.base.Callback; | 7 import org.chromium.base.Callback; |
8 import org.chromium.chrome.browser.ntp.snippets.SnippetArticle; | 8 import org.chromium.chrome.browser.ntp.snippets.SnippetArticle; |
9 | 9 |
10 import java.util.Set; | 10 import java.util.Set; |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 */ | 67 */ |
68 Set<Integer> getItemDismissalGroup(int position); | 68 Set<Integer> getItemDismissalGroup(int position); |
69 | 69 |
70 /** | 70 /** |
71 * Dismiss the item at the given {@code position}. | 71 * Dismiss the item at the given {@code position}. |
72 * @param position The position of the item to be dismissed. | 72 * @param position The position of the item to be dismissed. |
73 * @param itemRemovedCallback Should be called with the title of the dismiss
ed item, to announce | 73 * @param itemRemovedCallback Should be called with the title of the dismiss
ed item, to announce |
74 * it for accessibility purposes. | 74 * it for accessibility purposes. |
75 * @see NewTabPageAdapter#dismissItem | 75 * @see NewTabPageAdapter#dismissItem |
76 */ | 76 */ |
77 public void dismissItem(int position, Callback<String> itemRemovedCallback); | 77 void dismissItem(int position, Callback<String> itemRemovedCallback); |
| 78 |
| 79 /** |
| 80 * Iterates over all items under this subtree and visits them with the given |
| 81 * {@link NodeVisitor}. |
| 82 * @param visitor The {@link NodeVisitor} with which to visit all items unde
r this subtree. |
| 83 */ |
| 84 void visitItems(NodeVisitor visitor); |
78 } | 85 } |
OLD | NEW |