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

Unified Diff: components/ntp_snippets/category_info.h

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: components/ntp_snippets/category_info.h
diff --git a/components/ntp_snippets/category_info.h b/components/ntp_snippets/category_info.h
index dadf287683888610793b8e10515d13c6a4344fc5..a85e867a232649a3877bb6c100c303ea89beb936 100644
--- a/components/ntp_snippets/category_info.h
+++ b/components/ntp_snippets/category_info.h
@@ -25,8 +25,7 @@ class CategoryInfo {
public:
CategoryInfo(const base::string16& title,
ContentSuggestionsCardLayout card_layout,
- bool has_more_action,
- bool has_reload_action,
+ bool has_fetch_action,
bool has_view_all_action,
bool show_if_empty,
const base::string16& no_suggestions_message);
@@ -43,13 +42,9 @@ class CategoryInfo {
// Layout of the cards to be used to display suggestions in this category.
ContentSuggestionsCardLayout card_layout() const { return card_layout_; }
- // Whether the category supports a "More" action, that triggers fetching more
- // suggestions for the category, while keeping the current ones.
- bool has_more_action() const { return has_more_action_; }
-
- // Whether the category supports a "Reload" action, that triggers fetching new
- // suggestions to replace the current ones.
- bool has_reload_action() const { return has_reload_action_; }
+ // Whether the category supports a "Fetch" action, that triggers fetching more
+ // suggestions for the category.
+ bool has_fetch_action() const { return has_fetch_action_; }
// Whether the category supports a "ViewAll" action, that triggers displaying
// all the content related to the current categories.
@@ -70,8 +65,7 @@ class CategoryInfo {
ContentSuggestionsCardLayout card_layout_;
// Supported actions for the category.
- bool has_more_action_;
- bool has_reload_action_;
+ bool has_fetch_action_;
bool has_view_all_action_;
// Whether to show the category if a fetch returns no suggestions.
« no previous file with comments | « components/ntp_snippets/bookmarks/bookmark_suggestions_provider.cc ('k') | components/ntp_snippets/category_info.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698