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 073147059a8ed649918b63bee512cfe476f0b4c0..f182725a44315f767153cbc900b557382c630f8c 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 |
@@ -76,6 +76,20 @@ public interface SuggestionsSource { |
void fetchSuggestionImage(SnippetArticle suggestion, Callback<Bitmap> callback); |
/** |
+ * Fetches the favicon for a content suggestion. A null Bitmap is returned if no good favicon is |
+ * available. The callback is never called synchronously. |
+ * @param suggestion The suggestion which the favicon should represent. |
+ * @param minimumSizeInPixel Minimal required size, if only a smaller favicon is available, null |
Michael van Ouwerkerk
2017/03/28 11:23:56
nit: 'a null Bitmap'
jkrcal
2017/03/28 13:12:52
Done.
|
+ * Bitmap is returned. |
+ * @param desiredSizeInPixel If set to 0, it denotes that the favicon should be returned in its |
+ * original size (as in favicon cache) without being resized. If not 0, it must be larger or |
+ * equal to the minimum size and the favicon will be returned resized to this size. |
+ * @param callback The callback that receives the favicon image. |
+ */ |
+ void fetchSuggestionFavicon(SnippetArticle suggestion, int minimumSizeInPixel, |
Bernhard Bauer
2017/03/28 10:11:05
Nit: The usual way to name unit variables is to ju
jkrcal
2017/03/28 13:12:53
Done.
|
+ int desiredSizeInPixel, Callback<Bitmap> callback); |
+ |
+ /** |
* Fetches new suggestions. |
* @param category the category to fetch new suggestions for. |
* @param displayedSuggestionIds ids of suggestions already known and that we want to keep. |
@@ -101,4 +115,4 @@ public interface SuggestionsSource { |
* Sets the recipient for update events from the source. |
*/ |
void setObserver(Observer observer); |
-} |
+} |