Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions | Private Attributes
xpcFunctionDefiner Class Reference
Collaboration diagram for xpcFunctionDefiner:
Collaboration graph

List of all members.

Public Member Functions

 xpcFunctionDefiner (JSContext *aJSContext)
JSFunctionDefine (JSObject *globalObject, uintN aNameIndex, JSNative aCall)

Private Attributes


Detailed Description

Definition at line 191 of file XPCIDispatchExtension.cpp.

Constructor & Destructor Documentation

Definition at line 203 of file XPCIDispatchExtension.cpp.

    m_Runtime(nsXPConnect::GetRuntime()), m_JSContext(aJSContext)
    NS_ASSERTION(m_Runtime, "nsXPConnect::GetRuntime() returned null");
    NS_ASSERTION(aJSContext, "xpcFunctionDefiner constructor passed a null context");

Member Function Documentation

JSFunction * xpcFunctionDefiner::Define ( JSObject globalObject,
uintN  aNameIndex,
JSNative  aCall 
) [inline]

Definition at line 211 of file XPCIDispatchExtension.cpp.

    return JS_DefineFunction(m_JSContext, globalObject,
                      aCall, 1, JSPROP_PERMANENT | JSPROP_READONLY);

Here is the call graph for this function:

Here is the caller graph for this function:

Member Data Documentation

Definition at line 199 of file XPCIDispatchExtension.cpp.

Definition at line 198 of file XPCIDispatchExtension.cpp.

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