nsEmbedCID.h 1.8 KB

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