annotate dwt/internal/mozilla/nsIDOMEvent.d @ 327:b0d7eb5bd76c

Adding Mozilla XPCOM interfaces from dwt-linux to dwt-win
author John Reimer <terminal.node@gmail.com>
date Fri, 02 Jan 2009 17:45:10 -0800
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
327
b0d7eb5bd76c Adding Mozilla XPCOM interfaces from dwt-linux to dwt-win
John Reimer <terminal.node@gmail.com>
parents:
diff changeset
1 module dwt.internal.mozilla.nsIDOMEvent;
b0d7eb5bd76c Adding Mozilla XPCOM interfaces from dwt-linux to dwt-win
John Reimer <terminal.node@gmail.com>
parents:
diff changeset
2
b0d7eb5bd76c Adding Mozilla XPCOM interfaces from dwt-linux to dwt-win
John Reimer <terminal.node@gmail.com>
parents:
diff changeset
3 import dwt.internal.mozilla.Common;
b0d7eb5bd76c Adding Mozilla XPCOM interfaces from dwt-linux to dwt-win
John Reimer <terminal.node@gmail.com>
parents:
diff changeset
4 import dwt.internal.mozilla.nsID;
b0d7eb5bd76c Adding Mozilla XPCOM interfaces from dwt-linux to dwt-win
John Reimer <terminal.node@gmail.com>
parents:
diff changeset
5 import dwt.internal.mozilla.nsISupports;
b0d7eb5bd76c Adding Mozilla XPCOM interfaces from dwt-linux to dwt-win
John Reimer <terminal.node@gmail.com>
parents:
diff changeset
6 import dwt.internal.mozilla.nsIDOMEventTarget;
b0d7eb5bd76c Adding Mozilla XPCOM interfaces from dwt-linux to dwt-win
John Reimer <terminal.node@gmail.com>
parents:
diff changeset
7 import dwt.internal.mozilla.nsStringAPI;
b0d7eb5bd76c Adding Mozilla XPCOM interfaces from dwt-linux to dwt-win
John Reimer <terminal.node@gmail.com>
parents:
diff changeset
8
b0d7eb5bd76c Adding Mozilla XPCOM interfaces from dwt-linux to dwt-win
John Reimer <terminal.node@gmail.com>
parents:
diff changeset
9 alias PRUint64 DOMTimeStamp;
b0d7eb5bd76c Adding Mozilla XPCOM interfaces from dwt-linux to dwt-win
John Reimer <terminal.node@gmail.com>
parents:
diff changeset
10
b0d7eb5bd76c Adding Mozilla XPCOM interfaces from dwt-linux to dwt-win
John Reimer <terminal.node@gmail.com>
parents:
diff changeset
11 const char[] NS_IDOMEVENT_IID_STR = "a66b7b80-ff46-bd97-0080-5f8ae38add32";
b0d7eb5bd76c Adding Mozilla XPCOM interfaces from dwt-linux to dwt-win
John Reimer <terminal.node@gmail.com>
parents:
diff changeset
12
b0d7eb5bd76c Adding Mozilla XPCOM interfaces from dwt-linux to dwt-win
John Reimer <terminal.node@gmail.com>
parents:
diff changeset
13 const nsIID NS_IDOMEVENT_IID=
b0d7eb5bd76c Adding Mozilla XPCOM interfaces from dwt-linux to dwt-win
John Reimer <terminal.node@gmail.com>
parents:
diff changeset
14 {0xa66b7b80, 0xff46, 0xbd97,
b0d7eb5bd76c Adding Mozilla XPCOM interfaces from dwt-linux to dwt-win
John Reimer <terminal.node@gmail.com>
parents:
diff changeset
15 [ 0x00, 0x80, 0x5f, 0x8a, 0xe3, 0x8a, 0xdd, 0x32 ]};
b0d7eb5bd76c Adding Mozilla XPCOM interfaces from dwt-linux to dwt-win
John Reimer <terminal.node@gmail.com>
parents:
diff changeset
16
b0d7eb5bd76c Adding Mozilla XPCOM interfaces from dwt-linux to dwt-win
John Reimer <terminal.node@gmail.com>
parents:
diff changeset
17 interface nsIDOMEvent : nsISupports {
b0d7eb5bd76c Adding Mozilla XPCOM interfaces from dwt-linux to dwt-win
John Reimer <terminal.node@gmail.com>
parents:
diff changeset
18
b0d7eb5bd76c Adding Mozilla XPCOM interfaces from dwt-linux to dwt-win
John Reimer <terminal.node@gmail.com>
parents:
diff changeset
19 static const char[] IID_STR = NS_IDOMEVENT_IID_STR;
b0d7eb5bd76c Adding Mozilla XPCOM interfaces from dwt-linux to dwt-win
John Reimer <terminal.node@gmail.com>
parents:
diff changeset
20 static const nsIID IID = NS_IDOMEVENT_IID;
b0d7eb5bd76c Adding Mozilla XPCOM interfaces from dwt-linux to dwt-win
John Reimer <terminal.node@gmail.com>
parents:
diff changeset
21
b0d7eb5bd76c Adding Mozilla XPCOM interfaces from dwt-linux to dwt-win
John Reimer <terminal.node@gmail.com>
parents:
diff changeset
22 extern(System):
b0d7eb5bd76c Adding Mozilla XPCOM interfaces from dwt-linux to dwt-win
John Reimer <terminal.node@gmail.com>
parents:
diff changeset
23 enum { CAPTURING_PHASE = 1U };
b0d7eb5bd76c Adding Mozilla XPCOM interfaces from dwt-linux to dwt-win
John Reimer <terminal.node@gmail.com>
parents:
diff changeset
24 enum { AT_TARGET = 2U };
b0d7eb5bd76c Adding Mozilla XPCOM interfaces from dwt-linux to dwt-win
John Reimer <terminal.node@gmail.com>
parents:
diff changeset
25 enum { BUBBLING_PHASE = 3U };
b0d7eb5bd76c Adding Mozilla XPCOM interfaces from dwt-linux to dwt-win
John Reimer <terminal.node@gmail.com>
parents:
diff changeset
26
b0d7eb5bd76c Adding Mozilla XPCOM interfaces from dwt-linux to dwt-win
John Reimer <terminal.node@gmail.com>
parents:
diff changeset
27 nsresult GetType(nsAString * aType);
b0d7eb5bd76c Adding Mozilla XPCOM interfaces from dwt-linux to dwt-win
John Reimer <terminal.node@gmail.com>
parents:
diff changeset
28 nsresult GetTarget(nsIDOMEventTarget *aTarget);
b0d7eb5bd76c Adding Mozilla XPCOM interfaces from dwt-linux to dwt-win
John Reimer <terminal.node@gmail.com>
parents:
diff changeset
29 nsresult GetCurrentTarget(nsIDOMEventTarget *aCurrentTarget);
b0d7eb5bd76c Adding Mozilla XPCOM interfaces from dwt-linux to dwt-win
John Reimer <terminal.node@gmail.com>
parents:
diff changeset
30 nsresult GetEventPhase(PRUint16 *aEventPhase);
b0d7eb5bd76c Adding Mozilla XPCOM interfaces from dwt-linux to dwt-win
John Reimer <terminal.node@gmail.com>
parents:
diff changeset
31 nsresult GetBubbles(PRBool *aBubbles);
b0d7eb5bd76c Adding Mozilla XPCOM interfaces from dwt-linux to dwt-win
John Reimer <terminal.node@gmail.com>
parents:
diff changeset
32 nsresult GetCancelable(PRBool *aCancelable);
b0d7eb5bd76c Adding Mozilla XPCOM interfaces from dwt-linux to dwt-win
John Reimer <terminal.node@gmail.com>
parents:
diff changeset
33 nsresult GetTimeStamp(DOMTimeStamp *aTimeStamp);
b0d7eb5bd76c Adding Mozilla XPCOM interfaces from dwt-linux to dwt-win
John Reimer <terminal.node@gmail.com>
parents:
diff changeset
34 nsresult StopPropagation();
b0d7eb5bd76c Adding Mozilla XPCOM interfaces from dwt-linux to dwt-win
John Reimer <terminal.node@gmail.com>
parents:
diff changeset
35 nsresult PreventDefault();
b0d7eb5bd76c Adding Mozilla XPCOM interfaces from dwt-linux to dwt-win
John Reimer <terminal.node@gmail.com>
parents:
diff changeset
36 nsresult InitEvent(nsAString * eventTypeArg, PRBool canBubbleArg, PRBool cancelableArg);
b0d7eb5bd76c Adding Mozilla XPCOM interfaces from dwt-linux to dwt-win
John Reimer <terminal.node@gmail.com>
parents:
diff changeset
37
b0d7eb5bd76c Adding Mozilla XPCOM interfaces from dwt-linux to dwt-win
John Reimer <terminal.node@gmail.com>
parents:
diff changeset
38 }
b0d7eb5bd76c Adding Mozilla XPCOM interfaces from dwt-linux to dwt-win
John Reimer <terminal.node@gmail.com>
parents:
diff changeset
39