NPAPI:Pepper: Difference between revisions

Jump to navigation Jump to search
294 bytes removed ,  30 March 2010
Line 16: Line 16:
= The "Pepper" Platform =
= The "Pepper" Platform =


To provide these improvements to NPAPI we propose that the changes below be another platform, called "Pepper", that may be implemented by a browser and requested by a plugin at startup.
To provide these improvements to NPAPI we propose that the changes below be another platform, called "Pepper", that may be implemented by a browser and requested by a plugin at startup. As the Pepper platform provides a number of APIs either not previously specified or previously tied to OS-dependent header files, we propose adding a new header, npapi_extensions.h.
 
A plugin may call NPN_GetValue() with the following NPNVariable to query the browser whether it supports the Pepper platform:
 
<pre>
/* TRUE if the browser supports the Pepper platform */
NPNVsupportsPepperBool = xxxx
</pre>
 
Once the plugin finds Pepper to be supported, it calls NPN_SetValue() to tell the browser to use that platform. We're adding a new NPNVariable for this:
 
<pre>
NPNVpluginUsePepperPlatform = yyyy /* TRUE if we should use the Pepper platform */
</pre>


== Getting the Browser Extension Methods ==
== Getting the Browser Extension Methods ==
89

edits

Navigation menu