no bug - Bumping Firefox l10n changesets r=release a=l10n-bump DONTBUILD CLOSED TREE
[gecko.git] / widget / nsISharePicker.idl
blob34c7f18d0e7ae43d4f496134d9f52c09c3b10646
1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
3 * This Source Code Form is subject to the terms of the Mozilla Public
4 * License, v. 2.0. If a copy of the MPL was not distributed with this
5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
7 #include "nsISupports.idl"
9 interface nsIURI;
11 interface mozIDOMWindowProxy;
13 [scriptable, uuid(1201d357-8417-4926-a694-e6408fbedcf8)]
14 interface nsISharePicker : nsISupports
16 /**
17 * Initialize the share picker widget.
18 * @param nsIDOMWindow openerWindow.
20 void init(in mozIDOMWindowProxy openerWindow);
22 /**
23 * Returns the parent window this was initialized with.
25 readonly attribute mozIDOMWindowProxy openerWindow;
27 /**
28 * XPCOM Analog of navigator.share() as per:
29 * https://w3c.github.io/web-share/#share-method
31 Promise share(in AUTF8String title, in AUTF8String text, in nsIURI url);