nsIDispatchSupport 编辑
js/src/xpconnect/idl/nsIDispatchSupport.idl
Not scriptable Please add a summary to this article. Inherits from: nsISupports
Last changed in Gecko 1.7Method overview
void COMVariant2JSVal(in COMVARIANTPtr comvar, out jsval val); |
unsigned long getHostingFlags(in string aContext); |
boolean isClassMarkedSafeForScripting(in nsCIDRef cid, out boolean classExists); |
boolean isClassSafeToHost(in JSContextPtr cx, in nsCIDRef cid, in boolean capsCheck, out boolean classExists); |
boolean isObjectSafeForScripting(in voidPtr theObject, in nsIIDRef id); |
void JSVal2COMVariant(in jsval var, out COMVARIANT comvar); |
Methods
COMVariant2JSVal()
Converts a COM Variant to a jsval.
void COMVariant2JSVal( in COMVARIANTPtr comvar, out jsval val );
Parameters
comvar
- The COM Variant to be converted.
val
- The jsval to receive the converted value.
getHostingFlags()
Return the ActiveX security and hosting flags. See nsIActiveXSecurityPolicy
for list of flags.
unsigned long getHostingFlags( in string aContext );
Parameters
aContext
Return value
isClassMarkedSafeForScripting()
Test if the specified class is marked safe for scripting.
boolean isClassMarkedSafeForScripting( in nsCIDRef cid, out boolean classExists );
Parameters
cid
- The
nsID
representation of the CLSID to test. classExists
- Returns containing PR_FALSE if the class is not registered.
Return value
isClassSafeToHost()
Test if the class is safe to host.
boolean isClassSafeToHost( in JSContextPtr cx, in nsCIDRef cid, in boolean capsCheck, out boolean classExists );
Parameters
cx
cid
capsCheck
classExists
- Returns containing PR_FALSE if the class is not registered.
Return value
isObjectSafeForScripting()
Test if the instantiated object is safe for scripting on the specified interface.
boolean isObjectSafeForScripting( in voidPtr theObject, in nsIIDRef id );
Parameters
theObject
- The object to test (an IUnknown cast into a void *).
id
Return value
JSVal2COMVariant()
Converts a jsval to a COM Variant.
void JSVal2COMVariant( in jsval var, out COMVARIANT comvar );
Parameters
var
- The jsval to be converted.
comvar
- The COM Variant to receive the converted value.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论