Back to index

lightning-sunbird  0.9+nobinonly
Classes | Functions | Variables
nsXULPrototypeDocument.cpp File Reference
#include "nsCOMPtr.h"
#include "nsAString.h"
#include "nsIObjectInputStream.h"
#include "nsIObjectOutputStream.h"
#include "nsIPrincipal.h"
#include "nsIScriptGlobalObject.h"
#include "nsIScriptGlobalObjectOwner.h"
#include "nsIScriptObjectPrincipal.h"
#include "nsIScriptSecurityManager.h"
#include "nsIServiceManager.h"
#include "nsISupportsArray.h"
#include "nsIURI.h"
#include "nsIXULDocument.h"
#include "nsIXULPrototypeDocument.h"
#include "jsapi.h"
#include "nsString.h"
#include "nsVoidArray.h"
#include "nsXULElement.h"
#include "nsIConsoleService.h"
#include "nsIScriptError.h"
#include "nsIDOMScriptObjectFactory.h"
#include "nsDOMCID.h"
#include "nsArray.h"
#include "nsNodeInfoManager.h"
#include "nsContentUtils.h"

Go to the source code of this file.

Classes

class  nsXULPDGlobalObject
class  nsXULPrototypeDocument

Functions

static NS_DEFINE_CID (kDOMScriptObjectFactoryCID, NS_DOM_SCRIPT_OBJECT_FACTORY_CID)
void PR_CALLBACK nsXULPDGlobalObject_finalize (JSContext *cx, JSObject *obj)
JSBool PR_CALLBACK nsXULPDGlobalObject_resolve (JSContext *cx, JSObject *obj, jsval id)
 NS_IMPL_ISUPPORTS3 (nsXULPrototypeDocument, nsIXULPrototypeDocument, nsIScriptGlobalObjectOwner, nsISerializable) NS_IMETHODIMP NS_NewXULPrototypeDocument(nsISupports *aOuter
 mGlobalObjectOwner (nsnull)

Variables

REFNSIID aIID

Function Documentation

Definition at line 778 of file nsXULPrototypeDocument.cpp.

{
}
static NS_DEFINE_CID ( kDOMScriptObjectFactoryCID  ,
NS_DOM_SCRIPT_OBJECT_FACTORY_CID   
) [static]

Definition at line 203 of file nsXULPrototypeDocument.cpp.

{
    nsISupports *nativeThis = (nsISupports*)JS_GetPrivate(cx, obj);

    nsCOMPtr<nsIScriptGlobalObject> sgo(do_QueryInterface(nativeThis));

    if (sgo) {
        sgo->OnFinalize(obj);
    }

    // The addref was part of JSObject construction
    NS_RELEASE(nativeThis);
}

Here is the call graph for this function:

Definition at line 219 of file nsXULPrototypeDocument.cpp.

{
    JSBool did_resolve = JS_FALSE;

    return JS_ResolveStandardClass(cx, obj, id, &did_resolve);
}

Here is the call graph for this function:


Variable Documentation

Definition at line 290 of file nsXULPrototypeDocument.cpp.