Back to index
|void||handleEvent (in nsPluginEventPtr aEvent, out boolean aHandled)|
|Handles an event. |
Handles an event.
An nsIEventHandler can also get registered with with nsIPluginManager2::RegisterWindow and will be called whenever an event comes in for that window.
Note that for Unix and Mac the nsPluginEvent structure is different from the old NPEvent structure -- it's no longer the native event record, but is instead a struct. This was done for future extensibility, and so that the Mac could receive the window argument too. For Windows and OS2, it's always been a struct, so there's no change for them.
(Corresponds to NPP_HandleEvent.)
|aEvent||- the event to be handled|
|aHandled||- set to PR_TRUE if event was handled|