[webkit-dev] Pushing data to plugin
Jack Wootton
jackwootton at gmail.com
Fri Mar 20 08:35:22 PDT 2009
So I would have thought this would work inside the plugin instance
object method New (aInstance is of type NPP)
NPNetscapeFuncs* browser = static_cast<NPNetscapeFuncs*>(aInstance.ndata);
But it doesn't :P
2009/3/20 Alexey Proskuryakov <ap at webkit.org>:
>
> 20.03.2009, в 18:15, Jack Wootton написал(а):
>
>> I'm unsure about how I can access the Browser functions.
>
>
> You can see how this works in one of our example plug-ins. E.g., form
> TestNetscapePlugin:
>
> NPNetscapeFuncs *browser;
>
> // Mach-o entry points
> extern "C" {
> NPError NP_Initialize(NPNetscapeFuncs *browserFuncs);
> NPError NP_GetEntryPoints(NPPluginFuncs *pluginFuncs);
> void NP_Shutdown(void);
> }
>
> // Mach-o entry points
> NPError NP_Initialize(NPNetscapeFuncs *browserFuncs)
> {
> browser = browserFuncs;
> return NPERR_NO_ERROR;
> }
>
> - WBR, Alexey Proskuryakov
>
>
>
--
Regards
Jack
More information about the webkit-dev
mailing list