1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
use nsID;
macro_rules! nonidl {
($name:ident, $iid:expr) => {
#[repr(C)]
pub struct $name {
_vtable: *const $crate::interfaces::nsISupportsVTable,
}
unsafe impl $crate::XpCom for $name {
const IID: $crate::nsIID = $iid;
}
unsafe impl $crate::RefCounted for $name {
#[inline]
unsafe fn addref(&self) {
self.AddRef();
}
#[inline]
unsafe fn release(&self) {
self.Release();
}
}
impl ::std::ops::Deref for $name {
type Target = $crate::interfaces::nsISupports;
#[inline]
fn deref(&self) -> &$crate::interfaces::nsISupports {
unsafe {
::std::mem::transmute(self)
}
}
}
}
}
nonidl!(nsIDocument,
nsID(0xce1f7627, 0x7109, 0x4977,
[0xba, 0x77, 0x49, 0x0f, 0xfd, 0xe0, 0x7a, 0xaa]));
nonidl!(nsINode,
nsID(0x70ba4547, 0x7699, 0x44fc,
[0xb3, 0x20, 0x52, 0xdb, 0xe3, 0xd1, 0xf9, 0x0a]));
nonidl!(nsIContent,
nsID(0x8e1bab9d, 0x8815, 0x4d2c,
[0xa2, 0x4d, 0x7a, 0xba, 0x52, 0x39, 0xdc, 0x22]));
nonidl!(nsIConsoleReportCollector,
nsID(0xdd98a481, 0xd2c4, 0x4203,
[0x8d, 0xfa, 0x85, 0xbf, 0xd7, 0xdc, 0xd7, 0x05]));
nonidl!(nsIGlobalObject,
nsID(0x11afa8be, 0xd997, 0x4e07,
[0xa6, 0xa3, 0x6f, 0x87, 0x2e, 0xc3, 0xee, 0x7f]));
nonidl!(nsIScriptElement,
nsID(0xe60fca9b, 0x1b96, 0x4e4e,
[0xa9, 0xb4, 0xdc, 0x98, 0x4f, 0x88, 0x3f, 0x9c]));
nonidl!(nsPIDOMWindowOuter,
nsID(0x769693d4, 0xb009, 0x4fe2,
[0xaf, 0x18, 0x7d, 0xc8, 0xdf, 0x74, 0x96, 0xdf]));
nonidl!(nsPIDOMWindowInner,
nsID(0x775dabc9, 0x8f43, 0x4277,
[0x9a, 0xdb, 0xf1, 0x99, 0x0d, 0x77, 0xcf, 0xfb]));
nonidl!(nsIScriptContext,
nsID(0x54cbe9cf, 0x7282, 0x421a,
[0x91, 0x6f, 0xd0, 0x70, 0x73, 0xde, 0xb8, 0xc0]));
nonidl!(nsIScriptGlobalObject,
nsID(0x876f83bd, 0x6314, 0x460a,
[0xa0, 0x45, 0x1c, 0x8f, 0x46, 0x2f, 0xb8, 0xe1]));
nonidl!(nsIScrollObserver,
nsID(0xaa5026eb, 0x2f88, 0x4026,
[0xa4, 0x6b, 0xf4, 0x59, 0x6b, 0x4e, 0xdf, 0x00]));
nonidl!(nsIWidget,
nsID(0x06396bf6, 0x2dd8, 0x45e5,
[0xac, 0x45, 0x75, 0x26, 0x53, 0xb1, 0xc9, 0x80]));