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

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

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 #ifndef IOS_CHROME_BROWSER_UI_CONTENT_SUGGESTIONS_CELLS_CONTENT_SUGGESTIONS_MOST _VISITED_H_
6 #define IOS_CHROME_BROWSER_UI_CONTENT_SUGGESTIONS_CELLS_CONTENT_SUGGESTIONS_MOST _VISITED_H_
7
8 #import <Foundation/Foundation.h>
9
10 @class FaviconAttributes;
11 class GURL;
12
13 // Object representing a Most Visited suggestion.
14 @interface ContentSuggestionsMostVisited : NSObject
15
16 // URL of the Most Visited suggestion.
17 @property(nonatomic, assign) GURL url;
lpromero 2017/04/07 10:58:22 I think this is a good occasion to test drive a so
gambard 2017/04/07 14:47:21 Done.
18 // Title of the Most Visited suggestion.
19 @property(nonatomic, copy, nullable) NSString* title;
20 // Attributes used to display the favicon of the Most Visited suggestion.
21 @property(nonatomic, strong, nullable) FaviconAttributes* attributes;
stkhapugin 2017/04/07 11:15:18 Should this really be nullable, given that Favicon
gambard 2017/04/07 14:47:21 Yes, the fetch for the attributes are asynchronous
stkhapugin 2017/04/10 11:17:37 Please document this behavior in a comment here an
gambard 2017/04/10 12:06:34 Done.
22
23 // Returns a Most Visited with the properties set.
24 + (nullable ContentSuggestionsMostVisited*)
25 mostVisitedWithURL:(const GURL&)URL
26 title:(nullable NSString*)title
27 attributes:(nullable FaviconAttributes*)attributes;
28
29 @end
30
31 #endif // IOS_CHROME_BROWSER_UI_CONTENT_SUGGESTIONS_CELLS_CONTENT_SUGGESTIONS_M OST_VISITED_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698