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

Side by Side Diff: ios/chrome/browser/ui/content_suggestions/cells/content_suggestions_most_visited.mm

Issue 2803223002: Create a Most Visited tile for ContentSuggestions (Closed)
Patch Set: Address comments 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 unified diff | Download patch
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/chrome/browser/ui/content_suggestions/cells/content_suggestions_mos t_visited.h"
6
7 #import "ios/chrome/browser/ui/favicon/favicon_attributes.h"
8
9 #if !defined(__has_feature) || !__has_feature(objc_arc)
10 #error "This file requires ARC support."
11 #endif
12
13 @implementation ContentSuggestionsMostVisited
14
15 @synthesize title = _title;
16 @synthesize attributes = _attributes;
17
18 + (ContentSuggestionsMostVisited*)mostVisitedWithTitle:(NSString*)title
19 attributes:
20 (FaviconAttributes*)attributes {
21 ContentSuggestionsMostVisited* mostVisited =
22 [[ContentSuggestionsMostVisited alloc] init];
23 mostVisited.title = title;
24 mostVisited.attributes = attributes;
25 return mostVisited;
26 }
27
28 @end
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698