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

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: Address comment 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
12 // Object representing a Most Visited suggestion.
13 @interface ContentSuggestionsMostVisited : NSObject
14
15 // Title of the Most Visited suggestion.
16 @property(nonatomic, copy, nullable) NSString* title;
17 // Attributes used to display the favicon of the Most Visited suggestion.
18 // Setting this to nil displays an empty grey background.
19 @property(nonatomic, strong, nullable) FaviconAttributes* attributes;
20
21 // Returns a Most Visited with the properties set.
22 + (nullable ContentSuggestionsMostVisited*)
23 mostVisitedWithTitle:(nullable NSString*)title
24 attributes:(nullable FaviconAttributes*)attributes;
25
26 @end
27
28 #endif // IOS_CHROME_BROWSER_UI_CONTENT_SUGGESTIONS_CELLS_CONTENT_SUGGESTIONS_M OST_VISITED_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698