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

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: Reviewable 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 #include "url/gurl.h"
9
10 #if !defined(__has_feature) || !__has_feature(objc_arc)
11 #error "This file requires ARC support."
12 #endif
13
14 @implementation ContentSuggestionsMostVisited
15
16 @synthesize url = _url;
17 @synthesize title = _title;
18 @synthesize attributes = _attributes;
19
20 + (ContentSuggestionsMostVisited*)mostVisitedWithURL:(const GURL&)URL
21 title:(NSString*)title
22 attributes:
23 (FaviconAttributes*)attributes {
24 ContentSuggestionsMostVisited* mostVisited =
25 [[ContentSuggestionsMostVisited alloc] init];
26 mostVisited.url = URL;
27 mostVisited.title = title;
28 mostVisited.attributes = attributes;
29 return mostVisited;
30 }
31
32 @end
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698