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

Unified Diff: ios/chrome/browser/ui/content_suggestions/content_suggestions_collection_updater.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_suggestions_collection_updater.h
diff --git a/ios/chrome/browser/ui/content_suggestions/content_suggestions_collection_updater.h b/ios/chrome/browser/ui/content_suggestions/content_suggestions_collection_updater.h
index 6661d090081ccbaefb3e66837aaf24ed42f941f2..1dd77eca70bdc3d26de6892f7defcbf61152e086 100644
--- a/ios/chrome/browser/ui/content_suggestions/content_suggestions_collection_updater.h
+++ b/ios/chrome/browser/ui/content_suggestions/content_suggestions_collection_updater.h
@@ -45,6 +45,10 @@
- (NSArray<NSIndexPath*>*)addSuggestionsToModel:
(NSArray<ContentSuggestion*>*)suggestions;
+// Adds the empty item to this |section| and returns its index path. The updater
+// does not do any check about the number of elements in the section.
+- (NSIndexPath*)addEmptyItemForSection:(NSInteger)section;
+
@end
#endif // IOS_CHROME_BROWSER_UI_CONTENT_SUGGESTIONS_CONTENT_SUGGESTIONS_COLLECTION_UPDATER_H_

Powered by Google App Engine
This is Rietveld 408576698