Back to index

lightning-sunbird  0.9+nobinonly
Classes | Functions
nsXBLProtoImpl.h File Reference
#include "nsMemory.h"
#include "nsXBLPrototypeHandler.h"
#include "nsXBLProtoImplMember.h"
#include "nsXBLPrototypeBinding.h"
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  nsXBLProtoImpl

Functions

nsresult NS_NewXBLProtoImpl (nsXBLPrototypeBinding *aBinding, const PRUnichar *aClassName, nsXBLProtoImpl **aResult)

Function Documentation

nsresult NS_NewXBLProtoImpl ( nsXBLPrototypeBinding aBinding,
const PRUnichar aClassName,
nsXBLProtoImpl **  aResult 
)

Definition at line 224 of file nsXBLProtoImpl.cpp.

{
  nsXBLProtoImpl* impl = new nsXBLProtoImpl();
  if (!impl)
    return NS_ERROR_OUT_OF_MEMORY;
  if (aClassName)
    impl->mClassName.AssignWithConversion(aClassName);
  else
    aBinding->BindingURI()->GetSpec(impl->mClassName);
  aBinding->SetImplementation(impl);
  *aResult = impl;

  return NS_OK;
}

Here is the call graph for this function:

Here is the caller graph for this function: