1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/security/manager/ssl/public/nsIFormSigningDialog.idl Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,39 @@ 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 "nsISupports.idl" 1.9 + 1.10 +interface nsIInterfaceRequestor; 1.11 + 1.12 +/** 1.13 + * nsIFormSigningDialog 1.14 + * Provides UI for form signing. 1.15 + */ 1.16 +[scriptable, uuid(4fe04d6d-4b66-4023-a0bc-b43ce68b3e15)] 1.17 +interface nsIFormSigningDialog : nsISupports 1.18 +{ 1.19 + /** 1.20 + * confirmSignText 1.21 + * UI shown when a web site calls crypto.signText, 1.22 + * asking the user to confirm the confirm the signing request. 1.23 + * 1.24 + * returns true if the user confirmed, false on cancel 1.25 + */ 1.26 + boolean confirmSignText(in nsIInterfaceRequestor ctxt, 1.27 + in AString host, 1.28 + in AString signText, 1.29 + [array, size_is(count)] in wstring certNickList, 1.30 + [array, size_is(count)] in wstring certDetailsList, 1.31 + in uint32_t count, 1.32 + out int32_t selectedIndex, 1.33 + out AString password); 1.34 +}; 1.35 + 1.36 +/** 1.37 + * NS_FORMSIGNINGDIALOG_CONTRACTID - contract id to obtain an instance 1.38 + * that implements nsIFormSigningDialog. 1.39 + */ 1.40 +%{C++ 1.41 +#define NS_FORMSIGNINGDIALOG_CONTRACTID "@mozilla.org/nsFormSigningDialog;1" 1.42 +%}