/* -*- 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.0 (the "NPL"); you may not use this file except in * compliance with the NPL. You may obtain a copy of the NPL at * http://www.mozilla.org/NPL/ * * Software distributed under the NPL is distributed on an "AS IS" basis, * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL * for the specific language governing rights and limitations under the * NPL. * * The Initial Developer of this code under the NPL is Netscape * Communications Corporation. Portions created by Netscape are * Copyright (C) 1998 Netscape Communications Corporation. All Rights * Reserved. */ /* AUTO-GENERATED. DO NOT EDIT!!! */ #ifndef nsIDOMEvent_h__ #define nsIDOMEvent_h__ #include "nsISupports.h" #include "nsString.h" #include "nsIScriptContext.h" class nsIDOMNode; #define NS_IDOMEVENT_IID \ { 0xa66b7b80, 0xff46, 0xbd97, \ { 0x00, 0x80, 0x5f, 0x8a, 0xe3, 0x8a, 0xdd, 0x32 } } class nsIDOMEvent : public nsISupports { public: static const nsIID& GetIID() { static nsIID iid = NS_IDOMEVENT_IID; return iid; } enum { BUBBLING_PHASE = 1, CAPTURING_PHASE = 2, AT_TARGET = 3 }; NS_IMETHOD GetType(nsString& aType)=0; NS_IMETHOD GetTarget(nsIDOMNode** aTarget)=0; NS_IMETHOD GetCurrentNode(nsIDOMNode** aCurrentNode)=0; NS_IMETHOD GetEventPhase(PRUint16* aEventPhase)=0; NS_IMETHOD PreventBubble()=0; NS_IMETHOD PreventCapture()=0; NS_IMETHOD PreventDefault()=0; }; #define NS_DECL_IDOMEVENT \ NS_IMETHOD GetType(nsString& aType); \ NS_IMETHOD GetTarget(nsIDOMNode** aTarget); \ NS_IMETHOD GetCurrentNode(nsIDOMNode** aCurrentNode); \ NS_IMETHOD GetEventPhase(PRUint16* aEventPhase); \ NS_IMETHOD PreventBubble(); \ NS_IMETHOD PreventCapture(); \ NS_IMETHOD PreventDefault(); \ #define NS_FORWARD_IDOMEVENT(_to) \ NS_IMETHOD GetType(nsString& aType) { return _to GetType(aType); } \ NS_IMETHOD GetTarget(nsIDOMNode** aTarget) { return _to GetTarget(aTarget); } \ NS_IMETHOD GetCurrentNode(nsIDOMNode** aCurrentNode) { return _to GetCurrentNode(aCurrentNode); } \ NS_IMETHOD GetEventPhase(PRUint16* aEventPhase) { return _to GetEventPhase(aEventPhase); } \ NS_IMETHOD PreventBubble() { return _to PreventBubble(); } \ NS_IMETHOD PreventCapture() { return _to PreventCapture(); } \ NS_IMETHOD PreventDefault() { return _to PreventDefault(); } \ extern "C" NS_DOM nsresult NS_InitEventClass(nsIScriptContext *aContext, void **aPrototype); extern "C" NS_DOM nsresult NS_NewScriptEvent(nsIScriptContext *aContext, nsISupports *aSupports, nsISupports *aParent, void **aReturn); #endif // nsIDOMEvent_h__