Mercurial > projects > dwt-linux
comparison dwt/internal/mozilla.old/nsIEventQueue.d @ 288:4ee8c4237614
old branches... commit by mistake
author | John Reimer<terminal.node@gmail.com> |
---|---|
date | Tue, 05 Aug 2008 18:00:50 -0700 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
287:9cbe6285f746 | 288:4ee8c4237614 |
---|---|
1 module dwt.internal.mozilla.nsIEventQueue; | |
2 | |
3 import dwt.internal.mozilla.Common; | |
4 import dwt.internal.mozilla.nsID; | |
5 import dwt.internal.mozilla.nsIEventTarget; | |
6 | |
7 const char[] NS_IEVENTQUEUE_IID_STR = "176afb41-00a4-11d3-9f2a-00400553eef0"; | |
8 const nsIID NS_IEVENTQUEUE_IID= | |
9 {0x176afb41, 0x00a4, 0x11d3, | |
10 [ 0x9f, 0x2a, 0x00, 0x40, 0x05, 0x53, 0xee, 0xf0 ]}; | |
11 | |
12 extern(System) | |
13 | |
14 interface nsIEventQueue : nsIEventTarget { | |
15 static const char[] IID_STR = NS_IEVENTQUEUE_IID_STR; | |
16 static const nsIID IID = NS_IEVENTQUEUE_IID; | |
17 | |
18 nsresult InitEvent(PLEvent * aEvent, void * owner, PLHandleEventProc handler, PLDestroyEventProc destructor); | |
19 nsresult PostSynchronousEvent(PLEvent * aEvent, void * *aResult); | |
20 nsresult PendingEvents(PRBool *_retval); | |
21 nsresult ProcessPendingEvents(); | |
22 nsresult EventLoop(); | |
23 nsresult EventAvailable(PRBool * aResult); | |
24 nsresult GetEvent(PLEvent * *_retval); | |
25 nsresult HandleEvent(PLEvent * aEvent); | |
26 nsresult WaitForEvent(PLEvent * *_retval); | |
27 PRInt32 GetEventQueueSelectFD(); | |
28 nsresult Init(PRBool aNative); | |
29 nsresult InitFromPRThread(PRThread * thread, PRBool aNative); | |
30 nsresult InitFromPLQueue(PLEventQueue * aQueue); | |
31 nsresult EnterMonitor(); | |
32 nsresult ExitMonitor(); | |
33 nsresult RevokeEvents(void * owner); | |
34 nsresult GetPLEventQueue(PLEventQueue * *_retval); | |
35 nsresult IsQueueNative(PRBool *_retval); | |
36 nsresult StopAcceptingEvents(); | |
37 | |
38 } | |
39 |