首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >为什么NPRuntime需要xpt文件?

为什么NPRuntime需要xpt文件?
EN

Stack Overflow用户
提问于 2010-02-17 11:08:37
回答 1查看 452关注 0票数 2

我正在努力理解我对NPRuntime所了解的一切。mozilla-central of NPRuntime插件中的NPRuntime插件的示例,其中提到了以下几行

代码语言:javascript
复制
// ==============================
145 // ! Scriptability related code !
146 // ==============================
147 //
148 // here the plugin is asked by Mozilla to tell if it is scriptable
149 // we should return a valid interface id and a pointer to 
150 // nsScriptablePeer interface which we should have implemented
151 // and which should be defined in the corressponding *.xpt file
152 // in the bin/components folder

现在AFAIK NPRuntime desn不需要复制xpt文件,xpt文件是特定于XPCOM的,NPRuntimeE 219不使用E 120XPCOME 221。那么,上述声明意味着什么呢?

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2010-02-17 12:33:54

正如您从实际代码中看到的那样,关于xpt和nsScriptablePeer的注释都是正确的。请在Core:Plugins中提交一个bug,并在评论中提到它(补丁的额外积分!)

票数 4
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/2280061

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档