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

Unified Diff: third_party/WebKit/Source/modules/webshare/NavigatorShare.h

Issue 2207343002: Update navigator.share API to match draft specs. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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: third_party/WebKit/Source/modules/webshare/NavigatorShare.h
diff --git a/third_party/WebKit/Source/modules/webshare/NavigatorShare.h b/third_party/WebKit/Source/modules/webshare/NavigatorShare.h
index f85a1216760f67350039edb59328ef1e9603571f..5e4578ffd594a8831252c40111b58f74e3a7a1ee 100644
--- a/third_party/WebKit/Source/modules/webshare/NavigatorShare.h
+++ b/third_party/WebKit/Source/modules/webshare/NavigatorShare.h
@@ -18,6 +18,7 @@
namespace blink {
class Navigator;
+class ShareData;
class NavigatorShare final : public GarbageCollectedFinalized<NavigatorShare>, public Supplement<Navigator> {
USING_GARBAGE_COLLECTED_MIXIN(NavigatorShare);
@@ -29,8 +30,8 @@ public:
static NavigatorShare& from(Navigator&);
// Navigator partial interface
- ScriptPromise share(ScriptState*, const String& title, const String& text);
- static ScriptPromise share(ScriptState*, Navigator&, const String& title, const String& text);
+ ScriptPromise share(ScriptState*, const ShareData&);
+ static ScriptPromise share(ScriptState*, Navigator&, const ShareData&);
DECLARE_TRACE();
« no previous file with comments | « third_party/WebKit/Source/modules/modules.gypi ('k') | third_party/WebKit/Source/modules/webshare/NavigatorShare.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698