1 module org.eclipse.swt.internal.mozilla.nsIAppShell;
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.nsIEventQueue;
9 
10 const char[] NS_IAPPSHELL_IID_STR = "a0757c31-eeac-11d1-9ec1-00aa002fb821";
11 
12 const nsIID NS_IAPPSHELL_IID= 
13   {0xa0757c31, 0xeeac, 0x11d1, 
14     [ 0x9e, 0xc1, 0x00, 0xaa, 0x00, 0x2f, 0xb8, 0x21 ]};
15 
16 interface nsIAppShell : nsISupports {
17   static const char[] IID_STR = NS_IAPPSHELL_IID_STR;
18   static const nsIID IID = NS_IAPPSHELL_IID;
19 
20 extern(System):
21   nsresult Create(int *argc, char **argv);
22   nsresult Run();
23   nsresult Spinup();
24   nsresult Spindown();
25   nsresult ListenToEventQueue(nsIEventQueue * aQueue, PRBool aListen);
26   nsresult GetNativeEvent(PRBool * aRealEvent, void * * aEvent);
27   nsresult DispatchNativeEvent(PRBool aRealEvent, void * aEvent);
28   nsresult Exit();
29 }
30