Changes

Jump to: navigation, search

NPAPI:Pepper

371 bytes added, 03:34, 30 March 2010
Getting the Pepper Extension Methods
/* Acquire Pepper device function pointers */
NPAcquireDevicePtr aquireDevice;
/* Clipboard functionality */
NPCopyTextToClipboardPtr copyTextToClipboard;
/* ... */
} NPExtensions;
<pre>
NPNVPepperExtensions
</pre>
 
= Clipboard =
 
In addition to devices API below, the NPExtensions struct provides a function pointer that can be used to copy strings to the clipboard.
<pre>
/* Copy UTF-8 string into clipboard */
typedef void (*NPCopyTextToClipboardPtr)(
NPP instance,
const char* content);
</pre>
89
edits

Navigation menu