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

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: Reviewable 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..bfa793af06e6c8545934ecb8a381bab27294899f 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,11 @@ 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. If the section becomes empty
+// because the user dismissed suggestions, it should be shown in either cases.
lpromero 2017/03/23 10:54:37 Regarding the last sentence, does that means that
gambard 2017/03/23 15:25:49 The property will not be honored.
+@property(nonatomic, assign) BOOL showIfEmpty;
@end

Powered by Google App Engine
This is Rietveld 408576698