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

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/ntp/cards/NodeParent.java

Issue 2622793003: 📰 Implement offline badge refresh via partial bind (Closed)
Patch Set: address comments Created 3 years, 11 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 side-by-side diff with in-line comments
Download patch
Index: chrome/android/java/src/org/chromium/chrome/browser/ntp/cards/NodeParent.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/ntp/cards/NodeParent.java b/chrome/android/java/src/org/chromium/chrome/browser/ntp/cards/NodeParent.java
index 533e6f4981190f0d8c0b030e28524adfcc66fb57..963e28c82015b4144cded4ed8bd6a93587fc5403 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/ntp/cards/NodeParent.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/ntp/cards/NodeParent.java
@@ -10,14 +10,15 @@
public interface NodeParent {
/**
* Notifies that {@code count} items starting at position {@code index} under the {@code child}
- * have changed.
+ * have changed with an optional payload object.
* @param child The child whose items have changed.
* @param index The starting position of the range of changed items, relative to the
* {@code child}.
* @param count The number of changed items.
- * @see android.support.v7.widget.RecyclerView.Adapter#notifyItemRangeChanged(int, int)
+ * @param payload Optional parameter, use {@code null} to identify a "full" update.
+ * @see android.support.v7.widget.RecyclerView.Adapter#notifyItemRangeChanged(int, int, Object)
*/
- void onItemRangeChanged(TreeNode child, int index, int count);
+ void onItemRangeChanged(TreeNode child, int index, int count, Object payload);
/**
* Notifies that {@code count} items starting at position {@code index} under the {@code child}

Powered by Google App Engine
This is Rietveld 408576698