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

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

Issue 2770113006: Add no-image image in ContentSuggestions (Closed)
Patch Set: Fix tests 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
1 // Copyright 2017 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef IOS_CHROME_BROWSER_UI_CONTENT_SUGGESTIONS_CELLS_CONTENT_SUGGESTIONS_ARTI CLE_ITEM_H_ 5 #ifndef IOS_CHROME_BROWSER_UI_CONTENT_SUGGESTIONS_CELLS_CONTENT_SUGGESTIONS_ARTI CLE_ITEM_H_
6 #define IOS_CHROME_BROWSER_UI_CONTENT_SUGGESTIONS_CELLS_CONTENT_SUGGESTIONS_ARTI CLE_ITEM_H_ 6 #define IOS_CHROME_BROWSER_UI_CONTENT_SUGGESTIONS_CELLS_CONTENT_SUGGESTIONS_ARTI CLE_ITEM_H_
7 7
8 #import "ios/chrome/browser/ui/collection_view/cells/collection_view_item.h" 8 #import "ios/chrome/browser/ui/collection_view/cells/collection_view_item.h"
9 #import "ios/chrome/browser/ui/content_suggestions/identifier/content_suggestion _identifier.h" 9 #import "ios/chrome/browser/ui/content_suggestions/identifier/content_suggestion _identifier.h"
10 #import "ios/third_party/material_components_ios/src/components/CollectionCells/ src/MaterialCollectionCells.h" 10 #import "ios/third_party/material_components_ios/src/components/CollectionCells/ src/MaterialCollectionCells.h"
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 @property(nonatomic, assign) base::Time publishDate; 45 @property(nonatomic, assign) base::Time publishDate;
46 @property(nonatomic, weak) id<ContentSuggestionsArticleItemDelegate> delegate; 46 @property(nonatomic, weak) id<ContentSuggestionsArticleItemDelegate> delegate;
47 47
48 @end 48 @end
49 49
50 // Corresponding cell for an article in the suggestions. 50 // Corresponding cell for an article in the suggestions.
51 @interface ContentSuggestionsArticleCell : MDCCollectionViewCell 51 @interface ContentSuggestionsArticleCell : MDCCollectionViewCell
52 52
53 @property(nonatomic, readonly, strong) UILabel* titleLabel; 53 @property(nonatomic, readonly, strong) UILabel* titleLabel;
54 @property(nonatomic, readonly, strong) UILabel* subtitleLabel; 54 @property(nonatomic, readonly, strong) UILabel* subtitleLabel;
55 @property(nonatomic, readonly, strong) UIImageView* imageView;
56 55
56 // Sets an |image| to illustrate the article, replacing the "no image" icon.
57 - (void)setContentImage:(UIImage*)image;
58
59 // Sets the publisher |name| and |date|.
57 - (void)setPublisherName:(NSString*)publisherName date:(base::Time)publishDate; 60 - (void)setPublisherName:(NSString*)publisherName date:(base::Time)publishDate;
58 61
59 @end 62 @end
60 63
61 #endif // IOS_CHROME_BROWSER_UI_CONTENT_SUGGESTIONS_CELLS_CONTENT_SUGGESTIONS_A RTICLE_ITEM_H_ 64 #endif // IOS_CHROME_BROWSER_UI_CONTENT_SUGGESTIONS_CELLS_CONTENT_SUGGESTIONS_A RTICLE_ITEM_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698