Back to index

lightning-sunbird  0.9+nobinonly
Defines | Functions | Variables
nsEmbeddingModule.cpp File Reference
#include "nsIGenericFactory.h"
#include "nsDialogParamBlock.h"
#include "nsPromptService.h"
#include "nsWindowWatcher.h"
#include "nsAppStartupNotifier.h"
#include "nsJSConsoleService.h"
#include "nsFind.h"
#include "nsWebBrowserFind.h"
#include "nsWebBrowserPersist.h"
#include "nsCommandManager.h"
#include "nsControllerCommandTable.h"
#include "nsCommandParams.h"
#include "nsCommandGroup.h"
#include "nsPrintingPromptService.h"
#include "nsBaseCommandController.h"
#include "nsPrompt.h"
#include "nsNetCID.h"
#include "nsEmbedCID.h"

Go to the source code of this file.

Defines

#define NS_DEFAULTPROMPT_CLASSNAME   "nsDefaultPrompt"
#define NS_DEFAULTPROMPT_CID
#define NS_DEFAULTAUTHPROMPT_CLASSNAME   "nsDefaultAuthPrompt"
#define NS_DEFAULTAUTHPROMPT_CID

Functions

static NS_METHOD nsDefaultPromptConstructor (nsISupports *outer, const nsIID &iid, void **result)
static NS_METHOD nsDefaultAuthPromptConstructor (nsISupports *outer, const nsIID &iid, void **result)

Variables

static const nsModuleComponentInfo gComponents []

Define Documentation

Value:
{ /* ca200860-4696-40d7-88fa-4490d423a8ef */         \
    0xca200860,                                      \
    0x4696,                                          \
    0x40d7,                                          \
    {0x88, 0xfa, 0x44, 0x90, 0xd4, 0x23, 0xa8, 0xef} \
}

Definition at line 82 of file nsEmbeddingModule.cpp.

#define NS_DEFAULTAUTHPROMPT_CLASSNAME   "nsDefaultAuthPrompt"

Definition at line 80 of file nsEmbeddingModule.cpp.

Value:
{ /* 2e41ada0-62b7-4902-b9a6-e4542aa458ba */         \
    0x2e41ada0,                                      \
    0x62b7,                                          \
    0x4902,                                          \
    {0xb9, 0xa6, 0xe4, 0x54, 0x2a, 0xa4, 0x58, 0xba} \
}

Definition at line 72 of file nsEmbeddingModule.cpp.

#define NS_DEFAULTPROMPT_CLASSNAME   "nsDefaultPrompt"

Definition at line 70 of file nsEmbeddingModule.cpp.


Function Documentation

static NS_METHOD nsDefaultAuthPromptConstructor ( nsISupports *  outer,
const nsIID iid,
void **  result 
) [static]

Definition at line 105 of file nsEmbeddingModule.cpp.

{
  if (outer)
    return NS_ERROR_NO_AGGREGATION;

  nsCOMPtr<nsIAuthPrompt> prompt;
  nsresult rv = NS_NewAuthPrompter(getter_AddRefs(prompt), nsnull);
  if (NS_FAILED(rv))
    return rv;

  return prompt->QueryInterface(iid, result);
}

Here is the call graph for this function:

static NS_METHOD nsDefaultPromptConstructor ( nsISupports *  outer,
const nsIID iid,
void **  result 
) [static]

Definition at line 91 of file nsEmbeddingModule.cpp.

{
  if (outer)
    return NS_ERROR_NO_AGGREGATION;

  nsCOMPtr<nsIPrompt> prompt;
  nsresult rv = NS_NewPrompter(getter_AddRefs(prompt), nsnull);
  if (NS_FAILED(rv))
    return rv;

  return prompt->QueryInterface(iid, result);
}

Here is the call graph for this function:


Variable Documentation

Initial value:
 {










  { "Window Watcher", NS_WINDOWWATCHER_CID, NS_WINDOWWATCHER_CONTRACTID, nsWindowWatcherConstructor },
  { "Find",           NS_FIND_CID, NS_FIND_CONTRACTID, nsFindConstructor },
  { "WebBrowserFind",           NS_WEB_BROWSER_FIND_CID, NS_WEB_BROWSER_FIND_CONTRACTID, nsWebBrowserFindConstructor },
  { NS_APPSTARTUPNOTIFIER_CLASSNAME, NS_APPSTARTUPNOTIFIER_CID, NS_APPSTARTUPNOTIFIER_CONTRACTID, nsAppStartupNotifierConstructor },
  { "WebBrowserPersist Component", NS_WEBBROWSERPERSIST_CID, NS_WEBBROWSERPERSIST_CONTRACTID, nsWebBrowserPersistConstructor },
  { "Controller Command Table", NS_CONTROLLERCOMMANDTABLE_CID, NS_CONTROLLERCOMMANDTABLE_CONTRACTID, nsControllerCommandTableConstructor },
  { "Command Manager", NS_COMMAND_MANAGER_CID, NS_COMMAND_MANAGER_CONTRACTID, nsCommandManagerConstructor },
  { "Command Params", NS_COMMAND_PARAMS_CID, NS_COMMAND_PARAMS_CONTRACTID, nsCommandParamsConstructor },
  { "Command Group", NS_CONTROLLER_COMMAND_GROUP_CID, NS_CONTROLLER_COMMAND_GROUP_CONTRACTID, nsControllerCommandGroupConstructor },
  { "Base Command Controller", NS_BASECOMMANDCONTROLLER_CID, NS_BASECOMMANDCONTROLLER_CONTRACTID, nsBaseCommandControllerConstructor },
  { NS_DEFAULTPROMPT_CLASSNAME, NS_DEFAULTPROMPT_CID, NS_DEFAULTPROMPT_CONTRACTID, nsDefaultPromptConstructor },
  { NS_DEFAULTAUTHPROMPT_CLASSNAME, NS_DEFAULTAUTHPROMPT_CID, NS_DEFAULTAUTHPROMPT_CONTRACTID, nsDefaultAuthPromptConstructor }



}

Definition at line 132 of file nsEmbeddingModule.cpp.