Chromium Code Reviews| 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_CONTENT_SUGGESTIONS_IMAGE_UPDA TER_H_ | |
| 6 #define IOS_CHROME_BROWSER_UI_CONTENT_SUGGESTIONS_CONTENT_SUGGESTIONS_IMAGE_UPDA TER_H_ | |
| 7 | |
| 8 #import <UIKit/UIKit.h> | |
| 9 | |
| 10 @class ContentSuggestionsArticleItem; | |
| 11 @class ContentSuggestionsImageUpdater; | |
| 12 | |
| 13 // Delegate for ContentSuggestionsImageUpdater. It gets notified when the | |
| 14 // ImageUpdater receives an image. | |
| 15 @protocol ContentSuggestionsImageUpdaterDelegate | |
| 16 | |
| 17 - (void)contentSuggestionsImageUpdater: | |
| 18 (ContentSuggestionsImageUpdater*)imageUpdater | |
| 19 receivedImage:(UIImage*)image; | |
| 20 | |
| 21 @end | |
| 22 | |
| 23 // When receiving an image, it notifies its delegate. | |
| 24 @interface ContentSuggestionsImageUpdater : NSObject | |
| 25 | |
| 26 // Item, and its section identifier, associated with this ImageUpdater. The | |
| 27 // image updater does not update it in any way. | |
| 28 @property(nonatomic, weak) ContentSuggestionsArticleItem* item; | |
| 29 @property(nonatomic, assign) NSInteger sectionIdentifier; | |
| 30 | |
| 31 @property(nonatomic, weak) id<ContentSuggestionsImageUpdaterDelegate> delegate; | |
| 32 | |
| 33 - (void)receivedImage:(UIImage*)image; | |
|
stkhapugin
2017/02/14 16:34:19
Per offline discussion, this is not a great way of
gambard
2017/02/15 10:17:56
Done.
| |
| 34 | |
| 35 @end | |
| 36 | |
| 37 #endif // IOS_CHROME_BROWSER_UI_CONTENT_SUGGESTIONS_CONTENT_SUGGESTIONS_IMAGE_U PDATER_H_ | |
| OLD | NEW |