Index: ios/chrome/browser/ui/content_suggestions/cells/content_suggestions_most_visited_item.h |
diff --git a/ios/chrome/browser/ui/content_suggestions/cells/content_suggestions_most_visited_item.h b/ios/chrome/browser/ui/content_suggestions/cells/content_suggestions_most_visited_item.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..c2fd6a7662903b9b5cc0c3d6658ad6742c3ac3b5 |
--- /dev/null |
+++ b/ios/chrome/browser/ui/content_suggestions/cells/content_suggestions_most_visited_item.h |
@@ -0,0 +1,34 @@ |
+// Copyright 2017 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef IOS_CHROME_BROWSER_UI_CONTENT_SUGGESTIONS_CELLS_CONTENT_SUGGESTIONS_MOST_VISITED_ITEM_H_ |
+#define IOS_CHROME_BROWSER_UI_CONTENT_SUGGESTIONS_CELLS_CONTENT_SUGGESTIONS_MOST_VISITED_ITEM_H_ |
+ |
+#import "ios/chrome/browser/ui/collection_view/cells/collection_view_item.h" |
+#import "ios/chrome/browser/ui/content_suggestions/identifier/content_suggestion_identifier.h" |
+#import "ios/third_party/material_components_ios/src/components/CollectionCells/src/MaterialCollectionCells.h" |
+ |
+@class ContentSuggestionsMostVisited; |
+@class FaviconAttributes; |
+ |
+// Item containing the Most Visited suggestions. |
+@interface ContentSuggestionsMostVisitedItem |
+ : CollectionViewItem<ContentSuggestionIdentification> |
+ |
+// Most Visited suggestions for this item. |
+@property(nonatomic, copy, nonnull) |
+ NSArray<ContentSuggestionsMostVisited*>* mostVisiteds; |
stkhapugin
2017/04/07 12:17:58
mostVisitedItems or mostVisitedSuggestions
lpromero
2017/04/07 12:46:56
Or |suggestions|?
gambard
2017/04/10 11:49:16
Done.
|
+ |
+@end |
+ |
+// Associated cell to display the Most Visited suggestions. |
+@interface ContentSuggestionsMostVisitedCell : MDCCollectionViewCell |
stkhapugin
2017/04/07 12:17:58
nit: If you plan to add more logic into this class
gambard
2017/04/10 11:49:16
The only logic I am planing to add to this cell is
|
+ |
+// Sets the Most Visited suggestions of this cell. |
+- (void)setMostVisiteds: |
lpromero
2017/04/07 12:46:56
Idem.
gambard
2017/04/10 11:49:16
Done.
|
+ (nonnull NSArray<ContentSuggestionsMostVisited*>*)mostVisiteds; |
+ |
+@end |
+ |
+#endif // IOS_CHROME_BROWSER_UI_CONTENT_SUGGESTIONS_CELLS_CONTENT_SUGGESTIONS_MOST_VISITED_ITEM_H_ |