Develop Chrome extensions using NPAPI in C ++

I want to develop a simple Chrome extension in C ++ using NPAPI, which performs the task of dumping the HTML content on the current page to a file. I do not have much experience in developing plugins / extensions. How do I start with this?

+5
source share
2 answers

1 - Create an extension ... http://code.google.com/chrome/extensions/getstarted.html

2 - Create an NPAPI plugin ... http://colonelpanic.net/2009/03/building-a-firefox-plugin-part-one/

3 - Add a plugin in the manifest of your extension ...

"plugins": [
    { "path": "your_npapi_plugin.dll" }    
  ],

4 - Create a plugin on the background extension page

<script>
var plugin = document.getElementById("MyNPAPIPluginId");
...
</script>

5 - javascript, script, . script npapi- , .


MyNPAPIPluginId? , , DLL?

<embed type="application/my-plugin-mimetype" id="MyNPAPIPluginId">

Windows MIMEType DLL,

VALUE "MIMEType", "application/my-plugin-mimetype"
+9

, ....
http://code.google.com/p/npapi-file-io/
... . ( html) . Windows Linux .
, , script, , .

Smorgan, .
, false...
http://code.google.com/chrome/extensions/npapi.html

 "plugins": [
    { "path": "plugin.dll", "public": false }
  ]

(Chrome 18) 2...
http://code.google.com/chrome/extensions/trunk/manifestVersion.html

, , . , , , .

+4

All Articles