1 /* This Source Code Form is subject to the terms of the Mozilla Public
2 * License, v. 2.0. If a copy of the MPL was not distributed with this
3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
10 * @brief List of, and documentation for, frozen Gecko embedding contracts.
14 * Web Browser ContractID
15 * Creating an instance of this ContractID (via createInstanceByContractID)
16 * is the basic way to instantiate a Gecko browser.
18 * This contract implements the following interfaces:
21 * nsIInterfaceRequestor
23 * @note This contract does not guarantee implementation of any other
24 * interfaces and does not guarantee ability to get any particular
25 * interfaces via the nsIInterfaceRequestor implementation.
27 #define NS_WEBBROWSER_CONTRACTID \
28 "@mozilla.org/embedding/browser/nsWebBrowser;1"
31 * Prompt Service ContractID
32 * The prompt service (which can be gotten by calling getServiceByContractID
33 * on this ContractID) is the way to pose various prompts, alerts,
34 * and confirmation dialogs to the user.
36 * This contract implements the following interfaces:
38 * nsIPromptService2 (optional)
40 * Embedders may override this ContractID with their own implementation if they
41 * want more control over the way prompts, alerts, and confirmation dialogs are
42 * presented to the user.
44 #define NS_PROMPTSERVICE_CONTRACTID \
45 "@mozilla.org/embedcomp/prompt-service;1"
48 * This contract ID should be implemented by password managers to be able to
49 * override the standard implementation of nsIAuthPrompt2. It will be used as
52 * This contract implements the following interfaces:
55 #define NS_PWMGR_AUTHPROMPTFACTORY \
56 "@mozilla.org/passwordmanager/authpromptfactory;1"
58 #endif // NSEMBEDCID_H