From a841b576889f5d1a643e99fecabcf05234d0aa2d Mon Sep 17 00:00:00 2001 From: "hyatt%netscape.com" Date: Mon, 6 Aug 2001 22:15:17 +0000 Subject: [PATCH] Fix for 71106. r=jag, sr=jst --- dom/public/coreEvents/MANIFEST | 2 +- dom/public/coreEvents/Makefile.in | 2 +- dom/public/coreEvents/makefile.win | 2 +- dom/public/coreEvents/nsIDOMMenuListener.h | 0 dom/public/coreEvents/nsIDOMXULListener.h | 50 ++++++++++++++++++++++ 5 files changed, 53 insertions(+), 3 deletions(-) delete mode 100644 dom/public/coreEvents/nsIDOMMenuListener.h create mode 100644 dom/public/coreEvents/nsIDOMXULListener.h diff --git a/dom/public/coreEvents/MANIFEST b/dom/public/coreEvents/MANIFEST index beaa683ccda..a226681057c 100644 --- a/dom/public/coreEvents/MANIFEST +++ b/dom/public/coreEvents/MANIFEST @@ -15,7 +15,7 @@ nsIDOMDragListener.h nsIDOMPaintListener.h nsIDOMTextListener.h nsIDOMCompositionListener.h -nsIDOMMenuListener.h +nsIDOMXULListener.h nsIDOMScrollListener.h nsIDOMContextMenuListener.h diff --git a/dom/public/coreEvents/Makefile.in b/dom/public/coreEvents/Makefile.in index 09e9e6f508c..973e46478d9 100644 --- a/dom/public/coreEvents/Makefile.in +++ b/dom/public/coreEvents/Makefile.in @@ -42,7 +42,7 @@ EXPORTS = \ nsIDOMDragListener.h \ nsIDOMTextListener.h \ nsIDOMCompositionListener.h \ - nsIDOMMenuListener.h \ + nsIDOMXULListener.h \ nsIDOMScrollListener.h \ nsIDOMContextMenuListener.h \ $(NULL) diff --git a/dom/public/coreEvents/makefile.win b/dom/public/coreEvents/makefile.win index 9040de03478..9f96f8ee13d 100644 --- a/dom/public/coreEvents/makefile.win +++ b/dom/public/coreEvents/makefile.win @@ -38,7 +38,7 @@ EXPORTS = \ nsIDOMDragListener.h \ nsIDOMTextListener.h \ nsIDOMCompositionListener.h \ - nsIDOMMenuListener.h \ + nsIDOMXULListener.h \ nsIDOMScrollListener.h \ nsIDOMContextMenuListener.h \ $(NULL) diff --git a/dom/public/coreEvents/nsIDOMMenuListener.h b/dom/public/coreEvents/nsIDOMMenuListener.h deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/dom/public/coreEvents/nsIDOMXULListener.h b/dom/public/coreEvents/nsIDOMXULListener.h new file mode 100644 index 00000000000..6f3b30c06e1 --- /dev/null +++ b/dom/public/coreEvents/nsIDOMXULListener.h @@ -0,0 +1,50 @@ +/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- + * + * The contents of this file are subject to the Netscape Public + * License Version 1.1 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.mozilla.org/NPL/ + * + * Software distributed under the License is distributed on an "AS + * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or + * implied. See the License for the specific language governing + * rights and limitations under the License. + * + * The Original Code is mozilla.org code. + * + * The Initial Developer of the Original Code is Netscape + * Communications Corporation. Portions created by Netscape are + * Copyright (C) 1998 Netscape Communications Corporation. All + * Rights Reserved. + * + * Contributor(s): + */ + + +#ifndef nsIDOMXULListener_h__ +#define nsIDOMXULListener_h__ + +#include "nsIDOMEvent.h" +#include "nsIDOMEventListener.h" + +// {0730C841-42F3-11d3-97FA-00400553EEF0} +#define NS_IDOMXULLISTENER_IID \ +{ 0x730c841, 0x42f3, 0x11d3, { 0x97, 0xfa, 0x0, 0x40, 0x5, 0x53, 0xee, 0xf0 } } + +class nsIDOMXULListener : public nsIDOMEventListener { + +public: + NS_DEFINE_STATIC_IID_ACCESSOR(NS_IDOMXULLISTENER_IID) + + NS_IMETHOD PopupShowing(nsIDOMEvent* aEvent) = 0; + NS_IMETHOD PopupShown(nsIDOMEvent* aEvent) = 0; + NS_IMETHOD PopupHiding(nsIDOMEvent* aEvent) = 0; + NS_IMETHOD PopupHidden(nsIDOMEvent* aEvent) = 0; + + NS_IMETHOD Close(nsIDOMEvent* aEvent) = 0; + NS_IMETHOD Command(nsIDOMEvent* aEvent) = 0; + NS_IMETHOD Broadcast(nsIDOMEvent* aEvent) = 0; + NS_IMETHOD CommandUpdate(nsIDOMEvent* aEvent) = 0; +}; + +#endif // nsIDOMXULListener_h__