From 836c0e5fa330e2d3c5a97edc424920230f05ccfd Mon Sep 17 00:00:00 2001 From: "beard%netscape.com" Date: Fri, 12 Mar 1999 04:30:30 +0000 Subject: [PATCH] added AddEventListener --- widget/public/nsIWidget.h | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/widget/public/nsIWidget.h b/widget/public/nsIWidget.h index 2950a43da2d..77ccbe22c78 100644 --- a/widget/public/nsIWidget.h +++ b/widget/public/nsIWidget.h @@ -39,6 +39,7 @@ class nsIDeviceContext; struct nsRect; struct nsFont; class nsIMenuBar; +class nsIEventListener; /** * Callback function that processes events. * The argument is actually a subtype (subclass) of nsEvent which carries @@ -61,6 +62,7 @@ typedef nsEventStatus (*PR_CALLBACK EVENT_CALLBACK)(nsGUIEvent *event); #define NS_NATIVE_REGION 5 #define NS_NATIVE_OFFSETX 6 #define NS_NATIVE_OFFSETY 7 +#define NS_NATIVE_PLUGIN_PORT 8 // {18032AD5-B265-11d1-AA2A-000000000000} #define NS_IWIDGET_IID \ @@ -446,6 +448,15 @@ class nsIWidget : public nsISupports { NS_IMETHOD AddMouseListener(nsIMouseListener * aListener) = 0; + /** + * Adds an event listener to this widget + * Any existing event listener is replaced + * + * @param aListener event listener to add to this widget. + */ + + NS_IMETHOD AddEventListener(nsIEventListener * aListener) = 0; + /** * Adds a menu listener to this widget * Any existing menu listener is replaced