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

Unified Diff: ios/chrome/browser/ui/activity_services/share_to_data_builder.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 side-by-side diff with in-line comments
Download patch
Index: ios/chrome/browser/ui/activity_services/share_to_data_builder.h
diff --git a/ios/chrome/browser/ui/activity_services/share_to_data_builder.h b/ios/chrome/browser/ui/activity_services/share_to_data_builder.h
new file mode 100644
index 0000000000000000000000000000000000000000..89ef7245d478f3e026f1472865f15ec13281884d
--- /dev/null
+++ b/ios/chrome/browser/ui/activity_services/share_to_data_builder.h
@@ -0,0 +1,19 @@
+// Copyright 2017 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_BUILDER_H_
+#define IOS_CHROME_BROWSER_UI_ACTIVITY_SERVICES_SHARE_TO_DATA_BUILDER_H_
+
+@class ShareToData;
+@class Tab;
+
+namespace activity_services {
+
+// Returns a ShareToData object using data from |tab|. |tab| must not be nil.
+// Function may return nil.
+ShareToData* ShareToDataFromTab(Tab* tab);
+
+} // namespace activity_services
+
+#endif // IOS_CHROME_BROWSER_UI_ACTIVITY_SERVICES_SHARE_TO_DATA_BUILDER_H_

Powered by Google App Engine
This is Rietveld 408576698