1998-06-07 11:41:39 +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/
|
1998-06-07 11:41:39 +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.
|
1998-06-07 11:41:39 +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
|
1998-06-07 11:41:39 +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):
|
1998-06-07 11:41:39 +04:00
|
|
|
*/
|
1998-07-17 08:52:12 +04:00
|
|
|
/* AUTO-GENERATED. DO NOT EDIT!!! */
|
1998-06-07 11:41:39 +04:00
|
|
|
|
|
|
|
#ifndef nsIDOMEvent_h__
|
|
|
|
#define nsIDOMEvent_h__
|
|
|
|
|
|
|
|
#include "nsISupports.h"
|
1998-07-17 08:52:12 +04:00
|
|
|
#include "nsString.h"
|
|
|
|
#include "nsIScriptContext.h"
|
|
|
|
|
1998-06-07 11:41:39 +04:00
|
|
|
class nsIDOMNode;
|
|
|
|
|
|
|
|
#define NS_IDOMEVENT_IID \
|
1999-05-19 03:51:04 +04:00
|
|
|
{ 0xa66b7b80, 0xff46, 0xbd97, \
|
|
|
|
{ 0x00, 0x80, 0x5f, 0x8a, 0xe3, 0x8a, 0xdd, 0x32 } }
|
1998-06-07 11:41:39 +04:00
|
|
|
|
|
|
|
class nsIDOMEvent : public nsISupports {
|
|
|
|
public:
|
1999-03-03 22:48:57 +03:00
|
|
|
static const nsIID& GetIID() { static nsIID iid = NS_IDOMEVENT_IID; return iid; }
|
1998-07-17 23:25:14 +04:00
|
|
|
enum {
|
1999-05-19 03:51:04 +04:00
|
|
|
BUBBLING_PHASE = 1,
|
|
|
|
CAPTURING_PHASE = 2,
|
|
|
|
AT_TARGET = 3
|
1998-07-17 23:25:14 +04:00
|
|
|
};
|
1998-07-17 08:52:12 +04:00
|
|
|
|
|
|
|
NS_IMETHOD GetType(nsString& aType)=0;
|
1999-03-20 02:36:20 +03:00
|
|
|
|
1998-07-17 08:52:12 +04:00
|
|
|
NS_IMETHOD GetTarget(nsIDOMNode** aTarget)=0;
|
|
|
|
|
1999-05-19 03:51:04 +04:00
|
|
|
NS_IMETHOD GetCurrentNode(nsIDOMNode** aCurrentNode)=0;
|
1998-07-17 08:52:12 +04:00
|
|
|
|
1999-05-19 03:51:04 +04:00
|
|
|
NS_IMETHOD GetEventPhase(PRUint16* aEventPhase)=0;
|
1998-09-03 05:19:58 +04:00
|
|
|
|
1999-11-03 10:11:45 +03:00
|
|
|
NS_IMETHOD GetBubbles(PRBool* aBubbles)=0;
|
|
|
|
|
|
|
|
NS_IMETHOD GetCancelable(PRBool* aCancelable)=0;
|
|
|
|
|
1999-05-19 03:51:04 +04:00
|
|
|
NS_IMETHOD PreventBubble()=0;
|
1998-07-17 08:52:12 +04:00
|
|
|
|
1999-05-19 03:51:04 +04:00
|
|
|
NS_IMETHOD PreventCapture()=0;
|
1998-07-17 08:52:12 +04:00
|
|
|
|
1999-05-19 03:51:04 +04:00
|
|
|
NS_IMETHOD PreventDefault()=0;
|
1999-11-03 10:11:45 +03:00
|
|
|
|
|
|
|
NS_IMETHOD InitEvent(const nsString& aEventTypeArg, PRBool aCanBubbleArg, PRBool aCancelableArg)=0;
|
1998-07-17 08:52:12 +04:00
|
|
|
};
|
1998-06-07 11:41:39 +04:00
|
|
|
|
1998-07-17 08:52:12 +04:00
|
|
|
|
1998-08-04 04:08:29 +04:00
|
|
|
#define NS_DECL_IDOMEVENT \
|
|
|
|
NS_IMETHOD GetType(nsString& aType); \
|
|
|
|
NS_IMETHOD GetTarget(nsIDOMNode** aTarget); \
|
1999-05-19 03:51:04 +04:00
|
|
|
NS_IMETHOD GetCurrentNode(nsIDOMNode** aCurrentNode); \
|
|
|
|
NS_IMETHOD GetEventPhase(PRUint16* aEventPhase); \
|
1999-11-03 10:11:45 +03:00
|
|
|
NS_IMETHOD GetBubbles(PRBool* aBubbles); \
|
|
|
|
NS_IMETHOD GetCancelable(PRBool* aCancelable); \
|
1999-05-19 03:51:04 +04:00
|
|
|
NS_IMETHOD PreventBubble(); \
|
|
|
|
NS_IMETHOD PreventCapture(); \
|
|
|
|
NS_IMETHOD PreventDefault(); \
|
1999-11-03 10:11:45 +03:00
|
|
|
NS_IMETHOD InitEvent(const nsString& aEventTypeArg, PRBool aCanBubbleArg, PRBool aCancelableArg); \
|
1998-08-04 04:08:29 +04:00
|
|
|
|
|
|
|
|
|
|
|
|
1998-08-12 21:57:25 +04:00
|
|
|
#define NS_FORWARD_IDOMEVENT(_to) \
|
1999-04-16 22:08:20 +04:00
|
|
|
NS_IMETHOD GetType(nsString& aType) { return _to GetType(aType); } \
|
|
|
|
NS_IMETHOD GetTarget(nsIDOMNode** aTarget) { return _to GetTarget(aTarget); } \
|
1999-05-19 03:51:04 +04:00
|
|
|
NS_IMETHOD GetCurrentNode(nsIDOMNode** aCurrentNode) { return _to GetCurrentNode(aCurrentNode); } \
|
|
|
|
NS_IMETHOD GetEventPhase(PRUint16* aEventPhase) { return _to GetEventPhase(aEventPhase); } \
|
1999-11-03 10:11:45 +03:00
|
|
|
NS_IMETHOD GetBubbles(PRBool* aBubbles) { return _to GetBubbles(aBubbles); } \
|
|
|
|
NS_IMETHOD GetCancelable(PRBool* aCancelable) { return _to GetCancelable(aCancelable); } \
|
1999-05-19 03:51:04 +04:00
|
|
|
NS_IMETHOD PreventBubble() { return _to PreventBubble(); } \
|
|
|
|
NS_IMETHOD PreventCapture() { return _to PreventCapture(); } \
|
|
|
|
NS_IMETHOD PreventDefault() { return _to PreventDefault(); } \
|
1999-11-03 10:11:45 +03:00
|
|
|
NS_IMETHOD InitEvent(const nsString& aEventTypeArg, PRBool aCanBubbleArg, PRBool aCancelableArg) { return _to InitEvent(aEventTypeArg, aCanBubbleArg, aCancelableArg); } \
|
1998-07-17 08:52:12 +04:00
|
|
|
|
|
|
|
|
1999-02-17 11:33:27 +03:00
|
|
|
extern "C" NS_DOM nsresult NS_InitEventClass(nsIScriptContext *aContext, void **aPrototype);
|
1998-07-17 08:52:12 +04:00
|
|
|
|
1998-09-05 03:03:16 +04:00
|
|
|
extern "C" NS_DOM nsresult NS_NewScriptEvent(nsIScriptContext *aContext, nsISupports *aSupports, nsISupports *aParent, void **aReturn);
|
1998-07-17 08:52:12 +04:00
|
|
|
|
1998-06-07 11:41:39 +04:00
|
|
|
#endif // nsIDOMEvent_h__
|