1999-03-29 02:29:32 +04:00
|
|
|
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
|
|
|
|
*
|
1999-11-25 02:58:43 +03:00
|
|
|
* 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/
|
1999-03-29 02:29:32 +04:00
|
|
|
*
|
1999-11-25 02:58:43 +03:00
|
|
|
* 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.
|
1999-03-29 02:29:32 +04:00
|
|
|
*
|
1999-11-25 02:58:43 +03:00
|
|
|
* The Original Code is mozilla.org code.
|
|
|
|
*
|
|
|
|
* The Initial Developer of the Original Code is Netscape
|
1999-03-29 02:29:32 +04:00
|
|
|
* Communications Corporation. Portions created by Netscape are
|
1999-11-25 02:58:43 +03:00
|
|
|
* Copyright (C) 1998 Netscape Communications Corporation. All
|
|
|
|
* Rights Reserved.
|
|
|
|
*
|
|
|
|
* Contributor(s):
|
1999-03-29 02:29:32 +04:00
|
|
|
*/
|
|
|
|
/* AUTO-GENERATED. DO NOT EDIT!!! */
|
|
|
|
|
|
|
|
#ifndef nsIDOMEventTarget_h__
|
|
|
|
#define nsIDOMEventTarget_h__
|
|
|
|
|
|
|
|
#include "nsISupports.h"
|
|
|
|
#include "nsString.h"
|
|
|
|
#include "nsIScriptContext.h"
|
|
|
|
|
|
|
|
class nsIDOMEventListener;
|
2000-05-16 15:35:12 +04:00
|
|
|
class nsIDOMEvent;
|
1999-03-29 02:29:32 +04:00
|
|
|
|
|
|
|
#define NS_IDOMEVENTTARGET_IID \
|
|
|
|
{ 0x1c773b30, 0xd1cf, 0x11d2, \
|
|
|
|
{ 0xbd, 0x95, 0x00, 0x80, 0x5f, 0x8a, 0xe3, 0xf4 } }
|
|
|
|
|
|
|
|
class nsIDOMEventTarget : public nsISupports {
|
|
|
|
public:
|
|
|
|
static const nsIID& GetIID() { static nsIID iid = NS_IDOMEVENTTARGET_IID; return iid; }
|
|
|
|
|
1999-07-19 23:54:34 +04:00
|
|
|
NS_IMETHOD AddEventListener(const nsString& aType, nsIDOMEventListener* aListener, PRBool aUseCapture)=0;
|
1999-03-29 02:29:32 +04:00
|
|
|
|
1999-07-19 23:54:34 +04:00
|
|
|
NS_IMETHOD RemoveEventListener(const nsString& aType, nsIDOMEventListener* aListener, PRBool aUseCapture)=0;
|
2000-05-16 15:35:12 +04:00
|
|
|
|
|
|
|
NS_IMETHOD DispatchEvent(nsIDOMEvent* aEvt)=0;
|
1999-03-29 02:29:32 +04:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
#define NS_DECL_IDOMEVENTTARGET \
|
1999-07-19 23:54:34 +04:00
|
|
|
NS_IMETHOD AddEventListener(const nsString& aType, nsIDOMEventListener* aListener, PRBool aUseCapture); \
|
|
|
|
NS_IMETHOD RemoveEventListener(const nsString& aType, nsIDOMEventListener* aListener, PRBool aUseCapture); \
|
2000-05-16 15:35:12 +04:00
|
|
|
NS_IMETHOD DispatchEvent(nsIDOMEvent* aEvt); \
|
1999-03-29 02:29:32 +04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#define NS_FORWARD_IDOMEVENTTARGET(_to) \
|
1999-07-19 23:54:34 +04:00
|
|
|
NS_IMETHOD AddEventListener(const nsString& aType, nsIDOMEventListener* aListener, PRBool aUseCapture) { return _to AddEventListener(aType, aListener, aUseCapture); } \
|
|
|
|
NS_IMETHOD RemoveEventListener(const nsString& aType, nsIDOMEventListener* aListener, PRBool aUseCapture) { return _to RemoveEventListener(aType, aListener, aUseCapture); } \
|
2000-05-16 15:35:12 +04:00
|
|
|
NS_IMETHOD DispatchEvent(nsIDOMEvent* aEvt) { return _to DispatchEvent(aEvt); } \
|
1999-03-29 02:29:32 +04:00
|
|
|
|
|
|
|
|
|
|
|
#endif // nsIDOMEventTarget_h__
|