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

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

Issue 2586993002: Upstream Chrome on iOS source code [3/11]. (Closed)
Patch Set: Created 4 years 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
new file mode 100644
index 0000000000000000000000000000000000000000..0313aa0c062ffd05d8a5bb512b6e197579da9022
--- /dev/null
+++ b/ios/chrome/browser/ui/activity_services/share_to_data.h
@@ -0,0 +1,30 @@
+// Copyright 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef IOS_CHROME_BROWSER_UI_ACTIVITY_SERVICES_SHARE_TO_DATA_H_
+#define IOS_CHROME_BROWSER_UI_ACTIVITY_SERVICES_SHARE_TO_DATA_H_
+
+#import <UIKit/UIKit.h>
+
+#include "url/gurl.h"
+
+@interface ShareToData : NSObject
+
+// Designated initializer.
+- (id)initWithURL:(const GURL&)url
+ title:(NSString*)title
+ isOriginalTitle:(BOOL)isOriginalTitle
+ isPagePrintable:(BOOL)isPagePrintable;
+
+@property(nonatomic, readonly) const GURL& url;
+// NSURL version of 'url'. Use only for passing to libraries that take NSURL.
+@property(strong, nonatomic, readonly) NSURL* nsurl;
+@property(nonatomic, readonly, copy) NSString* title;
+@property(nonatomic, readonly, assign) BOOL isOriginalTitle;
+@property(nonatomic, readonly, assign) BOOL isPagePrintable;
+@property(nonatomic, strong) UIImage* image;
+
+@end
+
+#endif // IOS_CHROME_BROWSER_UI_ACTIVITY_SERVICES_SHARE_TO_DATA_H_
« no previous file with comments | « ios/chrome/browser/ui/activity_services/share_protocol.h ('k') | ios/chrome/browser/ui/activity_services/share_to_data.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698