You are not logged in.

1

Tuesday, December 7th 2010, 2:03am

Qt WebKit NPAPI windowless plugin

I've a Qt WebKit NPAPI windowless plugin written, and the NPP_HandleEvent(NPP instance, void* ev) is only being invoked if it is a paint message. The scenario is that on a web page, when a button click which cause the windowless NPAPI plugin to be created, as part of the creation cause a paint event which caue the PluginView::paint(GraphicsContext*, IntRect&) to be invoked and finally the plugin NPP_HandleEvent to be called and the custom plugin to be call and draw to surface that pass back from the XEvent (graphicsexpose.drawable). Now, when any mouse click on the display, the PluginView::handleEvent(Event*) is invoked but it doesn't invoke plugin NPP_HandleEvent(). Can anyone help?