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

Side by Side Diff: ios/chrome/browser/ui/activity_services/share_to_data.h

Issue 2645653003: Expose thumbnails of pages to iOS share extensions. (Closed)
Patch Set: Created 3 years, 11 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 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 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_ACTIVITY_SERVICES_SHARE_TO_DATA_H_ 5 #ifndef IOS_CHROME_BROWSER_UI_ACTIVITY_SERVICES_SHARE_TO_DATA_H_
6 #define IOS_CHROME_BROWSER_UI_ACTIVITY_SERVICES_SHARE_TO_DATA_H_ 6 #define IOS_CHROME_BROWSER_UI_ACTIVITY_SERVICES_SHARE_TO_DATA_H_
7 7
8 #import <UIKit/UIKit.h> 8 #import <UIKit/UIKit.h>
9 9
10 #include "ios/chrome/browser/ui/activity_services/chrome_activity_item_thumbnail _generator.h"
10 #include "url/gurl.h" 11 #include "url/gurl.h"
11 12
12 @interface ShareToData : NSObject 13 @interface ShareToData : NSObject
13 14
14 // Designated initializer. 15 // Designated initializer.
15 - (id)initWithURL:(const GURL&)url 16 - (id)initWithURL:(const GURL&)url
16 title:(NSString*)title 17 title:(NSString*)title
17 isOriginalTitle:(BOOL)isOriginalTitle 18 isOriginalTitle:(BOOL)isOriginalTitle
18 isPagePrintable:(BOOL)isPagePrintable; 19 isPagePrintable:(BOOL)isPagePrintable
20 thumbnailGenerator:(ThumbnailGenerator)thumbnailGenerator;
19 21
20 @property(nonatomic, readonly) const GURL& url; 22 @property(nonatomic, readonly) const GURL& url;
21 // NSURL version of 'url'. Use only for passing to libraries that take NSURL. 23 // NSURL version of 'url'. Use only for passing to libraries that take NSURL.
22 @property(strong, nonatomic, readonly) NSURL* nsurl; 24 @property(strong, nonatomic, readonly) NSURL* nsurl;
23 @property(nonatomic, readonly, copy) NSString* title; 25 @property(nonatomic, readonly, copy) NSString* title;
24 @property(nonatomic, readonly, assign) BOOL isOriginalTitle; 26 @property(nonatomic, readonly, assign) BOOL isOriginalTitle;
25 @property(nonatomic, readonly, assign) BOOL isPagePrintable; 27 @property(nonatomic, readonly, assign) BOOL isPagePrintable;
26 @property(nonatomic, strong) UIImage* image; 28 @property(nonatomic, strong) UIImage* image;
29 @property(nonatomic, copy) ThumbnailGenerator thumbnailGenerator;
27 30
28 @end 31 @end
29 32
30 #endif // IOS_CHROME_BROWSER_UI_ACTIVITY_SERVICES_SHARE_TO_DATA_H_ 33 #endif // IOS_CHROME_BROWSER_UI_ACTIVITY_SERVICES_SHARE_TO_DATA_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698