首页 / 更多教程 / 一些特殊的Webkit Idl属性
一些特殊的Webkit Idl属性
内容导读
互联网集市收集整理的这篇技术教程文章主要介绍了一些特殊的Webkit Idl属性,小编现在分享给大家,供广大互联网技能从业者学习和参考。文章包含2053字,纯文字阅读大概需要3分钟。
内容图文
![一些特殊的Webkit Idl属性](/upload/InfoBanner/zyjiaocheng/1335/74afbe9e19d745d6824313755136578b.jpg)
Conditional= CONDITIONALNAME
- Wraps the generated binding code in "#if ENABLE(CONDITIONALNAME)". Typically used to allow turning off features on certain platforms (or to disable new features while they are under development).
- CustomMarkFunction
- Adds a "virtual void mark()" declaration to the generated header file for the binding class. This allows a custom binding implementation to provide their own mark() function in WebCore/bindings/js/JSClassNameCustom.cpp for doing custom handling of garbage collection.
- CustomToJS
- 不为绑定类产生 toJS()函数. 这允许实现者用自己的toJS()函数为给定的实现类创建正确的封装类. 当你的类有自己的继承关系,这就会有用:当给出一个基类的实例,自定义的toJS()实现返回派生类的封装,注意不是基类的封装。
- DelegatingGetOwnPropertySlot
- 用于给某个类的实例定义自己的属性的查找方法. 例子就是HTML的 History对象,他需要限制某个属性是跨域可见(visible cross-domain),或者WorkerContext的例子,它想在自己的原型(protype)开始查找属性之前,把查找方法委托给全局对象.
- ExtendsDOMGlobalObject
- Does not expose the object prototype externally. Also uses a self-reference internally whenever it needs to access the JSDOMGlobalObject.
- GenerateConstructor
- 产生使得类可以被外部实例化的代码
- GenerateNativeConverter
- Generates a helper function of the form ClassName* impl() { return static_cast<ClassName>(m_impl); }. Useful when working with a class hierarchy in the binding code, where the base m_impl member is defined to be the base type, not the appropriate derived type.
- LegacyParent=ParentClass
- Allows setting the base class for the generated binding. Otherwise, the base class would be set to DOMObject or the explicitly specified parent class in the interface definition.
- NoStaticTables
- Sharing a single static prototype table only works when a class is guaranteed to be accessed from a single heap, because the lookup code expects the key (attribute name) to have the same address across all instances of the object. For interfaces that are exposed to Workers, a single static table won‘t work because a given string used to look up a property on the object will lie at a different address in each heap.
See ?WebKitIDL for detailed documentation.
原文:http://blog.csdn.net/lichwei1983/article/details/43875973
内容总结
以上是互联网集市为您收集整理的一些特殊的Webkit Idl属性全部内容,希望文章能够帮你解决一些特殊的Webkit Idl属性所遇到的程序开发问题。 如果觉得互联网集市技术教程内容还不错,欢迎将互联网集市网站推荐给程序员好友。
内容备注
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 gblab@vip.qq.com 举报,一经查实,本站将立刻删除。
内容手机端
扫描二维码推送至手机访问。