开发附带npapi插件的chrome扩展(The development of plug-in Chrome extension with npapi).docVIP

  • 5
  • 0
  • 约1.05万字
  • 约 20页
  • 2017-08-17 发布于河南
  • 举报

开发附带npapi插件的chrome扩展(The development of plug-in Chrome extension with npapi).doc

开发附带npapi插件的chrome扩展(The development of plug-in Chrome extension with npapi)

开发附带npapi插件的chrome扩展(The development of plug-in Chrome extension with npapi) 1 NPAPI plugins 1.1 introduction to NPAPI NPAPI (Netscape Plugin Application Programming Interface, Netscape plugin application programming interface) is developed in the formulation of the Netscape Co based on the Netscape browser, for general purpose interface implementation external application in the browser. The interface based on the plug-in mechanism, established a series of standards and API, and therefore have a NPAPI plugin that. Over the same period, Microsoft, also supports ActiveX browser plug-ins in IE, Microsoft had to admit that at this point, the browser and OS combined more closely, it may also be one of the reasons that Microsoft can defeat netscape. But Netscape has far-reaching influence, in addition to Microsoft outside the other browser manufacturers to develop personal independence of conduct, miraculously agree with NPAPI to extend the browser (this includes FireFox and later reborn from the ashes of Chrome; of course, Chrome long ago time has been trying to abandon the NPAPI). Therefore, in the present situation of NPAPI is almost standard browser plug-in outside the IE. 1.2 preparations According to the reference data downloaded from /pub//firefox/releases/4.0.1/source/ Firefox in the early stage of the source code, and from out the NPAPI related part (well, data not say in detail). Extract the source code, the modules\plugin\base\public and modules\plugin\sdk\samples\include two files in the directory copied together (I created D:\npapi, the files are placed here). In addition, the data mentioned in the three files in modules\plugin\sdk\samples\common (remember the location, will be used). 1.3 create a plug-in By the way, this paper takes VS2003 as an example. To achieve the functions of the browser plug-in (the point is posted on the JavaScript engine) exposure object Sample, Sample provides a method for sayHello. In this way, we can in the browser, the use of J

文档评论(0)

1亿VIP精品文档

相关文档