Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(912)

Side by Side Diff: chrome/android/java/src/org/chromium/chrome/browser/ntp/cards/TreeNode.java

Issue 2860463002: [Suggestions] Remove TreeNode.getSuggestionAt() in favor of a visitor. (Closed)
Patch Set: rebase Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698