|
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/. */ |
|
4 |
|
5 #ifndef NSEMBEDCID_H |
|
6 #define NSEMBEDCID_H |
|
7 |
|
8 /** |
|
9 * @file |
|
10 * @brief List of, and documentation for, frozen Gecko embedding contracts. |
|
11 */ |
|
12 |
|
13 /** |
|
14 * Web Browser ContractID |
|
15 * Creating an instance of this ContractID (via createInstanceByContractID) |
|
16 * is the basic way to instantiate a Gecko browser. |
|
17 * |
|
18 * This contract implements the following interfaces: |
|
19 * nsIWebBrowser |
|
20 * nsIWebBrowserSetup |
|
21 * nsIInterfaceRequestor |
|
22 * |
|
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. |
|
26 */ |
|
27 #define NS_WEBBROWSER_CONTRACTID \ |
|
28 "@mozilla.org/embedding/browser/nsWebBrowser;1" |
|
29 |
|
30 /** |
|
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. |
|
35 * |
|
36 * This contract implements the following interfaces: |
|
37 * nsIPromptService |
|
38 * nsIPromptService2 (optional) |
|
39 * |
|
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. |
|
43 */ |
|
44 #define NS_PROMPTSERVICE_CONTRACTID \ |
|
45 "@mozilla.org/embedcomp/prompt-service;1" |
|
46 |
|
47 /** |
|
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 |
|
50 * a service. |
|
51 * |
|
52 * This contract implements the following interfaces: |
|
53 * nsIPromptFactory |
|
54 */ |
|
55 #define NS_PWMGR_AUTHPROMPTFACTORY \ |
|
56 "@mozilla.org/passwordmanager/authpromptfactory;1" |
|
57 |
|
58 #endif // NSEMBEDCID_H |