Index: gecko-sdk/include/nsIDOMEventListener.h |
=================================================================== |
--- gecko-sdk/include/nsIDOMEventListener.h (revision 0) |
+++ gecko-sdk/include/nsIDOMEventListener.h (revision 0) |
@@ -0,0 +1,107 @@ |
+/* |
+ * DO NOT EDIT. THIS FILE IS GENERATED FROM c:/builds/tinderbox/XR-Mozilla1.8.0-Release/WINNT_5.2_Depend/mozilla/dom/public/idl/events/nsIDOMEventListener.idl |
+ */ |
+ |
+#ifndef __gen_nsIDOMEventListener_h__ |
+#define __gen_nsIDOMEventListener_h__ |
+ |
+ |
+#ifndef __gen_domstubs_h__ |
+#include "domstubs.h" |
+#endif |
+ |
+/* For IDL files that don't want to include root IDL files. */ |
+#ifndef NS_NO_VTABLE |
+#define NS_NO_VTABLE |
+#endif |
+ |
+/* starting interface: nsIDOMEventListener */ |
+#define NS_IDOMEVENTLISTENER_IID_STR "df31c120-ded6-11d1-bd85-00805f8ae3f4" |
+ |
+#define NS_IDOMEVENTLISTENER_IID \ |
+ {0xdf31c120, 0xded6, 0x11d1, \ |
+ { 0xbd, 0x85, 0x00, 0x80, 0x5f, 0x8a, 0xe3, 0xf4 }} |
+ |
+class NS_NO_VTABLE nsIDOMEventListener : public nsISupports { |
+ public: |
+ |
+ NS_DEFINE_STATIC_IID_ACCESSOR(NS_IDOMEVENTLISTENER_IID) |
+ |
+ /** |
+ * The nsIDOMEventListener interface is a callback interface for |
+ * listening to events in the Document Object Model. |
+ * |
+ * For more information on this interface please see |
+ * http://www.w3.org/TR/DOM-Level-2-Events/ |
+ * |
+ * @status FROZEN |
+ */ |
+/** |
+ * This method is called whenever an event occurs of the type for which |
+ * the EventListener interface was registered. |
+ * |
+ * @param evt The Event contains contextual information about the |
+ * event. It also contains the stopPropagation and |
+ * preventDefault methods which are used in determining the |
+ * event's flow and default action. |
+ */ |
+ /* void handleEvent (in nsIDOMEvent event); */ |
+ NS_IMETHOD HandleEvent(nsIDOMEvent *event) = 0; |
+ |
+}; |
+ |
+/* Use this macro when declaring classes that implement this interface. */ |
+#define NS_DECL_NSIDOMEVENTLISTENER \ |
+ NS_IMETHOD HandleEvent(nsIDOMEvent *event); |
+ |
+/* Use this macro to declare functions that forward the behavior of this interface to another object. */ |
+#define NS_FORWARD_NSIDOMEVENTLISTENER(_to) \ |
+ NS_IMETHOD HandleEvent(nsIDOMEvent *event) { return _to HandleEvent(event); } |
+ |
+/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */ |
+#define NS_FORWARD_SAFE_NSIDOMEVENTLISTENER(_to) \ |
+ NS_IMETHOD HandleEvent(nsIDOMEvent *event) { return !_to ? NS_ERROR_NULL_POINTER : _to->HandleEvent(event); } |
+ |
+#if 0 |
+/* Use the code below as a template for the implementation class for this interface. */ |
+ |
+/* Header file */ |
+class nsDOMEventListener : public nsIDOMEventListener |
+{ |
+public: |
+ NS_DECL_ISUPPORTS |
+ NS_DECL_NSIDOMEVENTLISTENER |
+ |
+ nsDOMEventListener(); |
+ |
+private: |
+ ~nsDOMEventListener(); |
+ |
+protected: |
+ /* additional members */ |
+}; |
+ |
+/* Implementation file */ |
+NS_IMPL_ISUPPORTS1(nsDOMEventListener, nsIDOMEventListener) |
+ |
+nsDOMEventListener::nsDOMEventListener() |
+{ |
+ /* member initializers and constructor code */ |
+} |
+ |
+nsDOMEventListener::~nsDOMEventListener() |
+{ |
+ /* destructor code */ |
+} |
+ |
+/* void handleEvent (in nsIDOMEvent event); */ |
+NS_IMETHODIMP nsDOMEventListener::HandleEvent(nsIDOMEvent *event) |
+{ |
+ return NS_ERROR_NOT_IMPLEMENTED; |
+} |
+ |
+/* End of implementation class template. */ |
+#endif |
+ |
+ |
+#endif /* __gen_nsIDOMEventListener_h__ */ |
Property changes on: gecko-sdk\include\nsIDOMEventListener.h |
___________________________________________________________________ |
Added: svn:eol-style |
+ LF |