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

Unified Diff: ios/chrome/browser/ui/content_suggestions/content_suggestions_image_fetcher.h

Issue 2772583005: Pass UIImage instead of gfx::Image in ContentSuggestions (Closed)
Patch Set: Rebase Created 3 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ios/chrome/browser/ui/content_suggestions/content_suggestions_collection_updater.mm ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/chrome/browser/ui/content_suggestions/content_suggestions_image_fetcher.h
diff --git a/ios/chrome/browser/ui/content_suggestions/content_suggestions_image_fetcher.h b/ios/chrome/browser/ui/content_suggestions/content_suggestions_image_fetcher.h
index 46566253d5dfcf984cee3aaccda9c553702a7522..28c0e89b15137789cc6bc1241c9ecaaf742b693a 100644
--- a/ios/chrome/browser/ui/content_suggestions/content_suggestions_image_fetcher.h
+++ b/ios/chrome/browser/ui/content_suggestions/content_suggestions_image_fetcher.h
@@ -5,11 +5,7 @@
#ifndef IOS_CHROME_BROWSER_UI_CONTENT_SUGGESTIONS_CONTENT_SUGGESTIONS_IMAGE_UPDATER_H_
#define IOS_CHROME_BROWSER_UI_CONTENT_SUGGESTIONS_CONTENT_SUGGESTIONS_IMAGE_UPDATER_H_
-#import <Foundation/Foundation.h>
-
-namespace gfx {
-class Image;
-}
+#import <UIKit/UIKit.h>
@class ContentSuggestionIdentifier;
@@ -17,10 +13,10 @@ class Image;
@protocol ContentSuggestionsImageFetcher
// Fetches the image associated with the |suggestionIdentifier| and passes it to
-// the |callback|.
+// the |callback|. The callback may never be called.
- (void)fetchImageForSuggestion:
(ContentSuggestionIdentifier*)suggestionIdentifier
- callback:(void (^)(const gfx::Image&))callback;
+ callback:(void (^)(UIImage*))callback;
@end
« no previous file with comments | « ios/chrome/browser/ui/content_suggestions/content_suggestions_collection_updater.mm ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698