| 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_SUGGESTED_CONTENT_H_ |
| 6 #define IOS_CHROME_BROWSER_UI_CONTENT_SUGGESTIONS_CELLS_SUGGESTED_CONTENT_H_ |
| 7 |
| 8 #import <UIKit/UIKit.h> |
| 9 |
| 10 @class CollectionViewItem; |
| 11 @class ContentSuggestionIdentifier; |
| 12 @class FaviconAttributes; |
| 13 @protocol SuggestedContent; |
| 14 |
| 15 // Delegate for SuggestedContent. |
| 16 @protocol SuggestedContentDelegate |
| 17 |
| 18 // Loads the image associated with the |suggestedItem|. |
| 19 - (void)loadImageForSuggestedItem: |
| 20 (CollectionViewItem<SuggestedContent>*)suggestedItem; |
| 21 |
| 22 @end |
| 23 |
| 24 // Behavior shared by the items in ContentSuggestions. |
| 25 @protocol SuggestedContent |
| 26 |
| 27 @property(nonatomic, weak) id<SuggestedContentDelegate> delegate; |
| 28 // Image associated with this content. |
| 29 @property(nonatomic, strong) UIImage* image; |
| 30 // Attributes for favicon. |
| 31 @property(nonatomic, strong) FaviconAttributes* attributes; |
| 32 // Identifier for this content. |
| 33 @property(nonatomic, strong) ContentSuggestionIdentifier* suggestionIdentifier; |
| 34 |
| 35 @end |
| 36 |
| 37 #endif // IOS_CHROME_BROWSER_UI_CONTENT_SUGGESTIONS_CELLS_SUGGESTED_CONTENT_H_ |
| OLD | NEW |