Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions
nsDOMScriptObjectFactory Class Reference

#include <nsDOMScriptObjectFactory.h>

Inheritance diagram for nsDOMScriptObjectFactory:
Inheritance graph
Collaboration diagram for nsDOMScriptObjectFactory:
Collaboration graph

List of all members.

Public Member Functions

 nsDOMScriptObjectFactory ()
NewScriptContext (nsIScriptGlobalObject *aGlobal, nsIScriptContext **aContext)
NS_IMETHOD NewScriptGlobalObject (PRBool aIsChrome, nsIScriptGlobalObject **aGlobal)
 NS_IMETHOD_ (nsISupports *) GetClassInfoInstance(nsDOMClassInfoID aID)
 NS_IMETHOD_ (nsISupports *) GetExternalClassInfoInstance(const nsAString &aName)
NS_IMETHOD RegisterDOMClassInfo (const char *aName, nsDOMClassInfoExternalConstructorFnc aConstructorFptr, const nsIID *aProtoChainInterface, const nsIID **aInterfaces, PRUint32 aScriptableFlags, PRBool aHasClassInterface, const nsCID *aConstructorCID)
void observe (in nsISupports aSubject, in string aTopic, in wstring aData)
 Observe will be called when there is a notification for the topic |aTopic|.
nsIException getException (in nsresult result, in nsIException defaultException)
 Gets an nsIException or returns NULL if not possible.

Detailed Description

Definition at line 57 of file nsDOMScriptObjectFactory.h.

Constructor & Destructor Documentation

Definition at line 68 of file nsDOMScriptObjectFactory.cpp.

  nsCOMPtr<nsIObserverService> observerService =

  if (observerService) {
    observerService->AddObserver(this, NS_XPCOM_SHUTDOWN_OBSERVER_ID, PR_FALSE);

  nsCOMPtr<nsIExceptionService> xs =

  if (xs) {
    xs->RegisterExceptionProvider(this, NS_ERROR_MODULE_DOM);
    xs->RegisterExceptionProvider(this, NS_ERROR_MODULE_DOM_RANGE);
#ifdef MOZ_SVG
    xs->RegisterExceptionProvider(this, NS_ERROR_MODULE_SVG);
    xs->RegisterExceptionProvider(this, NS_ERROR_MODULE_XPCONNECT);

Here is the call graph for this function:

Member Function Documentation

nsIException nsIExceptionProvider::getException ( in nsresult  result,
in nsIException  defaultException 
) [inherited]

Gets an nsIException or returns NULL if not possible.

Implements nsIDOMScriptObjectFactory.

Definition at line 103 of file nsDOMScriptObjectFactory.cpp.

  return NS_CreateScriptContext(aGlobal, aContext);

Here is the call graph for this function:

Implements nsIDOMScriptObjectFactory.

Definition at line 110 of file nsDOMScriptObjectFactory.cpp.

  return NS_NewScriptGlobalObject(aIsChrome, aGlobal);

Here is the call graph for this function:

nsDOMScriptObjectFactory::NS_IMETHOD_ ( nsISupports *  ) [virtual]
nsDOMScriptObjectFactory::NS_IMETHOD_ ( nsISupports *  ) const [virtual]
void nsIObserver::observe ( in nsISupports  aSubject,
in string  aTopic,
in wstring  aData 
) [inherited]

Observe will be called when there is a notification for the topic |aTopic|.

This assumes that the object implementing this interface has been registered with an observer service such as the nsIObserverService.

If you expect multiple topics/subjects, the impl is responsible for filtering.

You should not modify, add, remove, or enumerate notifications in the implemention of observe.

aSubject: Notification specific interface pointer.
aTopic: The notification topic or subject.
aData: Notification specific wide string. subject event.
NS_IMETHODIMP nsDOMScriptObjectFactory::RegisterDOMClassInfo ( const char *  aName,
nsDOMClassInfoExternalConstructorFnc  aConstructorFptr,
const nsIID aProtoChainInterface,
const nsIID **  aInterfaces,
PRUint32  aScriptableFlags,
PRBool  aHasClassInterface,
const nsCID aConstructorCID 
) [virtual]

Implements nsIDOMScriptObjectFactory.

Definition at line 241 of file nsDOMScriptObjectFactory.cpp.

  extern nsScriptNameSpaceManager *gNameSpaceManager;


  return gNameSpaceManager->RegisterDOMCIData(aName,

Here is the call graph for this function:

The documentation for this class was generated from the following files: