embedding/components/windowwatcher/public/nsIPromptService2.idl

Thu, 15 Jan 2015 21:03:48 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 15 Jan 2015 21:03:48 +0100
branch
TOR_BUG_9701
changeset 11
deefc01c0e14
permissions
-rw-r--r--

Integrate friendly tips from Tor colleagues to make (or not) 4.5 alpha 3;
This includes removal of overloaded (but unused) methods, and addition of
a overlooked call to DataStruct::SetData(nsISupports, uint32_t, bool.)

michael@0 1 /* This Source Code Form is subject to the terms of the Mozilla Public
michael@0 2 * License, v. 2.0. If a copy of the MPL was not distributed with this
michael@0 3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
michael@0 4
michael@0 5 #include "nsIPromptService.idl"
michael@0 6
michael@0 7 interface nsIAuthInformation;
michael@0 8 interface nsIAuthPromptCallback;
michael@0 9 interface nsICancelable;
michael@0 10 interface nsIChannel;
michael@0 11 interface nsIDOMWindow;
michael@0 12
michael@0 13 /**
michael@0 14 * This is an improved version of nsIPromptService that is less prescriptive
michael@0 15 * about the resulting user interface.
michael@0 16 *
michael@0 17 * @status INCOMPLETE do not freeze before fixing bug 228207
michael@0 18 */
michael@0 19 [scriptable, uuid(cf86d196-dbee-4482-9dfa-3477aa128319)]
michael@0 20 interface nsIPromptService2 : nsIPromptService {
michael@0 21 // NOTE: These functions differ from their nsIAuthPrompt counterparts by
michael@0 22 // having additional checkbox parameters
michael@0 23 // checkValue can be null meaning to show no checkbox
michael@0 24 // checkboxLabel is a wstring so that it can be null from both JS and C++ in
michael@0 25 // a convenient way
michael@0 26 //
michael@0 27 // See nsIAuthPrompt2 for documentation on the semantics of the other
michael@0 28 // parameters.
michael@0 29 boolean promptAuth(in nsIDOMWindow aParent,
michael@0 30 in nsIChannel aChannel,
michael@0 31 in uint32_t level,
michael@0 32 in nsIAuthInformation authInfo,
michael@0 33 in wstring checkboxLabel,
michael@0 34 inout boolean checkValue);
michael@0 35
michael@0 36 nsICancelable asyncPromptAuth(in nsIDOMWindow aParent,
michael@0 37 in nsIChannel aChannel,
michael@0 38 in nsIAuthPromptCallback aCallback,
michael@0 39 in nsISupports aContext,
michael@0 40 in uint32_t level,
michael@0 41 in nsIAuthInformation authInfo,
michael@0 42 in wstring checkboxLabel,
michael@0 43 inout boolean checkValue);
michael@0 44 };
michael@0 45

mercurial