| OLD | NEW |
| (Empty) | |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #import "ios/showcase/content_suggestions/sc_content_suggestions_most_visited_it
em.h" |
| 6 |
| 7 #import "ios/chrome/browser/ui/content_suggestions/cells/content_suggestions_mos
t_visited_cell.h" |
| 8 #import "ios/chrome/browser/ui/favicon/favicon_view.h" |
| 9 |
| 10 #if !defined(__has_feature) || !__has_feature(objc_arc) |
| 11 #error "This file requires ARC support." |
| 12 #endif |
| 13 |
| 14 @implementation SCContentSuggestionsMostVisitedItem |
| 15 |
| 16 @synthesize delegate; |
| 17 @synthesize attributes; |
| 18 @synthesize image; |
| 19 @synthesize suggestionIdentifier; |
| 20 @synthesize title; |
| 21 |
| 22 - (instancetype)initWithType:(NSInteger)type { |
| 23 self = [super initWithType:type]; |
| 24 if (self) { |
| 25 self.cellClass = [ContentSuggestionsMostVisitedCell class]; |
| 26 } |
| 27 return self; |
| 28 } |
| 29 |
| 30 - (void)configureCell:(ContentSuggestionsMostVisitedCell*)cell { |
| 31 [super configureCell:cell]; |
| 32 cell.titleLabel.text = self.title; |
| 33 cell.accessibilityLabel = self.title; |
| 34 [cell.faviconView configureWithAttributes:self.attributes]; |
| 35 } |
| 36 |
| 37 @end |
| OLD | NEW |