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

Unified Diff: ios/chrome/browser/ui/content_suggestions/content_suggestion.h

Issue 2775593002: Add a message to empty ContentSuggestions sections (Closed)
Patch Set: Change tests Created 3 years, 9 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: ios/chrome/browser/ui/content_suggestions/content_suggestion.h
diff --git a/ios/chrome/browser/ui/content_suggestions/content_suggestion.h b/ios/chrome/browser/ui/content_suggestions/content_suggestion.h
index 5470c116c267e5e1484cce666991258978cbefe6..97742bbbe73c06ceed6254ab1b5d85ec9ba74097 100644
--- a/ios/chrome/browser/ui/content_suggestions/content_suggestion.h
+++ b/ios/chrome/browser/ui/content_suggestions/content_suggestion.h
@@ -17,6 +17,10 @@ class GURL;
// Enum defining the type of a ContentSuggestions.
typedef NS_ENUM(NSInteger, ContentSuggestionType) {
+ // Use this type to pass information about an empty section. Suggestion of
+ // this type are empty and should not be displayed. The informations to be
+ // displayed are contained in the SectionInfo.
+ ContentSuggestionTypeEmpty,
ContentSuggestionTypeArticle
};

Powered by Google App Engine
This is Rietveld 408576698