1 module org.eclipse.swt.internal.mozilla.nsIJSContextStack; 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 9 /****************************************************************************** 10 11 ******************************************************************************/ 12 13 const char[] NS_IJSCONTEXTSTACK_IID_STR = "c67d8270-3189-11d3-9885-006008962422"; 14 15 const nsIID NS_IJSCONTEXTSTACK_IID= 16 {0xc67d8270, 0x3189, 0x11d3, 17 [ 0x98, 0x85, 0x00, 0x60, 0x08, 0x96, 0x24, 0x22 ]}; 18 19 interface nsIJSContextStack : nsISupports { 20 21 static const char[] IID_STR = NS_IJSCONTEXTSTACK_IID_STR; 22 static const nsIID IID = NS_IJSCONTEXTSTACK_IID; 23 24 extern(System): 25 nsresult GetCount(PRInt32 *aCount); 26 nsresult Peek(JSContext * *_retval); 27 nsresult Pop(JSContext * *_retval); 28 nsresult Push(JSContext * cx); 29 30 } 31 32 /****************************************************************************** 33 34 ******************************************************************************/ 35 36 const char[] NS_IJSCONTEXTSTACKITERATOR_IID_STR = "c7e6b7aa-fc12-4ca7-b140-98c38b698961"; 37 38 const nsIID NS_IJSCONTEXTSTACKITERATOR_IID= 39 {0xc7e6b7aa, 0xfc12, 0x4ca7, 40 [ 0xb1, 0x40, 0x98, 0xc3, 0x8b, 0x69, 0x89, 0x61 ]}; 41 42 interface nsIJSContextStackIterator : nsISupports { 43 44 static const char[] IID_STR = NS_IJSCONTEXTSTACKITERATOR_IID_STR; 45 static const nsIID IID = NS_IJSCONTEXTSTACKITERATOR_IID; 46 47 extern(System): 48 nsresult Reset(nsIJSContextStack stack); 49 nsresult Done(PRBool *_retval); 50 nsresult Prev(JSContext * *_retval); 51 52 } 53 54 /****************************************************************************** 55 56 ******************************************************************************/ 57 58 const char[] NS_ITHREADJSCONTEXTSTACK_IID_STR = "a1339ae0-05c1-11d4-8f92-0010a4e73d9a"; 59 60 const nsIID NS_ITHREADJSCONTEXTSTACK_IID= 61 {0xa1339ae0, 0x05c1, 0x11d4, 62 [ 0x8f, 0x92, 0x00, 0x10, 0xa4, 0xe7, 0x3d, 0x9a ]}; 63 64 interface nsIThreadJSContextStack : nsIJSContextStack { 65 66 static const char[] IID_STR = NS_ITHREADJSCONTEXTSTACK_IID_STR; 67 static const nsIID IID = NS_ITHREADJSCONTEXTSTACK_IID; 68 69 extern(System): 70 nsresult GetSafeJSContext(JSContext * *aSafeJSContext); 71 nsresult SetSafeJSContext(JSContext * aSafeJSContext); 72 73 } 74