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

Unified Diff: ios/chrome/browser/ui/activity_services/share_to_data.h

Issue 2645653003: Expose thumbnails of pages to iOS share extensions. (Closed)
Patch Set: Addressed comments. Created 3 years, 10 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
Index: ios/chrome/browser/ui/activity_services/share_to_data.h
diff --git a/ios/chrome/browser/ui/activity_services/share_to_data.h b/ios/chrome/browser/ui/activity_services/share_to_data.h
index 0313aa0c062ffd05d8a5bb512b6e197579da9022..fd6bfb080c186e5b835461e8a3d9b9baa68c602d 100644
--- a/ios/chrome/browser/ui/activity_services/share_to_data.h
+++ b/ios/chrome/browser/ui/activity_services/share_to_data.h
@@ -7,15 +7,17 @@
#import <UIKit/UIKit.h>
+#include "ios/chrome/browser/ui/activity_services/chrome_activity_item_thumbnail_generator.h"
#include "url/gurl.h"
@interface ShareToData : NSObject
// Designated initializer.
- (id)initWithURL:(const GURL&)url
- title:(NSString*)title
- isOriginalTitle:(BOOL)isOriginalTitle
- isPagePrintable:(BOOL)isPagePrintable;
+ title:(NSString*)title
+ isOriginalTitle:(BOOL)isOriginalTitle
+ isPagePrintable:(BOOL)isPagePrintable
+ thumbnailGenerator:(ThumbnailGeneratorBlock)thumbnailGenerator;
@property(nonatomic, readonly) const GURL& url;
// NSURL version of 'url'. Use only for passing to libraries that take NSURL.
@@ -24,6 +26,7 @@
@property(nonatomic, readonly, assign) BOOL isOriginalTitle;
@property(nonatomic, readonly, assign) BOOL isPagePrintable;
@property(nonatomic, strong) UIImage* image;
+@property(nonatomic, copy) ThumbnailGeneratorBlock thumbnailGenerator;
@end

Powered by Google App Engine
This is Rietveld 408576698