Thu, 22 Jan 2015 13:21:57 +0100
Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6
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 | #ifndef NSEMBEDCID_H |
michael@0 | 6 | #define NSEMBEDCID_H |
michael@0 | 7 | |
michael@0 | 8 | /** |
michael@0 | 9 | * @file |
michael@0 | 10 | * @brief List of, and documentation for, frozen Gecko embedding contracts. |
michael@0 | 11 | */ |
michael@0 | 12 | |
michael@0 | 13 | /** |
michael@0 | 14 | * Web Browser ContractID |
michael@0 | 15 | * Creating an instance of this ContractID (via createInstanceByContractID) |
michael@0 | 16 | * is the basic way to instantiate a Gecko browser. |
michael@0 | 17 | * |
michael@0 | 18 | * This contract implements the following interfaces: |
michael@0 | 19 | * nsIWebBrowser |
michael@0 | 20 | * nsIWebBrowserSetup |
michael@0 | 21 | * nsIInterfaceRequestor |
michael@0 | 22 | * |
michael@0 | 23 | * @note This contract does not guarantee implementation of any other |
michael@0 | 24 | * interfaces and does not guarantee ability to get any particular |
michael@0 | 25 | * interfaces via the nsIInterfaceRequestor implementation. |
michael@0 | 26 | */ |
michael@0 | 27 | #define NS_WEBBROWSER_CONTRACTID \ |
michael@0 | 28 | "@mozilla.org/embedding/browser/nsWebBrowser;1" |
michael@0 | 29 | |
michael@0 | 30 | /** |
michael@0 | 31 | * Prompt Service ContractID |
michael@0 | 32 | * The prompt service (which can be gotten by calling getServiceByContractID |
michael@0 | 33 | * on this ContractID) is the way to pose various prompts, alerts, |
michael@0 | 34 | * and confirmation dialogs to the user. |
michael@0 | 35 | * |
michael@0 | 36 | * This contract implements the following interfaces: |
michael@0 | 37 | * nsIPromptService |
michael@0 | 38 | * nsIPromptService2 (optional) |
michael@0 | 39 | * |
michael@0 | 40 | * Embedders may override this ContractID with their own implementation if they |
michael@0 | 41 | * want more control over the way prompts, alerts, and confirmation dialogs are |
michael@0 | 42 | * presented to the user. |
michael@0 | 43 | */ |
michael@0 | 44 | #define NS_PROMPTSERVICE_CONTRACTID \ |
michael@0 | 45 | "@mozilla.org/embedcomp/prompt-service;1" |
michael@0 | 46 | |
michael@0 | 47 | /** |
michael@0 | 48 | * This contract ID should be implemented by password managers to be able to |
michael@0 | 49 | * override the standard implementation of nsIAuthPrompt2. It will be used as |
michael@0 | 50 | * a service. |
michael@0 | 51 | * |
michael@0 | 52 | * This contract implements the following interfaces: |
michael@0 | 53 | * nsIPromptFactory |
michael@0 | 54 | */ |
michael@0 | 55 | #define NS_PWMGR_AUTHPROMPTFACTORY \ |
michael@0 | 56 | "@mozilla.org/passwordmanager/authpromptfactory;1" |
michael@0 | 57 | |
michael@0 | 58 | #endif // NSEMBEDCID_H |