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

Unified Diff: ios/chrome/browser/ui/content_suggestions/cells/content_suggestions_most_visited_item.h

Issue 2808433002: Create a MostVisited cell for ContentSuggestions (Closed)
Patch Set: Split Created 3 years, 8 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/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_

Powered by Google App Engine
This is Rietveld 408576698