1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/uriloader/exthandler/nsIExternalSharingAppService.idl Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,28 @@ 1.4 +/* This Source Code Form is subject to the terms of the Mozilla Public 1.5 + * License, v. 2.0. If a copy of the MPL was not distributed with this 1.6 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 1.7 + 1.8 +#include "nsIMIMEInfo.idl" 1.9 + 1.10 +%{C++ 1.11 +#define NS_EXTERNALSHARINGAPPSERVICE_CONTRACTID "@mozilla.org/uriloader/external-sharing-app-service;1" 1.12 +%} 1.13 + 1.14 + 1.15 +[scriptable, uuid(7111f769-53ec-41fd-b314-613661d5b6ba)] 1.16 +interface nsISharingHandlerApp : nsIHandlerApp 1.17 +{ 1.18 + void share(in AString data, [optional] in AString title); 1.19 +}; 1.20 + 1.21 +[scriptable, uuid(cf7d04e5-3892-482e-81bb-073dc1c83f76)] 1.22 +interface nsIExternalSharingAppService : nsISupports { 1.23 + void shareWithDefault(in AString data, in AString mime, 1.24 + [optional] in AString title); 1.25 + 1.26 + void getSharingApps(in AString aMIMEType, 1.27 + [optional] out unsigned long aLen, 1.28 + [array, size_is(aLen), retval] out nsISharingHandlerApp handlerApps); 1.29 +}; 1.30 + 1.31 +