comparison dwt/internal/mozilla/nsIEventQueue.d @ 272:dd63eb078d7a

xpcom interfaces necessary for browser code -- source adapted from dxpcom project; these modules still need to be tested and then integrated into dwt browser.
author John Reimer<terminal.node@gmail.com>
date Fri, 18 Jul 2008 05:32:53 -0700
parents
children 942da4b6558a
comparison
equal deleted inserted replaced
271:d472fae79005 272:dd63eb078d7a
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