From 85a74becef6519d3e8b27e5309f346f9d02d49a9 Mon Sep 17 00:00:00 2001 From: "rods%netscape.com" Date: Fri, 2 Jul 1999 19:27:36 +0000 Subject: [PATCH] Add or changed GetIID to use NS_DEFINE_STATIC_IID_ACCESSOR macro --- dom/public/coreEvents/nsIDOMCompositionListener.h | 2 +- dom/public/coreEvents/nsIDOMDragListener.h | 2 +- dom/public/coreEvents/nsIDOMEventListener.h | 2 +- dom/public/coreEvents/nsIDOMEventReceiver.h | 2 +- dom/public/coreEvents/nsIDOMFocusListener.h | 2 +- dom/public/coreEvents/nsIDOMFormListener.h | 2 +- dom/public/coreEvents/nsIDOMKeyListener.h | 2 +- dom/public/coreEvents/nsIDOMLoadListener.h | 2 +- dom/public/coreEvents/nsIDOMMouseListener.h | 2 +- dom/public/coreEvents/nsIDOMMouseMotionListener.h | 2 +- dom/public/coreEvents/nsIDOMPaintListener.h | 1 + dom/public/coreEvents/nsIDOMTextListener.h | 2 +- 12 files changed, 12 insertions(+), 11 deletions(-) diff --git a/dom/public/coreEvents/nsIDOMCompositionListener.h b/dom/public/coreEvents/nsIDOMCompositionListener.h index 1b65d64550c2..c007cfbb5ca1 100644 --- a/dom/public/coreEvents/nsIDOMCompositionListener.h +++ b/dom/public/coreEvents/nsIDOMCompositionListener.h @@ -35,7 +35,7 @@ class nsIDOMCompositionListener : public nsIDOMEventListener { public: - static const nsIID& GetIID() { static nsIID iid = NS_IDOMCOMPOSITIONLISTENER_IID; return iid; } + NS_DEFINE_STATIC_IID_ACCESSOR(NS_IDOMCOMPOSITIONLISTENER_IID) virtual nsresult HandleStartComposition(nsIDOMEvent* aCompositionEvent) = 0; virtual nsresult HandleEndComposition(nsIDOMEvent* aCompositionEvent) = 0; diff --git a/dom/public/coreEvents/nsIDOMDragListener.h b/dom/public/coreEvents/nsIDOMDragListener.h index cb6cac77d2be..e6d0f6cdeeca 100644 --- a/dom/public/coreEvents/nsIDOMDragListener.h +++ b/dom/public/coreEvents/nsIDOMDragListener.h @@ -36,7 +36,7 @@ class nsIDOMDragListener : public nsIDOMEventListener { public: - static const nsIID& GetIID() { static nsIID iid = NS_IDOMDRAGLISTENER_IID; return iid; } + NS_DEFINE_STATIC_IID_ACCESSOR(NS_IDOMDRAGLISTENER_IID) /** * Processes a drag enter event diff --git a/dom/public/coreEvents/nsIDOMEventListener.h b/dom/public/coreEvents/nsIDOMEventListener.h index d1694355b841..a633bcc0005d 100644 --- a/dom/public/coreEvents/nsIDOMEventListener.h +++ b/dom/public/coreEvents/nsIDOMEventListener.h @@ -35,7 +35,7 @@ class nsIDOMEventListener : public nsISupports { public: - static const nsIID& GetIID() { static nsIID iid = NS_IDOMEVENTLISTENER_IID; return iid; } + NS_DEFINE_STATIC_IID_ACCESSOR(NS_IDOMEVENTLISTENER_IID) /** * Processes all events excepting mouse and key events. diff --git a/dom/public/coreEvents/nsIDOMEventReceiver.h b/dom/public/coreEvents/nsIDOMEventReceiver.h index e8e9933165e4..ed05142b7c29 100644 --- a/dom/public/coreEvents/nsIDOMEventReceiver.h +++ b/dom/public/coreEvents/nsIDOMEventReceiver.h @@ -42,7 +42,7 @@ class nsIEventListenerManager; class nsIDOMEventReceiver : public nsIDOMEventTarget { public: - static const nsIID& GetIID() { static nsIID iid = NS_IDOMEVENTRECEIVER_IID; return iid; } + NS_DEFINE_STATIC_IID_ACCESSOR(NS_IDOMEVENTRECEIVER_IID) NS_IMETHOD AddEventListenerByIID(nsIDOMEventListener *aListener, const nsIID& aIID) = 0; NS_IMETHOD RemoveEventListenerByIID(nsIDOMEventListener *aListener, const nsIID& aIID) = 0; diff --git a/dom/public/coreEvents/nsIDOMFocusListener.h b/dom/public/coreEvents/nsIDOMFocusListener.h index 5518397f0cd3..b06d223fbbde 100644 --- a/dom/public/coreEvents/nsIDOMFocusListener.h +++ b/dom/public/coreEvents/nsIDOMFocusListener.h @@ -36,7 +36,7 @@ class nsIDOMFocusListener : public nsIDOMEventListener { public: - static const nsIID& GetIID() { static nsIID iid = NS_IDOMFOCUSLISTENER_IID; return iid; } + NS_DEFINE_STATIC_IID_ACCESSOR(NS_IDOMFOCUSLISTENER_IID) /** * Processes a focus event diff --git a/dom/public/coreEvents/nsIDOMFormListener.h b/dom/public/coreEvents/nsIDOMFormListener.h index cbde4bbd9bb2..f2bdb079cd69 100644 --- a/dom/public/coreEvents/nsIDOMFormListener.h +++ b/dom/public/coreEvents/nsIDOMFormListener.h @@ -35,7 +35,7 @@ class nsIDOMFormListener : public nsIDOMEventListener { public: - + NS_DEFINE_STATIC_IID_ACCESSOR(NS_IDOMFORMLISTENER_IID) /** * Processes a form submit event * @param aEvent @see nsIDOMEvent.h diff --git a/dom/public/coreEvents/nsIDOMKeyListener.h b/dom/public/coreEvents/nsIDOMKeyListener.h index 026286297d33..135afc18e7b4 100644 --- a/dom/public/coreEvents/nsIDOMKeyListener.h +++ b/dom/public/coreEvents/nsIDOMKeyListener.h @@ -34,7 +34,7 @@ class nsIDOMKeyListener : public nsIDOMEventListener { public: - static const nsIID& GetIID() { static nsIID iid = NS_IDOMKEYLISTENER_IID; return iid; } + NS_DEFINE_STATIC_IID_ACCESSOR(NS_IDOMKEYLISTENER_IID) /** * Processes a key pressed event diff --git a/dom/public/coreEvents/nsIDOMLoadListener.h b/dom/public/coreEvents/nsIDOMLoadListener.h index 0c6cf830015e..ed5f2bde4a23 100644 --- a/dom/public/coreEvents/nsIDOMLoadListener.h +++ b/dom/public/coreEvents/nsIDOMLoadListener.h @@ -35,7 +35,7 @@ class nsIDOMLoadListener : public nsIDOMEventListener { public: - + NS_DEFINE_STATIC_IID_ACCESSOR(NS_IDOMLOADLISTENER_IID) /** * Processes a page or image load event * @param aMouseEvent @see nsIDOMEvent.h diff --git a/dom/public/coreEvents/nsIDOMMouseListener.h b/dom/public/coreEvents/nsIDOMMouseListener.h index 59224ff4bcb8..9c43ef2b32ad 100644 --- a/dom/public/coreEvents/nsIDOMMouseListener.h +++ b/dom/public/coreEvents/nsIDOMMouseListener.h @@ -36,7 +36,7 @@ class nsIDOMMouseListener : public nsIDOMEventListener { public: - static const nsIID& GetIID() { static nsIID iid = NS_IDOMMOUSELISTENER_IID; return iid; } + NS_DEFINE_STATIC_IID_ACCESSOR(NS_IDOMMOUSELISTENER_IID) /** * Processes a mouse down event diff --git a/dom/public/coreEvents/nsIDOMMouseMotionListener.h b/dom/public/coreEvents/nsIDOMMouseMotionListener.h index 41cd84fce02d..3d4d4fe85e09 100644 --- a/dom/public/coreEvents/nsIDOMMouseMotionListener.h +++ b/dom/public/coreEvents/nsIDOMMouseMotionListener.h @@ -35,7 +35,7 @@ class nsIDOMMouseMotionListener : public nsIDOMEventListener { public: - + NS_DEFINE_STATIC_IID_ACCESSOR(NS_IDOMMOUSEMOTIONLISTENER_IID) /** * Processes a mouse move event * @param aMouseEvent @see nsIDOMEvent.h diff --git a/dom/public/coreEvents/nsIDOMPaintListener.h b/dom/public/coreEvents/nsIDOMPaintListener.h index 7d6bff823328..452822a2fa6d 100644 --- a/dom/public/coreEvents/nsIDOMPaintListener.h +++ b/dom/public/coreEvents/nsIDOMPaintListener.h @@ -31,6 +31,7 @@ */ class nsIDOMPaintListener : public nsIDOMEventListener { public: + NS_DEFINE_STATIC_IID_ACCESSOR(NS_IDOMPAINTLISTENER_IID) /** * Processes a paint event * @param aEvent @see nsIDOMEvent.h diff --git a/dom/public/coreEvents/nsIDOMTextListener.h b/dom/public/coreEvents/nsIDOMTextListener.h index 20962bf61d23..c4e905d46b0a 100644 --- a/dom/public/coreEvents/nsIDOMTextListener.h +++ b/dom/public/coreEvents/nsIDOMTextListener.h @@ -34,7 +34,7 @@ class nsIDOMTextListener : public nsIDOMEventListener { public: - static const nsIID& GetIID() { static nsIID iid = NS_IDOMTEXTLISTENER_IID; return iid; } + NS_DEFINE_STATIC_IID_ACCESSOR(NS_IDOMTEXTLISTENER_IID) virtual nsresult HandleText(nsIDOMEvent* aTextEvent) = 0;