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

Side by Side Diff: ios/showcase/content_suggestions/sc_content_suggestions_most_visited_item.mm

Issue 2769063005: Add CSDataSource in showcase (Closed)
Patch Set: Address comments Created 3 years, 6 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 unified diff | Download patch
« no previous file with comments | « ios/showcase/content_suggestions/sc_content_suggestions_most_visited_item.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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
OLDNEW
« no previous file with comments | « ios/showcase/content_suggestions/sc_content_suggestions_most_visited_item.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698