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

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

Issue 2663313002: 📰 Merge the has_fetch_more and has_reload actions (Closed)
Patch Set: rebase 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/SuggestionsCategoryInfo.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/ntp/cards/SuggestionsCategoryInfo.java b/chrome/android/java/src/org/chromium/chrome/browser/ntp/cards/SuggestionsCategoryInfo.java
index 7f333ef22256a8410a369c0c8ef9a9776634b584..8145913fc18121a7b4eb686c27ea3550b3895409 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/ntp/cards/SuggestionsCategoryInfo.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/ntp/cards/SuggestionsCategoryInfo.java
@@ -39,18 +39,11 @@
private final int mCardLayout;
/**
- * Whether the category supports a "More" action, that triggers fetching more suggestions for
- * the category, while keeping the current ones.
+ * Whether the category supports a "Fetch" action, that triggers fetching more suggestions for
+ * the category.
* @see ActionItem
*/
- private final boolean mHasFetchMoreAction;
-
- /**
- * Whether the category supports a "Reload" action, that triggers fetching new suggestions to
- * replace the current ones.
- * @see ActionItem
- */
- private final boolean mHasReloadAction;
+ private final boolean mHasFetchAction;
/**
* Whether the category supports a "ViewAll" action, that triggers displaying all the content
@@ -69,14 +62,12 @@
private final String mNoSuggestionsMessage;
public SuggestionsCategoryInfo(@CategoryInt int category, String title,
- @ContentSuggestionsCardLayoutEnum int cardLayout, boolean hasMoreAction,
- boolean hasReloadAction, boolean hasViewAllAction, boolean showIfEmpty,
- String noSuggestionsMessage) {
+ @ContentSuggestionsCardLayoutEnum int cardLayout, boolean hasFetchAction,
+ boolean hasViewAllAction, boolean showIfEmpty, String noSuggestionsMessage) {
mCategory = category;
mTitle = title;
mCardLayout = cardLayout;
- mHasFetchMoreAction = hasMoreAction;
- mHasReloadAction = hasReloadAction;
+ mHasFetchAction = hasFetchAction;
mHasViewAllAction = hasViewAllAction;
mShowIfEmpty = showIfEmpty;
mNoSuggestionsMessage = noSuggestionsMessage;
@@ -96,12 +87,8 @@ public int getCardLayout() {
return mCardLayout;
}
- public boolean hasFetchMoreAction() {
- return mHasFetchMoreAction;
- }
-
- public boolean hasReloadAction() {
- return mHasReloadAction;
+ public boolean hasFetchAction() {
+ return mHasFetchAction;
}
public boolean hasViewAllAction() {

Powered by Google App Engine
This is Rietveld 408576698