michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: #include "nsISupports.idl" michael@0: michael@0: interface nsIInterfaceRequestor; michael@0: michael@0: /** michael@0: * nsIFormSigningDialog michael@0: * Provides UI for form signing. michael@0: */ michael@0: [scriptable, uuid(4fe04d6d-4b66-4023-a0bc-b43ce68b3e15)] michael@0: interface nsIFormSigningDialog : nsISupports michael@0: { michael@0: /** michael@0: * confirmSignText michael@0: * UI shown when a web site calls crypto.signText, michael@0: * asking the user to confirm the confirm the signing request. michael@0: * michael@0: * returns true if the user confirmed, false on cancel michael@0: */ michael@0: boolean confirmSignText(in nsIInterfaceRequestor ctxt, michael@0: in AString host, michael@0: in AString signText, michael@0: [array, size_is(count)] in wstring certNickList, michael@0: [array, size_is(count)] in wstring certDetailsList, michael@0: in uint32_t count, michael@0: out int32_t selectedIndex, michael@0: out AString password); michael@0: }; michael@0: michael@0: /** michael@0: * NS_FORMSIGNINGDIALOG_CONTRACTID - contract id to obtain an instance michael@0: * that implements nsIFormSigningDialog. michael@0: */ michael@0: %{C++ michael@0: #define NS_FORMSIGNINGDIALOG_CONTRACTID "@mozilla.org/nsFormSigningDialog;1" michael@0: %}