nsIDispatchSupport 编辑

js/src/xpconnect/idl/nsIDispatchSupport.idlNot scriptable Please add a summary to this article. Inherits from: nsISupports Last changed in Gecko 1.7

Method 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据

词条统计

浏览:95 次

字数:5157

最后编辑:7年前

编辑次数:0 次

    我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
    原文