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

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

Issue 2877513003: ContentSuggestionsDataSource returns CollectionViewItem (Closed)
Patch Set: Address comments Created 3 years, 7 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
index f2f7f974727bc17c80d6bac29e29e49986de2bfa..5bf00530477c80023ca4b1490866646e1974166e 100644
--- 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
@@ -6,15 +6,16 @@
#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/chrome/browser/ui/content_suggestions/cells/suggested_content.h"
#import "ios/third_party/material_components_ios/src/components/CollectionCells/src/MaterialCollectionCells.h"
@class FaviconAttributes;
@class FaviconViewNew;
+class GURL;
// Item containing a Most Visited suggestion.
@interface ContentSuggestionsMostVisitedItem
- : CollectionViewItem<ContentSuggestionIdentification>
+ : CollectionViewItem<SuggestedContent>
// Attributes to configure the favicon view.
@property(nonatomic, strong, nonnull) FaviconAttributes* attributes;
@@ -22,6 +23,8 @@
// Text for the title and the accessibility label of the cell.
@property(nonatomic, copy, nonnull) NSString* title;
+@property(nonatomic, assign) GURL URL;
+
@end
// Associated cell to display a Most Visited tile based on the suggestion.

Powered by Google App Engine
This is Rietveld 408576698