Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions
nsIDispatchSupport Interface Reference

import "nsIDispatchSupport.idl";

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

List of all members.

Public Member Functions

void COMVariant2JSVal (in COMVARIANTPtr comvar, out JSVal val)
 Converts a COM Variant to a jsval.
void JSVal2COMVariant (in JSVal var, out COMVARIANT comvar)
 Converts a jsval to a COM Variant.
boolean isClassSafeToHost (in JSContextPtr cx, in nsCIDRef cid, in boolean capsCheck, out boolean classExists)
 Test if the class is safe to host.
boolean isClassMarkedSafeForScripting (in nsCIDRef cid, out boolean classExists)
 Test if the specified class is marked safe for scripting.
boolean isObjectSafeForScripting (in voidPtr theObject, in nsIIDRef id)
 Test if the instantiated object is safe for scripting on the specified interface.
unsigned long getHostingFlags (in string aContext)
 Return the ActiveX security and hosting flags.

Detailed Description

Definition at line 66 of file nsIDispatchSupport.idl.


Member Function Documentation

Converts a COM Variant to a jsval.

Parameters:
comvarThe COM Variant to be converted.
valThe jsval to receive the converted value.

Return the ActiveX security and hosting flags.

See nsIActiveXSecurityPolicy for list of flags.

Parameters:
contextThe context for which flags are requested. At present the only valid value is nsnull.

Test if the specified class is marked safe for scripting.

Parameters:
cidThe nsID representation of the CLSID to test.
classExistsReturns containing PR_FALSE if the class is not registered.
boolean nsIDispatchSupport::isClassSafeToHost ( in JSContextPtr  cx,
in nsCIDRef  cid,
in boolean  capsCheck,
out boolean  classExists 
)

Test if the class is safe to host.

Parameters:
clsidThe nsID representation of the CLSID to test.
classExistsReturns containing PR_FALSE if the class is not registered.
boolean nsIDispatchSupport::isObjectSafeForScripting ( in voidPtr  theObject,
in nsIIDRef  id 
)

Test if the instantiated object is safe for scripting on the specified interface.

Parameters:
theObjectThe object to test (an IUnknown cast into a void *).
iidThe interface to test if it is safe for scripting on.

Converts a jsval to a COM Variant.

Parameters:
varThe jsval to be converted.
comvarThe COM Variant to receive the converted value

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