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

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

Issue 2235463002: Change Snippet layout based on Category. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Pass card layout at construction. 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/cards/SuggestionsSection.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/ntp/cards/SuggestionsSection.java b/chrome/android/java/src/org/chromium/chrome/browser/ntp/cards/SuggestionsSection.java
index 0129065e42a3b1d7fbffb3298dd9217d6000b7ac..305356f76335a9b999dc83ce1294a871dd58e189 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/ntp/cards/SuggestionsSection.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/ntp/cards/SuggestionsSection.java
@@ -33,6 +33,11 @@ public class SuggestionsSection implements ItemGroup {
setSuggestions(suggestions, status, adapter);
}
+ /** Gets information about the category or snippets this SuggestionsSection contains. */
+ public SuggestionsCategoryInfo getCategoryInfo() {
Michael van Ouwerkerk 2016/08/11 15:25:48 Is this still needed?
PEConn 2016/08/11 16:30:10 Done.
+ return mInfo;
+ }
+
@Override
public List<NewTabPageListItem> getItems() {
List<NewTabPageListItem> items = new ArrayList<>();

Powered by Google App Engine
This is Rietveld 408576698