Back to index

lightning-sunbird  0.9+nobinonly
Classes | Functions | Variables
PromptService.cpp File Reference
#include "stdafx.h"
#include "Dialogs.h"
#include "PromptService.h"
#include "nsCOMPtr.h"
#include "nsMemory.h"
#include "nsString.h"
#include "nsReadableUtils.h"
#include "nsIDOMWindow.h"
#include "nsIEmbeddingSiteWindow.h"
#include "nsIFactory.h"
#include "nsIPromptService.h"
#include "nsIServiceManager.h"
#include "nsIWebBrowserChrome.h"
#include "nsIWindowWatcher.h"

Go to the source code of this file.

Classes

class  ResourceState
class  CPromptService
class  CPromptServiceFactory

Functions

void InitPromptService (HINSTANCE instance)
nsresult NS_NewPromptServiceFactory (nsIFactory **aFactory)

Variables

static HINSTANCE gInstance

Function Documentation

Definition at line 454 of file PromptService.cpp.

                                           {

  gInstance = instance;
}

Definition at line 459 of file PromptService.cpp.

{
  NS_ENSURE_ARG_POINTER(aFactory);
  *aFactory = nsnull;
  
  CPromptServiceFactory *result = new CPromptServiceFactory;
  if (!result)
    return NS_ERROR_OUT_OF_MEMORY;
    
  NS_ADDREF(result);
  *aFactory = result;
  
  return NS_OK;
}

Here is the call graph for this function:


Variable Documentation

HINSTANCE gInstance [static]

Definition at line 59 of file PromptService.cpp.