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