gecko/modules/plugin/sdk
Josh Aas b356ec6f5a move npapi sdk up a directory, b=360955 rs=jst
--HG--
rename : modules/plugin/tools/sdk/Makefile.in => modules/plugin/sdk/Makefile.in
rename : modules/plugin/tools/sdk/readme.txt => modules/plugin/sdk/readme.txt
rename : modules/plugin/tools/sdk/samples/Makefile.in => modules/plugin/sdk/samples/Makefile.in
rename : modules/plugin/tools/sdk/samples/basic/mac/Basic Plugin.mcp => modules/plugin/sdk/samples/basic/mac/Basic Plugin.mcp
rename : modules/plugin/tools/sdk/samples/basic/mac/Basic Plugin.xml => modules/plugin/sdk/samples/basic/mac/Basic Plugin.xml
rename : modules/plugin/tools/sdk/samples/basic/mac/Basic.rsrc => modules/plugin/sdk/samples/basic/mac/Basic.rsrc
rename : modules/plugin/tools/sdk/samples/basic/mac/plugin.cpp => modules/plugin/sdk/samples/basic/mac/plugin.cpp
rename : modules/plugin/tools/sdk/samples/basic/mac/plugin.h => modules/plugin/sdk/samples/basic/mac/plugin.h
rename : modules/plugin/tools/sdk/samples/basic/mac/pluginCarbonPrefix.h => modules/plugin/sdk/samples/basic/mac/pluginCarbonPrefix.h
rename : modules/plugin/tools/sdk/samples/basic/mac/pluginPrefix.h => modules/plugin/sdk/samples/basic/mac/pluginPrefix.h
rename : modules/plugin/tools/sdk/samples/basic/test.html => modules/plugin/sdk/samples/basic/test.html
rename : modules/plugin/tools/sdk/samples/basic/unix/Makefile.in => modules/plugin/sdk/samples/basic/unix/Makefile.in
rename : modules/plugin/tools/sdk/samples/basic/unix/plugin.cpp => modules/plugin/sdk/samples/basic/unix/plugin.cpp
rename : modules/plugin/tools/sdk/samples/basic/unix/plugin.h => modules/plugin/sdk/samples/basic/unix/plugin.h
rename : modules/plugin/tools/sdk/samples/basic/windows/Makefile.in => modules/plugin/sdk/samples/basic/windows/Makefile.in
rename : modules/plugin/tools/sdk/samples/basic/windows/basic.def => modules/plugin/sdk/samples/basic/windows/basic.def
rename : modules/plugin/tools/sdk/samples/basic/windows/basic.rc => modules/plugin/sdk/samples/basic/windows/basic.rc
rename : modules/plugin/tools/sdk/samples/basic/windows/npbasic.dsp => modules/plugin/sdk/samples/basic/windows/npbasic.dsp
rename : modules/plugin/tools/sdk/samples/basic/windows/npbasic.dsw => modules/plugin/sdk/samples/basic/windows/npbasic.dsw
rename : modules/plugin/tools/sdk/samples/basic/windows/plugin.cpp => modules/plugin/sdk/samples/basic/windows/plugin.cpp
rename : modules/plugin/tools/sdk/samples/basic/windows/plugin.h => modules/plugin/sdk/samples/basic/windows/plugin.h
rename : modules/plugin/tools/sdk/samples/basic/windows/resource.h => modules/plugin/sdk/samples/basic/windows/resource.h
rename : modules/plugin/tools/sdk/samples/common/Makefile.in => modules/plugin/sdk/samples/common/Makefile.in
rename : modules/plugin/tools/sdk/samples/common/np_entry.cpp => modules/plugin/sdk/samples/common/np_entry.cpp
rename : modules/plugin/tools/sdk/samples/common/npn_gate.cpp => modules/plugin/sdk/samples/common/npn_gate.cpp
rename : modules/plugin/tools/sdk/samples/common/npp_gate.cpp => modules/plugin/sdk/samples/common/npp_gate.cpp
rename : modules/plugin/tools/sdk/samples/include/npplat.h => modules/plugin/sdk/samples/include/npplat.h
rename : modules/plugin/tools/sdk/samples/include/pluginbase.h => modules/plugin/sdk/samples/include/pluginbase.h
rename : modules/plugin/tools/sdk/samples/scriptable/mac/Scriptable Plugin.mcp => modules/plugin/sdk/samples/scriptable/mac/Scriptable Plugin.mcp
rename : modules/plugin/tools/sdk/samples/scriptable/mac/Scriptable Plugin.xml => modules/plugin/sdk/samples/scriptable/mac/Scriptable Plugin.xml
rename : modules/plugin/tools/sdk/samples/scriptable/mac/Scriptable PluginIDL.mcp => modules/plugin/sdk/samples/scriptable/mac/Scriptable PluginIDL.mcp
rename : modules/plugin/tools/sdk/samples/scriptable/mac/Scriptable PluginIDL.xml => modules/plugin/sdk/samples/scriptable/mac/Scriptable PluginIDL.xml
rename : modules/plugin/tools/sdk/samples/scriptable/mac/Scriptable.rsrc => modules/plugin/sdk/samples/scriptable/mac/Scriptable.rsrc
rename : modules/plugin/tools/sdk/samples/scriptable/mac/nsIScriptablePluginSample.idl => modules/plugin/sdk/samples/scriptable/mac/nsIScriptablePluginSample.idl
rename : modules/plugin/tools/sdk/samples/scriptable/mac/nsScriptablePeer.cpp => modules/plugin/sdk/samples/scriptable/mac/nsScriptablePeer.cpp
rename : modules/plugin/tools/sdk/samples/scriptable/mac/nsScriptablePeer.h => modules/plugin/sdk/samples/scriptable/mac/nsScriptablePeer.h
rename : modules/plugin/tools/sdk/samples/scriptable/mac/plugin.cpp => modules/plugin/sdk/samples/scriptable/mac/plugin.cpp
rename : modules/plugin/tools/sdk/samples/scriptable/mac/plugin.h => modules/plugin/sdk/samples/scriptable/mac/plugin.h
rename : modules/plugin/tools/sdk/samples/scriptable/mac/pluginCarbonPrefix.h => modules/plugin/sdk/samples/scriptable/mac/pluginCarbonPrefix.h
rename : modules/plugin/tools/sdk/samples/scriptable/mac/pluginPrefix.h => modules/plugin/sdk/samples/scriptable/mac/pluginPrefix.h
rename : modules/plugin/tools/sdk/samples/scriptable/test.html => modules/plugin/sdk/samples/scriptable/test.html
rename : modules/plugin/tools/sdk/samples/scriptable/unix/Makefile.in => modules/plugin/sdk/samples/scriptable/unix/Makefile.in
rename : modules/plugin/tools/sdk/samples/scriptable/unix/nsIScriptablePluginSample.idl => modules/plugin/sdk/samples/scriptable/unix/nsIScriptablePluginSample.idl
rename : modules/plugin/tools/sdk/samples/scriptable/unix/nsScriptablePeer.cpp => modules/plugin/sdk/samples/scriptable/unix/nsScriptablePeer.cpp
rename : modules/plugin/tools/sdk/samples/scriptable/unix/nsScriptablePeer.h => modules/plugin/sdk/samples/scriptable/unix/nsScriptablePeer.h
rename : modules/plugin/tools/sdk/samples/scriptable/unix/plugin.cpp => modules/plugin/sdk/samples/scriptable/unix/plugin.cpp
rename : modules/plugin/tools/sdk/samples/scriptable/unix/plugin.h => modules/plugin/sdk/samples/scriptable/unix/plugin.h
rename : modules/plugin/tools/sdk/samples/scriptable/windows/Makefile.in => modules/plugin/sdk/samples/scriptable/windows/Makefile.in
rename : modules/plugin/tools/sdk/samples/scriptable/windows/npscriptable.def => modules/plugin/sdk/samples/scriptable/windows/npscriptable.def
rename : modules/plugin/tools/sdk/samples/scriptable/windows/npscriptable.dsp => modules/plugin/sdk/samples/scriptable/windows/npscriptable.dsp
rename : modules/plugin/tools/sdk/samples/scriptable/windows/npscriptable.dsw => modules/plugin/sdk/samples/scriptable/windows/npscriptable.dsw
rename : modules/plugin/tools/sdk/samples/scriptable/windows/npscriptable.rc => modules/plugin/sdk/samples/scriptable/windows/npscriptable.rc
rename : modules/plugin/tools/sdk/samples/scriptable/windows/nsIScriptablePluginSample.idl => modules/plugin/sdk/samples/scriptable/windows/nsIScriptablePluginSample.idl
rename : modules/plugin/tools/sdk/samples/scriptable/windows/nsScriptablePeer.cpp => modules/plugin/sdk/samples/scriptable/windows/nsScriptablePeer.cpp
rename : modules/plugin/tools/sdk/samples/scriptable/windows/nsScriptablePeer.h => modules/plugin/sdk/samples/scriptable/windows/nsScriptablePeer.h
rename : modules/plugin/tools/sdk/samples/scriptable/windows/plugin.cpp => modules/plugin/sdk/samples/scriptable/windows/plugin.cpp
rename : modules/plugin/tools/sdk/samples/scriptable/windows/plugin.h => modules/plugin/sdk/samples/scriptable/windows/plugin.h
rename : modules/plugin/tools/sdk/samples/scriptable/windows/readme.txt => modules/plugin/sdk/samples/scriptable/windows/readme.txt
rename : modules/plugin/tools/sdk/samples/scriptable/windows/resource.h => modules/plugin/sdk/samples/scriptable/windows/resource.h
rename : modules/plugin/tools/sdk/samples/simple/Makefile.in => modules/plugin/sdk/samples/simple/Makefile.in
rename : modules/plugin/tools/sdk/samples/simple/npsimple.def => modules/plugin/sdk/samples/simple/npsimple.def
rename : modules/plugin/tools/sdk/samples/simple/npsimple.dsp => modules/plugin/sdk/samples/simple/npsimple.dsp
rename : modules/plugin/tools/sdk/samples/simple/npsimple.dsw => modules/plugin/sdk/samples/simple/npsimple.dsw
rename : modules/plugin/tools/sdk/samples/simple/npsimple.rc => modules/plugin/sdk/samples/simple/npsimple.rc
rename : modules/plugin/tools/sdk/samples/simple/nsISimplePlugin.idl => modules/plugin/sdk/samples/simple/nsISimplePlugin.idl
rename : modules/plugin/tools/sdk/samples/simple/nsScriptablePeer.cpp => modules/plugin/sdk/samples/simple/nsScriptablePeer.cpp
rename : modules/plugin/tools/sdk/samples/simple/nsScriptablePeer.h => modules/plugin/sdk/samples/simple/nsScriptablePeer.h
rename : modules/plugin/tools/sdk/samples/simple/plugin.cpp => modules/plugin/sdk/samples/simple/plugin.cpp
rename : modules/plugin/tools/sdk/samples/simple/plugin.h => modules/plugin/sdk/samples/simple/plugin.h
rename : modules/plugin/tools/sdk/samples/simple/readme.txt => modules/plugin/sdk/samples/simple/readme.txt
rename : modules/plugin/tools/sdk/samples/simple/resource.h => modules/plugin/sdk/samples/simple/resource.h
rename : modules/plugin/tools/sdk/samples/simple/test.html => modules/plugin/sdk/samples/simple/test.html
rename : modules/plugin/tools/sdk/samples/winless/test.html => modules/plugin/sdk/samples/winless/test.html
rename : modules/plugin/tools/sdk/samples/winless/windows/Makefile.in => modules/plugin/sdk/samples/winless/windows/Makefile.in
rename : modules/plugin/tools/sdk/samples/winless/windows/npwinless.def => modules/plugin/sdk/samples/winless/windows/npwinless.def
rename : modules/plugin/tools/sdk/samples/winless/windows/npwinless.dsp => modules/plugin/sdk/samples/winless/windows/npwinless.dsp
rename : modules/plugin/tools/sdk/samples/winless/windows/npwinless.dsw => modules/plugin/sdk/samples/winless/windows/npwinless.dsw
rename : modules/plugin/tools/sdk/samples/winless/windows/npwinless.rc => modules/plugin/sdk/samples/winless/windows/npwinless.rc
rename : modules/plugin/tools/sdk/samples/winless/windows/plugin.cpp => modules/plugin/sdk/samples/winless/windows/plugin.cpp
rename : modules/plugin/tools/sdk/samples/winless/windows/plugin.h => modules/plugin/sdk/samples/winless/windows/plugin.h
rename : modules/plugin/tools/sdk/samples/winless/windows/resource.h => modules/plugin/sdk/samples/winless/windows/resource.h
2008-09-02 14:05:34 -04:00
..
samples move npapi sdk up a directory, b=360955 rs=jst 2008-09-02 14:05:34 -04:00
Makefile.in move npapi sdk up a directory, b=360955 rs=jst 2008-09-02 14:05:34 -04:00
readme.txt move npapi sdk up a directory, b=360955 rs=jst 2008-09-02 14:05:34 -04:00

Last updated 12.20.2001

The current version of the Netscape Plugin API is designed to help
the developers to start creating plugins for Mozilla based browsers.

This SDK is based on the API developed originally for Netscape browsers
starting with Netscape 2.x. Some additions have been made at the time
of release Netscape 3.x and Netscape 4.x. The present SDK reflects major
changes related to Mozilla code base: LiveConnect for plugin scriptability
is no longer supported, existing plugins should be modified slightly to 
become scriptable again; the browser services are now accessible from
the plugin through the access to the service manager.

The SDK is intended to help in creating full-blown plugins to work with
Mozilla code base without actually having the whole Mozilla source tree
present and built.

===============================================================

The Common folder contains stub implementations of the NPAPI methods, there
is no need to modify files in this folder, just include them into your project.
This is not necessary though, some samples or plugin projects may use
their own implementations, the files in this folder are just an illustration
of one possible way to do that.

The Samples section at this point contains the following plugin samples:

1. Basic plugin

Shows the bare bones of the plugin dll. It does not do anything special,
'Hello, World' type of thing. Demonstrates how the plugin dll is invoked
and how NPAPI methods are called. Can be used as a starting template for 
writing your own plugin.

2. Simple plugin 

This plugin example illustrates specific for Mozilla code base features.
It is scriptable via JavaScript and uses services provided by the browser.
Some xpcom interfaces are implemented here so the Mozilla browser is aware
of its capabilities. The plugin does not draw in the native window but 
rather uses JavaScript box to display the result of its work. Therefore,
there are no separate projects for different platforms in this sample.

3. Scriptable plugin

Yet another example of plugin scriptability. This plugin implements two
native methods callable from the JavaScript and uses native window drawings.

4. Windowless plugin

Example of a plugin which does not use native window messaging mechanism
and relies exclusively on NPP_HandleEvent to receive GUI messages such
as for painting. This plugin simply draws gray rectangle in occupied area.

Scriptable samples require generation of .xpt files which should reside
in the Mozilla Components directory. To make sure Mozilla is aware of 
the presence of the new .xpt file one may look at xpti.dat. To force
Mozilla to re-scan the Components directory xpti.dat should be removed
before Mozilla is started.

===============================================================

Plugin developers might find it useful for debugging purporsed to turn
off the exception catching mechanism currently implemented in Mozilla 
on Windows. To do this add the following line into your prefs.js file:
user_pref("plugin.dont_try_safe_calls", true);