Back to index

lightning-sunbird  0.9+nobinonly
Public Attributes
nsIXPCNativeCallContext Interface Reference

This is a somewhat special interface. More...

import "nsIXPConnect.idl";

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

List of all members.

Public Attributes

readonly attribute nsISupports Callee
readonly attribute PRUint16 CalleeMethodIndex
readonly attribute
nsIXPConnectWrappedNative 
CalleeWrapper
readonly attribute JSContextPtr JSContext
readonly attribute PRUint32 Argc
readonly attribute JSValPtr ArgvPtr
readonly attribute JSValPtr RetValPtr
 This may be NULL if the JS caller is ignoring the result of the call.
attribute PRBool ExceptionWasThrown
 Set this if JS_SetPendingException has been called.
attribute PRBool ReturnValueWasSet
 Set this to indicate that the callee has directly set the return value (using RetValPtr and the JSAPI).
readonly attribute nsIInterfaceInfo CalleeInterface
readonly attribute nsIClassInfo CalleeClassInfo

Detailed Description

This is a somewhat special interface.

It is available from the global nsIXPConnect object when native methods have been called. It is only relevant to the currently called native method on the given JSContext/thread. Holding a reference past that time (or while other native methods are being called) will not assure access to this data.

Definition at line 264 of file nsIXPConnect.idl.


Member Data Documentation

Definition at line 271 of file nsIXPConnect.idl.

Definition at line 272 of file nsIXPConnect.idl.

Definition at line 267 of file nsIXPConnect.idl.

Definition at line 294 of file nsIXPConnect.idl.

Definition at line 293 of file nsIXPConnect.idl.

Definition at line 268 of file nsIXPConnect.idl.

Definition at line 269 of file nsIXPConnect.idl.

Set this if JS_SetPendingException has been called.

Return NS_OK or else this will be ignored and the native method's nsresult will be converted into an exception and thrown into JS as is the normal case.

Definition at line 282 of file nsIXPConnect.idl.

Definition at line 270 of file nsIXPConnect.idl.

Set this to indicate that the callee has directly set the return value (using RetValPtr and the JSAPI).

If set then xpconnect will not attempt to overwrite it with the converted retval from the C++ callee.

Definition at line 289 of file nsIXPConnect.idl.

This may be NULL if the JS caller is ignoring the result of the call.

Definition at line 276 of file nsIXPConnect.idl.


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