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

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/ntp/snippets/SuggestionsSource.java

Issue 2232783002: Support action button to fetch more content suggestions (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@snippetsbridge
Patch Set: Created 4 years, 4 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/snippets/SuggestionsSource.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/ntp/snippets/SuggestionsSource.java b/chrome/android/java/src/org/chromium/chrome/browser/ntp/snippets/SuggestionsSource.java
index 2d691206d79fe62217503b4716ed832416d539af..d4c9879f041805bb9c40d1600d4266684d0403dd 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/ntp/snippets/SuggestionsSource.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/ntp/snippets/SuggestionsSource.java
@@ -51,6 +51,12 @@ public interface SuggestionsSource {
List<SnippetArticleListItem> getSuggestionsForCategory(int category);
/**
+ * Triggers a fetch for new suggestions (over the network, for example) for the given
+ * |category|. This must be initiated by the user (e.g. by clicking the a "More" button).
Michael van Ouwerkerk 2016/08/10 10:09:29 s/the a/a/
Philipp Keck 2016/08/10 13:14:46 Done.
+ */
+ void fetchMoreSuggestions(int category);
+
+ /**
* Fetches the thumbnail image for a content suggestion. A null Bitmap is returned if no image
* is available. The callback is never called synchronously.
*/

Powered by Google App Engine
This is Rietveld 408576698