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

Unified Diff: ios/chrome/browser/ui/content_suggestions/identifier/content_suggestions_section_information.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/identifier/content_suggestions_section_information.h
diff --git a/ios/chrome/browser/ui/content_suggestions/identifier/content_suggestions_section_information.h b/ios/chrome/browser/ui/content_suggestions/identifier/content_suggestions_section_information.h
index d73e065167f8c1d915ad252040ea99d1a31b0130..370fc06bffcc7b79d8086470f22c6b17eeba76fd 100644
--- a/ios/chrome/browser/ui/content_suggestions/identifier/content_suggestions_section_information.h
+++ b/ios/chrome/browser/ui/content_suggestions/identifier/content_suggestions_section_information.h
@@ -43,6 +43,12 @@ typedef NS_ENUM(NSInteger, ContentSuggestionsSectionID) {
@property(nonatomic, copy) NSString* title;
// Title of the section's footer. If it is nil, no footer is created.
@property(nonatomic, copy) NSString* footerTitle;
+// Text to be displayed when the section is empty.
+@property(nonatomic, copy) NSString* emptyText;
+// If the section should be shown when empty at loading. If the section becomes
+// empty because the user dismissed suggestions, the |emptyText| must be shown
+// in both cases.
+@property(nonatomic, assign) BOOL showIfEmpty;
@end

Powered by Google App Engine
This is Rietveld 408576698