Back to index

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

#include <xpcprivate.h>

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

List of all members.

Public Member Functions

void SystemIsBeingShutDown ()
virtual ~nsXPCComponents ()
boolean isSuccessCode (in nsresult result)
void lookupMethod ()
void reportError ()
void preCreate (in nsISupports nativeObj, in JSContextPtr cx, in JSObjectPtr globalObj, out JSObjectPtr parentObj)
void create (in nsIXPConnectWrappedNative wrapper, in JSContextPtr cx, in JSObjectPtr obj)
void postCreate (in nsIXPConnectWrappedNative wrapper, in JSContextPtr cx, in JSObjectPtr obj)
PRBool addProperty (in nsIXPConnectWrappedNative wrapper, in JSContextPtr cx, in JSObjectPtr obj, in JSVal id, in JSValPtr vp)
PRBool delProperty (in nsIXPConnectWrappedNative wrapper, in JSContextPtr cx, in JSObjectPtr obj, in JSVal id, in JSValPtr vp)
PRBool getProperty (in nsIXPConnectWrappedNative wrapper, in JSContextPtr cx, in JSObjectPtr obj, in JSVal id, in JSValPtr vp)
PRBool setProperty (in nsIXPConnectWrappedNative wrapper, in JSContextPtr cx, in JSObjectPtr obj, in JSVal id, in JSValPtr vp)
PRBool enumerate (in nsIXPConnectWrappedNative wrapper, in JSContextPtr cx, in JSObjectPtr obj)
PRBool newEnumerate (in nsIXPConnectWrappedNative wrapper, in JSContextPtr cx, in JSObjectPtr obj, in PRUint32 enum_op, in JSValPtr statep, out JSID idp)
PRBool newResolve (in nsIXPConnectWrappedNative wrapper, in JSContextPtr cx, in JSObjectPtr obj, in JSVal id, in PRUint32 flags, out JSObjectPtr objp)
PRBool convert (in nsIXPConnectWrappedNative wrapper, in JSContextPtr cx, in JSObjectPtr obj, in PRUint32 type, in JSValPtr vp)
void finalize (in nsIXPConnectWrappedNative wrapper, in JSContextPtr cx, in JSObjectPtr obj)
PRBool checkAccess (in nsIXPConnectWrappedNative wrapper, in JSContextPtr cx, in JSObjectPtr obj, in JSVal id, in PRUint32 mode, in JSValPtr vp)
PRBool call (in nsIXPConnectWrappedNative wrapper, in JSContextPtr cx, in JSObjectPtr obj, in PRUint32 argc, in JSValPtr argv, in JSValPtr vp)
PRBool construct (in nsIXPConnectWrappedNative wrapper, in JSContextPtr cx, in JSObjectPtr obj, in PRUint32 argc, in JSValPtr argv, in JSValPtr vp)
PRBool hasInstance (in nsIXPConnectWrappedNative wrapper, in JSContextPtr cx, in JSObjectPtr obj, in JSVal val, out PRBool bp)
PRUint32 mark (in nsIXPConnectWrappedNative wrapper, in JSContextPtr cx, in JSObjectPtr obj, in voidPtr arg)
PRBool equality (in nsIXPConnectWrappedNative wrapper, in JSContextPtr cx, in JSObjectPtr obj, in JSVal val)
JSObjectPtr outerObject (in nsIXPConnectWrappedNative wrapper, in JSContextPtr cx, in JSObjectPtr obj)
JSObjectPtr innerObject (in nsIXPConnectWrappedNative wrapper, in JSContextPtr cx, in JSObjectPtr obj)
string canCreateWrapper (in nsIIDPtr iid)
string canCallMethod (in nsIIDPtr iid, in wstring methodName)
string canGetProperty (in nsIIDPtr iid, in wstring propertyName)
string canSetProperty (in nsIIDPtr iid, in wstring propertyName)

Static Public Member Functions

static JSBool AttachNewComponentsObject (XPCCallContext &ccx, XPCWrappedNativeScope *aScope, JSObject *aGlobal)

Public Attributes

readonly attribute
nsIScriptableInterfaces 
interfaces
readonly attribute
nsIScriptableInterfacesByID 
interfacesByID
readonly attribute
nsIXPCComponents_Classes 
classes
readonly attribute
nsIXPCComponents_ClassesByID 
classesByID
readonly attribute nsIStackFrame stack
readonly attribute
nsIXPCComponents_Results 
results
readonly attribute
nsIComponentManager 
manager
readonly attribute
nsIXPCComponents_Utils 
utils
readonly attribute
nsIXPCComponents_ID 
ID
readonly attribute
nsIXPCComponents_Exception 
Exception
readonly attribute
nsIXPCComponents_Constructor 
Constructor
const PRUint32 WANT_PRECREATE = 1 << 0
const PRUint32 WANT_CREATE = 1 << 1
const PRUint32 WANT_POSTCREATE = 1 << 2
const PRUint32 WANT_ADDPROPERTY = 1 << 3
const PRUint32 WANT_DELPROPERTY = 1 << 4
const PRUint32 WANT_GETPROPERTY = 1 << 5
const PRUint32 WANT_SETPROPERTY = 1 << 6
const PRUint32 WANT_ENUMERATE = 1 << 7
const PRUint32 WANT_NEWENUMERATE = 1 << 8
const PRUint32 WANT_NEWRESOLVE = 1 << 9
const PRUint32 WANT_CONVERT = 1 << 10
const PRUint32 WANT_FINALIZE = 1 << 11
const PRUint32 WANT_CHECKACCESS = 1 << 12
const PRUint32 WANT_CALL = 1 << 13
const PRUint32 WANT_CONSTRUCT = 1 << 14
const PRUint32 WANT_HASINSTANCE = 1 << 15
const PRUint32 WANT_MARK = 1 << 16
const PRUint32 USE_JSSTUB_FOR_ADDPROPERTY = 1 << 17
const PRUint32 USE_JSSTUB_FOR_DELPROPERTY = 1 << 18
const PRUint32 USE_JSSTUB_FOR_SETPROPERTY = 1 << 19
const PRUint32 DONT_ENUM_STATIC_PROPS = 1 << 20
const PRUint32 DONT_ENUM_QUERY_INTERFACE = 1 << 21
const PRUint32 DONT_ASK_INSTANCE_FOR_SCRIPTABLE = 1 << 22
const PRUint32 CLASSINFO_INTERFACES_ONLY = 1 << 23
const PRUint32 ALLOW_PROP_MODS_DURING_RESOLVE = 1 << 24
const PRUint32 ALLOW_PROP_MODS_TO_PROTOTYPE = 1 << 25
const PRUint32 DONT_SHARE_PROTOTYPE = 1 << 26
const PRUint32 DONT_REFLECT_INTERFACE_NAMES = 1 << 27
const PRUint32 WANT_EQUALITY = 1 << 28
const PRUint32 WANT_OUTER_OBJECT = 1 << 29
const PRUint32 WANT_INNER_OBJECT = 1 << 30
const PRUint32 RESERVED = 1 << 31
readonly attribute string className
readonly attribute PRUint32 scriptableFlags

Private Member Functions

 nsXPCComponents ()
void ClearMembers ()

Private Attributes

nsXPCComponents_InterfacesmInterfaces
nsXPCComponents_InterfacesByIDmInterfacesByID
nsXPCComponents_ClassesmClasses
nsXPCComponents_ClassesByIDmClassesByID
nsXPCComponents_ResultsmResults
nsXPCComponents_IDmID
nsXPCComponents_ExceptionmException
nsXPCComponents_ConstructormConstructor
nsXPCComponents_UtilsmUtils

Detailed Description

Definition at line 3029 of file xpcprivate.h.


Constructor & Destructor Documentation

Definition at line 2836 of file xpccomponents.cpp.

{
    ClearMembers();
}

Here is the call graph for this function:

Definition at line 2823 of file xpccomponents.cpp.

Here is the caller graph for this function:


Member Function Documentation

Definition at line 3018 of file xpccomponents.cpp.

{
    if(!aGlobal)
        return JS_FALSE;

    nsXPCComponents* components = new nsXPCComponents();
    if(!components)
        return JS_FALSE;

    nsCOMPtr<nsIXPCComponents> cholder(components);

    AutoMarkingNativeInterfacePtr iface(ccx);
    iface = XPCNativeInterface::GetNewOrUsed(ccx, &NS_GET_IID(nsIXPCComponents));

    if(!iface)
        return JS_FALSE;

    nsCOMPtr<XPCWrappedNative> wrapper;
    XPCWrappedNative::GetNewOrUsed(ccx, cholder, aScope, iface,
                                   OBJ_IS_NOT_GLOBAL, getter_AddRefs(wrapper));
    if(!wrapper)
        return JS_FALSE;

    aScope->SetComponents(components);

    jsid id = ccx.GetRuntime()->GetStringID(XPCJSRuntime::IDX_COMPONENTS);
    JSObject* obj;

    return NS_SUCCEEDED(wrapper->GetJSObject(&obj)) &&
           obj && OBJ_DEFINE_PROPERTY(ccx,
                                      aGlobal, id, OBJECT_TO_JSVAL(obj),
                                      nsnull, nsnull,
                                      JSPROP_PERMANENT | JSPROP_READONLY,
                                      nsnull);
}

Here is the call graph for this function:

PRBool nsIXPCScriptable::call ( in nsIXPConnectWrappedNative  wrapper,
in JSContextPtr  cx,
in JSObjectPtr  obj,
in PRUint32  argc,
in JSValPtr  argv,
in JSValPtr  vp 
) [inherited]
string nsISecurityCheckedComponent::canCallMethod ( in nsIIDPtr  iid,
in wstring  methodName 
) [inherited]
string nsISecurityCheckedComponent::canGetProperty ( in nsIIDPtr  iid,
in wstring  propertyName 
) [inherited]
string nsISecurityCheckedComponent::canSetProperty ( in nsIIDPtr  iid,
in wstring  propertyName 
) [inherited]
PRBool nsIXPCScriptable::construct ( in nsIXPConnectWrappedNative  wrapper,
in JSContextPtr  cx,
in JSObjectPtr  obj,
in PRUint32  argc,
in JSValPtr  argv,
in JSValPtr  vp 
) [inherited]
PRUint32 nsIXPCScriptable::mark ( in nsIXPConnectWrappedNative  wrapper,
in JSContextPtr  cx,
in JSObjectPtr  obj,
in voidPtr  arg 
) [inherited]
PRBool nsIXPCScriptable::newEnumerate ( in nsIXPConnectWrappedNative  wrapper,
in JSContextPtr  cx,
in JSObjectPtr  obj,
in PRUint32  enum_op,
in JSValPtr  statep,
out JSID  idp 
) [inherited]
void nsIXPCScriptable::preCreate ( in nsISupports  nativeObj,
in JSContextPtr  cx,
in JSObjectPtr  globalObj,
out JSObjectPtr  parentObj 
) [inherited]

Definition at line 3050 of file xpcprivate.h.

Here is the caller graph for this function:


Member Data Documentation

Definition at line 85 of file nsIXPCScriptable.idl.

Definition at line 86 of file nsIXPCScriptable.idl.

Definition at line 180 of file xpccomponents.idl.

Definition at line 181 of file xpccomponents.idl.

Definition at line 84 of file nsIXPCScriptable.idl.

Definition at line 98 of file nsIXPCScriptable.idl.

Definition at line 189 of file xpccomponents.idl.

Definition at line 83 of file nsIXPCScriptable.idl.

Definition at line 82 of file nsIXPCScriptable.idl.

Definition at line 81 of file nsIXPCScriptable.idl.

Definition at line 88 of file nsIXPCScriptable.idl.

Definition at line 87 of file nsIXPCScriptable.idl.

Definition at line 188 of file xpccomponents.idl.

Definition at line 187 of file xpccomponents.idl.

Definition at line 178 of file xpccomponents.idl.

Definition at line 179 of file xpccomponents.idl.

Definition at line 184 of file xpccomponents.idl.

Definition at line 3061 of file xpcprivate.h.

Definition at line 3062 of file xpcprivate.h.

Definition at line 3066 of file xpcprivate.h.

Definition at line 3065 of file xpcprivate.h.

Definition at line 3064 of file xpcprivate.h.

Definition at line 3059 of file xpcprivate.h.

Definition at line 3060 of file xpcprivate.h.

Definition at line 3063 of file xpcprivate.h.

Definition at line 3067 of file xpcprivate.h.

const PRUint32 nsIXPCScriptable::RESERVED = 1 << 31 [inherited]

Definition at line 96 of file nsIXPCScriptable.idl.

Definition at line 183 of file xpccomponents.idl.

Definition at line 99 of file nsIXPCScriptable.idl.

Definition at line 182 of file xpccomponents.idl.

Definition at line 78 of file nsIXPCScriptable.idl.

Definition at line 79 of file nsIXPCScriptable.idl.

Definition at line 80 of file nsIXPCScriptable.idl.

Definition at line 185 of file xpccomponents.idl.

Definition at line 64 of file nsIXPCScriptable.idl.

Definition at line 74 of file nsIXPCScriptable.idl.

Definition at line 73 of file nsIXPCScriptable.idl.

Definition at line 75 of file nsIXPCScriptable.idl.

Definition at line 71 of file nsIXPCScriptable.idl.

Definition at line 62 of file nsIXPCScriptable.idl.

Definition at line 65 of file nsIXPCScriptable.idl.

Definition at line 68 of file nsIXPCScriptable.idl.

Definition at line 89 of file nsIXPCScriptable.idl.

Definition at line 72 of file nsIXPCScriptable.idl.

Definition at line 66 of file nsIXPCScriptable.idl.

Definition at line 76 of file nsIXPCScriptable.idl.

Definition at line 91 of file nsIXPCScriptable.idl.

Definition at line 77 of file nsIXPCScriptable.idl.

Definition at line 69 of file nsIXPCScriptable.idl.

Definition at line 70 of file nsIXPCScriptable.idl.

Definition at line 90 of file nsIXPCScriptable.idl.

Definition at line 63 of file nsIXPCScriptable.idl.

Definition at line 61 of file nsIXPCScriptable.idl.

Definition at line 67 of file nsIXPCScriptable.idl.


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