embedding/base/nsEmbedCID.h

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/embedding/base/nsEmbedCID.h	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,58 @@
     1.4 +/* This Source Code Form is subject to the terms of the Mozilla Public
     1.5 + * License, v. 2.0. If a copy of the MPL was not distributed with this
     1.6 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
     1.7 +
     1.8 +#ifndef NSEMBEDCID_H
     1.9 +#define NSEMBEDCID_H
    1.10 +
    1.11 +/**
    1.12 + * @file
    1.13 + * @brief List of, and documentation for, frozen Gecko embedding contracts.
    1.14 + */
    1.15 +
    1.16 +/**
    1.17 + * Web Browser ContractID
    1.18 + *   Creating an instance of this ContractID (via createInstanceByContractID)
    1.19 + *   is the basic way to instantiate a Gecko browser.
    1.20 + *
    1.21 + * This contract implements the following interfaces:
    1.22 + * nsIWebBrowser
    1.23 + * nsIWebBrowserSetup
    1.24 + * nsIInterfaceRequestor
    1.25 + *
    1.26 + * @note This contract does not guarantee implementation of any other
    1.27 + * interfaces and does not guarantee ability to get any particular
    1.28 + * interfaces via the nsIInterfaceRequestor implementation.
    1.29 + */
    1.30 +#define NS_WEBBROWSER_CONTRACTID \
    1.31 +  "@mozilla.org/embedding/browser/nsWebBrowser;1"
    1.32 +
    1.33 +/**
    1.34 + * Prompt Service ContractID
    1.35 + *   The prompt service (which can be gotten by calling getServiceByContractID
    1.36 + *   on this ContractID) is the way to pose various prompts, alerts,
    1.37 + *   and confirmation dialogs to the user.
    1.38 + * 
    1.39 + * This contract implements the following interfaces:
    1.40 + * nsIPromptService
    1.41 + * nsIPromptService2 (optional)
    1.42 + *
    1.43 + * Embedders may override this ContractID with their own implementation if they
    1.44 + * want more control over the way prompts, alerts, and confirmation dialogs are
    1.45 + * presented to the user.
    1.46 + */
    1.47 +#define NS_PROMPTSERVICE_CONTRACTID \
    1.48 + "@mozilla.org/embedcomp/prompt-service;1"
    1.49 +
    1.50 +/**
    1.51 + * This contract ID should be implemented by password managers to be able to
    1.52 + * override the standard implementation of nsIAuthPrompt2. It will be used as
    1.53 + * a service.
    1.54 + *
    1.55 + * This contract implements the following interfaces:
    1.56 + * nsIPromptFactory
    1.57 + */
    1.58 +#define NS_PWMGR_AUTHPROMPTFACTORY \
    1.59 + "@mozilla.org/passwordmanager/authpromptfactory;1"
    1.60 +
    1.61 +#endif // NSEMBEDCID_H

mercurial