Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions
nsIEventHandler Interface Reference

import "nsIEventHandler.idl";

Inheritance diagram for nsIEventHandler:
Inheritance graph
Collaboration diagram for nsIEventHandler:
Collaboration graph

List of all members.

Public Member Functions

void handleEvent (in nsPluginEventPtr aEvent, out boolean aHandled)
 Handles an event.

Detailed Description

Definition at line 46 of file nsIEventHandler.idl.

Member Function Documentation

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
- NS_OK if this operation was successful

The documentation for this interface was generated from the following file: