Google Chrome的简单hello world NPAPI外挂程式? [英] A simple hello world NPAPI plugin for Google Chrome?
问题描述
我尝试制作Chrome外挂程式,但Chrome API无法提供足够的电力。我想使用NPAPI,但我不知道如何使用它,但我有Visual C ++的经验。
有人可以告诉我一个'Hello world'
注意:Firefox和Chrome都会默认大多数插件即将开始点击播放,Chrome计划彻底淘汰NPAPI 。此时不鼓励新项目的NPAPI。
NPAPI插件不应该是特定于浏览器的(至少尽可能)。 Seamonkey npruntime 示例可以认为NPAPI的基本 Hello World 。如果您关心最新的Mac支持,则需要查看 WebKits 或苹果示例。 p>
阅读资料以开始:
- 构建FireFox插件 - NPAPI的3部分简介
- Gecko Plugin API参考 - MDC上的NPAPI文档
- MDC上的Mac特定信息
还有 FireBreath 项目:这是一个旨在降低条目的框架浏览器插件开发的障碍,已经照顾最常见的任务和问题。
I am trying to make a chrome plugin but Chrome API doesn't give me enough power. I want to use NPAPI but I have no idea how to use it but I do have experience in Visual C++.
Can someone show me a 'Hello world' in C++ application so I can get started?
Note: Both Firefox and Chrome will default most plugins to click-to-play soon, with Chrome planning to phase out NPAPI entirely. NPAPI for new projects is discouraged at this point.
NPAPI plugins shouldn't be browser specific (at least as far as possible). Seamonkeys npruntime sample can be considered a basic Hello World for NPAPI. If you care about up-to-date Mac support, you need to take a look at WebKits or Apples samples.
Reading material to get you started:
- Building a FireFox plugin - 3 part introduction to NPAPI
- Gecko Plugin API reference - NPAPI documentation at MDC
- Mac specific info on MDC
There is also the FireBreath project: It is a framework aiming at lowering the entry barrier to browser plugin development and already takes care of most common tasks and issues.
这篇关于Google Chrome的简单hello world NPAPI外挂程式?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!