Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions | Static Public Member Functions | Public Attributes | Private Member Functions | Private Attributes
XPCJSObjectHolder Class Reference

#include <xpcprivate.h>

Inheritance diagram for XPCJSObjectHolder:
Inheritance graph
[legend]
Collaboration diagram for XPCJSObjectHolder:
Collaboration graph
[legend]

List of all members.

Public Member Functions

virtual ~XPCJSObjectHolder ()

Static Public Member Functions

static XPCJSObjectHoldernewHolder (JSContext *cx, JSObject *obj)

Public Attributes

readonly attribute JSObjectPtr JSObject

Private Member Functions

 XPCJSObjectHolder (JSContext *cx, JSObject *obj)
 XPCJSObjectHolder ()

Private Attributes

JSRuntimemRuntime
JSObjectmJSObj

Detailed Description

Definition at line 2293 of file xpcprivate.h.


Constructor & Destructor Documentation

Definition at line 3144 of file xpcwrappednative.cpp.

Here is the call graph for this function:

XPCJSObjectHolder::XPCJSObjectHolder ( JSContext cx,
JSObject obj 
) [private]

Definition at line 3138 of file xpcwrappednative.cpp.

    : mRuntime(JS_GetRuntime(cx)), mJSObj(obj)
{
    JS_AddNamedRoot(cx, &mJSObj, "XPCJSObjectHolder::mJSObj");
}

Here is the call graph for this function:

Here is the caller graph for this function:


Member Function Documentation

Definition at line 3150 of file xpcwrappednative.cpp.

{
    if(!cx || !obj)
    {
        NS_ASSERTION(0, "bad param");
        return nsnull;
    }
    return new XPCJSObjectHolder(cx, obj);
}

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

Definition at line 156 of file nsIXPConnect.idl.

Definition at line 2312 of file xpcprivate.h.

Definition at line 2311 of file xpcprivate.h.


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