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

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

Issue 2877513003: ContentSuggestionsDataSource returns CollectionViewItem (Closed)
Patch Set: Address comments Created 3 years, 7 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_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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698