1 module org.eclipse.swt.internal.mozilla.nsIDOMEvent;
2 
3 import java.lang.all;
4 
5 import org.eclipse.swt.internal.mozilla.Common;
6 import org.eclipse.swt.internal.mozilla.nsID;
7 import org.eclipse.swt.internal.mozilla.nsISupports;
8 import org.eclipse.swt.internal.mozilla.nsIDOMEventTarget;
9 import org.eclipse.swt.internal.mozilla.nsStringAPI;
10 
11 alias PRUint64 DOMTimeStamp;
12 
13 const char[] NS_IDOMEVENT_IID_STR = "a66b7b80-ff46-bd97-0080-5f8ae38add32";
14 
15 const nsIID NS_IDOMEVENT_IID= 
16   {0xa66b7b80, 0xff46, 0xbd97, 
17     [ 0x00, 0x80, 0x5f, 0x8a, 0xe3, 0x8a, 0xdd, 0x32 ]};
18 
19 interface nsIDOMEvent : nsISupports {
20 
21   static const char[] IID_STR = NS_IDOMEVENT_IID_STR;
22   static const nsIID IID = NS_IDOMEVENT_IID;
23 
24 extern(System):
25   enum { CAPTURING_PHASE = 1U };
26   enum { AT_TARGET = 2U };
27   enum { BUBBLING_PHASE = 3U };
28 
29   nsresult GetType(nsAString * aType);
30   nsresult GetTarget(nsIDOMEventTarget  *aTarget);
31   nsresult GetCurrentTarget(nsIDOMEventTarget  *aCurrentTarget);
32   nsresult GetEventPhase(PRUint16 *aEventPhase);
33   nsresult GetBubbles(PRBool *aBubbles);
34   nsresult GetCancelable(PRBool *aCancelable);
35   nsresult GetTimeStamp(DOMTimeStamp *aTimeStamp);
36   nsresult StopPropagation();
37   nsresult PreventDefault();
38   nsresult InitEvent(nsAString * eventTypeArg, PRBool canBubbleArg, PRBool cancelableArg);
39 
40 }
41