Chromium Code Reviews| 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 f1c79f69f4e905c7613353772a9451d8ad3d5361..e7449de1e338b3d9f3cb2ea931252e1760daddd6 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 |
| @@ -34,6 +34,16 @@ |
| // Returns the ContentSuggestionType associated with this item. |
| - (ContentSuggestionType)contentSuggestionTypeForItem:(CollectionViewItem*)item; |
| +// Adds the sections for the |suggestions| to the model and returns their index. |
|
lpromero
2017/03/15 10:28:34
their indices
gambard
2017/03/15 14:18:28
Done.
|
| +// The caller must ensure the corresponding sections have been added to the |
|
lpromero
2017/03/15 10:28:34
Should this comment be added to the other method?
gambard
2017/03/15 14:18:28
Ooops... Done!
|
| +// model. |
| +- (NSIndexSet*)addSectionsForSuggestionsToModel: |
| + (NSArray<ContentSuggestion*>*)suggestions; |
| + |
| +// Adds the |suggestions| to the model and returns their index paths. |
| +- (NSArray<NSIndexPath*>*)addSuggestionsToModel: |
| + (NSArray<ContentSuggestion*>*)suggestions; |
| + |
| @end |
| #endif // IOS_CHROME_BROWSER_UI_CONTENT_SUGGESTIONS_CONTENT_SUGGESTIONS_COLLECTION_UPDATER_H_ |