| OLD | NEW |
| (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_ |
| OLD | NEW |