OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef IOS_CHROME_BROWSER_UI_ACTIVITY_SERVICES_SHARE_TO_DATA_H_ |
| 6 #define IOS_CHROME_BROWSER_UI_ACTIVITY_SERVICES_SHARE_TO_DATA_H_ |
| 7 |
| 8 #import <UIKit/UIKit.h> |
| 9 |
| 10 #include "url/gurl.h" |
| 11 |
| 12 @interface ShareToData : NSObject |
| 13 |
| 14 // Designated initializer. |
| 15 - (id)initWithURL:(const GURL&)url |
| 16 title:(NSString*)title |
| 17 isOriginalTitle:(BOOL)isOriginalTitle |
| 18 isPagePrintable:(BOOL)isPagePrintable; |
| 19 |
| 20 @property(nonatomic, readonly) const GURL& url; |
| 21 // NSURL version of 'url'. Use only for passing to libraries that take NSURL. |
| 22 @property(strong, nonatomic, readonly) NSURL* nsurl; |
| 23 @property(nonatomic, readonly, copy) NSString* title; |
| 24 @property(nonatomic, readonly, assign) BOOL isOriginalTitle; |
| 25 @property(nonatomic, readonly, assign) BOOL isPagePrintable; |
| 26 @property(nonatomic, strong) UIImage* image; |
| 27 |
| 28 @end |
| 29 |
| 30 #endif // IOS_CHROME_BROWSER_UI_ACTIVITY_SERVICES_SHARE_TO_DATA_H_ |
OLD | NEW |