WARNING: Most of this content (with the exception of the Mozilla 1.9 XPCOM reference) is very old, and can be expected to be out of date and possibly obsolete. For better XUL documentation, please visit the XUL hub at the Mozilla Developer Center.

nsIXPCScriptable

IID:1455f6fe-6de9-4b62-a2b3-d1aee82dd829
Inherits From:nsISupports

Constants

Note: This is not really an XPCOM interface. For example, callers must guarantee that they set the *_retval of the various methods that return a boolean to PR_TRUE before making the call. Implementations may skip writing to *_retval unless they want to return PR_FALSE.
PRUint32 WANT_PRECREATE = 1
PRUint32 WANT_CREATE = 2
PRUint32 WANT_POSTCREATE = 4
PRUint32 WANT_ADDPROPERTY = 8
PRUint32 WANT_DELPROPERTY = 16
PRUint32 WANT_GETPROPERTY = 32
PRUint32 WANT_SETPROPERTY = 64
PRUint32 WANT_ENUMERATE = 128
PRUint32 WANT_NEWENUMERATE = 256
PRUint32 WANT_NEWRESOLVE = 512
PRUint32 WANT_CONVERT = 1024
PRUint32 WANT_FINALIZE = 2048
PRUint32 WANT_CHECKACCESS = 4096
PRUint32 WANT_CALL = 8192
PRUint32 WANT_CONSTRUCT = 16384
PRUint32 WANT_HASINSTANCE = 32768
PRUint32 WANT_TRACE = 65536
PRUint32 USE_JSSTUB_FOR_ADDPROPERTY = 131072
PRUint32 USE_JSSTUB_FOR_DELPROPERTY = 262144
PRUint32 USE_JSSTUB_FOR_SETPROPERTY = 524288
PRUint32 DONT_ENUM_STATIC_PROPS = 1048576
PRUint32 DONT_ENUM_QUERY_INTERFACE = 2097152
PRUint32 DONT_ASK_INSTANCE_FOR_SCRIPTABLE = 4194304
PRUint32 CLASSINFO_INTERFACES_ONLY = 8388608
PRUint32 ALLOW_PROP_MODS_DURING_RESOLVE = 16777216
PRUint32 ALLOW_PROP_MODS_TO_PROTOTYPE = 33554432
PRUint32 DONT_SHARE_PROTOTYPE = 67108864
PRUint32 DONT_REFLECT_INTERFACE_NAMES = 134217728
PRUint32 WANT_EQUALITY = 268435456
PRUint32 WANT_OUTER_OBJECT = 536870912
PRUint32 WANT_INNER_OBJECT = 1073741824
PRUint32 RESERVED = -2147483648

Properties

readonly char* className

readonly PRUint32 scriptableFlags


Methods

PRBool addProperty ( nsIXPConnectWrappedNative wrapper , JSContextPtr* cx , JSObjectPtr* obj , JSVal id , JSValPtr* vp ) PRBool call ( nsIXPConnectWrappedNative wrapper , JSContextPtr* cx , JSObjectPtr* obj , PRUint32 argc , JSValPtr* argv , JSValPtr* vp ) PRBool checkAccess ( nsIXPConnectWrappedNative wrapper , JSContextPtr* cx , JSObjectPtr* obj , JSVal id , PRUint32 mode , JSValPtr* vp ) PRBool construct ( nsIXPConnectWrappedNative wrapper , JSContextPtr* cx , JSObjectPtr* obj , PRUint32 argc , JSValPtr* argv , JSValPtr* vp ) PRBool convert ( nsIXPConnectWrappedNative wrapper , JSContextPtr* cx , JSObjectPtr* obj , PRUint32 type , JSValPtr* vp ) void create ( nsIXPConnectWrappedNative wrapper , JSContextPtr* cx , JSObjectPtr* obj ) PRBool delProperty ( nsIXPConnectWrappedNative wrapper , JSContextPtr* cx , JSObjectPtr* obj , JSVal id , JSValPtr* vp ) PRBool enumerate ( nsIXPConnectWrappedNative wrapper , JSContextPtr* cx , JSObjectPtr* obj ) PRBool equality ( nsIXPConnectWrappedNative wrapper , JSContextPtr* cx , JSObjectPtr* obj , JSVal val ) void finalize ( nsIXPConnectWrappedNative wrapper , JSContextPtr* cx , JSObjectPtr* obj ) PRBool getProperty ( nsIXPConnectWrappedNative wrapper , JSContextPtr* cx , JSObjectPtr* obj , JSVal id , JSValPtr* vp ) PRBool hasInstance ( nsIXPConnectWrappedNative wrapper , JSContextPtr* cx , JSObjectPtr* obj , JSVal val , out PRBool bp ) JSObjectPtr* innerObject ( nsIXPConnectWrappedNative wrapper , JSContextPtr* cx , JSObjectPtr* obj ) PRBool newEnumerate ( nsIXPConnectWrappedNative wrapper , JSContextPtr* cx , JSObjectPtr* obj , PRUint32 enum_op , JSValPtr* statep , out JSID idp ) PRBool newResolve ( nsIXPConnectWrappedNative wrapper , JSContextPtr* cx , JSObjectPtr* obj , JSVal id , PRUint32 flags , out JSObjectPtr* objp ) JSObjectPtr* outerObject ( nsIXPConnectWrappedNative wrapper , JSContextPtr* cx , JSObjectPtr* obj ) void postCreate ( nsIXPConnectWrappedNative wrapper , JSContextPtr* cx , JSObjectPtr* obj ) void preCreate ( nsISupports nativeObj , JSContextPtr* cx , JSObjectPtr* globalObj , out JSObjectPtr* parentObj ) PRBool setProperty ( nsIXPConnectWrappedNative wrapper , JSContextPtr* cx , JSObjectPtr* obj , JSVal id , JSValPtr* vp ) void trace ( nsIXPConnectWrappedNative wrapper , JSTracerPtr* trc , JSObjectPtr* obj )

PRBool addProperty ( nsIXPConnectWrappedNative wrapper , JSContextPtr* cx , JSObjectPtr* obj , JSVal id , JSValPtr* vp )

Arguments:
wrapper
cx
obj
id
vp

PRBool call ( nsIXPConnectWrappedNative wrapper , JSContextPtr* cx , JSObjectPtr* obj , PRUint32 argc , JSValPtr* argv , JSValPtr* vp )

Arguments:
wrapper
cx
obj
argc
argv
vp

PRBool checkAccess ( nsIXPConnectWrappedNative wrapper , JSContextPtr* cx , JSObjectPtr* obj , JSVal id , PRUint32 mode , JSValPtr* vp )

Arguments:
wrapper
cx
obj
id
mode
vp

PRBool construct ( nsIXPConnectWrappedNative wrapper , JSContextPtr* cx , JSObjectPtr* obj , PRUint32 argc , JSValPtr* argv , JSValPtr* vp )

Arguments:
wrapper
cx
obj
argc
argv
vp

PRBool convert ( nsIXPConnectWrappedNative wrapper , JSContextPtr* cx , JSObjectPtr* obj , PRUint32 type , JSValPtr* vp )

Arguments:
wrapper
cx
obj
type
vp

void create ( nsIXPConnectWrappedNative wrapper , JSContextPtr* cx , JSObjectPtr* obj )

Arguments:
wrapper
cx
obj

PRBool delProperty ( nsIXPConnectWrappedNative wrapper , JSContextPtr* cx , JSObjectPtr* obj , JSVal id , JSValPtr* vp )

Arguments:
wrapper
cx
obj
id
vp

PRBool enumerate ( nsIXPConnectWrappedNative wrapper , JSContextPtr* cx , JSObjectPtr* obj )

Arguments:
wrapper
cx
obj

PRBool equality ( nsIXPConnectWrappedNative wrapper , JSContextPtr* cx , JSObjectPtr* obj , JSVal val )

Arguments:
wrapper
cx
obj
val

void finalize ( nsIXPConnectWrappedNative wrapper , JSContextPtr* cx , JSObjectPtr* obj )

Arguments:
wrapper
cx
obj

PRBool getProperty ( nsIXPConnectWrappedNative wrapper , JSContextPtr* cx , JSObjectPtr* obj , JSVal id , JSValPtr* vp )

Arguments:
wrapper
cx
obj
id
vp

PRBool hasInstance ( nsIXPConnectWrappedNative wrapper , JSContextPtr* cx , JSObjectPtr* obj , JSVal val , out PRBool bp )

Arguments:
wrapper
cx
obj
val
bp

JSObjectPtr* innerObject ( nsIXPConnectWrappedNative wrapper , JSContextPtr* cx , JSObjectPtr* obj )

Arguments:
wrapper
cx
obj

PRBool newEnumerate ( nsIXPConnectWrappedNative wrapper , JSContextPtr* cx , JSObjectPtr* obj , PRUint32 enum_op , JSValPtr* statep , out JSID idp )

Arguments:
wrapper
cx
obj
enum_op
statep
idp

PRBool newResolve ( nsIXPConnectWrappedNative wrapper , JSContextPtr* cx , JSObjectPtr* obj , JSVal id , PRUint32 flags , out JSObjectPtr* objp )

Arguments:
wrapper
cx
obj
id
flags
objp

JSObjectPtr* outerObject ( nsIXPConnectWrappedNative wrapper , JSContextPtr* cx , JSObjectPtr* obj )

Arguments:
wrapper
cx
obj

void postCreate ( nsIXPConnectWrappedNative wrapper , JSContextPtr* cx , JSObjectPtr* obj )

Arguments:
wrapper
cx
obj

void preCreate ( nsISupports nativeObj , JSContextPtr* cx , JSObjectPtr* globalObj , out JSObjectPtr* parentObj )

Arguments:
nativeObj
cx
globalObj
parentObj

PRBool setProperty ( nsIXPConnectWrappedNative wrapper , JSContextPtr* cx , JSObjectPtr* obj , JSVal id , JSValPtr* vp )

Arguments:
wrapper
cx
obj
id
vp

void trace ( nsIXPConnectWrappedNative wrapper , JSTracerPtr* trc , JSObjectPtr* obj )

Arguments:
wrapper
trc
obj

References

This interface is the type of the following properties:

nsIJSRuntimeService.backstagePass

Reference documentation is generated from Mozilla's source.