root/dwt/internal/mozilla/nsIEventQueue.d

Revision 327:b0d7eb5bd76c, 1.4 kB (checked in by John Reimer <terminal.node@gmail.com>, 3 years ago)

Adding Mozilla XPCOM interfaces from dwt-linux to dwt-win

Line 
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 interface nsIEventQueue : nsIEventTarget {
13   static const char[] IID_STR = NS_IEVENTQUEUE_IID_STR;
14   static const nsIID IID = NS_IEVENTQUEUE_IID;
15
16 extern(System):
17   nsresult InitEvent(PLEvent * aEvent, void * owner, PLHandleEventProc handler, PLDestroyEventProc destructor);
18   nsresult PostSynchronousEvent(PLEvent * aEvent, void * *aResult);
19   nsresult PendingEvents(PRBool *_retval);
20   nsresult ProcessPendingEvents();
21   nsresult EventLoop();
22   nsresult EventAvailable(PRBool * aResult);
23   nsresult GetEvent(PLEvent * *_retval);
24   nsresult HandleEvent(PLEvent * aEvent);
25   nsresult WaitForEvent(PLEvent * *_retval);
26   PRInt32  GetEventQueueSelectFD();
27   nsresult Init(PRBool aNative);
28   nsresult InitFromPRThread(PRThread * thread, PRBool aNative);
29   nsresult InitFromPLQueue(PLEventQueue * aQueue);
30   nsresult EnterMonitor();
31   nsresult ExitMonitor();
32   nsresult RevokeEvents(void * owner);
33   nsresult GetPLEventQueue(PLEventQueue * *_retval);
34   nsresult IsQueueNative(PRBool *_retval);
35   nsresult StopAcceptingEvents();
36
37 }
Note: See TracBrowser for help on using the browser.