OLD | NEW |
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_CONTENT_SUGGESTIONS_IMAGE_UPDA
TER_H_ | 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_ | 6 #define IOS_CHROME_BROWSER_UI_CONTENT_SUGGESTIONS_CONTENT_SUGGESTIONS_IMAGE_UPDA
TER_H_ |
7 | 7 |
8 #import <Foundation/Foundation.h> | 8 #import <UIKit/UIKit.h> |
9 | |
10 namespace gfx { | |
11 class Image; | |
12 } | |
13 | 9 |
14 @class ContentSuggestionIdentifier; | 10 @class ContentSuggestionIdentifier; |
15 | 11 |
16 // Protocol for an object able to fetch the image associated with a suggestion. | 12 // Protocol for an object able to fetch the image associated with a suggestion. |
17 @protocol ContentSuggestionsImageFetcher | 13 @protocol ContentSuggestionsImageFetcher |
18 | 14 |
19 // Fetches the image associated with the |suggestionIdentifier| and passes it to | 15 // Fetches the image associated with the |suggestionIdentifier| and passes it to |
20 // the |callback|. | 16 // the |callback|. The callback may never be called. |
21 - (void)fetchImageForSuggestion: | 17 - (void)fetchImageForSuggestion: |
22 (ContentSuggestionIdentifier*)suggestionIdentifier | 18 (ContentSuggestionIdentifier*)suggestionIdentifier |
23 callback:(void (^)(const gfx::Image&))callback; | 19 callback:(void (^)(UIImage*))callback; |
24 | 20 |
25 @end | 21 @end |
26 | 22 |
27 #endif // IOS_CHROME_BROWSER_UI_CONTENT_SUGGESTIONS_CONTENT_SUGGESTIONS_IMAGE_U
PDATER_H_ | 23 #endif // IOS_CHROME_BROWSER_UI_CONTENT_SUGGESTIONS_CONTENT_SUGGESTIONS_IMAGE_U
PDATER_H_ |
OLD | NEW |