1998-07-23 06:55:33 +04:00
|
|
|
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
|
|
|
|
*
|
1999-11-06 06:40:37 +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-07-23 06:55:33 +04:00
|
|
|
*
|
1999-11-06 06:40:37 +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-07-23 06:55:33 +04:00
|
|
|
*
|
1999-11-06 06:40:37 +03:00
|
|
|
* The Original Code is mozilla.org code.
|
|
|
|
*
|
|
|
|
* The Initial Developer of the Original Code is Netscape
|
1998-07-23 06:55:33 +04:00
|
|
|
* Communications Corporation. Portions created by Netscape are
|
1999-11-06 06:40:37 +03:00
|
|
|
* Copyright (C) 1998 Netscape Communications Corporation. All
|
|
|
|
* Rights Reserved.
|
|
|
|
*
|
|
|
|
* Contributor(s):
|
1998-07-23 06:55:33 +04:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef nsIPrivateDOMEvent_h__
|
|
|
|
#define nsIPrivateDOMEvent_h__
|
|
|
|
|
2001-07-16 06:40:48 +04:00
|
|
|
#include "nsEvent.h"
|
1998-07-23 06:55:33 +04:00
|
|
|
#include "nsISupports.h"
|
|
|
|
|
|
|
|
class nsIPresContext;
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Event listener manager interface.
|
|
|
|
*/
|
|
|
|
#define NS_IPRIVATEDOMEVENT_IID \
|
|
|
|
{ /* 80a98c80-2036-11d2-bd89-00805f8ae3f4 */ \
|
|
|
|
0x80a98c80, 0x2036, 0x11d2, \
|
|
|
|
{0xbd, 0x89, 0x00, 0x80, 0x5f, 0x8a, 0xe3, 0xf4} }
|
|
|
|
|
2000-05-16 15:35:12 +04:00
|
|
|
class nsIDOMEventTarget;
|
1999-11-03 10:11:45 +03:00
|
|
|
class nsIDOMEvent;
|
1999-05-21 23:27:02 +04:00
|
|
|
|
1998-07-23 06:55:33 +04:00
|
|
|
class nsIPrivateDOMEvent : public nsISupports {
|
|
|
|
|
|
|
|
public:
|
1999-05-21 23:27:02 +04:00
|
|
|
static const nsIID& GetIID() { static nsIID iid = NS_IPRIVATEDOMEVENT_IID; return iid; }
|
|
|
|
|
1998-07-23 06:55:33 +04:00
|
|
|
NS_IMETHOD DuplicatePrivateData() = 0;
|
2000-05-16 15:35:12 +04:00
|
|
|
NS_IMETHOD SetTarget(nsIDOMEventTarget* aTarget) = 0;
|
|
|
|
NS_IMETHOD SetCurrentTarget(nsIDOMEventTarget* aTarget) = 0;
|
2000-09-07 05:07:29 +04:00
|
|
|
NS_IMETHOD SetOriginalTarget(nsIDOMEventTarget* aTarget) = 0;
|
1999-12-16 01:04:43 +03:00
|
|
|
NS_IMETHOD IsDispatchStopped(PRBool* aIsDispatchPrevented) = 0;
|
2000-05-17 09:27:22 +04:00
|
|
|
NS_IMETHOD GetInternalNSEvent(nsEvent** aNSEvent) = 0;
|
2000-09-07 12:18:11 +04:00
|
|
|
NS_IMETHOD HasOriginalTarget(PRBool* aResult)=0;
|
1998-07-23 06:55:33 +04:00
|
|
|
};
|
|
|
|
|
1999-11-24 09:03:41 +03:00
|
|
|
extern nsresult NS_NewDOMEvent(nsIDOMEvent** aInstancePtrResult, nsIPresContext* aPresContext, nsEvent *aEvent);
|
2000-05-16 15:35:12 +04:00
|
|
|
extern nsresult NS_NewDOMUIEvent(nsIDOMEvent** aInstancePtrResult,
|
|
|
|
nsIPresContext* aPresContext,
|
2000-08-23 21:27:06 +04:00
|
|
|
const nsAReadableString& aEventType,
|
2000-05-16 15:35:12 +04:00
|
|
|
nsEvent *aEvent);
|
2000-11-27 10:55:20 +03:00
|
|
|
extern nsresult NS_NewDOMMutationEvent(nsIDOMEvent** aResult, nsIPresContext* aPresContext,
|
|
|
|
nsEvent* aEvent);
|
1998-07-23 06:55:33 +04:00
|
|
|
|
|
|
|
#endif // nsIPrivateDOMEvent_h__
|