Compare commits
3049 Commits
WIDGET_IDL
...
XULDOMJS_1
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
dec4c9d945 | ||
|
|
ccb9edab60 | ||
|
|
d798be075c | ||
|
|
5fe368c501 | ||
|
|
d8526e1053 | ||
|
|
7dedd77121 | ||
|
|
7da3b87c4a | ||
|
|
93b4e5ec43 | ||
|
|
0efb7c174c | ||
|
|
92d791b7b0 | ||
|
|
b3b0de73e9 | ||
|
|
87caded68d | ||
|
|
5f0aaf354d | ||
|
|
ee4fb8f0ff | ||
|
|
4df7c35211 | ||
|
|
0f496fe790 | ||
|
|
ce50f7d151 | ||
|
|
fe6a96903d | ||
|
|
33c31375b8 | ||
|
|
4136bb9b85 | ||
|
|
502dbdb8c2 | ||
|
|
fa6f75bbee | ||
|
|
1f4659c914 | ||
|
|
6d25185793 | ||
|
|
cffac19a5f | ||
|
|
63b5916e8b | ||
|
|
c38feba394 | ||
|
|
aa6d4da1fe | ||
|
|
acb57210c3 | ||
|
|
334b29cffa | ||
|
|
fb3eea6b4a | ||
|
|
4eb1a093e9 | ||
|
|
cc6179325b | ||
|
|
ab2f6ea0db | ||
|
|
53828293ef | ||
|
|
49e55fa057 | ||
|
|
c5c9738319 | ||
|
|
4ee15a0425 | ||
|
|
1996d97ba3 | ||
|
|
e5f4e7c849 | ||
|
|
b476111e67 | ||
|
|
c8cc3fe9b2 | ||
|
|
be87817fb0 | ||
|
|
bef3328b2f | ||
|
|
aebde57816 | ||
|
|
fba1c662d5 | ||
|
|
a4236232dc | ||
|
|
81ed65e99b | ||
|
|
b4795254b6 | ||
|
|
5fe04f058d | ||
|
|
b5afeda640 | ||
|
|
cddea4bf18 | ||
|
|
e1c9ba38b3 | ||
|
|
586a405369 | ||
|
|
3aed471de6 | ||
|
|
ca247c028b | ||
|
|
2b02c816a3 | ||
|
|
77646a1480 | ||
|
|
1cf333f618 | ||
|
|
fced92a57e | ||
|
|
dc0901d830 | ||
|
|
b0cc23dd32 | ||
|
|
8d74ce705f | ||
|
|
d73bc37e66 | ||
|
|
a92195a3a9 | ||
|
|
0fdb0ed03c | ||
|
|
5478f9dda3 | ||
|
|
e6b6878f91 | ||
|
|
808d64da48 | ||
|
|
45c7e5cf11 | ||
|
|
6d48eccaa5 | ||
|
|
7335ede542 | ||
|
|
c9b01acbd6 | ||
|
|
34a8cb4799 | ||
|
|
1f62cd6fa3 | ||
|
|
3189ded990 | ||
|
|
b98eecf039 | ||
|
|
d76ff386a5 | ||
|
|
c0ec1f713e | ||
|
|
1fcc54491d | ||
|
|
e34b01ce89 | ||
|
|
451b1f9771 | ||
|
|
b5daf46f31 | ||
|
|
db24ddd87b | ||
|
|
28261a4ca0 | ||
|
|
2d10f84704 | ||
|
|
1cf929984f | ||
|
|
59271d7e21 | ||
|
|
7f537da550 | ||
|
|
45eec85b6b | ||
|
|
027697488c | ||
|
|
fee0b89b42 | ||
|
|
df972eb658 | ||
|
|
8cf0748300 | ||
|
|
1fe4d7149a | ||
|
|
81e77a0f71 | ||
|
|
aa210a0654 | ||
|
|
f295b6af47 | ||
|
|
487d4b32af | ||
|
|
9530e8d060 | ||
|
|
8b6bdd6f64 | ||
|
|
b20b0d0a0e | ||
|
|
143a89ffc8 | ||
|
|
d7f7734495 | ||
|
|
2bd2bc6f06 | ||
|
|
8c5481dd42 | ||
|
|
9f071c70b6 | ||
|
|
9c16ff2bfc | ||
|
|
7ff57f52b5 | ||
|
|
7670b1d344 | ||
|
|
a669c996d6 | ||
|
|
a297c877e2 | ||
|
|
09e0a51db2 | ||
|
|
881e796d98 | ||
|
|
66ca226b8a | ||
|
|
d3ee736373 | ||
|
|
baf56f68cb | ||
|
|
f66e87957c | ||
|
|
2efb8c65ad | ||
|
|
498764afb0 | ||
|
|
48f9184ff1 | ||
|
|
a8fb89cee4 | ||
|
|
4353fd2505 | ||
|
|
9d4795faed | ||
|
|
a65db3660c | ||
|
|
744719ecdb | ||
|
|
46ecd1ff3b | ||
|
|
396d175b3c | ||
|
|
9cc1992ed4 | ||
|
|
b2e6d58834 | ||
|
|
388bc22458 | ||
|
|
859165ee97 | ||
|
|
ec90446de8 | ||
|
|
74b9419214 | ||
|
|
830d037821 | ||
|
|
ee745b4cbf | ||
|
|
02ca74c760 | ||
|
|
555440d16c | ||
|
|
e3cf2c3428 | ||
|
|
13a4379130 | ||
|
|
adc6cb1f75 | ||
|
|
99a452e913 | ||
|
|
aa1271a477 | ||
|
|
5c09a71e2a | ||
|
|
8276a693be | ||
|
|
3f83ba7a62 | ||
|
|
8f70df6307 | ||
|
|
5908cc6076 | ||
|
|
777e334a14 | ||
|
|
193096cba0 | ||
|
|
6663eb3602 | ||
|
|
9d146034cd | ||
|
|
c2f62d838f | ||
|
|
c7fa28614d | ||
|
|
17f32ce4ba | ||
|
|
8fae81516b | ||
|
|
7e907a0c91 | ||
|
|
44a7143485 | ||
|
|
68b221d555 | ||
|
|
e151377558 | ||
|
|
0ee8ded981 | ||
|
|
e72f94df90 | ||
|
|
b5de07e079 | ||
|
|
9f777f2bad | ||
|
|
8fc0df1c8f | ||
|
|
34d286f60f | ||
|
|
8dc7bd557e | ||
|
|
4ef759b3d4 | ||
|
|
cb1a2aee98 | ||
|
|
8f3ae7048a | ||
|
|
4ac72526b1 | ||
|
|
e67319abec | ||
|
|
6bf9a22c91 | ||
|
|
60ed9bf4bb | ||
|
|
0f628926da | ||
|
|
ee85b8ad76 | ||
|
|
9d8269b689 | ||
|
|
6ade5969e3 | ||
|
|
7b3899b763 | ||
|
|
dd18053d33 | ||
|
|
3f4468adf1 | ||
|
|
3330477d88 | ||
|
|
acf32d6fc2 | ||
|
|
c5f9102c78 | ||
|
|
cb89931340 | ||
|
|
793e09ae44 | ||
|
|
e92bd577aa | ||
|
|
c6ca4a722e | ||
|
|
c79e9c67d2 | ||
|
|
ff8a8db130 | ||
|
|
f4ec813667 | ||
|
|
1115c0f4da | ||
|
|
40645c00d1 | ||
|
|
eb18a1b917 | ||
|
|
74098be2bc | ||
|
|
6d4e070e6b | ||
|
|
86bb1af06f | ||
|
|
df73ba585b | ||
|
|
e537410a85 | ||
|
|
7de071230b | ||
|
|
7a25b6fe62 | ||
|
|
ad7f1ff33f | ||
|
|
16e407c7ff | ||
|
|
218749a885 | ||
|
|
793f6ff27d | ||
|
|
77cd59699a | ||
|
|
fa66ea22fe | ||
|
|
c34a2941df | ||
|
|
335afbc323 | ||
|
|
8b93319dca | ||
|
|
afdb749e2c | ||
|
|
50364b8107 | ||
|
|
9c4cb1eacb | ||
|
|
9dc7572e8b | ||
|
|
e59a60cd4c | ||
|
|
6ef6f80a98 | ||
|
|
c1350f1279 | ||
|
|
cff215812e | ||
|
|
0e29d47284 | ||
|
|
5ca1658c79 | ||
|
|
cea102d05c | ||
|
|
5b5b7371ea | ||
|
|
a3d9d45365 | ||
|
|
9ee5feb4b3 | ||
|
|
8e7977a75f | ||
|
|
f64d069264 | ||
|
|
ec594ff4cd | ||
|
|
16fbda6ce8 | ||
|
|
1c497557b9 | ||
|
|
0aac10ff9d | ||
|
|
d313f9eb9b | ||
|
|
77285a1fb7 | ||
|
|
dc473b8de3 | ||
|
|
114c2d4d83 | ||
|
|
662527d103 | ||
|
|
7c3533ab68 | ||
|
|
2c76c5f5ed | ||
|
|
0ccce7f199 | ||
|
|
00b336668e | ||
|
|
424a4cc34c | ||
|
|
1bb6cf2186 | ||
|
|
fb1a3c22e8 | ||
|
|
fe5984a76a | ||
|
|
64b8be9959 | ||
|
|
ad629fba04 | ||
|
|
49947504d3 | ||
|
|
66130367d8 | ||
|
|
9b02da0b6f | ||
|
|
cabfc8b277 | ||
|
|
435176df52 | ||
|
|
eed8ac6824 | ||
|
|
fbfbed8f89 | ||
|
|
2656423bf8 | ||
|
|
6701db0533 | ||
|
|
9252d81168 | ||
|
|
a30e4bc896 | ||
|
|
3d0b1d674f | ||
|
|
13ee3e3b3d | ||
|
|
50248ce5b0 | ||
|
|
89ba99747a | ||
|
|
a09d34ccd1 | ||
|
|
913fe3b85c | ||
|
|
381c484f1a | ||
|
|
fc96225344 | ||
|
|
2323d5792a | ||
|
|
29b0107f3f | ||
|
|
e4bab0a0e6 | ||
|
|
f5e6d0785f | ||
|
|
72f9201ec6 | ||
|
|
f734a9cc39 | ||
|
|
78899987be | ||
|
|
f26efbdd12 | ||
|
|
3e1a9ca95a | ||
|
|
e1ba1048c5 | ||
|
|
79451301a6 | ||
|
|
ab0bddd10c | ||
|
|
2d91e8e29f | ||
|
|
baa984b1b1 | ||
|
|
a95990ff7f | ||
|
|
c4d5dc11d9 | ||
|
|
fac05a4ebc | ||
|
|
f63ddf59d3 | ||
|
|
c5b3a013a5 | ||
|
|
38a11db343 | ||
|
|
9871278292 | ||
|
|
83e38c06cc | ||
|
|
7190f1f2a8 | ||
|
|
20069a7cf6 | ||
|
|
5a257f75ca | ||
|
|
29a164a7ec | ||
|
|
927e36576b | ||
|
|
a90526ccd9 | ||
|
|
857b4649d5 | ||
|
|
21dea39deb | ||
|
|
3b1ca7dd5b | ||
|
|
e109f40aa7 | ||
|
|
51c892b441 | ||
|
|
3490d404ad | ||
|
|
f404d8e1ea | ||
|
|
2c52d1343a | ||
|
|
3d577f8188 | ||
|
|
5612e1f8a8 | ||
|
|
5b9bc9b77b | ||
|
|
00599502a2 | ||
|
|
2fa1de35a2 | ||
|
|
ceb7def2a5 | ||
|
|
f80890ee10 | ||
|
|
25d9029cf4 | ||
|
|
0bce4f45ab | ||
|
|
86cd62a5d8 | ||
|
|
873914c889 | ||
|
|
9410e061b6 | ||
|
|
5123dfaa8d | ||
|
|
d1c10fc10e | ||
|
|
c018d1acdc | ||
|
|
119d8e6f37 | ||
|
|
19101eea26 | ||
|
|
3ee7564f6a | ||
|
|
bbab2a24a8 | ||
|
|
14fc302c46 | ||
|
|
24c042e752 | ||
|
|
3088a6720d | ||
|
|
ce5a53f536 | ||
|
|
84368cfe83 | ||
|
|
a31f301140 | ||
|
|
1c67d02237 | ||
|
|
5b541fa64b | ||
|
|
37b2efc82c | ||
|
|
b3604151b4 | ||
|
|
63a86eb8cd | ||
|
|
941b74b495 | ||
|
|
bf8bc966c9 | ||
|
|
2bbfb06080 | ||
|
|
be66a15de9 | ||
|
|
f75283d60b | ||
|
|
0887d1ab7b | ||
|
|
5a4cba5ec3 | ||
|
|
4a0f268246 | ||
|
|
05c908d920 | ||
|
|
857d05a688 | ||
|
|
b3f3e6c4bc | ||
|
|
dd157213ab | ||
|
|
f9329cacef | ||
|
|
68d3ee8a2a | ||
|
|
202313d853 | ||
|
|
8135a379f0 | ||
|
|
b93e1edb98 | ||
|
|
b13865d0da | ||
|
|
c6627a15ce | ||
|
|
1d1448afe5 | ||
|
|
ea48e3cc05 | ||
|
|
e8d88c499c | ||
|
|
2ccab49e6d | ||
|
|
377be09812 | ||
|
|
c33933dfdc | ||
|
|
9fc7780ead | ||
|
|
55265a0fbb | ||
|
|
630d8b77f1 | ||
|
|
1ab461f4c6 | ||
|
|
0481fd6a2b | ||
|
|
5cd00daf35 | ||
|
|
3810554e35 | ||
|
|
8c862baf0d | ||
|
|
ab8bcb5065 | ||
|
|
54581e51ee | ||
|
|
afd6573875 | ||
|
|
b2a8f1f15e | ||
|
|
ddf6490f7b | ||
|
|
b599517d9a | ||
|
|
aa0f04f201 | ||
|
|
62ce3cdd71 | ||
|
|
8cf9738323 | ||
|
|
cf72289b9d | ||
|
|
c465ca23ff | ||
|
|
52d16678ac | ||
|
|
ff5c4380e5 | ||
|
|
af0f3e7b0b | ||
|
|
43382f61e2 | ||
|
|
ab9a0355a1 | ||
|
|
35ff47ccc3 | ||
|
|
e182909557 | ||
|
|
871ab8e113 | ||
|
|
e5be208b97 | ||
|
|
d9fc856c54 | ||
|
|
19446f1058 | ||
|
|
b1d9af131b | ||
|
|
21d2358524 | ||
|
|
0ab35801a3 | ||
|
|
e1b2ce4a78 | ||
|
|
bd6f30c5cb | ||
|
|
5a6348e661 | ||
|
|
bed10de2c0 | ||
|
|
93f291a8ea | ||
|
|
df32caa941 | ||
|
|
9d03b5a02f | ||
|
|
15318a9b2b | ||
|
|
e555659f6b | ||
|
|
d3116d95c6 | ||
|
|
361fd99522 | ||
|
|
4b235a7aef | ||
|
|
9c32d2f87e | ||
|
|
9dba8ec0b3 | ||
|
|
3cc6fe040f | ||
|
|
f48012bb56 | ||
|
|
b6e92d2926 | ||
|
|
d8924f3115 | ||
|
|
854153ad1b | ||
|
|
82cd9877d0 | ||
|
|
1b8c8d2216 | ||
|
|
3e684b542b | ||
|
|
26a5cb95b3 | ||
|
|
6671a998a4 | ||
|
|
7c2c8f0ecb | ||
|
|
64f2e921ee | ||
|
|
7262c47353 | ||
|
|
9259c87a92 | ||
|
|
268235e424 | ||
|
|
6533b90ce6 | ||
|
|
a468c6983c | ||
|
|
0154b52329 | ||
|
|
add2edbda0 | ||
|
|
59b22727bd | ||
|
|
410ac67f93 | ||
|
|
9ba00de102 | ||
|
|
54bfc70eea | ||
|
|
44d6b4c7e5 | ||
|
|
c98bf7e9a6 | ||
|
|
81ef7e0434 | ||
|
|
dff3a32176 | ||
|
|
ceaebd4804 | ||
|
|
a027094b30 | ||
|
|
aa355b810b | ||
|
|
cc411daf35 | ||
|
|
03ec794132 | ||
|
|
9efe8d599f | ||
|
|
9862db5a48 | ||
|
|
c1c6ae68cd | ||
|
|
824e50d549 | ||
|
|
af506bd6c9 | ||
|
|
5df87dc67e | ||
|
|
cf64589783 | ||
|
|
d3f1c46ba5 | ||
|
|
d8d82e0637 | ||
|
|
94697e0452 | ||
|
|
f8fb68c673 | ||
|
|
368f25d7ee | ||
|
|
7ae532db2a | ||
|
|
a98ac534c3 | ||
|
|
1824e7ce91 | ||
|
|
3513334988 | ||
|
|
8a02a9884b | ||
|
|
0df1ff715c | ||
|
|
897d9e027c | ||
|
|
07d441b61a | ||
|
|
5492a19059 | ||
|
|
d0a23025d8 | ||
|
|
e1c9192da5 | ||
|
|
a15001ef11 | ||
|
|
099420f43e | ||
|
|
ae3cd9e2ce | ||
|
|
5ed2cd7fa7 | ||
|
|
9dd7ffd0ef | ||
|
|
46a7117699 | ||
|
|
8d4c0ac47e | ||
|
|
87358978bd | ||
|
|
ff9db70a07 | ||
|
|
2bc6161677 | ||
|
|
933e7aa1a8 | ||
|
|
793d674760 | ||
|
|
42d0478ba8 | ||
|
|
bd12ec528f | ||
|
|
307fe1df58 | ||
|
|
e885439545 | ||
|
|
2a86ddb6f8 | ||
|
|
cc0ac6a407 | ||
|
|
4f15b3e7bd | ||
|
|
9cbec3ba42 | ||
|
|
604569330e | ||
|
|
82bbc3b0eb | ||
|
|
b338802f73 | ||
|
|
13b7afe705 | ||
|
|
56c344a8d0 | ||
|
|
fb8cb373a0 | ||
|
|
e2c9ed766a | ||
|
|
23778b8c16 | ||
|
|
bac454b0b5 | ||
|
|
c6c74d8fe2 | ||
|
|
283a28a5d4 | ||
|
|
9981b6e5e7 | ||
|
|
2cabf1bf40 | ||
|
|
aabaf48158 | ||
|
|
63ae90acca | ||
|
|
333bf3d48a | ||
|
|
e5672a7cbf | ||
|
|
8ad4c60be3 | ||
|
|
53c8075ee8 | ||
|
|
a1cbbe03aa | ||
|
|
188cbf9d0b | ||
|
|
1b8869ef46 | ||
|
|
e1325fa173 | ||
|
|
e3a1567dcc | ||
|
|
6a0e6b0b2d | ||
|
|
908f338b00 | ||
|
|
fe0b504eac | ||
|
|
2766610a72 | ||
|
|
5143eb0b1d | ||
|
|
0828780018 | ||
|
|
b3ee9d6099 | ||
|
|
059b0b18ff | ||
|
|
c3e35b09e6 | ||
|
|
3c8f842dd1 | ||
|
|
f0bafa3901 | ||
|
|
90413c1803 | ||
|
|
86bf83a5cb | ||
|
|
46857947de | ||
|
|
76860bfac3 | ||
|
|
3300906c1f | ||
|
|
c53de3fb2f | ||
|
|
248afe72e1 | ||
|
|
9c83cbc655 | ||
|
|
9a6507c902 | ||
|
|
5c49b2dcfa | ||
|
|
fdd0b24390 | ||
|
|
f871d649af | ||
|
|
8070950a1a | ||
|
|
2f5831d91f | ||
|
|
48e85583a8 | ||
|
|
74d906dbdf | ||
|
|
f980be0221 | ||
|
|
65b7cd0c03 | ||
|
|
3872148e22 | ||
|
|
dc0e84da8f | ||
|
|
e4422a7744 | ||
|
|
1a10f1bfca | ||
|
|
42a5d3afe8 | ||
|
|
2eefd82de8 | ||
|
|
c148d9293b | ||
|
|
1d98e513a5 | ||
|
|
9318031900 | ||
|
|
66089af9ca | ||
|
|
43165f999b | ||
|
|
95ab15987f | ||
|
|
7eff69da6d | ||
|
|
ab8b41ac6e | ||
|
|
bf93831e8b | ||
|
|
33e56d70f4 | ||
|
|
12d91fc204 | ||
|
|
2da450442d | ||
|
|
2669825bf4 | ||
|
|
23e130e01b | ||
|
|
78d06b8fcf | ||
|
|
225dbf24eb | ||
|
|
20afa40ad0 | ||
|
|
4eaeb0af68 | ||
|
|
4c4a69c07f | ||
|
|
0b96f92229 | ||
|
|
015fa0cad4 | ||
|
|
1cd1d3967c | ||
|
|
2300c27a4f | ||
|
|
2dd3c4eacc | ||
|
|
75c3ca9e17 | ||
|
|
ceb9cf186d | ||
|
|
9a3ae339ee | ||
|
|
cd569b141a | ||
|
|
6210745a33 | ||
|
|
19db355c46 | ||
|
|
88c4d96e2c | ||
|
|
f5d99c2cec | ||
|
|
4e94fff191 | ||
|
|
85fd5baad4 | ||
|
|
7cf4142599 | ||
|
|
2d10931ddb | ||
|
|
15bc1a40b1 | ||
|
|
89a8c47740 | ||
|
|
20f6524e69 | ||
|
|
7b140eafb2 | ||
|
|
069e0c0ab7 | ||
|
|
bd127b8712 | ||
|
|
273c3a1673 | ||
|
|
945c6841ea | ||
|
|
bc6a15f81a | ||
|
|
0e08363c68 | ||
|
|
1f41bc5a41 | ||
|
|
95ed3035d3 | ||
|
|
7d754fa3e8 | ||
|
|
c750a7c32d | ||
|
|
2dee462ae3 | ||
|
|
a3feb440b1 | ||
|
|
b817d51d4b | ||
|
|
2eefe93ceb | ||
|
|
31ca3266f1 | ||
|
|
b16f4bc0c7 | ||
|
|
fa193f41c1 | ||
|
|
ba803ea225 | ||
|
|
d167106925 | ||
|
|
1095535469 | ||
|
|
01d415eebe | ||
|
|
8760c5b5e8 | ||
|
|
853e43bd31 | ||
|
|
dcacacf7d7 | ||
|
|
e8f1c05ca6 | ||
|
|
2ed88ba80b | ||
|
|
69933e9f74 | ||
|
|
021f44ae53 | ||
|
|
0fa061c765 | ||
|
|
0d6ebd6b12 | ||
|
|
b1f24224b8 | ||
|
|
604931010d | ||
|
|
29d7ee003b | ||
|
|
6ad3ce8ee3 | ||
|
|
6be0ffb4ca | ||
|
|
89f810c614 | ||
|
|
fa7e1e0f1e | ||
|
|
beb892e3f0 | ||
|
|
338c55ea1d | ||
|
|
394244ab39 | ||
|
|
ea62024583 | ||
|
|
ee5415192d | ||
|
|
928787debd | ||
|
|
e6e52fc833 | ||
|
|
280221ed46 | ||
|
|
52ddc97b98 | ||
|
|
7559ac64c5 | ||
|
|
7868fc24c7 | ||
|
|
85c426971e | ||
|
|
9c5e4137a1 | ||
|
|
324e2f56a7 | ||
|
|
e9ccfad854 | ||
|
|
eb0df2c879 | ||
|
|
b855e5dd72 | ||
|
|
bca34cf5da | ||
|
|
b2c6378cf2 | ||
|
|
a74e27b3f5 | ||
|
|
bb63ac5e3f | ||
|
|
1645b0ed7a | ||
|
|
e367bbd2be | ||
|
|
e3e9faf88f | ||
|
|
5b125a705f | ||
|
|
3b0382f6c1 | ||
|
|
3fd6cb1d50 | ||
|
|
45e93dc267 | ||
|
|
8769efefd3 | ||
|
|
a595e9b30a | ||
|
|
0e1f052c66 | ||
|
|
4c48633d37 | ||
|
|
66c14dd8b7 | ||
|
|
731c45ad0c | ||
|
|
f742f7e4fd | ||
|
|
e83ba4c213 | ||
|
|
dfe868a09a | ||
|
|
3e9b7b7fb2 | ||
|
|
4f3ab7cb05 | ||
|
|
db726a6afc | ||
|
|
3fe2b88255 | ||
|
|
7e5a7e1258 | ||
|
|
a237edb9e7 | ||
|
|
363a93452d | ||
|
|
de2a95b57c | ||
|
|
aaabce0894 | ||
|
|
96da767847 | ||
|
|
5f8b23824a | ||
|
|
f35516791b | ||
|
|
5a0f716ef3 | ||
|
|
b3ecfed51c | ||
|
|
a2f8cba30c | ||
|
|
c01e8f06c0 | ||
|
|
24bb2c855d | ||
|
|
38a193d9b4 | ||
|
|
5fae6982e3 | ||
|
|
e08673c042 | ||
|
|
f24c85975a | ||
|
|
385f05a7b1 | ||
|
|
594fc96d9f | ||
|
|
8dd72754a2 | ||
|
|
12fd34f1ce | ||
|
|
d779af105f | ||
|
|
73ee8b0ee5 | ||
|
|
d8b2fc8146 | ||
|
|
b3a2df9860 | ||
|
|
58248e0de3 | ||
|
|
4f5d2bc5d5 | ||
|
|
1bb663bbef | ||
|
|
dbd1674956 | ||
|
|
e36c5874dc | ||
|
|
9187011a29 | ||
|
|
d977243f6d | ||
|
|
d2807b6f90 | ||
|
|
6bc4bb23b5 | ||
|
|
55b30027eb | ||
|
|
3441bfea68 | ||
|
|
61aed8f307 | ||
|
|
fc22d0aa61 | ||
|
|
0da4aac936 | ||
|
|
74b069723b | ||
|
|
1fae170c08 | ||
|
|
3e59dc9845 | ||
|
|
4c9f59d49c | ||
|
|
941b2da9d7 | ||
|
|
f320760ce4 | ||
|
|
d4cac369ff | ||
|
|
7754b4e90e | ||
|
|
aa538bb21b | ||
|
|
877bf64923 | ||
|
|
71e57e9bc0 | ||
|
|
aa26800137 | ||
|
|
a9a91fcc7c | ||
|
|
87ff88fc08 | ||
|
|
f748008a0b | ||
|
|
20e3748d92 | ||
|
|
213f166414 | ||
|
|
0f8e430077 | ||
|
|
407de78336 | ||
|
|
4adfa873d2 | ||
|
|
0410c9f36b | ||
|
|
6d0e00cdd4 | ||
|
|
19573259fb | ||
|
|
5a02e1350c | ||
|
|
72ec0f3079 | ||
|
|
e8cc21c4c3 | ||
|
|
e6e16569fb | ||
|
|
695d6778d8 | ||
|
|
5124ea8599 | ||
|
|
e8194ccfb1 | ||
|
|
af1c129e99 | ||
|
|
978eb5faf1 | ||
|
|
2df3525f9d | ||
|
|
3d1723b618 | ||
|
|
a6b5e55d70 | ||
|
|
a19b0a701f | ||
|
|
139ca8b52d | ||
|
|
14b918a812 | ||
|
|
9b563bc4a7 | ||
|
|
761883462c | ||
|
|
cb42bc5347 | ||
|
|
5d276fc49d | ||
|
|
39084ddb75 | ||
|
|
725ca86a3c | ||
|
|
25f7059c43 | ||
|
|
cdfb86c649 | ||
|
|
ed6d691c92 | ||
|
|
856f1ee86f | ||
|
|
4ea4c2ba26 | ||
|
|
c13911024a | ||
|
|
0509ac6c24 | ||
|
|
c568cf9bed | ||
|
|
b3f1a34e11 | ||
|
|
a825f1738a | ||
|
|
58da4d1cc2 | ||
|
|
949f26b1d9 | ||
|
|
2989da583b | ||
|
|
894660c683 | ||
|
|
7a179cfe09 | ||
|
|
4a058b42d1 | ||
|
|
0d77d490d6 | ||
|
|
4626597396 | ||
|
|
cc23cb4fd5 | ||
|
|
32ed46c795 | ||
|
|
da07ac32b1 | ||
|
|
052c27feff | ||
|
|
8f6655fb4a | ||
|
|
f2caaa1890 | ||
|
|
b3499577af | ||
|
|
da7c33e34c | ||
|
|
b6d38ed4f7 | ||
|
|
ce3c186894 | ||
|
|
33fe7bdd57 | ||
|
|
1e3a7c2073 | ||
|
|
a82717bab8 | ||
|
|
189a26e941 | ||
|
|
ca4f530508 | ||
|
|
1aa54f66ab | ||
|
|
d6ca20f368 | ||
|
|
3a3c45b57c | ||
|
|
89bd3d196e | ||
|
|
5ecb0c11b3 | ||
|
|
2e274875d3 | ||
|
|
7d80bedb81 | ||
|
|
f488902f5d | ||
|
|
b853096819 | ||
|
|
9b799b1100 | ||
|
|
296f21777f | ||
|
|
b921af7d24 | ||
|
|
7a333b1d09 | ||
|
|
16156488f8 | ||
|
|
04b5eac48c | ||
|
|
0d74bb8fa4 | ||
|
|
aa66ccecfa | ||
|
|
bd4b9fbaf5 | ||
|
|
3cb8f38164 | ||
|
|
5149a61f62 | ||
|
|
1786d79429 | ||
|
|
85c96d612c | ||
|
|
1173466bfc | ||
|
|
c3b0a312fc | ||
|
|
4385e8d68e | ||
|
|
f06f488185 | ||
|
|
a6569800ce | ||
|
|
7d94513269 | ||
|
|
450e220228 | ||
|
|
afff9da3ba | ||
|
|
4677dd631f | ||
|
|
b14a509c76 | ||
|
|
cd2764bb20 | ||
|
|
8e4af380cc | ||
|
|
3587a59aa7 | ||
|
|
32412a1f03 | ||
|
|
a282d4acf9 | ||
|
|
d4df792c85 | ||
|
|
1bac65d756 | ||
|
|
1b39aa1dd7 | ||
|
|
eaa801e49e | ||
|
|
dbf6bce997 | ||
|
|
5c68fcaafc | ||
|
|
31deb6a74d | ||
|
|
888899af25 | ||
|
|
1bc43aaac4 | ||
|
|
5daada9f2c | ||
|
|
08f1d9c5a8 | ||
|
|
3b5d377a59 | ||
|
|
15d92465ad | ||
|
|
0ddb8bf0bc | ||
|
|
b363aea0eb | ||
|
|
d8fb5871d7 | ||
|
|
da68e2dcd8 | ||
|
|
50f46042f0 | ||
|
|
bc406e3e1e | ||
|
|
dbcd581b59 | ||
|
|
e969fa7f4f | ||
|
|
d9cd4dc3b8 | ||
|
|
5bfc03c26e | ||
|
|
d5cb9410ae | ||
|
|
df0cb24c86 | ||
|
|
c0c0bb47c7 | ||
|
|
151090fbb2 | ||
|
|
9c4609c831 | ||
|
|
85c96d1199 | ||
|
|
41c8a495f1 | ||
|
|
f341433a7c | ||
|
|
f996be0ecd | ||
|
|
20ec29f713 | ||
|
|
a56d99d249 | ||
|
|
1f5101db18 | ||
|
|
f4bfa77ae5 | ||
|
|
3b974396c6 | ||
|
|
adfe3c048e | ||
|
|
7e1db2ef27 | ||
|
|
74ff2dc2f4 | ||
|
|
7eff36db02 | ||
|
|
1bb10c65f4 | ||
|
|
657f0d5580 | ||
|
|
c96591767e | ||
|
|
3a2fe236a8 | ||
|
|
5fb3a93517 | ||
|
|
c249ccc29e | ||
|
|
c31d69ed3f | ||
|
|
018a1629cf | ||
|
|
282a0d9dcf | ||
|
|
d6e604a886 | ||
|
|
fa55e685cc | ||
|
|
41a1603c9d | ||
|
|
637de3c1b6 | ||
|
|
af16ae652b | ||
|
|
dece5d007f | ||
|
|
cfdf03bc1a | ||
|
|
32be2053bd | ||
|
|
dd42c6ee85 | ||
|
|
0eb9ff94e0 | ||
|
|
ff9a018c1e | ||
|
|
59a2f543c7 | ||
|
|
e180142807 | ||
|
|
5077a5368d | ||
|
|
2bfa05205d | ||
|
|
f3513af6e6 | ||
|
|
6b1312845e | ||
|
|
f891c9ebb9 | ||
|
|
f3ae1fcf7a | ||
|
|
7a5d5c9ad9 | ||
|
|
a8627f0cf6 | ||
|
|
6b7fd317c4 | ||
|
|
e735146e7c | ||
|
|
89da4b6f9b | ||
|
|
800a7e2800 | ||
|
|
e2730e12e8 | ||
|
|
1710bfc387 | ||
|
|
1dde1a4f56 | ||
|
|
dfb30043a3 | ||
|
|
7767d9393b | ||
|
|
642710bf52 | ||
|
|
0637f2c48a | ||
|
|
03e8200f99 | ||
|
|
48577bac14 | ||
|
|
a4c99c7c93 | ||
|
|
3b03dc263a | ||
|
|
a036d65c5c | ||
|
|
ab0a4a932c | ||
|
|
cd137af4d4 | ||
|
|
3387e5dd13 | ||
|
|
74d8a9e437 | ||
|
|
0ca61f6f5c | ||
|
|
dc2ef44aa6 | ||
|
|
d54c2a54d9 | ||
|
|
26a5e7abea | ||
|
|
207123458e | ||
|
|
e025da23ff | ||
|
|
c438ffca68 | ||
|
|
5258fa6070 | ||
|
|
f825fcb394 | ||
|
|
072f7a0e0b | ||
|
|
f3b4ca8e81 | ||
|
|
e48c7f6f32 | ||
|
|
30d2acfd1b | ||
|
|
6263816942 | ||
|
|
226d2a5c5f | ||
|
|
fd1d6fc2a3 | ||
|
|
f192186834 | ||
|
|
a9ec68967c | ||
|
|
1d0ea94a3d | ||
|
|
144854adac | ||
|
|
98fb6ecb62 | ||
|
|
d23ee135fa | ||
|
|
7c66962d85 | ||
|
|
4639154a7f | ||
|
|
8522d5db78 | ||
|
|
c04dab44f6 | ||
|
|
cde9269c1b | ||
|
|
825694f714 | ||
|
|
94bc1e8092 | ||
|
|
1a8b9b5ddb | ||
|
|
e14a41074a | ||
|
|
beb6aa3e8b | ||
|
|
71d282e592 | ||
|
|
d8ca5cd972 | ||
|
|
2cdb9d67e3 | ||
|
|
bdb148b62f | ||
|
|
22e24a8da0 | ||
|
|
3054ed7de9 | ||
|
|
214b95844f | ||
|
|
f92e65e679 | ||
|
|
013f4b1591 | ||
|
|
bb01dd252a | ||
|
|
f6437b73b9 | ||
|
|
9e1e7d7a18 | ||
|
|
428cbd6498 | ||
|
|
0701f384c9 | ||
|
|
3aa41ccbdf | ||
|
|
0949cbb8b9 | ||
|
|
0d96648b4a | ||
|
|
ae7c4c1605 | ||
|
|
884c5020ad | ||
|
|
3ef9a724a2 | ||
|
|
50be5003d6 | ||
|
|
2c49380653 | ||
|
|
89e72a3976 | ||
|
|
699e8eca27 | ||
|
|
d11e61e41f | ||
|
|
f6a4506783 | ||
|
|
02502d0c41 | ||
|
|
abe68f9fc4 | ||
|
|
c1d12e4258 | ||
|
|
ff6e49dbb9 | ||
|
|
f94df2ee59 | ||
|
|
c48a5396a0 | ||
|
|
a29d572364 | ||
|
|
1aa494ee2b | ||
|
|
9cbdc1b888 | ||
|
|
3490b579c3 | ||
|
|
4c6ccd7e59 | ||
|
|
643eb34912 | ||
|
|
a72076d654 | ||
|
|
8189fffdfb | ||
|
|
861592dd89 | ||
|
|
f769dc5560 | ||
|
|
595ab124a0 | ||
|
|
7d6ce80686 | ||
|
|
ea05167e43 | ||
|
|
94bbe207a4 | ||
|
|
c10be2aa21 | ||
|
|
6f9e12e047 | ||
|
|
b6cdf6cb47 | ||
|
|
bb138b3c5c | ||
|
|
b4e2e646cf | ||
|
|
cceb1924b6 | ||
|
|
e544596aa2 | ||
|
|
9be2ae4e35 | ||
|
|
0f3c71a001 | ||
|
|
4f2f6dae6d | ||
|
|
8f7faa2f78 | ||
|
|
abfa77727b | ||
|
|
1291c59ad4 | ||
|
|
252d9255a6 | ||
|
|
73c37400ce | ||
|
|
e181f8b3fa | ||
|
|
6c5ee72d6b | ||
|
|
aaced0b882 | ||
|
|
7230bc55ee | ||
|
|
2d7de08a49 | ||
|
|
ca83b4534f | ||
|
|
b9f22ce6f8 | ||
|
|
fe1c294273 | ||
|
|
7ecb2f45fd | ||
|
|
1ca2484933 | ||
|
|
f54d64efad | ||
|
|
2e56fd5c66 | ||
|
|
bd9b666efc | ||
|
|
a174cc125d | ||
|
|
2f58cc8fd3 | ||
|
|
58b6be1d08 | ||
|
|
4c6919a678 | ||
|
|
1d93a7a7ae | ||
|
|
dc04d4b53b | ||
|
|
bd46e7911f | ||
|
|
a3b472c211 | ||
|
|
3c48aa841c | ||
|
|
3b76676f40 | ||
|
|
8aef13e868 | ||
|
|
052a729260 | ||
|
|
4b5a4b8e5d | ||
|
|
aea3ade8fe | ||
|
|
2e96f47e2e | ||
|
|
254fe24a86 | ||
|
|
566e36cc10 | ||
|
|
499a258aa7 | ||
|
|
95d88cbf7b | ||
|
|
f8f5eb822d | ||
|
|
aef9243c78 | ||
|
|
be5e5badd8 | ||
|
|
bca7914d4c | ||
|
|
67f77212c6 | ||
|
|
2541c54b1d | ||
|
|
97c0df855a | ||
|
|
10813277ec | ||
|
|
04e0ba7204 | ||
|
|
67b737d3e4 | ||
|
|
17e91e8ab8 | ||
|
|
4dcff0c574 | ||
|
|
0683dd99f5 | ||
|
|
d6610d45df | ||
|
|
6f74b3fb2f | ||
|
|
18c97ff34d | ||
|
|
b7f540b9f2 | ||
|
|
08883ca9a8 | ||
|
|
7eccb655b3 | ||
|
|
bf1287cb0c | ||
|
|
a5ef534d81 | ||
|
|
6d43e18270 | ||
|
|
002757422d | ||
|
|
b361c28994 | ||
|
|
719cf747d3 | ||
|
|
e45bf9a654 | ||
|
|
bcc540225b | ||
|
|
879c9f145f | ||
|
|
3cbf0c252a | ||
|
|
32a0978c7e | ||
|
|
60ea075c3f | ||
|
|
dfe78df5d9 | ||
|
|
4bb755ead2 | ||
|
|
ae6b64e566 | ||
|
|
df248f10b1 | ||
|
|
6f73e6604a | ||
|
|
11d905c2a9 | ||
|
|
8bd629f104 | ||
|
|
9bb05775e0 | ||
|
|
f98a03f3ac | ||
|
|
bb554f06d2 | ||
|
|
2f7a2a20da | ||
|
|
49cd195acc | ||
|
|
ea0c601803 | ||
|
|
a2ec5f969a | ||
|
|
bb01f7852c | ||
|
|
6c8ce03672 | ||
|
|
6839959ccf | ||
|
|
ae51cb2bce | ||
|
|
168d68ed9c | ||
|
|
64e09df2b9 | ||
|
|
a6a5735f6c | ||
|
|
68023d9210 | ||
|
|
2c73987122 | ||
|
|
80f773ac31 | ||
|
|
13ed9a026b | ||
|
|
2c0b3223a2 | ||
|
|
a2e9eb0c8e | ||
|
|
b3f6f6906c | ||
|
|
2a9fdcf10a | ||
|
|
6436fc3afa | ||
|
|
cee3171b28 | ||
|
|
58f8c6d8d9 | ||
|
|
b5fc1e2670 | ||
|
|
c473237102 | ||
|
|
3a21a346ef | ||
|
|
389e1be499 | ||
|
|
b77f113bda | ||
|
|
56be896120 | ||
|
|
427d3f559c | ||
|
|
86ba1460c9 | ||
|
|
b3a1017637 | ||
|
|
50b0c89090 | ||
|
|
b8a92b1146 | ||
|
|
2624eb5719 | ||
|
|
3ea969fa03 | ||
|
|
10dca74c3e | ||
|
|
32c0c98b21 | ||
|
|
0034cf42f1 | ||
|
|
c6ce018a7f | ||
|
|
72dc3d0896 | ||
|
|
f8261501a4 | ||
|
|
36aeea55b5 | ||
|
|
e70752a644 | ||
|
|
d9ba7b42e8 | ||
|
|
abe3c3c6c8 | ||
|
|
8df8f94df3 | ||
|
|
5cabd411f1 | ||
|
|
341cd407a6 | ||
|
|
70051f68b3 | ||
|
|
58ff9e6cc4 | ||
|
|
34c9d3fa3e | ||
|
|
4cab253cb0 | ||
|
|
14fc92dac1 | ||
|
|
671fe34afb | ||
|
|
46cade08ac | ||
|
|
18a5e00d6a | ||
|
|
9fa90714c2 | ||
|
|
55871f81f5 | ||
|
|
e14999de24 | ||
|
|
27f90cbea7 | ||
|
|
5871c388a1 | ||
|
|
737d3b892e | ||
|
|
0aa148382a | ||
|
|
15b4b203b5 | ||
|
|
bd175bcc62 | ||
|
|
c9c3ab2262 | ||
|
|
ccb30ad195 | ||
|
|
c9b397be49 | ||
|
|
5926a49df7 | ||
|
|
a16142db50 | ||
|
|
26d3fe5556 | ||
|
|
6579bbdd80 | ||
|
|
b15a17bfcb | ||
|
|
185c67ee12 | ||
|
|
f346c3e821 | ||
|
|
b9ca6db5fa | ||
|
|
68f0c59d3a | ||
|
|
e3d0859994 | ||
|
|
c275b7fca5 | ||
|
|
697deffc1d | ||
|
|
35c3e18a5e | ||
|
|
17d1767696 | ||
|
|
f44eb6e877 | ||
|
|
dd85258734 | ||
|
|
5f7aa39be5 | ||
|
|
b500a68477 | ||
|
|
d0c68ca52f | ||
|
|
964164ffe9 | ||
|
|
676eaa791f | ||
|
|
de47ad8dca | ||
|
|
66774f2d49 | ||
|
|
2aa8ec93a3 | ||
|
|
684b3cc1bb | ||
|
|
0b058cd771 | ||
|
|
d79892b99d | ||
|
|
5859acba05 | ||
|
|
1e5c5df64f | ||
|
|
b534e205fe | ||
|
|
5ebdcee645 | ||
|
|
8678f1bdd7 | ||
|
|
ac565dc536 | ||
|
|
92612afa70 | ||
|
|
e9e6e9c241 | ||
|
|
d7cf1d350b | ||
|
|
398c14c4d0 | ||
|
|
40ee849701 | ||
|
|
cc26158c98 | ||
|
|
259487cdf7 | ||
|
|
6a5732fdec | ||
|
|
9544338359 | ||
|
|
798afa71eb | ||
|
|
35cf097c8a | ||
|
|
fd98dc9090 | ||
|
|
95063f0074 | ||
|
|
dc65f370b6 | ||
|
|
c8d6aed234 | ||
|
|
c16f001bc8 | ||
|
|
a553c7ea86 | ||
|
|
feca3d387f | ||
|
|
3972c8f69a | ||
|
|
b6ce91bcb5 | ||
|
|
7c904e3aa8 | ||
|
|
1cd3dc4f49 | ||
|
|
4d41f52154 | ||
|
|
cfadbaffa1 | ||
|
|
992247191f | ||
|
|
e95f03bd55 | ||
|
|
2cee86d35e | ||
|
|
4d6f026b73 | ||
|
|
5b100726d8 | ||
|
|
da0e9ca233 | ||
|
|
b9244d6491 | ||
|
|
6045d43774 | ||
|
|
e5e1218aae | ||
|
|
91451df7a3 | ||
|
|
5ea1cd0e4c | ||
|
|
d7abad5a6c | ||
|
|
0816082384 | ||
|
|
17b7d985c2 | ||
|
|
a1f6f3c1a3 | ||
|
|
efe6dfa795 | ||
|
|
52de2be8a7 | ||
|
|
36e4eb89ff | ||
|
|
d924535fa1 | ||
|
|
5b578df427 | ||
|
|
1668a389f4 | ||
|
|
295053baa2 | ||
|
|
00ffb48018 | ||
|
|
54b8cc865e | ||
|
|
aaff3bbf7e | ||
|
|
17aab81855 | ||
|
|
bb01bac34c | ||
|
|
f0acfa932d | ||
|
|
3139e13324 | ||
|
|
fb7e21676d | ||
|
|
0ac69a866f | ||
|
|
2a64a10c92 | ||
|
|
5d5cc2a548 | ||
|
|
986ea91e68 | ||
|
|
92ab48d1d8 | ||
|
|
9b64c7df39 | ||
|
|
a59a557d7d | ||
|
|
4791c61ec9 | ||
|
|
abe94c118b | ||
|
|
35c39da3d2 | ||
|
|
0750508062 | ||
|
|
e9db800eb8 | ||
|
|
78b44f58d8 | ||
|
|
6955bb58c9 | ||
|
|
ce76e5ae7d | ||
|
|
59e649828f | ||
|
|
0ef6e9d38d | ||
|
|
31378ed4eb | ||
|
|
c4d7a55705 | ||
|
|
ba7f0a4cb5 | ||
|
|
2068a5408d | ||
|
|
450ceda4e0 | ||
|
|
16ace9def7 | ||
|
|
42f2519c84 | ||
|
|
4be52ad659 | ||
|
|
10a4fb8f22 | ||
|
|
866732108c | ||
|
|
bf8979df4c | ||
|
|
3f91090fc5 | ||
|
|
8f8c3afe28 | ||
|
|
d303858686 | ||
|
|
fe52fa5602 | ||
|
|
46e9b52597 | ||
|
|
d8c9cc6cae | ||
|
|
5dd4804e4c | ||
|
|
1a74d3549b | ||
|
|
a285ab741e | ||
|
|
b21e040071 | ||
|
|
8ce16092ef | ||
|
|
598ff07fea | ||
|
|
0f2352836a | ||
|
|
085f841b9d | ||
|
|
cb3e8e41cc | ||
|
|
ee5e7e9f37 | ||
|
|
5c43a70394 | ||
|
|
484a8455bd | ||
|
|
38e1413a00 | ||
|
|
e763168909 | ||
|
|
85ccdaf936 | ||
|
|
d16381b6f3 | ||
|
|
2ed3a3fc6a | ||
|
|
fd397214fb | ||
|
|
be42687878 | ||
|
|
d23e143664 | ||
|
|
285da5c5be | ||
|
|
2e3aacd5dd | ||
|
|
3e0f0a58b5 | ||
|
|
a5d3f6cc70 | ||
|
|
5d7d8cded2 | ||
|
|
7162f4cdbb | ||
|
|
c6e185762b | ||
|
|
4b4d193abc | ||
|
|
ef38d2fd9c | ||
|
|
e83d506ed5 | ||
|
|
99e00aec99 | ||
|
|
dbec4b872f | ||
|
|
aedd1c1253 | ||
|
|
3f594fbcb6 | ||
|
|
7da3eadc15 | ||
|
|
5310cb0ddc | ||
|
|
3d07f98f12 | ||
|
|
f90deff3a6 | ||
|
|
5f29d72129 | ||
|
|
d1271b7aa4 | ||
|
|
455aa3e358 | ||
|
|
77339b5eec | ||
|
|
3a327d90e7 | ||
|
|
f690c63c37 | ||
|
|
21e92e4270 | ||
|
|
36b1b32126 | ||
|
|
1a6f5307c4 | ||
|
|
e68aa79d1d | ||
|
|
1709ffcde6 | ||
|
|
e598aadeba | ||
|
|
b577f2a1bc | ||
|
|
6408004f20 | ||
|
|
ee49ae552f | ||
|
|
3dc8aba7a4 | ||
|
|
6eb15ceb38 | ||
|
|
0cfb0a45bd | ||
|
|
54572af2e6 | ||
|
|
de04e9ade9 | ||
|
|
d522c5e798 | ||
|
|
9ef594d4bf | ||
|
|
ef634d5f6b | ||
|
|
49ce32b0ec | ||
|
|
11dd83ae66 | ||
|
|
242640cfa1 | ||
|
|
547d0559fa | ||
|
|
89df62c930 | ||
|
|
ab99f0ec36 | ||
|
|
f7af54f40f | ||
|
|
51386ed041 | ||
|
|
6b7dfaa5e0 | ||
|
|
a0ac058370 | ||
|
|
596192f62c | ||
|
|
997f5f6291 | ||
|
|
64c9150aab | ||
|
|
6cb5db5eff | ||
|
|
845644f460 | ||
|
|
9d0d4095c3 | ||
|
|
b9ad416be8 | ||
|
|
7944188008 | ||
|
|
302f64fb59 | ||
|
|
56b367cb81 | ||
|
|
dfaa46c552 | ||
|
|
f8e8fae5ce | ||
|
|
62819eff8a | ||
|
|
575dc47298 | ||
|
|
9888b796b2 | ||
|
|
0ab9b94827 | ||
|
|
9ecfbb54e1 | ||
|
|
2df0186c7f | ||
|
|
096120daf6 | ||
|
|
4e8be85212 | ||
|
|
b541cbb7e8 | ||
|
|
a85345a59b | ||
|
|
358dfee800 | ||
|
|
a2ae4b6656 | ||
|
|
ed05316f46 | ||
|
|
83fec44fd6 | ||
|
|
646d7cec23 | ||
|
|
fb7a12a36e | ||
|
|
c2f76119ac | ||
|
|
dd434afd5e | ||
|
|
8c0a2f84e7 | ||
|
|
f52e7bdb86 | ||
|
|
62438f020b | ||
|
|
c33c65e90f | ||
|
|
612130b82a | ||
|
|
953ba7bb6a | ||
|
|
605c46e143 | ||
|
|
3b70db325d | ||
|
|
908e81fe11 | ||
|
|
1e20da8f66 | ||
|
|
42df555a0b | ||
|
|
52c617580c | ||
|
|
e6c9a60dab | ||
|
|
adc0fff019 | ||
|
|
f535016cde | ||
|
|
6499857292 | ||
|
|
5ecf5615a7 | ||
|
|
1a2e9974f2 | ||
|
|
49ae6251f8 | ||
|
|
32ccfffb02 | ||
|
|
a87080011d | ||
|
|
480412f60c | ||
|
|
dd57891add | ||
|
|
35cedcf521 | ||
|
|
7889a5e148 | ||
|
|
220ec361b8 | ||
|
|
1706386f49 | ||
|
|
5244db774f | ||
|
|
24e8fb82df | ||
|
|
3e6139004b | ||
|
|
e9e6fdee20 | ||
|
|
46c5c77d91 | ||
|
|
e4442e8177 | ||
|
|
1e9fb71c5d | ||
|
|
e5f0e5328b | ||
|
|
c54e23defe | ||
|
|
fee0551895 | ||
|
|
6b290bc673 | ||
|
|
57dac66f2e | ||
|
|
9ff1e618b5 | ||
|
|
88d3d6afe1 | ||
|
|
6156c0fb7a | ||
|
|
199585b860 | ||
|
|
6ef7b73278 | ||
|
|
90299835ef | ||
|
|
9b4f0c0032 | ||
|
|
eb5f25dfe9 | ||
|
|
f4438b41e1 | ||
|
|
90d4423420 | ||
|
|
4fe7cefb4a | ||
|
|
f1d7499417 | ||
|
|
0fed380744 | ||
|
|
426f9c3ea3 | ||
|
|
f923fbd1b1 | ||
|
|
ced5d07b70 | ||
|
|
206cd25152 | ||
|
|
49666a52cb | ||
|
|
da5a072040 | ||
|
|
363f0cb92d | ||
|
|
a3613fc446 | ||
|
|
d5686c3a21 | ||
|
|
8cf4ca3ed6 | ||
|
|
ef19fe31d7 | ||
|
|
2f9603aabc | ||
|
|
2123a4d227 | ||
|
|
75207bcf9a | ||
|
|
6b7990dcc7 | ||
|
|
68467cb1bb | ||
|
|
7bac435457 | ||
|
|
a627d5676e | ||
|
|
1e94740a0f | ||
|
|
ca26c9bcab | ||
|
|
f7f718532b | ||
|
|
dced08401d | ||
|
|
41c3d0afa5 | ||
|
|
a8195254ae | ||
|
|
aed61fd72a | ||
|
|
035b04b87b | ||
|
|
21abead461 | ||
|
|
ce03f0d9f0 | ||
|
|
c8d824834b | ||
|
|
619f3992f7 | ||
|
|
3b01cf0bec | ||
|
|
205adceff6 | ||
|
|
7d2157e059 | ||
|
|
569e1a2fb1 | ||
|
|
8f060eb994 | ||
|
|
4f1d9b3a36 | ||
|
|
3871dd508d | ||
|
|
6475343232 | ||
|
|
92654b5840 | ||
|
|
bea6cdd46f | ||
|
|
4e7faff324 | ||
|
|
4392913cc3 | ||
|
|
10931ccb41 | ||
|
|
6bfc31a469 | ||
|
|
6b0912645b | ||
|
|
ed3c26548f | ||
|
|
a27e6a0c95 | ||
|
|
af64d101fa | ||
|
|
72a36eba4b | ||
|
|
fb5466f5e4 | ||
|
|
b582d5259b | ||
|
|
eb87b84391 | ||
|
|
3133a0f78a | ||
|
|
abf884842d | ||
|
|
81245102fa | ||
|
|
4b7e9a7a5a | ||
|
|
b12276db98 | ||
|
|
b52252a4aa | ||
|
|
dbcb2cc74d | ||
|
|
3e99f5b0b8 | ||
|
|
661bf267b9 | ||
|
|
dd80c9dd09 | ||
|
|
48d6ca301e | ||
|
|
a7cee2ccb1 | ||
|
|
cfe11b1fd4 | ||
|
|
e0c8d6770c | ||
|
|
6cd114ddff | ||
|
|
eacb3c22ae | ||
|
|
9fa424b571 | ||
|
|
676f148787 | ||
|
|
8cccb6a457 | ||
|
|
e0db5266e6 | ||
|
|
49f4e5d7aa | ||
|
|
25735aa125 | ||
|
|
54bbcb0dfd | ||
|
|
8d5865d224 | ||
|
|
9cdfa509fd | ||
|
|
47e168172c | ||
|
|
3d25df00ed | ||
|
|
2faa0c76f6 | ||
|
|
a83d58083d | ||
|
|
ecb0569df7 | ||
|
|
0169c2df6e | ||
|
|
3d780d6859 | ||
|
|
b029ca73a2 | ||
|
|
899ebce13b | ||
|
|
c683bbd987 | ||
|
|
d6cfea3e69 | ||
|
|
28941388eb | ||
|
|
8a4ea2ca19 | ||
|
|
fe06bcf74b | ||
|
|
21c7cb6d78 | ||
|
|
bd0b8a085b | ||
|
|
004de2f422 | ||
|
|
8d734dfcc2 | ||
|
|
64d7ceb5a2 | ||
|
|
f1140e8c6e | ||
|
|
b05d4de40d | ||
|
|
f097b7a2a4 | ||
|
|
2a83eeebf7 | ||
|
|
48fd2584d2 | ||
|
|
60d8465f63 | ||
|
|
459ff2f953 | ||
|
|
3a0d0bf033 | ||
|
|
6b88f85516 | ||
|
|
0d129de64e | ||
|
|
95123cee1f | ||
|
|
353d58e800 | ||
|
|
ddb8cb8f28 | ||
|
|
b205486bc1 | ||
|
|
09d199c08a | ||
|
|
ee0c7447a5 | ||
|
|
74762b6d76 | ||
|
|
3e3cacb732 | ||
|
|
deab3a6af2 | ||
|
|
aecc167cc9 | ||
|
|
d4e0127173 | ||
|
|
970e03fe63 | ||
|
|
9abd146c48 | ||
|
|
df6e65595b | ||
|
|
6418d90654 | ||
|
|
5e0a77611f | ||
|
|
bf28c3efd8 | ||
|
|
2f8bc8e00f | ||
|
|
f98e5e2bc8 | ||
|
|
501277d9f2 | ||
|
|
47d0316267 | ||
|
|
31fb034e97 | ||
|
|
e9e8df96c5 | ||
|
|
ed5c56be64 | ||
|
|
95fc4f832f | ||
|
|
a978b9e92b | ||
|
|
22bf05aebd | ||
|
|
8af706c11b | ||
|
|
cc0c52492a | ||
|
|
e5f071ac53 | ||
|
|
83bc932793 | ||
|
|
db1c1b6e5e | ||
|
|
11aeb1c87d | ||
|
|
f02f9a2f0c | ||
|
|
1234934b00 | ||
|
|
bc5b327059 | ||
|
|
60beb90ee5 | ||
|
|
30aa1d1d5c | ||
|
|
ba963eb07e | ||
|
|
1bfdda92a8 | ||
|
|
fcf9fe791f | ||
|
|
2efaf6b409 | ||
|
|
b2e9644e2b | ||
|
|
59c413637f | ||
|
|
eb823e8216 | ||
|
|
11426df64d | ||
|
|
7903586ee4 | ||
|
|
4f6f8b68b0 | ||
|
|
32b2148862 | ||
|
|
fc8c4bd300 | ||
|
|
e0757a21ca | ||
|
|
b2360b9a85 | ||
|
|
959275c4ac | ||
|
|
c097cd276c | ||
|
|
efa03bb824 | ||
|
|
843c7df9fb | ||
|
|
3096ad4a52 | ||
|
|
4befc8fe5e | ||
|
|
2d9044ac40 | ||
|
|
9c72c46de9 | ||
|
|
bbbab95269 | ||
|
|
6b051cc38a | ||
|
|
d6884c9b41 | ||
|
|
1d95656844 | ||
|
|
c820ac974d | ||
|
|
e5684d8a64 | ||
|
|
fedd700745 | ||
|
|
cc447b7234 | ||
|
|
0377b9291c | ||
|
|
fabbeba48e | ||
|
|
b7fab4e31c | ||
|
|
bf856b8053 | ||
|
|
1f3c5b3ef3 | ||
|
|
c88ef4fe6e | ||
|
|
077b0c94d4 | ||
|
|
855118ba4a | ||
|
|
2a900deed8 | ||
|
|
cc3d6490a5 | ||
|
|
cba2b194ce | ||
|
|
0b51721d30 | ||
|
|
41b9a6b713 | ||
|
|
1e319234e1 | ||
|
|
ab0c88be9a | ||
|
|
d1fca29577 | ||
|
|
a0b1fe8617 | ||
|
|
2e29901945 | ||
|
|
bad04c3403 | ||
|
|
9264bc9c89 | ||
|
|
4481922240 | ||
|
|
2d960ed1c1 | ||
|
|
4e16b4e094 | ||
|
|
2fc150a6c8 | ||
|
|
d0725e4d4e | ||
|
|
ee6aa2ffd0 | ||
|
|
0fffda37f6 | ||
|
|
6823e8565b | ||
|
|
7524389c82 | ||
|
|
c40a73a776 | ||
|
|
2ff1cb0969 | ||
|
|
d201925571 | ||
|
|
15f62c11c2 | ||
|
|
959963c9b8 | ||
|
|
88de486c18 | ||
|
|
0d2cedd9ae | ||
|
|
45cf1dc448 | ||
|
|
0f75f32b71 | ||
|
|
d49cc3e1d1 | ||
|
|
cd23316388 | ||
|
|
88e77696a0 | ||
|
|
36419b7094 | ||
|
|
1468b5f4ac | ||
|
|
3fd4887790 | ||
|
|
5bdff5a335 | ||
|
|
2d88ea3522 | ||
|
|
7c466fda74 | ||
|
|
7dac51627e | ||
|
|
46abc39ebf | ||
|
|
494eaeb121 | ||
|
|
8b64d99548 | ||
|
|
9195dc1900 | ||
|
|
bd1c7245f6 | ||
|
|
c94f0dfbd5 | ||
|
|
4d41190cf3 | ||
|
|
fae1be4423 | ||
|
|
c51e515d06 | ||
|
|
736ea51be4 | ||
|
|
22abb4e345 | ||
|
|
d885aed29d | ||
|
|
0bdf9140d7 | ||
|
|
186216cd35 | ||
|
|
f27c8ca4ba | ||
|
|
156010fda2 | ||
|
|
2eaffc0b34 | ||
|
|
d3a58b07b8 | ||
|
|
701a5f632f | ||
|
|
94117fe06b | ||
|
|
4df3a52095 | ||
|
|
7df83f9c8c | ||
|
|
6dafd0deac | ||
|
|
b70777ae81 | ||
|
|
88ae89c00d | ||
|
|
4d16c8e921 | ||
|
|
b17c3685f5 | ||
|
|
8b7f08fbc0 | ||
|
|
ceae1958d8 | ||
|
|
beb3488154 | ||
|
|
8af0179bfb | ||
|
|
defd5464f8 | ||
|
|
ab76ab5c8c | ||
|
|
8644b9e14b | ||
|
|
0d7e9393fb | ||
|
|
85565b9667 | ||
|
|
670fa6c8d6 | ||
|
|
a34fdc41e1 | ||
|
|
727f93afc4 | ||
|
|
5e8b124880 | ||
|
|
668bbc4967 | ||
|
|
6a8fd22671 | ||
|
|
de43edf0b2 | ||
|
|
bdfce7679a | ||
|
|
f1aa92ba58 | ||
|
|
de2e6cfb95 | ||
|
|
7f47a31e88 | ||
|
|
9518fbd96c | ||
|
|
b6decda29b | ||
|
|
77a9ed2910 | ||
|
|
6557db6b98 | ||
|
|
e654e9fdbb | ||
|
|
0bbf0c1cfd | ||
|
|
ed6cbe944d | ||
|
|
a8b4e077c5 | ||
|
|
49bc011b9b | ||
|
|
fa7e2137bd | ||
|
|
569c5aba2d | ||
|
|
263860675d | ||
|
|
51196f76b4 | ||
|
|
3b650617aa | ||
|
|
03c368d1b3 | ||
|
|
a711824bea | ||
|
|
c4afb2ebc0 | ||
|
|
42d190d77d | ||
|
|
877a31dd8a | ||
|
|
a6a41c799e | ||
|
|
2249323ac8 | ||
|
|
4654177ca6 | ||
|
|
a4508fd4ea | ||
|
|
a310c234a4 | ||
|
|
d2f14fa650 | ||
|
|
35043c37a6 | ||
|
|
282909ff22 | ||
|
|
0f0eb4c9e6 | ||
|
|
fcf52e9477 | ||
|
|
039dd4adee | ||
|
|
f8f7d2f6fc | ||
|
|
565f556bd3 | ||
|
|
bd2182e45d | ||
|
|
dd194c9fb7 | ||
|
|
fc73fd2088 | ||
|
|
94c58cd2a0 | ||
|
|
6856a7ee21 | ||
|
|
fb63cac2a5 | ||
|
|
88779549b8 | ||
|
|
35edd9a187 | ||
|
|
2f40b34ffb | ||
|
|
ad85636e7f | ||
|
|
a6598d4a1c | ||
|
|
ffa36fb99e | ||
|
|
8662f77243 | ||
|
|
93cd29ad2b | ||
|
|
36d234884e | ||
|
|
217ed89f11 | ||
|
|
4f836323d6 | ||
|
|
01d0e55136 | ||
|
|
3981b8f2c8 | ||
|
|
25c87328ce | ||
|
|
76ebba554f | ||
|
|
c8965f4626 | ||
|
|
2476a575cf | ||
|
|
911c570602 | ||
|
|
7a9241890d | ||
|
|
ce617a2441 | ||
|
|
eff48efacc | ||
|
|
a8ec8337df | ||
|
|
b931259907 | ||
|
|
b8fadf3327 | ||
|
|
ef34fa6834 | ||
|
|
a1a74387d0 | ||
|
|
479581e81f | ||
|
|
9bfe6151f6 | ||
|
|
25e63cd81a | ||
|
|
45245a0e3f | ||
|
|
cb1dcdbdc6 | ||
|
|
08c93a00f3 | ||
|
|
c4ca3de4e5 | ||
|
|
329e721fff | ||
|
|
1c3ac7d8fe | ||
|
|
cf9daf3b34 | ||
|
|
ef93fdf802 | ||
|
|
068b895d74 | ||
|
|
80c75c7ae1 | ||
|
|
f24babcd8f | ||
|
|
cd72403513 | ||
|
|
f641e35434 | ||
|
|
16faac45a3 | ||
|
|
83699f202b | ||
|
|
b46af177f3 | ||
|
|
921610c409 | ||
|
|
895b2679fc | ||
|
|
ef18489b86 | ||
|
|
614348b081 | ||
|
|
fb6169fb87 | ||
|
|
91a872ec09 | ||
|
|
900a118dd2 | ||
|
|
b1aa689e2b | ||
|
|
0ae271237a | ||
|
|
671c8baf13 | ||
|
|
a270067a3a | ||
|
|
a431ec5d07 | ||
|
|
ae4dba7c09 | ||
|
|
3a3c120af6 | ||
|
|
408093c6c7 | ||
|
|
b4ac2f29ae | ||
|
|
2a38ab0914 | ||
|
|
21960bf642 | ||
|
|
c4ec5e4d7e | ||
|
|
5bb4aa8eb3 | ||
|
|
2d0400db89 | ||
|
|
8e456a4690 | ||
|
|
1dff151de6 | ||
|
|
0b71323316 | ||
|
|
e200e99d65 | ||
|
|
c18bf1d357 | ||
|
|
905268d150 | ||
|
|
0b5271c1c7 | ||
|
|
aef57f8136 | ||
|
|
038ada687d | ||
|
|
ddf8086d83 | ||
|
|
e8fb19a369 | ||
|
|
48a1d530ed | ||
|
|
64356116f8 | ||
|
|
756b010b94 | ||
|
|
7653742295 | ||
|
|
8013d6bb78 | ||
|
|
0a174a879e | ||
|
|
6d347761bd | ||
|
|
c1b9043596 | ||
|
|
57ed2f138a | ||
|
|
0d172a490d | ||
|
|
a06cb090a4 | ||
|
|
3f482a5e18 | ||
|
|
b2f619e9fa | ||
|
|
ea80c313d6 | ||
|
|
cf41a16010 | ||
|
|
9d59534945 | ||
|
|
04d5d271eb | ||
|
|
8c73db21d3 | ||
|
|
f2a09249da | ||
|
|
ee5e86e569 | ||
|
|
e396ccade3 | ||
|
|
79e9036238 | ||
|
|
71ebac111b | ||
|
|
81d0f9cde9 | ||
|
|
3f3f4e0c22 | ||
|
|
5e7ffdc098 | ||
|
|
a53c95056f | ||
|
|
a0fc33207e | ||
|
|
990cda09f3 | ||
|
|
6a7c1e6176 | ||
|
|
bc35fd61d0 | ||
|
|
d16fa469ea | ||
|
|
c96e8acd42 | ||
|
|
0ee3058ec4 | ||
|
|
c04a6a88dc | ||
|
|
84d23e1d2e | ||
|
|
906709b8b6 | ||
|
|
1a6a40a3c6 | ||
|
|
7f8bd4a5fc | ||
|
|
9868a31060 | ||
|
|
0c1e14a45f | ||
|
|
c81e025f6f | ||
|
|
f4c14fbc7e | ||
|
|
2464d177c4 | ||
|
|
65fd934be9 | ||
|
|
170bb762af | ||
|
|
a6a7ff9957 | ||
|
|
051b2edf1a | ||
|
|
b03845b337 | ||
|
|
3169a02cfa | ||
|
|
21e8b134dc | ||
|
|
0ddfb1fd70 | ||
|
|
3e862c4fc9 | ||
|
|
74fc660d77 | ||
|
|
60203265cd | ||
|
|
be312e3eea | ||
|
|
f3c05f912b | ||
|
|
a279c2f778 | ||
|
|
f3b4c01e52 | ||
|
|
a87ba00c59 | ||
|
|
5839f11126 | ||
|
|
347b70512d | ||
|
|
9a7f96144c | ||
|
|
5cf514e9ae | ||
|
|
70a261fb73 | ||
|
|
f66066c2c8 | ||
|
|
6f328194ff | ||
|
|
6660a0bc5b | ||
|
|
6722de88b9 | ||
|
|
85a81f49a8 | ||
|
|
54ba582bb1 | ||
|
|
7bd68dd578 | ||
|
|
774e39f024 | ||
|
|
371afc89ab | ||
|
|
a743954b5c | ||
|
|
f820994c06 | ||
|
|
7ce48293df | ||
|
|
942579f723 | ||
|
|
c916cc6da1 | ||
|
|
66125fa907 | ||
|
|
8916be1144 | ||
|
|
a1aaea4959 | ||
|
|
6f2641b237 | ||
|
|
17b485a261 | ||
|
|
ae469e66fe | ||
|
|
e8a5d2e937 | ||
|
|
bba68903df | ||
|
|
762178f097 | ||
|
|
5e2e0d9a32 | ||
|
|
48baad18a6 | ||
|
|
d237a54c3d | ||
|
|
15123c9a18 | ||
|
|
52071cf0b1 | ||
|
|
7c5bb7d019 | ||
|
|
f34b34e8a2 | ||
|
|
a529a81529 | ||
|
|
2e88f3fb20 | ||
|
|
b457512e99 | ||
|
|
d3b17dbcb9 | ||
|
|
a7ed2ac01b | ||
|
|
19f7cec6df | ||
|
|
7a40245954 | ||
|
|
2aa2164659 | ||
|
|
0ad2206225 | ||
|
|
84b2db2829 | ||
|
|
777d2a990a | ||
|
|
1242a2627f | ||
|
|
a8a9b25086 | ||
|
|
b8f8ee7596 | ||
|
|
c69becfcc9 | ||
|
|
cb256a41dc | ||
|
|
ef31ca76db | ||
|
|
202835974e | ||
|
|
e3af9ebeab | ||
|
|
b3ffd2ef95 | ||
|
|
dc9018f2ee | ||
|
|
bb54504747 | ||
|
|
cb5f04d59d | ||
|
|
6b0a23c77d | ||
|
|
38a4215c26 | ||
|
|
d169b3d37b | ||
|
|
130160f659 | ||
|
|
fbce7337a4 | ||
|
|
bee1ad520f | ||
|
|
6fb05929c2 | ||
|
|
a469976da4 | ||
|
|
ce92446784 | ||
|
|
d6562a99e8 | ||
|
|
a4dcc5f6fe | ||
|
|
82e40a8366 | ||
|
|
2c8714f0fe | ||
|
|
55b0508a7b | ||
|
|
8be86d2e54 | ||
|
|
3ff30eed90 | ||
|
|
54422e686a | ||
|
|
5203f99e62 | ||
|
|
4e198d349e | ||
|
|
93d0d8d38f | ||
|
|
bc725fb9b5 | ||
|
|
4afa5bff04 | ||
|
|
6f185f7761 | ||
|
|
a7ee842442 | ||
|
|
a41c4bbacd | ||
|
|
f3b0bfeedb | ||
|
|
34185693a8 | ||
|
|
4225108b72 | ||
|
|
dc3e971a7e | ||
|
|
ab0550c29d | ||
|
|
a38b9c0061 | ||
|
|
b4b7016433 | ||
|
|
6c5c58d1e8 | ||
|
|
f56f56047f | ||
|
|
818b65a0d4 | ||
|
|
23669a0409 | ||
|
|
e8deb39b49 | ||
|
|
8c8649671d | ||
|
|
8fef749953 | ||
|
|
9565067a46 | ||
|
|
8b5b037caf | ||
|
|
9f70f9cb52 | ||
|
|
1882311d32 | ||
|
|
20b7b8aa72 | ||
|
|
9621ab20bf | ||
|
|
f2330eb459 | ||
|
|
37928e864b | ||
|
|
32f352bb68 | ||
|
|
b3c21470de | ||
|
|
daa650308d | ||
|
|
f6806b13d3 | ||
|
|
103a22ed8e | ||
|
|
9af25b17a4 | ||
|
|
dcf8e1f205 | ||
|
|
033d3bbd40 | ||
|
|
34b93b8117 | ||
|
|
ef61c5a72c | ||
|
|
7c13a9f3b1 | ||
|
|
898eb50d34 | ||
|
|
6b6c7716c8 | ||
|
|
351b6ca2c6 | ||
|
|
08cd03a169 | ||
|
|
d7784c7d67 | ||
|
|
78b763db4d | ||
|
|
d6dbd3db1f | ||
|
|
be2abd7a2c | ||
|
|
1464bedb39 | ||
|
|
df5ae28aef | ||
|
|
2caa1592a8 | ||
|
|
8ec1b4ee83 | ||
|
|
9c1337b86f | ||
|
|
9a4de938e7 | ||
|
|
0eddf3358e | ||
|
|
cc0b044bfe | ||
|
|
6f136bc3f5 | ||
|
|
06471a021a | ||
|
|
e381009988 | ||
|
|
047329ce0a | ||
|
|
4e04c99aad | ||
|
|
b2e2e2a6bc | ||
|
|
0d6acc8491 | ||
|
|
0e030fdb50 | ||
|
|
cbaf31ef98 | ||
|
|
0e04699ad6 | ||
|
|
6e4309cd35 | ||
|
|
ef278f909e | ||
|
|
981a0b415a | ||
|
|
13ef2ec53a | ||
|
|
fa27c68f3e | ||
|
|
69272dcfcd | ||
|
|
f23d12f0ae | ||
|
|
1388fcf255 | ||
|
|
1ba2750fb6 | ||
|
|
974a9a3d5c | ||
|
|
0cbcded17a | ||
|
|
f9c5bba278 | ||
|
|
dbcdcc135b | ||
|
|
54747068e8 | ||
|
|
58752631d9 | ||
|
|
284cea9db5 | ||
|
|
62dca335b0 | ||
|
|
ad9bb8908b | ||
|
|
f3548d4772 | ||
|
|
8633625794 | ||
|
|
9323b18962 | ||
|
|
d8ebef8633 | ||
|
|
d8ff43782f | ||
|
|
806e3f40cd | ||
|
|
b8febcc271 | ||
|
|
814809437c | ||
|
|
4d52510e79 | ||
|
|
440593ffd1 | ||
|
|
9827b1d455 | ||
|
|
19b5a1e558 | ||
|
|
1cd0327569 | ||
|
|
75a2c4fce1 | ||
|
|
6f9ff35120 | ||
|
|
7f58cc3a0b | ||
|
|
6277f3a3b3 | ||
|
|
a4a3169649 | ||
|
|
072fc1a666 | ||
|
|
0c627abfcd | ||
|
|
3185d0a81d | ||
|
|
4d423eecaf | ||
|
|
0317a9ec8d | ||
|
|
c8460fa4ce | ||
|
|
2fce42c8be | ||
|
|
34c5281c43 | ||
|
|
463f69ae27 | ||
|
|
8ebe80d3dc | ||
|
|
37a76d8a25 | ||
|
|
63bce01588 | ||
|
|
18e9b9d2f5 | ||
|
|
b3711cec39 | ||
|
|
dde9a9185e | ||
|
|
3f737c9dc4 | ||
|
|
873c0b8d47 | ||
|
|
2a3924d2e0 | ||
|
|
a542382c77 | ||
|
|
909afc64d2 | ||
|
|
270c5df832 | ||
|
|
da9f453e91 | ||
|
|
6bc5327b10 | ||
|
|
0acd8acee3 | ||
|
|
9c363797fa | ||
|
|
f0ad8b22a7 | ||
|
|
0abb41fb24 | ||
|
|
2d2a382150 | ||
|
|
74f7c311eb | ||
|
|
210deb53ba | ||
|
|
e121b35d4c | ||
|
|
3b846f9edf | ||
|
|
f2b4462a33 | ||
|
|
e68238933b | ||
|
|
49f795c9c9 | ||
|
|
bbc03d38ad | ||
|
|
eb9061c0ef | ||
|
|
093237bea8 | ||
|
|
9cbd053f44 | ||
|
|
789e4a6e68 | ||
|
|
b895b64505 | ||
|
|
3e56d44211 | ||
|
|
226a10c27a | ||
|
|
9259952dca | ||
|
|
d548e091c7 | ||
|
|
e623d0cd2b | ||
|
|
645b1aba54 | ||
|
|
9cb4c25b8a | ||
|
|
04a7745986 | ||
|
|
e33d697bbd | ||
|
|
3e4a7413ef | ||
|
|
e08fc8df48 | ||
|
|
9d3f958db2 | ||
|
|
4cb578fb28 | ||
|
|
067e9e08c7 | ||
|
|
b7e4e49c84 | ||
|
|
3007f63368 | ||
|
|
bc13612958 | ||
|
|
18d4872487 | ||
|
|
50fb78a575 | ||
|
|
43efe84083 | ||
|
|
14d9729d57 | ||
|
|
1c91cf67ee | ||
|
|
661f8f1993 | ||
|
|
33f38025b2 | ||
|
|
f59d48eecf | ||
|
|
36d221edd9 | ||
|
|
e39c37dd58 | ||
|
|
2975241aaf | ||
|
|
60280cb48a | ||
|
|
c89e48e233 | ||
|
|
af6d54dbdd | ||
|
|
ea6a04a363 | ||
|
|
9acc778e9e | ||
|
|
9b7d72b4f3 | ||
|
|
48263cb73e | ||
|
|
946d493f92 | ||
|
|
c7896988cd | ||
|
|
866322d95e | ||
|
|
8ba9c7c1f8 | ||
|
|
7491373c1e | ||
|
|
0a71d36864 | ||
|
|
5f745cfd66 | ||
|
|
1347e8f244 | ||
|
|
376ee7ffc4 | ||
|
|
c49f31fb70 | ||
|
|
064759d0a6 | ||
|
|
4cc8b798cc | ||
|
|
e8c68e85db | ||
|
|
2d2078838d | ||
|
|
06ca9ef5c4 | ||
|
|
a0aa1b960a | ||
|
|
34cb9deb75 | ||
|
|
6dfda342cc | ||
|
|
416447022b | ||
|
|
c5129bc74b | ||
|
|
59aaafb7d0 | ||
|
|
10a148d16b | ||
|
|
9c33ecf2b8 | ||
|
|
73b2bf9d78 | ||
|
|
78e2d8b9b1 | ||
|
|
c2335df585 | ||
|
|
28de62d660 | ||
|
|
d0d34df829 | ||
|
|
9c0c764b13 | ||
|
|
12a011a2e9 | ||
|
|
b893071648 | ||
|
|
6d496c35bf | ||
|
|
14334bc5ea | ||
|
|
22f1039803 | ||
|
|
a4426a97a5 | ||
|
|
8d5737519d | ||
|
|
b3785299ff | ||
|
|
821cb4f5b2 | ||
|
|
250dbce4cf | ||
|
|
3cadc697e1 | ||
|
|
eecbd2d60c | ||
|
|
d69c3be183 | ||
|
|
6aa6a226a0 | ||
|
|
683eda7a2e | ||
|
|
057541d810 | ||
|
|
1359dee773 | ||
|
|
fb48c801ad | ||
|
|
252994d3f4 | ||
|
|
579a822e8a | ||
|
|
17726547ac | ||
|
|
aae40a4d2d | ||
|
|
53caf671cb | ||
|
|
2aaf45465d | ||
|
|
36a43a236d | ||
|
|
309ba432a9 | ||
|
|
7f72e574c1 | ||
|
|
e3f84eb9e4 | ||
|
|
619a993e2c | ||
|
|
d272bf5abd | ||
|
|
fab3227026 | ||
|
|
1caffddc3f | ||
|
|
dad4df6919 | ||
|
|
332b7443db | ||
|
|
f347f08869 | ||
|
|
9083887386 | ||
|
|
7516584ad9 | ||
|
|
b1974e5540 | ||
|
|
d807cd69da | ||
|
|
b5cd4ed681 | ||
|
|
cb1644bdd6 | ||
|
|
e7a07c934b | ||
|
|
4353d33c01 | ||
|
|
4b07a41a74 | ||
|
|
2475291b21 | ||
|
|
928088a46d | ||
|
|
5c5ba7aa15 | ||
|
|
2b381da127 | ||
|
|
b0844bfd3a | ||
|
|
489f3fc875 | ||
|
|
e96f49b91f | ||
|
|
989168e646 | ||
|
|
caca355dec | ||
|
|
01e83014a6 | ||
|
|
dcd63f4da3 | ||
|
|
5132f68d26 | ||
|
|
9101132f9e | ||
|
|
c41e517028 | ||
|
|
fc95d0c6a1 | ||
|
|
6c0a9f5fc0 | ||
|
|
34e280d8c3 | ||
|
|
971976b8c4 | ||
|
|
93aed372f7 | ||
|
|
aa390e05d8 | ||
|
|
1a22e3ed7e | ||
|
|
1896cfefef | ||
|
|
410ce267d5 | ||
|
|
fcb9e9bf51 | ||
|
|
37e2169b4e | ||
|
|
2e8166fd64 | ||
|
|
3f42f06246 | ||
|
|
7519f0fc4c | ||
|
|
7062dc3e8b | ||
|
|
8c90b18f03 | ||
|
|
51c5a4e65e | ||
|
|
169ef88ab4 | ||
|
|
e0c55754d5 | ||
|
|
b7194daf71 | ||
|
|
01e298fd41 | ||
|
|
091955e9a0 | ||
|
|
76b98f20a7 | ||
|
|
51d691cc02 | ||
|
|
45e857d860 | ||
|
|
28bd74e177 | ||
|
|
eb73055cf6 | ||
|
|
2c17cc458b | ||
|
|
d10b7ecd53 | ||
|
|
028e053c7f | ||
|
|
252f4090ad | ||
|
|
9599670719 | ||
|
|
100e540599 | ||
|
|
b383080e9b | ||
|
|
f40460044c | ||
|
|
967990a454 | ||
|
|
120ec26f3b | ||
|
|
f686bba5d8 | ||
|
|
1d1cd2baaf | ||
|
|
b6030ceac7 | ||
|
|
258a2a6d4a | ||
|
|
2f38d972f2 | ||
|
|
afe30290c8 | ||
|
|
19cd8f1747 | ||
|
|
3ee2fa81c3 | ||
|
|
2ebb109791 | ||
|
|
8344cba9ee | ||
|
|
7c82b0b5f1 | ||
|
|
1f838ed9cc | ||
|
|
288ad892dc | ||
|
|
0067ebd9f5 | ||
|
|
3ed94d5f1f | ||
|
|
74de522d21 | ||
|
|
318689d640 | ||
|
|
06a85f06f3 | ||
|
|
fa0386eb21 | ||
|
|
980b8b883b | ||
|
|
b237b4f45e | ||
|
|
e5bf02a97b | ||
|
|
ffbff9e7c8 | ||
|
|
f07d66246d | ||
|
|
6c6ce1b3d7 | ||
|
|
c813db9f21 | ||
|
|
eb1e3503ae | ||
|
|
f62900eb59 | ||
|
|
0e926140f9 | ||
|
|
639989c1df | ||
|
|
78accf0d1a | ||
|
|
d7505330dd | ||
|
|
b166fe020d | ||
|
|
55f10b405f | ||
|
|
8bcbaf642c | ||
|
|
a5420e53d5 | ||
|
|
611923e583 | ||
|
|
4e84b82b51 | ||
|
|
865a79a1b5 | ||
|
|
5e7fed7a2f | ||
|
|
ed816f5fa6 | ||
|
|
da470df1ca | ||
|
|
4ff5cdca2a | ||
|
|
991d518e3e | ||
|
|
d8984b315e | ||
|
|
c5fccc649e | ||
|
|
419cb327c4 | ||
|
|
7860787b10 | ||
|
|
ccf37b21ec | ||
|
|
0ba95a928f | ||
|
|
569c87328e | ||
|
|
941d2435ba | ||
|
|
68944c6b5c | ||
|
|
1122546a7f | ||
|
|
b77b7f8e29 | ||
|
|
1eb33cb46e | ||
|
|
c0fbb70022 | ||
|
|
ec97378850 | ||
|
|
df2bf72c59 | ||
|
|
7527b7b206 | ||
|
|
a252dee761 | ||
|
|
05ab0a848d | ||
|
|
d0cd134272 | ||
|
|
e89f59cad5 | ||
|
|
dd050726f8 | ||
|
|
02f74ae132 | ||
|
|
a017529e6b | ||
|
|
7083308cff | ||
|
|
6430228b19 | ||
|
|
7ba4c213b3 | ||
|
|
84470b2c93 | ||
|
|
270ce881b4 | ||
|
|
173cc583c1 | ||
|
|
651e1ddd8a | ||
|
|
30e53d03e9 | ||
|
|
0a71bb415f | ||
|
|
daf51ae193 | ||
|
|
e20da712ec | ||
|
|
a4d81273ff | ||
|
|
931605d622 | ||
|
|
ba241132ea | ||
|
|
36bb330940 | ||
|
|
328d62f08f | ||
|
|
6a952509ef | ||
|
|
3295631735 | ||
|
|
f12855c796 | ||
|
|
121acfa205 | ||
|
|
01eb918031 | ||
|
|
63d606d58f | ||
|
|
8f331211d9 | ||
|
|
e2e17b4ff5 | ||
|
|
d5785373e3 | ||
|
|
1299fd6c0b | ||
|
|
7021f197de | ||
|
|
df37832d89 | ||
|
|
6d83d361f0 | ||
|
|
93c11dbc7d | ||
|
|
6a84236160 | ||
|
|
8b985c46d4 | ||
|
|
bd0a1b5cb4 | ||
|
|
b765a3d4c4 | ||
|
|
06ac17fb62 | ||
|
|
4dbf02b9bd | ||
|
|
da4d6e495b | ||
|
|
b6c93b5c5c | ||
|
|
6d6b3023f8 | ||
|
|
d31b3296a7 | ||
|
|
bb0622beb7 | ||
|
|
342865f5fe | ||
|
|
e6f4dfa6bc | ||
|
|
f52acaed14 | ||
|
|
888a71ee23 | ||
|
|
90932ba7f3 | ||
|
|
b845870367 | ||
|
|
c3b9e376e5 | ||
|
|
59ee43f7fc | ||
|
|
a30fed502d | ||
|
|
d65bc1efa0 | ||
|
|
932343b896 | ||
|
|
4443e74058 | ||
|
|
9a868467c2 | ||
|
|
6a9e7e63c8 | ||
|
|
2fc190da13 | ||
|
|
d6fa660ea6 | ||
|
|
2c4f182411 | ||
|
|
159030e89c | ||
|
|
c140cc2ce4 | ||
|
|
8023b08ebc | ||
|
|
c90da152c8 | ||
|
|
f9f813ef1c | ||
|
|
8fad354f5e | ||
|
|
9a58260a6e | ||
|
|
d1bd5d5e97 | ||
|
|
ea86098377 | ||
|
|
dcfe02ab7b | ||
|
|
cb5728cc3b | ||
|
|
1a57622faf | ||
|
|
5bfc12b38e | ||
|
|
fb01047518 | ||
|
|
a8e3ac3d29 | ||
|
|
8d648e06d7 | ||
|
|
c49588441a | ||
|
|
d9793670d5 | ||
|
|
865140e021 | ||
|
|
6e44e98669 | ||
|
|
97ae527556 | ||
|
|
c2c9a9c0b6 | ||
|
|
058528945e | ||
|
|
b3d531541b | ||
|
|
f52490e687 | ||
|
|
16ba6581af | ||
|
|
7fe99209ab | ||
|
|
64aa89c32a | ||
|
|
770be8200a | ||
|
|
574bed9e24 | ||
|
|
d468916c06 | ||
|
|
9dbd192f71 | ||
|
|
e618bdbebb | ||
|
|
7f3afb38db | ||
|
|
1ef39b7b56 | ||
|
|
a29fb3f1d9 | ||
|
|
907eec02fc | ||
|
|
cb001a0982 | ||
|
|
6320eadc46 | ||
|
|
30a83caa1d | ||
|
|
765cdf4fa9 | ||
|
|
f818f184a0 | ||
|
|
2478da99aa | ||
|
|
27e760dac4 | ||
|
|
84d2d35991 | ||
|
|
7f7558dc5d | ||
|
|
2705d8b72b | ||
|
|
0a8ef0fe92 | ||
|
|
8191c9d684 | ||
|
|
79880beab5 | ||
|
|
7db449cd06 | ||
|
|
18dd71d7d3 | ||
|
|
8d3833cb33 | ||
|
|
580e6e380c | ||
|
|
f5924be40d | ||
|
|
886d9b7c4f | ||
|
|
d2773dffe3 | ||
|
|
79da82091a | ||
|
|
8927726ce7 | ||
|
|
4aa916c066 | ||
|
|
a193449dbf | ||
|
|
6d47545512 | ||
|
|
d568e564ce | ||
|
|
9a6d1be468 | ||
|
|
c3710aa7cf | ||
|
|
ab9846ab1e | ||
|
|
bfb9762e5a | ||
|
|
f49139b533 | ||
|
|
19c0e43ded | ||
|
|
d69dd3df67 | ||
|
|
dc683794a3 | ||
|
|
dc6d4aa6fa | ||
|
|
99e13cf601 | ||
|
|
66eaef7892 | ||
|
|
5ff13771d4 | ||
|
|
c6019b3551 | ||
|
|
3be8f0bb27 | ||
|
|
f82a173c1b | ||
|
|
c4fd2231d1 | ||
|
|
22765f12e4 | ||
|
|
fb8e1bdb06 | ||
|
|
9c16516bfc | ||
|
|
a4f420d4fb | ||
|
|
6a697df2cd | ||
|
|
fabbe52905 | ||
|
|
b625f8c219 | ||
|
|
3270b2a66f | ||
|
|
84003fe77b | ||
|
|
2a38ee05b4 | ||
|
|
9dcd28272e | ||
|
|
bae6f56e4b | ||
|
|
deff3927b7 | ||
|
|
6f9a832691 | ||
|
|
5e3057bc5f | ||
|
|
062e198b32 | ||
|
|
52eb9ba5eb | ||
|
|
ba85b17922 | ||
|
|
69fbd973a0 | ||
|
|
041db07f43 | ||
|
|
60a9b36aae | ||
|
|
075aedf4ee | ||
|
|
ca11a90c92 | ||
|
|
84e4143c7e | ||
|
|
abd3497f8c | ||
|
|
6389e9eed1 | ||
|
|
16a80cecba | ||
|
|
bbf17a2772 | ||
|
|
5b712622da | ||
|
|
0eec4f1a12 | ||
|
|
e18af2d0ee | ||
|
|
0f9df28d81 | ||
|
|
655211e9e0 | ||
|
|
e62cab32bc | ||
|
|
ff64ed5645 | ||
|
|
7ac835a8b2 | ||
|
|
b44472476c | ||
|
|
7ce12116c7 | ||
|
|
16bf5b4e43 | ||
|
|
f5cc851bd0 | ||
|
|
2b7533ef10 | ||
|
|
24c8eb13e7 | ||
|
|
7bfc990fcf | ||
|
|
b978d371e9 | ||
|
|
8c7166d122 | ||
|
|
273f420e23 | ||
|
|
edef6fb916 | ||
|
|
2aa7b332a8 | ||
|
|
db039d9432 | ||
|
|
97b88d421f | ||
|
|
4b800ef247 | ||
|
|
199c8166c7 | ||
|
|
fbecb0f668 | ||
|
|
1dd1cfee5a | ||
|
|
52d84b804d | ||
|
|
a0ade5ef67 | ||
|
|
4b226a4436 | ||
|
|
07d74ceef4 | ||
|
|
d4f79e4e21 | ||
|
|
093e5bfd97 | ||
|
|
3ba1fc9867 | ||
|
|
127e23606e | ||
|
|
be500f5f77 | ||
|
|
28f1fa0323 | ||
|
|
15a67038a4 | ||
|
|
579c8e2248 | ||
|
|
312671bf23 | ||
|
|
cc845797fa | ||
|
|
8c486b4dbf | ||
|
|
3da62e7fd4 | ||
|
|
d75c5a8f47 | ||
|
|
fefde390b5 | ||
|
|
d1916dab07 | ||
|
|
12ad3a8ea1 | ||
|
|
41ae9835a0 | ||
|
|
42395fb4cd | ||
|
|
02844df3be | ||
|
|
c9fbdb8075 | ||
|
|
9470ef781b | ||
|
|
450082561c | ||
|
|
de2f3b6942 | ||
|
|
c3ba33bbb8 | ||
|
|
d6eb736cf5 | ||
|
|
f0ebe3333d | ||
|
|
0a89ba79ef | ||
|
|
479c02d23b | ||
|
|
af65076fcc | ||
|
|
867ac81c42 | ||
|
|
1c2af52291 | ||
|
|
524f22fa3d | ||
|
|
f562178cfd | ||
|
|
ff8d0b5547 | ||
|
|
32ae9a79ff | ||
|
|
dee37d8ec6 | ||
|
|
14bcf4dfb6 | ||
|
|
53ff6e3994 | ||
|
|
dea623bfa3 | ||
|
|
c631c144f2 | ||
|
|
2064c545e9 | ||
|
|
7edab401af | ||
|
|
70d8dbcabe | ||
|
|
fdf016b522 | ||
|
|
eb6f6392d7 | ||
|
|
7d127002f9 | ||
|
|
4d74acf338 | ||
|
|
4c6b85103e | ||
|
|
fc64e1c69b | ||
|
|
c322512ff3 | ||
|
|
3b7075a69b | ||
|
|
3848b18fe7 | ||
|
|
b0bb720dd1 | ||
|
|
5735cf240f | ||
|
|
32093a83c6 | ||
|
|
f291b097d5 | ||
|
|
1c08cd13d9 | ||
|
|
d66d5defc6 | ||
|
|
e6f28ca7ba | ||
|
|
e414c28907 | ||
|
|
c94e8e9c8e | ||
|
|
a566a33989 | ||
|
|
1452789bbd | ||
|
|
cc675f4462 | ||
|
|
b591bc9b02 | ||
|
|
15352050f2 | ||
|
|
27bf7b0e38 | ||
|
|
15925c0587 | ||
|
|
6fb1b8e0d6 | ||
|
|
f536f04be7 | ||
|
|
46858a98ee | ||
|
|
759b90d985 | ||
|
|
3b5f2c1e21 | ||
|
|
e143bf497c | ||
|
|
750861810b | ||
|
|
c0cc4a7df7 | ||
|
|
df73818e4c | ||
|
|
7ba994995c | ||
|
|
cfd4889e52 | ||
|
|
09be733a85 | ||
|
|
70a3da2b30 | ||
|
|
3f1f724756 | ||
|
|
76ea87ea04 | ||
|
|
9754a010ca | ||
|
|
5ca75e8020 | ||
|
|
75b915c855 | ||
|
|
82ee650dbf | ||
|
|
879bafb0b6 | ||
|
|
fd723643f2 | ||
|
|
5dbbb4bb89 | ||
|
|
28bab47569 | ||
|
|
391cdf28f4 | ||
|
|
a2221d154c | ||
|
|
571b348058 | ||
|
|
af37c61c55 | ||
|
|
f958803974 | ||
|
|
4bac26a215 | ||
|
|
834be86386 | ||
|
|
01e635a3a6 | ||
|
|
4d9fe202fe | ||
|
|
faac109667 | ||
|
|
7ef56b5288 | ||
|
|
bde00ceef7 | ||
|
|
ac6276e5cd | ||
|
|
13d46b9f86 | ||
|
|
c0b38598d6 | ||
|
|
c959c10bfc | ||
|
|
1e7a6bdb4d | ||
|
|
7425479597 | ||
|
|
9cdcbef4af | ||
|
|
9eb3c904c6 | ||
|
|
94a677a8af | ||
|
|
9d922a368f | ||
|
|
1424e84e14 | ||
|
|
f2333c7dab | ||
|
|
a57d0470d2 | ||
|
|
dc0146ae24 | ||
|
|
1978802be8 | ||
|
|
51e85831e8 | ||
|
|
0a87564964 | ||
|
|
946d742a4d | ||
|
|
bc8b6d116e | ||
|
|
0a81ee7839 | ||
|
|
52995d7ec4 | ||
|
|
deecdfd350 | ||
|
|
5fc1175eb9 | ||
|
|
b84b2685ff | ||
|
|
99aaa55232 | ||
|
|
4e6e50c103 | ||
|
|
b17c92e839 | ||
|
|
d5ce80751a | ||
|
|
b87e5bb00d | ||
|
|
a72c992c6f | ||
|
|
080879ab10 | ||
|
|
78b500998c | ||
|
|
7097d190f2 | ||
|
|
f49a6fc3a9 | ||
|
|
9299843cda | ||
|
|
0925de79f3 | ||
|
|
b1873070a7 | ||
|
|
5b962a0f3c | ||
|
|
6b11a987a4 | ||
|
|
d016fe35cc | ||
|
|
be68b07064 | ||
|
|
c45dd4d212 | ||
|
|
3600061916 | ||
|
|
f7d9ac0919 | ||
|
|
542eeddaf1 | ||
|
|
0b8b118754 | ||
|
|
4c88fb3ec4 | ||
|
|
75bf4aa54d | ||
|
|
88babc4d7b | ||
|
|
ada22baf14 | ||
|
|
d46c14654b | ||
|
|
578092310a | ||
|
|
032742ad4c | ||
|
|
7c76fd51f5 | ||
|
|
48f3a0603c | ||
|
|
20945ad3ee | ||
|
|
b286c0c010 | ||
|
|
9c68bc61cc | ||
|
|
cd534a023e | ||
|
|
ac743ecce8 | ||
|
|
68ccc3d94a | ||
|
|
cedec739aa | ||
|
|
cd59845c25 | ||
|
|
84fb96cb65 | ||
|
|
6b2d99d685 | ||
|
|
e6c61c5ffe | ||
|
|
b84f7a78de | ||
|
|
f6d3593b2e | ||
|
|
d6ec571916 | ||
|
|
a378b87978 | ||
|
|
734f2fb55c | ||
|
|
4cdb11b194 | ||
|
|
7258a74fc0 | ||
|
|
944a16f933 | ||
|
|
3b3d0e4e1b | ||
|
|
f614c92aba | ||
|
|
e16887dc96 | ||
|
|
12980882c5 | ||
|
|
1e0b48570c | ||
|
|
3412f4f935 | ||
|
|
9baa358bf2 | ||
|
|
9b0345f34f | ||
|
|
0209785bbb | ||
|
|
7ef083b590 | ||
|
|
97336400bc | ||
|
|
a633fa30b6 | ||
|
|
52a561a9c0 | ||
|
|
45c9c2b5a6 | ||
|
|
ea30288c1f | ||
|
|
77f9635cce | ||
|
|
3963f45810 | ||
|
|
210400fa8f | ||
|
|
9d0be77836 | ||
|
|
223352ad77 | ||
|
|
852ba0f2aa | ||
|
|
58d7842b20 | ||
|
|
bf992aac1f | ||
|
|
ba3a9ad68c | ||
|
|
522636a5de | ||
|
|
6f9ef9e6d4 | ||
|
|
a1c9b6dcaa | ||
|
|
743ccfad5b | ||
|
|
055d89c0e3 | ||
|
|
3188df57a2 | ||
|
|
bf35f71ce1 | ||
|
|
49e47e3066 | ||
|
|
30cf63de80 | ||
|
|
3e9e75feec | ||
|
|
ccc05991a3 | ||
|
|
c39e2405d9 | ||
|
|
478e94b19b | ||
|
|
541b381b71 | ||
|
|
0851c72b83 | ||
|
|
644f5864a9 | ||
|
|
c4175bcb0e | ||
|
|
58cd4c0ef8 | ||
|
|
a17b679975 | ||
|
|
e8d09fd3a6 | ||
|
|
ccf2994b95 | ||
|
|
7277b119b3 | ||
|
|
c0d2a0e2f2 | ||
|
|
347134e10d | ||
|
|
2eb2dcca67 | ||
|
|
9446096dca | ||
|
|
7362f1b13f | ||
|
|
148aeb9479 | ||
|
|
89bd8c3bc9 | ||
|
|
f3bc03de75 | ||
|
|
d69298a9d2 | ||
|
|
417b06f591 | ||
|
|
9fce7b0c15 | ||
|
|
e7538bfe37 | ||
|
|
9c726938af | ||
|
|
bed7f86409 | ||
|
|
7a33492452 | ||
|
|
08f88ab066 | ||
|
|
9fc68e8c6c | ||
|
|
a81253b229 | ||
|
|
0d44d897c3 | ||
|
|
8e1de98ab5 | ||
|
|
011f173694 | ||
|
|
2ffbb4f583 | ||
|
|
6563efab51 | ||
|
|
c70061dbb3 | ||
|
|
a591a0e509 | ||
|
|
6dd1042b5d | ||
|
|
b98dbfaa02 | ||
|
|
3e38e2ea2a | ||
|
|
cb8f332910 | ||
|
|
32644723fe | ||
|
|
25f4419ba0 | ||
|
|
c4429f5066 | ||
|
|
15caf3db1c | ||
|
|
d89dab4e33 | ||
|
|
6e8fa75abe | ||
|
|
b9147e6fd2 | ||
|
|
35708ce998 | ||
|
|
d48f50c349 | ||
|
|
190716d4ac | ||
|
|
74e6cc86a3 | ||
|
|
b576ab2cb5 | ||
|
|
c9f9d5ee25 | ||
|
|
3a0fa24595 | ||
|
|
be0faff780 | ||
|
|
7b445faf02 | ||
|
|
3f799e031d | ||
|
|
71408231d2 | ||
|
|
3a3369076f | ||
|
|
934632fc76 | ||
|
|
bdf07b5f16 | ||
|
|
f082f7eb5e | ||
|
|
2f507e7b3c | ||
|
|
b18dd56b44 | ||
|
|
bfa9612c50 | ||
|
|
71a5f24ba3 | ||
|
|
b8d939ca6e | ||
|
|
28fb79fcef | ||
|
|
869cfacaf7 | ||
|
|
79a8db9e5d | ||
|
|
53b538cfc8 | ||
|
|
efca1f8c77 | ||
|
|
28e1dfd154 | ||
|
|
1c6394c2d0 | ||
|
|
4518901d71 | ||
|
|
31eba671e2 | ||
|
|
08ffd64c70 | ||
|
|
149b556a40 | ||
|
|
12bc995595 | ||
|
|
ab205b541a | ||
|
|
b51d6a324e | ||
|
|
f037c3b791 | ||
|
|
040d9254e3 | ||
|
|
230b7ea144 | ||
|
|
495ac5394c | ||
|
|
3924a3e115 | ||
|
|
ac914fc99e | ||
|
|
33cab018e9 | ||
|
|
e03ce189b4 | ||
|
|
b605bcf7c8 | ||
|
|
2e1f51d842 | ||
|
|
e532cb3ce3 | ||
|
|
6278c9cdb6 | ||
|
|
08e25e2af2 | ||
|
|
9230e0bd2b | ||
|
|
f10ff94359 | ||
|
|
699606d62a | ||
|
|
b4e6b84fea | ||
|
|
32816676db | ||
|
|
dfe61b8c0c | ||
|
|
23d28fee69 | ||
|
|
185c444bad | ||
|
|
bb00d4e082 | ||
|
|
bc20c13bee | ||
|
|
0685d4013e | ||
|
|
6c0dabbcc9 | ||
|
|
51378fb74f | ||
|
|
ae215e19d6 | ||
|
|
2aa4acab95 | ||
|
|
8626b336eb | ||
|
|
feff21ed38 | ||
|
|
ebce0e90ac | ||
|
|
a87258a834 | ||
|
|
bcb12509a4 | ||
|
|
54966bf91e | ||
|
|
011094c243 | ||
|
|
dc5a959bfb | ||
|
|
8fdcb733f6 | ||
|
|
a4aa98059e | ||
|
|
beb412d2f0 | ||
|
|
cd7adcfa5b | ||
|
|
ddfb13e8bd | ||
|
|
6455b470d5 | ||
|
|
2e0f295a75 | ||
|
|
0fe83f199b | ||
|
|
3bf966446e | ||
|
|
d280db659f | ||
|
|
52fa2d449f | ||
|
|
bd2b8bbb50 | ||
|
|
9540a1b2bb | ||
|
|
a4303afba6 | ||
|
|
3f98b22adb | ||
|
|
3f9c7372e6 | ||
|
|
628723cd09 | ||
|
|
d84901b036 | ||
|
|
c12b68d3bc | ||
|
|
7159500167 | ||
|
|
8c517b89c5 | ||
|
|
489535b9e0 | ||
|
|
0899d7c171 | ||
|
|
2c951d67c1 | ||
|
|
685d8d596e | ||
|
|
ac0f716288 | ||
|
|
4a9749eec3 | ||
|
|
37f1655b17 | ||
|
|
aa9be56cfa | ||
|
|
b4b00ba592 | ||
|
|
41337e7380 | ||
|
|
3c9599e418 | ||
|
|
fa598b6cae | ||
|
|
ff7384e823 | ||
|
|
9c58478520 | ||
|
|
1664bd1228 | ||
|
|
455a608f47 | ||
|
|
0db46fd24d | ||
|
|
2306c86ff9 | ||
|
|
9598e1278f | ||
|
|
016eba860a | ||
|
|
e62c5f3e87 | ||
|
|
8aa6b7aa38 | ||
|
|
de7b2e5e74 | ||
|
|
17b2b4cace | ||
|
|
0b401a86ba | ||
|
|
8fff423963 | ||
|
|
4046113676 | ||
|
|
f6d25e7c68 | ||
|
|
90d52f24b4 | ||
|
|
14a4b48d16 | ||
|
|
5475d74886 | ||
|
|
aa82528d79 | ||
|
|
2359272160 | ||
|
|
1d765d463d | ||
|
|
fc4c559faa | ||
|
|
af2c5a6328 | ||
|
|
66f0536716 | ||
|
|
cdbe7612ce | ||
|
|
0afa0bedfe | ||
|
|
239d60872d | ||
|
|
74b117887f | ||
|
|
eb8deb8c1b | ||
|
|
f0a6db6e3e | ||
|
|
1192ec6846 | ||
|
|
d721125978 | ||
|
|
4c19332cbb | ||
|
|
4fa6ebaa6d | ||
|
|
c9603305c7 | ||
|
|
9145c77cc4 | ||
|
|
eaaefb2093 | ||
|
|
59997b00eb | ||
|
|
55b9838dc4 | ||
|
|
81d2477caa | ||
|
|
40b89da05b | ||
|
|
0ce90ca711 | ||
|
|
c34375d22a | ||
|
|
d2eaa239f7 | ||
|
|
4f1bf46f5d | ||
|
|
7eedfae1ee | ||
|
|
03b778a6f7 | ||
|
|
6311b52e3d | ||
|
|
a3570edb7f | ||
|
|
9246660bae | ||
|
|
db15162105 | ||
|
|
af9cdee1dc | ||
|
|
50c6f531fe | ||
|
|
3b535ab2ef | ||
|
|
3e9e763bae | ||
|
|
288c2fdcfb | ||
|
|
66a3fad9de | ||
|
|
6558fcffeb | ||
|
|
ef2c286317 | ||
|
|
19a71ea13f | ||
|
|
36e083362c | ||
|
|
d2b440e23a | ||
|
|
1c2b2f6390 | ||
|
|
86725c9808 | ||
|
|
0cb4e10e77 | ||
|
|
1c9d47ade0 | ||
|
|
ff1ff17b9d | ||
|
|
2eb916adb2 | ||
|
|
41dd85d37f | ||
|
|
d0d0e41c47 | ||
|
|
c3e71c904f | ||
|
|
b6cc6b0ab0 | ||
|
|
399a1319c0 | ||
|
|
77b37126c4 | ||
|
|
240237eba0 | ||
|
|
2e4127024c | ||
|
|
322798e844 | ||
|
|
94f2a23952 | ||
|
|
18a7fb8d42 | ||
|
|
b36e29928a | ||
|
|
9a1b140b6b | ||
|
|
90cd1e6284 | ||
|
|
9f5a8b5090 | ||
|
|
6c3f751156 | ||
|
|
e9dac37427 | ||
|
|
bc66d4807f | ||
|
|
508a0c5b7d | ||
|
|
795fab8784 | ||
|
|
3ecbfc5cdf | ||
|
|
f038869d64 | ||
|
|
0c2f0d51f9 | ||
|
|
75c8c9cd12 | ||
|
|
da97767078 | ||
|
|
eaf44edde8 | ||
|
|
ed2580f15a | ||
|
|
cd941313ec | ||
|
|
f25b9d367d | ||
|
|
da4024048d | ||
|
|
a50c5f3df5 | ||
|
|
4133a2fff5 | ||
|
|
50068fd6e0 | ||
|
|
7835dfb07e | ||
|
|
86f12df7f4 | ||
|
|
9895a33add | ||
|
|
90b1f42534 | ||
|
|
0534ba836d | ||
|
|
1193314ab4 | ||
|
|
3c1923f753 | ||
|
|
e5cdcb3d9a | ||
|
|
1917b8abfe | ||
|
|
9060bb7e6c | ||
|
|
ac349d4f71 | ||
|
|
ef523b7bc1 | ||
|
|
b928008ea2 | ||
|
|
8d9a25274c | ||
|
|
dc26a2c638 | ||
|
|
7eed8aaa95 | ||
|
|
7f3f2e7069 | ||
|
|
5022c51b04 | ||
|
|
1b6a18b9e4 | ||
|
|
d3baf5491f | ||
|
|
ef0e29ec51 | ||
|
|
142225cef1 | ||
|
|
1a870b97f1 | ||
|
|
e1737fe531 | ||
|
|
712d5c7659 | ||
|
|
b72d84c381 | ||
|
|
5da81c87c7 | ||
|
|
f47d01c612 | ||
|
|
86ee025299 | ||
|
|
f6d5221996 | ||
|
|
07e158b4cf | ||
|
|
39323d24e7 | ||
|
|
16b1141bdf | ||
|
|
c3494a9ffb | ||
|
|
bd5ca95ced | ||
|
|
612bb1db4c | ||
|
|
e912c2233e | ||
|
|
200e34d9af | ||
|
|
ca4aac906f | ||
|
|
3dfcb47c99 | ||
|
|
c571661492 | ||
|
|
4efb5b42d5 | ||
|
|
e2b731d7df | ||
|
|
67890faf02 | ||
|
|
741f87253e | ||
|
|
ff2d0533a2 | ||
|
|
8c170e98ee | ||
|
|
0a6c37218a | ||
|
|
7a48580674 | ||
|
|
e1b393609a | ||
|
|
61705e7f39 | ||
|
|
59b25d549c | ||
|
|
4e1923d3ad | ||
|
|
42184097f4 | ||
|
|
285283e32e | ||
|
|
780e7132fd | ||
|
|
1f12de6f96 | ||
|
|
64c2d4fe86 | ||
|
|
69ec6c9b26 | ||
|
|
34f7a63ece | ||
|
|
aed86d7f55 | ||
|
|
e42eb9313a | ||
|
|
ac3d91fcff | ||
|
|
ade56298bb | ||
|
|
26bb29ed10 | ||
|
|
a981cb2868 | ||
|
|
2c843652fd | ||
|
|
bf6316462c | ||
|
|
a8c2a315be | ||
|
|
da2095c0dc | ||
|
|
2f25a96f14 | ||
|
|
24cefa52e6 | ||
|
|
deebca4e10 | ||
|
|
163649cbd0 | ||
|
|
04637210d9 | ||
|
|
2e268f54e5 | ||
|
|
7c54ad976a | ||
|
|
4d36473556 | ||
|
|
bb72e03927 | ||
|
|
90f49df885 | ||
|
|
f6b2303084 | ||
|
|
055feb1f4f | ||
|
|
2471a39269 | ||
|
|
f8f515a025 | ||
|
|
1cfea69ffd | ||
|
|
8da5559e0f | ||
|
|
f6ec8c8015 | ||
|
|
f896ef768d | ||
|
|
457fc28670 | ||
|
|
3dc6e05d82 | ||
|
|
830f8c1257 | ||
|
|
31bda0647d | ||
|
|
7c49c9f9ea | ||
|
|
698d1ed095 | ||
|
|
6ee88bb33f |
49
mozilla/content/xul/content/public/nsIXULPopupListener.h
Normal file
49
mozilla/content/xul/content/public/nsIXULPopupListener.h
Normal file
@@ -0,0 +1,49 @@
|
||||
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
|
||||
*
|
||||
* The contents of this file are subject to the Netscape Public
|
||||
* License Version 1.1 (the "License"); you may not use this file
|
||||
* except in compliance with the License. You may obtain a copy of
|
||||
* the License at http://www.mozilla.org/NPL/
|
||||
*
|
||||
* Software distributed under the License is distributed on an "AS
|
||||
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
||||
* implied. See the License for the specific language governing
|
||||
* rights and limitations under the License.
|
||||
*
|
||||
* The Original Code is mozilla.org code.
|
||||
*
|
||||
* The Initial Developer of the Original Code is Netscape
|
||||
* Communications Corporation. Portions created by Netscape are
|
||||
* Copyright (C) 1998 Netscape Communications Corporation. All
|
||||
* Rights Reserved.
|
||||
*
|
||||
* Contributor(s):
|
||||
*/
|
||||
|
||||
#ifndef nsIXULPopupListener_h__
|
||||
#define nsIXULPopupListener_h__
|
||||
|
||||
// {2C453161-0942-11d3-BF87-00105A1B0627}
|
||||
#define NS_IXULPOPUPLISTENER_IID \
|
||||
{ 0x2c453161, 0x942, 0x11d3, { 0xbf, 0x87, 0x0, 0x10, 0x5a, 0x1b, 0x6, 0x27 } }
|
||||
|
||||
class nsIDOMElement;
|
||||
|
||||
typedef enum {
|
||||
eXULPopupType_popup,
|
||||
eXULPopupType_context,
|
||||
eXULPopupType_tooltip,
|
||||
eXULPopupType_blur
|
||||
} XULPopupType;
|
||||
|
||||
class nsIXULPopupListener: public nsISupports {
|
||||
public:
|
||||
static const nsIID& GetIID() { static nsIID iid = NS_IXULPOPUPLISTENER_IID; return iid; }
|
||||
|
||||
NS_IMETHOD Init(nsIDOMElement* anElement, const XULPopupType& aPopupType) = 0;
|
||||
};
|
||||
|
||||
extern nsresult
|
||||
NS_NewXULPopupListener(nsIXULPopupListener** result);
|
||||
|
||||
#endif // nsIXULPopupListener_h__
|
||||
43
mozilla/content/xul/content/src/nsIRDFNodeList.h
Normal file
43
mozilla/content/xul/content/src/nsIRDFNodeList.h
Normal file
@@ -0,0 +1,43 @@
|
||||
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
|
||||
*
|
||||
* The contents of this file are subject to the Netscape Public
|
||||
* License Version 1.1 (the "License"); you may not use this file
|
||||
* except in compliance with the License. You may obtain a copy of
|
||||
* the License at http://www.mozilla.org/NPL/
|
||||
*
|
||||
* Software distributed under the License is distributed on an "AS
|
||||
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
||||
* implied. See the License for the specific language governing
|
||||
* rights and limitations under the License.
|
||||
*
|
||||
* The Original Code is Mozilla Communicator client code.
|
||||
*
|
||||
* The Initial Developer of the Original Code is Netscape Communications
|
||||
* Corporation. Portions created by Netscape are
|
||||
* Copyright (C) 1998 Netscape Communications Corporation. All
|
||||
* Rights Reserved.
|
||||
*
|
||||
* Contributor(s):
|
||||
*/
|
||||
|
||||
#ifndef nsIRDFNodeList_h__
|
||||
#define nsIRDFNodeList_h__
|
||||
|
||||
#include "nsISupports.h"
|
||||
|
||||
// {661D1971-5CD2-11d3-BE36-00104BDE6048}
|
||||
#define NS_IRDFNODELIST_IID \
|
||||
{ 0x661d1971, 0x5cd2, 0x11d3, { 0xbe, 0x36, 0x0, 0x10, 0x4b, 0xde, 0x60, 0x48 } }
|
||||
|
||||
class nsIRDFNodeList : public nsISupports
|
||||
{
|
||||
public:
|
||||
static const nsIID& GetIID() { static nsIID iid = NS_IRDFNODELIST_IID; return iid; }
|
||||
|
||||
NS_IMETHOD AppendNode(nsIDOMNode* aNode) = 0;
|
||||
NS_IMETHOD RemoveNode(nsIDOMNode* aNode) = 0;
|
||||
};
|
||||
|
||||
|
||||
#endif // nsIRDFNodeList_h__
|
||||
|
||||
47
mozilla/content/xul/content/src/nsIXULTreeContent.h
Normal file
47
mozilla/content/xul/content/src/nsIXULTreeContent.h
Normal file
@@ -0,0 +1,47 @@
|
||||
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
|
||||
*
|
||||
* The contents of this file are subject to the Netscape Public
|
||||
* License Version 1.1 (the "License"); you may not use this file
|
||||
* except in compliance with the License. You may obtain a copy of
|
||||
* the License at http://www.mozilla.org/NPL/
|
||||
*
|
||||
* Software distributed under the License is distributed on an "AS
|
||||
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
||||
* implied. See the License for the specific language governing
|
||||
* rights and limitations under the License.
|
||||
*
|
||||
* The Original Code is Mozilla Communicator client code.
|
||||
*
|
||||
* The Initial Developer of the Original Code is Netscape Communications
|
||||
* Corporation. Portions created by Netscape are
|
||||
* Copyright (C) 1998 Netscape Communications Corporation. All
|
||||
* Rights Reserved.
|
||||
*
|
||||
* Contributor(s):
|
||||
*/
|
||||
|
||||
/*
|
||||
|
||||
A private interface to the tree element
|
||||
|
||||
*/
|
||||
|
||||
#ifndef nsIXULTreeContent_h__
|
||||
#define nsIXULTreeContent_h__
|
||||
|
||||
#include "nsISupports.h"
|
||||
|
||||
// {661D1970-5CD2-11d3-BE36-00104BDE6048}
|
||||
#define NS_IXULTREECONTENT_IID \
|
||||
{ 0x661d1970, 0x5cd2, 0x11d3, { 0xbe, 0x36, 0x0, 0x10, 0x4b, 0xde, 0x60, 0x48 } }
|
||||
|
||||
|
||||
class nsIXULTreeContent : public nsISupports
|
||||
{
|
||||
public:
|
||||
static const nsIID& GetIID() { static nsIID iid = NS_IXULTREECONTENT_IID; return iid; }
|
||||
|
||||
NS_IMETHOD FireOnSelectHandler() = 0;
|
||||
};
|
||||
|
||||
#endif // nsIXULTreeContent_h__
|
||||
241
mozilla/content/xul/content/src/nsRDFDOMNodeList.cpp
Normal file
241
mozilla/content/xul/content/src/nsRDFDOMNodeList.cpp
Normal file
@@ -0,0 +1,241 @@
|
||||
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
|
||||
*
|
||||
* The contents of this file are subject to the Netscape Public
|
||||
* License Version 1.1 (the "License"); you may not use this file
|
||||
* except in compliance with the License. You may obtain a copy of
|
||||
* the License at http://www.mozilla.org/NPL/
|
||||
*
|
||||
* Software distributed under the License is distributed on an "AS
|
||||
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
||||
* implied. See the License for the specific language governing
|
||||
* rights and limitations under the License.
|
||||
*
|
||||
* The Original Code is Mozilla Communicator client code.
|
||||
*
|
||||
* The Initial Developer of the Original Code is Netscape Communications
|
||||
* Corporation. Portions created by Netscape are
|
||||
* Copyright (C) 1998 Netscape Communications Corporation. All
|
||||
* Rights Reserved.
|
||||
*
|
||||
* Contributor(s):
|
||||
*/
|
||||
|
||||
/*
|
||||
|
||||
Helper class to implement the nsIDOMNodeList interface.
|
||||
|
||||
XXX It's probably wrong in some sense, as it uses the "naked"
|
||||
content interface to look for kids. (I assume in general this is
|
||||
bad because there may be pseudo-elements created for presentation
|
||||
that aren't visible to the DOM.)
|
||||
|
||||
*/
|
||||
|
||||
#include "nsDOMCID.h"
|
||||
#include "nsIDOMNode.h"
|
||||
#include "nsIDOMScriptObjectFactory.h"
|
||||
#include "nsIScriptGlobalObject.h"
|
||||
#include "nsIServiceManager.h"
|
||||
#include "nsISupportsArray.h"
|
||||
#include "nsRDFDOMNodeList.h"
|
||||
|
||||
////////////////////////////////////////////////////////////////////////
|
||||
// GUID definitions
|
||||
|
||||
static NS_DEFINE_IID(kIDOMNodeIID, NS_IDOMNODE_IID);
|
||||
static NS_DEFINE_IID(kIDOMNodeListIID, NS_IDOMNODELIST_IID);
|
||||
static NS_DEFINE_IID(kIDOMScriptObjectFactoryIID, NS_IDOM_SCRIPT_OBJECT_FACTORY_IID);
|
||||
|
||||
static NS_DEFINE_CID(kDOMScriptObjectFactoryCID, NS_DOM_SCRIPT_OBJECT_FACTORY_CID);
|
||||
|
||||
////////////////////////////////////////////////////////////////////////
|
||||
// ctors & dtors
|
||||
|
||||
|
||||
nsRDFDOMNodeList::nsRDFDOMNodeList(void)
|
||||
: //mInner(nsnull), Not being used?
|
||||
mElements(nsnull),
|
||||
mScriptObject(nsnull)
|
||||
{
|
||||
NS_INIT_REFCNT();
|
||||
}
|
||||
|
||||
nsRDFDOMNodeList::~nsRDFDOMNodeList(void)
|
||||
{
|
||||
#ifdef DEBUG_REFS
|
||||
--gInstanceCount;
|
||||
fprintf(stdout, "%d - RDF: nsRDFDOMNodeList\n", gInstanceCount);
|
||||
#endif
|
||||
|
||||
NS_IF_RELEASE(mElements);
|
||||
//delete mInner; Not being used?
|
||||
}
|
||||
|
||||
nsresult
|
||||
nsRDFDOMNodeList::Create(nsRDFDOMNodeList** aResult)
|
||||
{
|
||||
NS_PRECONDITION(aResult != nsnull, "null ptr");
|
||||
if (! aResult)
|
||||
return NS_ERROR_NULL_POINTER;
|
||||
|
||||
nsRDFDOMNodeList* list = new nsRDFDOMNodeList();
|
||||
if (! list)
|
||||
return NS_ERROR_OUT_OF_MEMORY;
|
||||
|
||||
nsresult rv;
|
||||
if (NS_FAILED(rv = list->Init())) {
|
||||
delete list;
|
||||
return rv;
|
||||
}
|
||||
|
||||
NS_ADDREF(list);
|
||||
*aResult = list;
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////////////////
|
||||
// nsISupports interface
|
||||
|
||||
NS_IMPL_ADDREF(nsRDFDOMNodeList);
|
||||
NS_IMPL_RELEASE(nsRDFDOMNodeList);
|
||||
|
||||
nsresult
|
||||
nsRDFDOMNodeList::QueryInterface(REFNSIID aIID, void** aResult)
|
||||
{
|
||||
static NS_DEFINE_IID(kISupportsIID, NS_ISUPPORTS_IID);
|
||||
static NS_DEFINE_IID(kIScriptObjectOwnerIID, NS_ISCRIPTOBJECTOWNER_IID);
|
||||
|
||||
NS_PRECONDITION(aResult != nsnull, "null ptr");
|
||||
if (! aResult)
|
||||
return NS_ERROR_NULL_POINTER;
|
||||
|
||||
if (aIID.Equals(nsCOMTypeInfo<nsIDOMNodeList>::GetIID()) ||
|
||||
aIID.Equals(kISupportsIID)) {
|
||||
*aResult = NS_STATIC_CAST(nsIDOMNodeList*, this);
|
||||
}
|
||||
else if (aIID.Equals(nsCOMTypeInfo<nsIRDFNodeList>::GetIID())) {
|
||||
*aResult = NS_STATIC_CAST(nsIRDFNodeList*, this);
|
||||
}
|
||||
else if (aIID.Equals(kIScriptObjectOwnerIID)) {
|
||||
*aResult = NS_STATIC_CAST(nsIScriptObjectOwner*, this);
|
||||
}
|
||||
else {
|
||||
*aResult = nsnull;
|
||||
return NS_NOINTERFACE;
|
||||
}
|
||||
|
||||
NS_ADDREF(this);
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////
|
||||
// nsIDOMNodeList interface
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsRDFDOMNodeList::GetLength(PRUint32* aLength)
|
||||
{
|
||||
NS_ASSERTION(aLength != nsnull, "null ptr");
|
||||
if (! aLength)
|
||||
return NS_ERROR_NULL_POINTER;
|
||||
|
||||
PRUint32 cnt;
|
||||
nsresult rv = mElements->Count(&cnt);
|
||||
if (NS_FAILED(rv)) return rv;
|
||||
*aLength = cnt;
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsRDFDOMNodeList::Item(PRUint32 aIndex, nsIDOMNode** aReturn)
|
||||
{
|
||||
NS_PRECONDITION(aReturn != nsnull, "null ptr");
|
||||
if (! aReturn)
|
||||
return NS_ERROR_NULL_POINTER;
|
||||
|
||||
PRUint32 cnt;
|
||||
nsresult rv = mElements->Count(&cnt);
|
||||
if (NS_FAILED(rv)) return rv;
|
||||
NS_PRECONDITION(aIndex < cnt, "invalid arg");
|
||||
if (aIndex >= (PRUint32) cnt)
|
||||
return NS_ERROR_INVALID_ARG;
|
||||
|
||||
// Cast is okay because we're in a closed system.
|
||||
*aReturn = (nsIDOMNode*) mElements->ElementAt(aIndex);
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////////////////
|
||||
// nsIScriptObjectOwner interface
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsRDFDOMNodeList::GetScriptObject(nsIScriptContext *aContext, void** aScriptObject)
|
||||
{
|
||||
nsresult rv = NS_OK;
|
||||
nsIScriptGlobalObject* global = aContext->GetGlobalObject();
|
||||
|
||||
if (nsnull == mScriptObject) {
|
||||
nsIDOMScriptObjectFactory *factory;
|
||||
|
||||
if (NS_SUCCEEDED(rv = nsServiceManager::GetService(kDOMScriptObjectFactoryCID,
|
||||
kIDOMScriptObjectFactoryIID,
|
||||
(nsISupports **)&factory))) {
|
||||
rv = factory->NewScriptNodeList(aContext,
|
||||
(nsISupports*)(nsIDOMNodeList*)this,
|
||||
global,
|
||||
(void**)&mScriptObject);
|
||||
|
||||
nsServiceManager::ReleaseService(kDOMScriptObjectFactoryCID, factory);
|
||||
}
|
||||
}
|
||||
*aScriptObject = mScriptObject;
|
||||
|
||||
NS_RELEASE(global);
|
||||
return rv;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsRDFDOMNodeList::SetScriptObject(void* aScriptObject)
|
||||
{
|
||||
mScriptObject = aScriptObject;
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////////////////
|
||||
// Implementation methods
|
||||
|
||||
nsresult
|
||||
nsRDFDOMNodeList::Init(void)
|
||||
{
|
||||
nsresult rv;
|
||||
if (NS_FAILED(rv = NS_NewISupportsArray(&mElements))) {
|
||||
NS_ERROR("unable to create elements array");
|
||||
return rv;
|
||||
}
|
||||
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsRDFDOMNodeList::AppendNode(nsIDOMNode* aNode)
|
||||
{
|
||||
NS_PRECONDITION(aNode != nsnull, "null ptr");
|
||||
if (! aNode)
|
||||
return NS_ERROR_NULL_POINTER;
|
||||
|
||||
return mElements->AppendElement(aNode);
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsRDFDOMNodeList::RemoveNode(nsIDOMNode* aNode)
|
||||
{
|
||||
NS_PRECONDITION(aNode != nsnull, "null ptr");
|
||||
if (! aNode)
|
||||
return NS_ERROR_NULL_POINTER;
|
||||
|
||||
return mElements->RemoveElement(aNode);
|
||||
}
|
||||
64
mozilla/content/xul/content/src/nsRDFDOMNodeList.h
Normal file
64
mozilla/content/xul/content/src/nsRDFDOMNodeList.h
Normal file
@@ -0,0 +1,64 @@
|
||||
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
|
||||
*
|
||||
* The contents of this file are subject to the Netscape Public
|
||||
* License Version 1.1 (the "License"); you may not use this file
|
||||
* except in compliance with the License. You may obtain a copy of
|
||||
* the License at http://www.mozilla.org/NPL/
|
||||
*
|
||||
* Software distributed under the License is distributed on an "AS
|
||||
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
||||
* implied. See the License for the specific language governing
|
||||
* rights and limitations under the License.
|
||||
*
|
||||
* The Original Code is Mozilla Communicator client code.
|
||||
*
|
||||
* The Initial Developer of the Original Code is Netscape Communications
|
||||
* Corporation. Portions created by Netscape are
|
||||
* Copyright (C) 1998 Netscape Communications Corporation. All
|
||||
* Rights Reserved.
|
||||
*
|
||||
* Contributor(s):
|
||||
*/
|
||||
|
||||
#ifndef nsRDFDOMNodeList_h__
|
||||
#define nsRDFDOMNodeList_h__
|
||||
|
||||
#include "nsIDOMNodeList.h"
|
||||
#include "nsIRDFNodeList.h"
|
||||
#include "nsIScriptObjectOwner.h"
|
||||
class nsIDOMNode;
|
||||
class nsISupportsArray;
|
||||
|
||||
class nsRDFDOMNodeList : public nsIDOMNodeList,
|
||||
public nsIRDFNodeList,
|
||||
public nsIScriptObjectOwner
|
||||
{
|
||||
private:
|
||||
//nsISupports* mInner; Not being used?
|
||||
nsISupportsArray* mElements;
|
||||
void* mScriptObject;
|
||||
|
||||
nsRDFDOMNodeList(void);
|
||||
nsresult Init(void);
|
||||
|
||||
public:
|
||||
static nsresult Create(nsRDFDOMNodeList** aResult);
|
||||
virtual ~nsRDFDOMNodeList(void);
|
||||
|
||||
// nsISupports interface
|
||||
NS_DECL_ISUPPORTS
|
||||
|
||||
// nsIDOMNodeList interface
|
||||
NS_DECL_IDOMNODELIST
|
||||
|
||||
// nsIScriptObjectOwner interface
|
||||
NS_IMETHOD GetScriptObject(nsIScriptContext *aContext, void** aScriptObject);
|
||||
NS_IMETHOD SetScriptObject(void* aScriptObject);
|
||||
|
||||
// Implementation methods
|
||||
NS_IMETHOD AppendNode(nsIDOMNode* aNode);
|
||||
NS_IMETHOD RemoveNode(nsIDOMNode* aNode);
|
||||
};
|
||||
|
||||
#endif // nsRDFDOMNodeList_h__
|
||||
|
||||
705
mozilla/content/xul/content/src/nsXULAttributes.cpp
Normal file
705
mozilla/content/xul/content/src/nsXULAttributes.cpp
Normal file
@@ -0,0 +1,705 @@
|
||||
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
|
||||
*
|
||||
* The contents of this file are subject to the Netscape Public
|
||||
* License Version 1.1 (the "License"); you may not use this file
|
||||
* except in compliance with the License. You may obtain a copy of
|
||||
* the License at http://www.mozilla.org/NPL/
|
||||
*
|
||||
* Software distributed under the License is distributed on an "AS
|
||||
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
||||
* implied. See the License for the specific language governing
|
||||
* rights and limitations under the License.
|
||||
*
|
||||
* The Original Code is Mozilla Communicator client code.
|
||||
*
|
||||
* The Initial Developer of the Original Code is Netscape Communications
|
||||
* Corporation. Portions created by Netscape are
|
||||
* Copyright (C) 1998 Netscape Communications Corporation. All
|
||||
* Rights Reserved.
|
||||
*
|
||||
* Contributor(s):
|
||||
*/
|
||||
|
||||
|
||||
/*
|
||||
|
||||
A helper class used to implement attributes.
|
||||
|
||||
*/
|
||||
|
||||
|
||||
/*
|
||||
* Notes
|
||||
*
|
||||
* A lot of these methods delegate back to the original content node
|
||||
* that created them. This is so that we can lazily produce attribute
|
||||
* values from the RDF graph as they're asked for.
|
||||
*
|
||||
*/
|
||||
|
||||
#include "nsCOMPtr.h"
|
||||
#include "nsDOMCID.h"
|
||||
#include "nsIContent.h"
|
||||
#include "nsICSSParser.h"
|
||||
#include "nsIDOMElement.h"
|
||||
#include "nsIDOMScriptObjectFactory.h"
|
||||
#include "nsINameSpaceManager.h"
|
||||
#include "nsIServiceManager.h"
|
||||
#include "nsIURL.h"
|
||||
#include "nsXULAttributes.h"
|
||||
#include "nsLayoutCID.h"
|
||||
|
||||
static NS_DEFINE_IID(kISupportsIID, NS_ISUPPORTS_IID);
|
||||
static NS_DEFINE_CID(kDOMScriptObjectFactoryCID, NS_DOM_SCRIPT_OBJECT_FACTORY_CID);
|
||||
static NS_DEFINE_CID(kCSSParserCID, NS_CSSPARSER_CID);
|
||||
static NS_DEFINE_CID(kICSSParserIID, NS_ICSS_PARSER_IID);
|
||||
|
||||
|
||||
//----------------------------------------------------------------------
|
||||
//
|
||||
// nsClassList
|
||||
//
|
||||
|
||||
PRBool
|
||||
nsClassList::HasClass(nsClassList* aList, nsIAtom* aClass)
|
||||
{
|
||||
const nsClassList* classList = aList;
|
||||
while (nsnull != classList) {
|
||||
if (classList->mAtom.get() == aClass) {
|
||||
return PR_TRUE;
|
||||
}
|
||||
classList = classList->mNext;
|
||||
}
|
||||
return PR_FALSE;
|
||||
}
|
||||
|
||||
|
||||
nsresult
|
||||
nsClassList::GetClasses(nsClassList* aList, nsVoidArray& aArray)
|
||||
{
|
||||
aArray.Clear();
|
||||
const nsClassList* classList = aList;
|
||||
while (nsnull != classList) {
|
||||
aArray.AppendElement(classList->mAtom); // NOTE atom is not addrefed
|
||||
classList = classList->mNext;
|
||||
}
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
||||
|
||||
nsresult
|
||||
nsClassList::ParseClasses(nsClassList** aList, const nsString& aClassString)
|
||||
{
|
||||
static const PRUnichar kNullCh = PRUnichar('\0');
|
||||
|
||||
if (*aList != nsnull) {
|
||||
delete *aList;
|
||||
*aList = nsnull;
|
||||
}
|
||||
|
||||
if (aClassString.Length() > 0) {
|
||||
nsAutoString classStr(aClassString); // copy to work buffer
|
||||
classStr.Append(kNullCh); // put an extra null at the end
|
||||
|
||||
PRUnichar* start = (PRUnichar*)(const PRUnichar*)classStr.GetUnicode();
|
||||
PRUnichar* end = start;
|
||||
|
||||
while (kNullCh != *start) {
|
||||
while ((kNullCh != *start) && nsString::IsSpace(*start)) { // skip leading space
|
||||
start++;
|
||||
}
|
||||
end = start;
|
||||
|
||||
while ((kNullCh != *end) && (PR_FALSE == nsString::IsSpace(*end))) { // look for space or end
|
||||
end++;
|
||||
}
|
||||
*end = kNullCh; // end string here
|
||||
|
||||
if (start < end) {
|
||||
*aList = new nsClassList(NS_NewAtom(start));
|
||||
aList = &((*aList)->mNext);
|
||||
}
|
||||
|
||||
start = ++end;
|
||||
}
|
||||
}
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
||||
|
||||
//----------------------------------------------------------------------
|
||||
//
|
||||
// nsXULAttribute
|
||||
//
|
||||
|
||||
|
||||
nsXULAttribute::nsXULAttribute(nsIContent* aContent,
|
||||
PRInt32 aNameSpaceID,
|
||||
nsIAtom* aName,
|
||||
const nsString& aValue)
|
||||
: mNameSpaceID(aNameSpaceID),
|
||||
mName(aName),
|
||||
mValue(aValue),
|
||||
mContent(aContent),
|
||||
mScriptObject(nsnull)
|
||||
{
|
||||
NS_INIT_REFCNT();
|
||||
NS_IF_ADDREF(aName);
|
||||
}
|
||||
|
||||
nsXULAttribute::~nsXULAttribute()
|
||||
{
|
||||
NS_IF_RELEASE(mName);
|
||||
}
|
||||
|
||||
nsresult
|
||||
nsXULAttribute::Create(nsIContent* aContent,
|
||||
PRInt32 aNameSpaceID,
|
||||
nsIAtom* aName,
|
||||
const nsString& aValue,
|
||||
nsXULAttribute** aResult)
|
||||
{
|
||||
NS_PRECONDITION(aResult != nsnull, "null ptr");
|
||||
if (! aResult)
|
||||
return NS_ERROR_NULL_POINTER;
|
||||
|
||||
if (! (*aResult = new nsXULAttribute(aContent, aNameSpaceID, aName, aValue)))
|
||||
return NS_ERROR_OUT_OF_MEMORY;
|
||||
|
||||
NS_ADDREF(*aResult);
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
// nsISupports interface
|
||||
NS_IMPL_ADDREF(nsXULAttribute);
|
||||
NS_IMPL_RELEASE(nsXULAttribute);
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsXULAttribute::QueryInterface(REFNSIID aIID, void** aResult)
|
||||
{
|
||||
NS_PRECONDITION(aResult != nsnull, "null ptr");
|
||||
if (! aResult)
|
||||
return NS_ERROR_NULL_POINTER;
|
||||
|
||||
if (aIID.Equals(nsIDOMAttr::GetIID()) ||
|
||||
aIID.Equals(nsIDOMNode::GetIID()) ||
|
||||
aIID.Equals(kISupportsIID)) {
|
||||
*aResult = NS_STATIC_CAST(nsIDOMAttr*, this);
|
||||
NS_ADDREF(this);
|
||||
return NS_OK;
|
||||
}
|
||||
else if (aIID.Equals(nsIScriptObjectOwner::GetIID())) {
|
||||
*aResult = NS_STATIC_CAST(nsIScriptObjectOwner*, this);
|
||||
NS_ADDREF(this);
|
||||
return NS_OK;
|
||||
}
|
||||
else {
|
||||
*aResult = nsnull;
|
||||
return NS_NOINTERFACE;
|
||||
}
|
||||
}
|
||||
|
||||
// nsIDOMNode interface
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsXULAttribute::GetNodeName(nsString& aNodeName)
|
||||
{
|
||||
const PRUnichar *unicodeString;
|
||||
mName->GetUnicode(&unicodeString);
|
||||
|
||||
aNodeName.SetString(unicodeString);
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsXULAttribute::GetNodeValue(nsString& aNodeValue)
|
||||
{
|
||||
aNodeValue=mValue;
|
||||
return NS_OK;
|
||||
}
|
||||
NS_IMETHODIMP
|
||||
nsXULAttribute::SetNodeValue(const nsString& aNodeValue)
|
||||
{
|
||||
return SetValue(aNodeValue);
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsXULAttribute::GetNodeType(PRUint16* aNodeType)
|
||||
{
|
||||
*aNodeType = (PRUint16)nsIDOMNode::ATTRIBUTE_NODE;
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsXULAttribute::GetParentNode(nsIDOMNode** aParentNode)
|
||||
{
|
||||
*aParentNode = nsnull;
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsXULAttribute::GetChildNodes(nsIDOMNodeList** aChildNodes)
|
||||
{
|
||||
NS_NOTYETIMPLEMENTED("write me");
|
||||
return NS_ERROR_NOT_IMPLEMENTED;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsXULAttribute::GetFirstChild(nsIDOMNode** aFirstChild)
|
||||
{
|
||||
NS_NOTYETIMPLEMENTED("write me");
|
||||
return NS_ERROR_NOT_IMPLEMENTED;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsXULAttribute::GetLastChild(nsIDOMNode** aLastChild)
|
||||
{
|
||||
NS_NOTYETIMPLEMENTED("write me");
|
||||
return NS_ERROR_NOT_IMPLEMENTED;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsXULAttribute::GetPreviousSibling(nsIDOMNode** aPreviousSibling)
|
||||
{
|
||||
*aPreviousSibling = nsnull;
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsXULAttribute::GetNextSibling(nsIDOMNode** aNextSibling)
|
||||
{
|
||||
*aNextSibling = nsnull;
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsXULAttribute::GetAttributes(nsIDOMNamedNodeMap** aAttributes)
|
||||
{
|
||||
*aAttributes = nsnull;
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsXULAttribute::GetOwnerDocument(nsIDOMDocument** aOwnerDocument)
|
||||
{
|
||||
NS_NOTYETIMPLEMENTED("write me");
|
||||
return NS_ERROR_NOT_IMPLEMENTED;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsXULAttribute::InsertBefore(nsIDOMNode* aNewChild, nsIDOMNode* aRefChild, nsIDOMNode** aReturn)
|
||||
{
|
||||
return NS_ERROR_FAILURE;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsXULAttribute::ReplaceChild(nsIDOMNode* aNewChild, nsIDOMNode* aOldChild, nsIDOMNode** aReturn)
|
||||
{
|
||||
return NS_ERROR_FAILURE;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsXULAttribute::RemoveChild(nsIDOMNode* aOldChild, nsIDOMNode** aReturn)
|
||||
{
|
||||
return NS_ERROR_FAILURE;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsXULAttribute::AppendChild(nsIDOMNode* aNewChild, nsIDOMNode** aReturn)
|
||||
{
|
||||
return NS_ERROR_FAILURE;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsXULAttribute::HasChildNodes(PRBool* aReturn)
|
||||
{
|
||||
NS_NOTYETIMPLEMENTED("write me");
|
||||
return NS_ERROR_NOT_IMPLEMENTED;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsXULAttribute::CloneNode(PRBool aDeep, nsIDOMNode** aReturn)
|
||||
{
|
||||
NS_NOTYETIMPLEMENTED("write me");
|
||||
return NS_ERROR_NOT_IMPLEMENTED;
|
||||
}
|
||||
|
||||
|
||||
|
||||
// nsIDOMAttr interface
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsXULAttribute::GetName(nsString& aName)
|
||||
{
|
||||
const PRUnichar *unicodeString;
|
||||
mName->GetUnicode(&unicodeString);
|
||||
aName.SetString(unicodeString);
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsXULAttribute::GetSpecified(PRBool* aSpecified)
|
||||
{
|
||||
// XXX this'll break when we make Clone() work
|
||||
*aSpecified = PR_TRUE;
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsXULAttribute::GetValue(nsString& aValue)
|
||||
{
|
||||
aValue=mValue;
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsXULAttribute::SetValue(const nsString& aValue)
|
||||
{
|
||||
// We call back to the content node's SetValue() method so we can
|
||||
// share all of the work that it does.
|
||||
nsCOMPtr<nsIDOMElement> element( do_QueryInterface(mContent) );
|
||||
if (element) {
|
||||
nsAutoString qualifiedName;
|
||||
GetQualifiedName(qualifiedName);
|
||||
return element->SetAttribute(qualifiedName, aValue);
|
||||
}
|
||||
else {
|
||||
return NS_ERROR_FAILURE;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// nsIScriptObjectOwner interface
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsXULAttribute::GetScriptObject(nsIScriptContext* aContext, void** aScriptObject)
|
||||
{
|
||||
nsresult rv = NS_OK;
|
||||
if (! mScriptObject) {
|
||||
nsIDOMScriptObjectFactory *factory;
|
||||
|
||||
rv = nsServiceManager::GetService(kDOMScriptObjectFactoryCID,
|
||||
nsIDOMScriptObjectFactory::GetIID(),
|
||||
(nsISupports **)&factory);
|
||||
|
||||
if (NS_FAILED(rv))
|
||||
return rv;
|
||||
|
||||
rv = factory->NewScriptAttr(aContext,
|
||||
(nsISupports*)(nsIDOMAttr*) this,
|
||||
(nsISupports*) mContent,
|
||||
(void**) &mScriptObject);
|
||||
|
||||
nsServiceManager::ReleaseService(kDOMScriptObjectFactoryCID, factory);
|
||||
}
|
||||
|
||||
*aScriptObject = mScriptObject;
|
||||
return rv;
|
||||
}
|
||||
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsXULAttribute::SetScriptObject(void *aScriptObject)
|
||||
{
|
||||
mScriptObject = aScriptObject;
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
||||
// Implementation methods
|
||||
|
||||
void
|
||||
nsXULAttribute::GetQualifiedName(nsString& aQualifiedName)
|
||||
{
|
||||
aQualifiedName.Truncate();
|
||||
if ((mNameSpaceID != kNameSpaceID_None) &&
|
||||
(mNameSpaceID != kNameSpaceID_Unknown)) {
|
||||
nsresult rv;
|
||||
|
||||
nsIAtom* prefix;
|
||||
rv = mContent->GetNameSpacePrefixFromId(mNameSpaceID, prefix);
|
||||
|
||||
if (NS_SUCCEEDED(rv) && (prefix != nsnull)) {
|
||||
const PRUnichar *unicodeString;
|
||||
prefix->GetUnicode(&unicodeString);
|
||||
aQualifiedName.Append(unicodeString);
|
||||
aQualifiedName.Append(':');
|
||||
NS_RELEASE(prefix);
|
||||
}
|
||||
}
|
||||
const PRUnichar *unicodeString;
|
||||
mName->GetUnicode(&unicodeString);
|
||||
aQualifiedName.Append(unicodeString);
|
||||
}
|
||||
|
||||
|
||||
//----------------------------------------------------------------------
|
||||
//
|
||||
// nsXULAttributes
|
||||
//
|
||||
|
||||
nsXULAttributes::nsXULAttributes(nsIContent* aContent)
|
||||
: mContent(aContent),
|
||||
mClassList(nsnull),
|
||||
mStyleRule(nsnull),
|
||||
mScriptObject(nsnull)
|
||||
{
|
||||
NS_INIT_REFCNT();
|
||||
}
|
||||
|
||||
|
||||
nsXULAttributes::~nsXULAttributes()
|
||||
{
|
||||
PRInt32 count = mAttributes.Count();
|
||||
for (PRInt32 indx = 0; indx < count; indx++) {
|
||||
nsXULAttribute* attr = NS_REINTERPRET_CAST(nsXULAttribute*, mAttributes.ElementAt(indx));
|
||||
NS_RELEASE(attr);
|
||||
}
|
||||
delete mClassList;
|
||||
}
|
||||
|
||||
|
||||
nsresult
|
||||
nsXULAttributes::Create(nsIContent* aContent, nsXULAttributes** aResult)
|
||||
{
|
||||
NS_PRECONDITION(aResult != nsnull, "null ptr");
|
||||
if (! aResult)
|
||||
return NS_ERROR_NULL_POINTER;
|
||||
|
||||
if (! (*aResult = new nsXULAttributes(aContent)))
|
||||
return NS_ERROR_OUT_OF_MEMORY;
|
||||
|
||||
NS_ADDREF(*aResult);
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
||||
// nsISupports interface
|
||||
|
||||
NS_IMPL_ADDREF(nsXULAttributes);
|
||||
NS_IMPL_RELEASE(nsXULAttributes);
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsXULAttributes::QueryInterface(REFNSIID aIID, void** aResult)
|
||||
{
|
||||
NS_PRECONDITION(aResult != nsnull, "null ptr");
|
||||
if (! aResult)
|
||||
return NS_ERROR_NULL_POINTER;
|
||||
|
||||
if (aIID.Equals(nsIDOMNamedNodeMap::GetIID()) ||
|
||||
aIID.Equals(kISupportsIID)) {
|
||||
*aResult = NS_STATIC_CAST(nsIDOMNamedNodeMap*, this);
|
||||
NS_ADDREF(this);
|
||||
return NS_OK;
|
||||
}
|
||||
else if (aIID.Equals(nsIScriptObjectOwner::GetIID())) {
|
||||
*aResult = NS_STATIC_CAST(nsIScriptObjectOwner*, this);
|
||||
NS_ADDREF(this);
|
||||
return NS_OK;
|
||||
}
|
||||
else {
|
||||
*aResult = nsnull;
|
||||
return NS_NOINTERFACE;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// nsIDOMNamedNodeMap interface
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsXULAttributes::GetLength(PRUint32* aLength)
|
||||
{
|
||||
NS_PRECONDITION(aLength != nsnull, "null ptr");
|
||||
if (! aLength)
|
||||
return NS_ERROR_NULL_POINTER;
|
||||
|
||||
*aLength = mAttributes.Count();
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsXULAttributes::GetNamedItem(const nsString& aName, nsIDOMNode** aReturn)
|
||||
{
|
||||
NS_PRECONDITION(aReturn != nsnull, "null ptr");
|
||||
if (! aReturn)
|
||||
return NS_ERROR_NULL_POINTER;
|
||||
|
||||
nsresult rv;
|
||||
*aReturn = nsnull;
|
||||
|
||||
PRInt32 nameSpaceID;
|
||||
nsIAtom* name;
|
||||
|
||||
if (NS_FAILED(rv = mContent->ParseAttributeString(aName, name, nameSpaceID)))
|
||||
return rv;
|
||||
|
||||
if (kNameSpaceID_Unknown == nameSpaceID) {
|
||||
nameSpaceID = kNameSpaceID_None; // ignore unknown prefix XXX is this correct?
|
||||
}
|
||||
// XXX doing this instead of calling mContent->GetAttribute() will
|
||||
// make it a lot harder to lazily instantiate properties from the
|
||||
// graph. The problem is, how else do we get the named item?
|
||||
for (PRInt32 i = mAttributes.Count() - 1; i >= 0; --i) {
|
||||
nsXULAttribute* attr = (nsXULAttribute*) mAttributes[i];
|
||||
if (((nameSpaceID == attr->GetNameSpaceID()) ||
|
||||
(nameSpaceID == kNameSpaceID_Unknown) ||
|
||||
(nameSpaceID == kNameSpaceID_None)) &&
|
||||
(name == attr->GetName())) {
|
||||
NS_ADDREF(attr);
|
||||
*aReturn = attr;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
NS_RELEASE(name);
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsXULAttributes::SetNamedItem(nsIDOMNode* aArg, nsIDOMNode** aReturn)
|
||||
{
|
||||
NS_NOTYETIMPLEMENTED("write me");
|
||||
return NS_ERROR_NOT_IMPLEMENTED;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsXULAttributes::RemoveNamedItem(const nsString& aName, nsIDOMNode** aReturn)
|
||||
{
|
||||
nsCOMPtr<nsIDOMElement> element( do_QueryInterface(mContent) );
|
||||
if (element) {
|
||||
return element->RemoveAttribute(aName);
|
||||
*aReturn = nsnull; // XXX should be the element we just removed
|
||||
return NS_OK;
|
||||
}
|
||||
else {
|
||||
return NS_ERROR_FAILURE;
|
||||
}
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsXULAttributes::Item(PRUint32 aIndex, nsIDOMNode** aReturn)
|
||||
{
|
||||
*aReturn = (nsXULAttribute*) mAttributes[aIndex];
|
||||
NS_IF_ADDREF(*aReturn);
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
// nsIScriptObjectOwner interface
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsXULAttributes::GetScriptObject(nsIScriptContext* aContext, void** aScriptObject)
|
||||
{
|
||||
nsresult rv = NS_OK;
|
||||
if (! mScriptObject) {
|
||||
nsIDOMScriptObjectFactory *factory;
|
||||
|
||||
rv = nsServiceManager::GetService(kDOMScriptObjectFactoryCID,
|
||||
nsIDOMScriptObjectFactory::GetIID(),
|
||||
(nsISupports **)&factory);
|
||||
|
||||
if (NS_FAILED(rv))
|
||||
return rv;
|
||||
|
||||
rv = factory->NewScriptNamedNodeMap(aContext,
|
||||
(nsISupports*)(nsIDOMNamedNodeMap*) this,
|
||||
(nsISupports*) mContent,
|
||||
(void**) &mScriptObject);
|
||||
|
||||
nsServiceManager::ReleaseService(kDOMScriptObjectFactoryCID, factory);
|
||||
}
|
||||
|
||||
*aScriptObject = mScriptObject;
|
||||
return rv;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsXULAttributes::SetScriptObject(void *aScriptObject)
|
||||
{
|
||||
mScriptObject = aScriptObject;
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
// Implementation methods
|
||||
|
||||
nsresult
|
||||
nsXULAttributes::GetClasses(nsVoidArray& aArray) const
|
||||
{
|
||||
return nsClassList::GetClasses(mClassList, aArray);
|
||||
}
|
||||
|
||||
nsresult
|
||||
nsXULAttributes::HasClass(nsIAtom* aClass) const
|
||||
{
|
||||
return nsClassList::HasClass(mClassList, aClass) ? NS_OK : NS_COMFALSE;
|
||||
}
|
||||
|
||||
nsresult nsXULAttributes::SetClassList(nsClassList* aClassList)
|
||||
{
|
||||
delete mClassList;
|
||||
if (aClassList) {
|
||||
mClassList = new nsClassList(*aClassList);
|
||||
}
|
||||
else {
|
||||
mClassList = nsnull;
|
||||
}
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
nsresult nsXULAttributes::UpdateClassList(const nsString& aValue)
|
||||
{
|
||||
return nsClassList::ParseClasses(&mClassList, aValue);
|
||||
}
|
||||
|
||||
nsresult nsXULAttributes::UpdateStyleRule(nsIURI* aDocURL, const nsString& aValue)
|
||||
{
|
||||
if (aValue == "")
|
||||
{
|
||||
// XXX: Removing the rule. Is this sufficient?
|
||||
mStyleRule = nsnull;
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
nsCOMPtr<nsICSSParser> css;
|
||||
nsresult result = nsComponentManager::CreateInstance(kCSSParserCID,
|
||||
nsnull,
|
||||
kICSSParserIID,
|
||||
getter_AddRefs(css));
|
||||
if (NS_OK != result) {
|
||||
return result;
|
||||
}
|
||||
|
||||
nsCOMPtr<nsIStyleRule> rule;
|
||||
result = css->ParseDeclarations(aValue, aDocURL, *getter_AddRefs(rule));
|
||||
|
||||
if ((NS_OK == result) && rule) {
|
||||
mStyleRule = rule;
|
||||
}
|
||||
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
||||
nsresult nsXULAttributes::SetInlineStyleRule(nsIStyleRule* aRule)
|
||||
{
|
||||
mStyleRule = aRule;
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
nsresult nsXULAttributes::GetInlineStyleRule(nsIStyleRule*& aRule)
|
||||
{
|
||||
nsresult result = NS_ERROR_NULL_POINTER;
|
||||
if (mStyleRule != nsnull)
|
||||
{
|
||||
aRule = mStyleRule;
|
||||
NS_ADDREF(aRule);
|
||||
result = NS_OK;
|
||||
}
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
194
mozilla/content/xul/content/src/nsXULAttributes.h
Normal file
194
mozilla/content/xul/content/src/nsXULAttributes.h
Normal file
@@ -0,0 +1,194 @@
|
||||
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
|
||||
*
|
||||
* The contents of this file are subject to the Netscape Public
|
||||
* License Version 1.1 (the "License"); you may not use this file
|
||||
* except in compliance with the License. You may obtain a copy of
|
||||
* the License at http://www.mozilla.org/NPL/
|
||||
*
|
||||
* Software distributed under the License is distributed on an "AS
|
||||
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
||||
* implied. See the License for the specific language governing
|
||||
* rights and limitations under the License.
|
||||
*
|
||||
* The Original Code is Mozilla Communicator client code.
|
||||
*
|
||||
* The Initial Developer of the Original Code is Netscape Communications
|
||||
* Corporation. Portions created by Netscape are
|
||||
* Copyright (C) 1998 Netscape Communications Corporation. All
|
||||
* Rights Reserved.
|
||||
*
|
||||
* Contributor(s):
|
||||
*/
|
||||
|
||||
|
||||
/*
|
||||
|
||||
A set of helper classes used to implement attributes.
|
||||
|
||||
*/
|
||||
|
||||
#ifndef nsXULAttributes_h__
|
||||
#define nsXULAttributes_h__
|
||||
|
||||
#include "nsIDOMAttr.h"
|
||||
#include "nsIDOMNamedNodeMap.h"
|
||||
#include "nsIScriptObjectOwner.h"
|
||||
#include "nsIStyleRule.h"
|
||||
#include "nsString.h"
|
||||
#include "nsIAtom.h"
|
||||
#include "nsVoidArray.h"
|
||||
|
||||
class nsIURI;
|
||||
|
||||
//----------------------------------------------------------------------
|
||||
|
||||
class nsClassList {
|
||||
public:
|
||||
nsClassList(nsIAtom* aAtom)
|
||||
: mAtom(aAtom), mNext(nsnull)
|
||||
{
|
||||
MOZ_COUNT_CTOR(nsClassList);
|
||||
}
|
||||
|
||||
|
||||
nsClassList(const nsClassList& aCopy)
|
||||
: mAtom(aCopy.mAtom), mNext(nsnull)
|
||||
{
|
||||
MOZ_COUNT_CTOR(nsClassList);
|
||||
if (aCopy.mNext) mNext = new nsClassList(*(aCopy.mNext));
|
||||
}
|
||||
|
||||
nsClassList& operator=(const nsClassList& aClassList)
|
||||
{
|
||||
if (this != &aClassList) {
|
||||
delete mNext;
|
||||
mNext = nsnull;
|
||||
mAtom = aClassList.mAtom;
|
||||
|
||||
if (aClassList.mNext) {
|
||||
mNext = new nsClassList(*(aClassList.mNext));
|
||||
}
|
||||
}
|
||||
return *this;
|
||||
}
|
||||
|
||||
~nsClassList(void)
|
||||
{
|
||||
MOZ_COUNT_DTOR(nsClassList);
|
||||
delete mNext;
|
||||
}
|
||||
|
||||
nsCOMPtr<nsIAtom> mAtom;
|
||||
nsClassList* mNext;
|
||||
|
||||
static PRBool
|
||||
HasClass(nsClassList* aList, nsIAtom* aClass);
|
||||
|
||||
static nsresult
|
||||
GetClasses(nsClassList* aList, nsVoidArray& aArray);
|
||||
|
||||
static nsresult
|
||||
ParseClasses(nsClassList** aList, const nsString& aValue);
|
||||
};
|
||||
|
||||
////////////////////////////////////////////////////////////////////////
|
||||
|
||||
class nsXULAttribute : public nsIDOMAttr,
|
||||
public nsIScriptObjectOwner
|
||||
{
|
||||
protected:
|
||||
nsXULAttribute(nsIContent* aContent,
|
||||
PRInt32 aNameSpaceID,
|
||||
nsIAtom* aName,
|
||||
const nsString& aValue);
|
||||
|
||||
virtual ~nsXULAttribute();
|
||||
|
||||
public:
|
||||
static nsresult
|
||||
Create(nsIContent* aContent,
|
||||
PRInt32 aNameSpaceID,
|
||||
nsIAtom* aName,
|
||||
const nsString& aValue,
|
||||
nsXULAttribute** aResult);
|
||||
|
||||
// nsISupports interface
|
||||
NS_DECL_ISUPPORTS
|
||||
|
||||
// nsIDOMNode interface
|
||||
NS_DECL_IDOMNODE
|
||||
|
||||
// nsIDOMAttr interface
|
||||
NS_DECL_IDOMATTR
|
||||
|
||||
// nsIScriptObjectOwner interface
|
||||
NS_IMETHOD GetScriptObject(nsIScriptContext* aContext, void** aScriptObject);
|
||||
NS_IMETHOD SetScriptObject(void *aScriptObject);
|
||||
|
||||
// Implementation methods
|
||||
void GetQualifiedName(nsString& aAttributeName);
|
||||
|
||||
PRInt32 GetNameSpaceID() const { return mNameSpaceID; }
|
||||
nsIAtom* GetName() const { return mName; }
|
||||
void SetValueInternal(const nsString& aValue) { mValue = aValue; }
|
||||
|
||||
protected:
|
||||
PRInt32 mNameSpaceID;
|
||||
nsIAtom* mName;
|
||||
nsString mValue;
|
||||
nsIContent* mContent;
|
||||
void* mScriptObject;
|
||||
};
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////////////////
|
||||
|
||||
class nsXULAttributes : public nsIDOMNamedNodeMap,
|
||||
public nsIScriptObjectOwner
|
||||
{
|
||||
public:
|
||||
static nsresult
|
||||
Create(nsIContent* aElement, nsXULAttributes** aResult);
|
||||
|
||||
// nsISupports interface
|
||||
NS_DECL_ISUPPORTS
|
||||
|
||||
// nsIDOMNamedNodeMap interface
|
||||
NS_DECL_IDOMNAMEDNODEMAP
|
||||
|
||||
// nsIScriptObjectOwner interface
|
||||
NS_IMETHOD GetScriptObject(nsIScriptContext* aContext, void** aScriptObject);
|
||||
NS_IMETHOD SetScriptObject(void *aScriptObject);
|
||||
|
||||
// Implementation methods
|
||||
// VoidArray Helpers
|
||||
PRInt32 Count() { return mAttributes.Count(); };
|
||||
nsXULAttribute* ElementAt(PRInt32 i) { return (nsXULAttribute*)mAttributes.ElementAt(i); };
|
||||
void AppendElement(nsXULAttribute* aElement) { mAttributes.AppendElement((void*)aElement); };
|
||||
void RemoveElementAt(PRInt32 aIndex) { mAttributes.RemoveElementAt(aIndex); };
|
||||
|
||||
// Style Helpers
|
||||
nsresult GetClasses(nsVoidArray& aArray) const;
|
||||
nsresult HasClass(nsIAtom* aClass) const;
|
||||
|
||||
nsresult SetClassList(nsClassList* aClassList);
|
||||
nsresult UpdateClassList(const nsString& aValue);
|
||||
nsresult UpdateStyleRule(nsIURI* aDocURL, const nsString& aValue);
|
||||
|
||||
nsresult SetInlineStyleRule(nsIStyleRule* aRule);
|
||||
nsresult GetInlineStyleRule(nsIStyleRule*& aRule);
|
||||
|
||||
protected:
|
||||
nsXULAttributes(nsIContent* aContent);
|
||||
virtual ~nsXULAttributes();
|
||||
|
||||
nsIContent* mContent;
|
||||
nsClassList* mClassList;
|
||||
nsCOMPtr<nsIStyleRule> mStyleRule;
|
||||
nsVoidArray mAttributes;
|
||||
void* mScriptObject;
|
||||
};
|
||||
|
||||
|
||||
#endif // nsXULAttributes_h__
|
||||
|
||||
3651
mozilla/content/xul/content/src/nsXULElement.cpp
Normal file
3651
mozilla/content/xul/content/src/nsXULElement.cpp
Normal file
File diff suppressed because it is too large
Load Diff
509
mozilla/content/xul/content/src/nsXULElement.h
Normal file
509
mozilla/content/xul/content/src/nsXULElement.h
Normal file
@@ -0,0 +1,509 @@
|
||||
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
|
||||
*
|
||||
* The contents of this file are subject to the Netscape Public
|
||||
* License Version 1.1 (the "License"); you may not use this file
|
||||
* except in compliance with the License. You may obtain a copy of
|
||||
* the License at http://www.mozilla.org/NPL/
|
||||
*
|
||||
* Software distributed under the License is distributed on an "AS
|
||||
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
||||
* implied. See the License for the specific language governing
|
||||
* rights and limitations under the License.
|
||||
*
|
||||
* The Original Code is Mozilla Communicator client code.
|
||||
*
|
||||
* The Initial Developer of the Original Code is Netscape Communications
|
||||
* Corporation. Portions created by Netscape are
|
||||
* Copyright (C) 1998 Netscape Communications Corporation. All
|
||||
* Rights Reserved.
|
||||
*
|
||||
* Contributor(s):
|
||||
*/
|
||||
|
||||
/*
|
||||
|
||||
The base XUL element class and associates.
|
||||
|
||||
*/
|
||||
|
||||
#ifndef nsXULElement_h__
|
||||
#define nsXULElement_h__
|
||||
|
||||
// XXX because nsIEventListenerManager has broken includes
|
||||
#include "nslayout.h"
|
||||
#include "nsIDOMEvent.h"
|
||||
|
||||
#include "nsForwardReference.h"
|
||||
#include "nsHTMLValue.h"
|
||||
#include "nsIAtom.h"
|
||||
#include "nsIControllers.h"
|
||||
#include "nsIDOMElement.h"
|
||||
#include "nsIDOMEventReceiver.h"
|
||||
#include "nsIDOMXULElement.h"
|
||||
#include "nsIDOMXULTreeElement.h"
|
||||
#include "nsIEventListenerManager.h"
|
||||
#include "nsIFocusableContent.h"
|
||||
#include "nsIJSScriptObject.h"
|
||||
#include "nsINameSpace.h"
|
||||
#include "nsINameSpaceManager.h"
|
||||
#include "nsIRDFCompositeDataSource.h"
|
||||
#include "nsIRDFResource.h"
|
||||
#include "nsIScriptObjectOwner.h"
|
||||
#include "nsIStyleRule.h"
|
||||
#include "nsIStyledContent.h"
|
||||
#include "nsIURI.h"
|
||||
#include "nsIXMLContent.h"
|
||||
#include "nsIXULContent.h"
|
||||
#include "nsXULAttributes.h"
|
||||
|
||||
class nsIDocument;
|
||||
class nsIRDFService;
|
||||
class nsISupportsArray;
|
||||
class nsIXULContentUtils;
|
||||
class nsIXULPrototypeDocument;
|
||||
class nsRDFDOMNodeList;
|
||||
class nsString;
|
||||
class nsVoidArray;
|
||||
class nsXULAttributes;
|
||||
|
||||
////////////////////////////////////////////////////////////////////////
|
||||
|
||||
/**
|
||||
|
||||
A prototype attribute for an nsXULPrototypeElement.
|
||||
|
||||
*/
|
||||
|
||||
class nsXULPrototypeAttribute
|
||||
{
|
||||
public:
|
||||
nsXULPrototypeAttribute() : mNameSpaceID(kNameSpaceID_Unknown) {}
|
||||
|
||||
PRInt32 mNameSpaceID;
|
||||
nsCOMPtr<nsIAtom> mName;
|
||||
nsString mValue;
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
|
||||
A prototype content model element that holds the "primordial" values
|
||||
that have been parsed from the original XUL document. A
|
||||
'lightweight' nsXULElement may delegate its representation to this
|
||||
structure, which is shared.
|
||||
|
||||
*/
|
||||
|
||||
class nsXULPrototypeElement;
|
||||
|
||||
class nsXULPrototypeNode
|
||||
{
|
||||
public:
|
||||
enum Type { eType_Element, eType_Script, eType_Text };
|
||||
|
||||
Type mType;
|
||||
PRInt32 mLineNo;
|
||||
|
||||
virtual ~nsXULPrototypeNode() {}
|
||||
|
||||
protected:
|
||||
nsXULPrototypeNode(Type aType, PRInt32 aLineNo)
|
||||
: mType(aType), mLineNo(aLineNo) {}
|
||||
};
|
||||
|
||||
class nsXULPrototypeElement : public nsXULPrototypeNode
|
||||
{
|
||||
public:
|
||||
nsXULPrototypeElement(PRInt32 aLineNo)
|
||||
: nsXULPrototypeNode(eType_Element, aLineNo),
|
||||
mDocument(nsnull),
|
||||
mNumChildren(0),
|
||||
mChildren(nsnull),
|
||||
mNumAttributes(0),
|
||||
mAttributes(nsnull),
|
||||
mClassList(nsnull)
|
||||
{
|
||||
MOZ_COUNT_CTOR(nsXULPrototypeElement);
|
||||
}
|
||||
|
||||
virtual ~nsXULPrototypeElement()
|
||||
{
|
||||
MOZ_COUNT_DTOR(nsXULPrototypeElement);
|
||||
|
||||
delete[] mAttributes;
|
||||
delete mClassList;
|
||||
|
||||
for (PRInt32 i = mNumChildren - 1; i >= 0; --i)
|
||||
delete mChildren[i];
|
||||
|
||||
delete[] mChildren;
|
||||
}
|
||||
|
||||
|
||||
nsIXULPrototypeDocument* mDocument; // [WEAK] because doc is refcounted
|
||||
PRInt32 mNumChildren;
|
||||
nsXULPrototypeNode** mChildren; // [OWNER]
|
||||
|
||||
nsCOMPtr<nsINameSpace> mNameSpace; // [OWNER]
|
||||
nsCOMPtr<nsIAtom> mNameSpacePrefix; // [OWNER]
|
||||
PRInt32 mNameSpaceID;
|
||||
nsCOMPtr<nsIAtom> mTag; // [OWNER]
|
||||
|
||||
PRInt32 mNumAttributes;
|
||||
nsXULPrototypeAttribute* mAttributes; // [OWNER]
|
||||
|
||||
nsCOMPtr<nsIStyleRule> mInlineStyleRule; // [OWNER]
|
||||
nsClassList* mClassList;
|
||||
|
||||
nsresult GetAttribute(PRInt32 aNameSpaceID, nsIAtom* aName, nsString& aValue);
|
||||
};
|
||||
|
||||
struct JSRuntime;
|
||||
struct JSObject;
|
||||
class nsXULDocument;
|
||||
|
||||
class nsXULPrototypeScript : public nsXULPrototypeNode
|
||||
{
|
||||
public:
|
||||
nsXULPrototypeScript(PRInt32 aLineNo, const char *aVersion);
|
||||
virtual ~nsXULPrototypeScript();
|
||||
|
||||
nsresult Compile(const PRUnichar* aText, PRInt32 aTextLength,
|
||||
nsIURI* aURI, PRInt32 aLineNo,
|
||||
nsIDocument* aDocument);
|
||||
|
||||
nsCOMPtr<nsIURI> mSrcURI;
|
||||
PRBool mSrcLoading;
|
||||
nsXULDocument* mSrcLoadWaiters; // [OWNER] but not COMPtr
|
||||
JSRuntime* mScriptRuntime; // XXX use service, save space?
|
||||
JSObject* mScriptObject;
|
||||
const char* mLangVersion;
|
||||
};
|
||||
|
||||
class nsXULPrototypeText : public nsXULPrototypeNode
|
||||
{
|
||||
public:
|
||||
nsXULPrototypeText(PRInt32 aLineNo)
|
||||
: nsXULPrototypeNode(eType_Text, aLineNo)
|
||||
{
|
||||
MOZ_COUNT_CTOR(nsXULPrototypeText);
|
||||
}
|
||||
|
||||
virtual ~nsXULPrototypeText()
|
||||
{
|
||||
MOZ_COUNT_DTOR(nsXULPrototypeText);
|
||||
}
|
||||
|
||||
nsString mValue;
|
||||
};
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////////////////
|
||||
|
||||
/**
|
||||
|
||||
This class serves as a base for aggregates that will implement a
|
||||
per-element XUL API.
|
||||
|
||||
*/
|
||||
|
||||
class nsXULAggregateElement : public nsISupports
|
||||
{
|
||||
protected:
|
||||
nsIDOMXULElement* mOuter;
|
||||
nsXULAggregateElement(nsIDOMXULElement* aOuter) : mOuter(aOuter) {}
|
||||
|
||||
public:
|
||||
virtual ~nsXULAggregateElement() {};
|
||||
|
||||
// nsISupports interface. Subclasses should use the
|
||||
// NS_DECL/IMPL_ISUPPORTS_INHERITED macros to implement the
|
||||
// nsISupports interface.
|
||||
NS_IMETHOD_(nsrefcnt) AddRef() {
|
||||
return mOuter->AddRef();
|
||||
}
|
||||
|
||||
NS_IMETHOD_(nsrefcnt) Release() {
|
||||
return mOuter->Release();
|
||||
}
|
||||
|
||||
NS_IMETHOD QueryInterface(REFNSIID aIID, void** aResult) {
|
||||
return mOuter->QueryInterface(aIID, aResult);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////////////////
|
||||
|
||||
/**
|
||||
|
||||
The XUL element.
|
||||
|
||||
*/
|
||||
|
||||
class nsXULElement : public nsIStyledContent,
|
||||
public nsIXMLContent,
|
||||
public nsIXULContent,
|
||||
public nsIFocusableContent,
|
||||
public nsIDOMXULElement,
|
||||
public nsIDOMEventReceiver,
|
||||
public nsIScriptObjectOwner,
|
||||
public nsIJSScriptObject,
|
||||
public nsIStyleRule
|
||||
{
|
||||
public:
|
||||
protected:
|
||||
// pseudo-constants
|
||||
static nsrefcnt gRefCnt;
|
||||
static nsIRDFService* gRDFService;
|
||||
static nsINameSpaceManager* gNameSpaceManager;
|
||||
static nsIXULContentUtils* gXULUtils;
|
||||
static PRInt32 kNameSpaceID_RDF;
|
||||
static PRInt32 kNameSpaceID_XUL;
|
||||
|
||||
static nsIAtom* kClassAtom;
|
||||
static nsIAtom* kContextAtom;
|
||||
static nsIAtom* kIdAtom;
|
||||
static nsIAtom* kObservesAtom;
|
||||
static nsIAtom* kPopupAtom;
|
||||
static nsIAtom* kRefAtom;
|
||||
static nsIAtom* kSelectedAtom;
|
||||
static nsIAtom* kStyleAtom;
|
||||
static nsIAtom* kTitledButtonAtom;
|
||||
static nsIAtom* kTooltipAtom;
|
||||
static nsIAtom* kTreeAtom;
|
||||
static nsIAtom* kTreeCellAtom;
|
||||
static nsIAtom* kTreeChildrenAtom;
|
||||
static nsIAtom* kTreeColAtom;
|
||||
static nsIAtom* kTreeItemAtom;
|
||||
static nsIAtom* kTreeRowAtom;
|
||||
static nsIAtom* kEditorAtom;
|
||||
static nsIAtom* kWindowAtom;
|
||||
|
||||
public:
|
||||
static nsresult
|
||||
Create(nsXULPrototypeElement* aPrototype, nsIDocument* aDocument, PRBool aIsScriptable, nsIContent** aResult);
|
||||
|
||||
static nsresult
|
||||
Create(PRInt32 aNameSpaceID, nsIAtom* aTag, nsIContent** aResult);
|
||||
|
||||
// nsISupports
|
||||
NS_DECL_ISUPPORTS
|
||||
|
||||
// nsIContent (from nsIStyledContent)
|
||||
NS_IMETHOD GetDocument(nsIDocument*& aResult) const;
|
||||
NS_IMETHOD SetDocument(nsIDocument* aDocument, PRBool aDeep);
|
||||
NS_IMETHOD GetParent(nsIContent*& aResult) const;
|
||||
NS_IMETHOD SetParent(nsIContent* aParent);
|
||||
NS_IMETHOD CanContainChildren(PRBool& aResult) const;
|
||||
NS_IMETHOD ChildCount(PRInt32& aResult) const;
|
||||
NS_IMETHOD ChildAt(PRInt32 aIndex, nsIContent*& aResult) const;
|
||||
NS_IMETHOD IndexOf(nsIContent* aPossibleChild, PRInt32& aResult) const;
|
||||
NS_IMETHOD InsertChildAt(nsIContent* aKid, PRInt32 aIndex, PRBool aNotify);
|
||||
NS_IMETHOD ReplaceChildAt(nsIContent* aKid, PRInt32 aIndex, PRBool aNotify);
|
||||
NS_IMETHOD AppendChildTo(nsIContent* aKid, PRBool aNotify);
|
||||
NS_IMETHOD RemoveChildAt(PRInt32 aIndex, PRBool aNotify);
|
||||
NS_IMETHOD IsSynthetic(PRBool& aResult);
|
||||
NS_IMETHOD GetNameSpaceID(PRInt32& aNameSpeceID) const;
|
||||
NS_IMETHOD GetTag(nsIAtom*& aResult) const;
|
||||
NS_IMETHOD ParseAttributeString(const nsString& aStr, nsIAtom*& aName, PRInt32& aNameSpaceID);
|
||||
NS_IMETHOD GetNameSpacePrefixFromId(PRInt32 aNameSpaceID, nsIAtom*& aPrefix);
|
||||
NS_IMETHOD SetAttribute(PRInt32 aNameSpaceID, nsIAtom* aName, const nsString& aValue, PRBool aNotify);
|
||||
NS_IMETHOD GetAttribute(PRInt32 aNameSpaceID, nsIAtom* aName, nsString& aResult) const;
|
||||
NS_IMETHOD UnsetAttribute(PRInt32 aNameSpaceID, nsIAtom* aName, PRBool aNotify);
|
||||
NS_IMETHOD GetAttributeNameAt(PRInt32 aIndex, PRInt32& aNameSpaceID,
|
||||
nsIAtom*& aName) const;
|
||||
NS_IMETHOD GetAttributeCount(PRInt32& aResult) const;
|
||||
NS_IMETHOD List(FILE* out, PRInt32 aIndent) const;
|
||||
NS_IMETHOD BeginConvertToXIF(nsXIFConverter& aConverter) const;
|
||||
NS_IMETHOD ConvertContentToXIF(nsXIFConverter& aConverter) const;
|
||||
NS_IMETHOD FinishConvertToXIF(nsXIFConverter& aConverter) const;
|
||||
NS_IMETHOD SizeOf(nsISizeOfHandler* aSizer, PRUint32* aResult) const;
|
||||
NS_IMETHOD HandleDOMEvent(nsIPresContext& aPresContext,
|
||||
nsEvent* aEvent,
|
||||
nsIDOMEvent** aDOMEvent,
|
||||
PRUint32 aFlags,
|
||||
nsEventStatus& aEventStatus);
|
||||
|
||||
NS_IMETHOD GetContentID(PRUint32* aID);
|
||||
NS_IMETHOD SetContentID(PRUint32 aID);
|
||||
|
||||
NS_IMETHOD RangeAdd(nsIDOMRange& aRange);
|
||||
NS_IMETHOD RangeRemove(nsIDOMRange& aRange);
|
||||
NS_IMETHOD GetRangeList(nsVoidArray*& aResult) const;
|
||||
|
||||
// nsIStyledContent
|
||||
NS_IMETHOD GetID(nsIAtom*& aResult) const;
|
||||
NS_IMETHOD GetClasses(nsVoidArray& aArray) const;
|
||||
NS_IMETHOD HasClass(nsIAtom* aClass) const;
|
||||
|
||||
NS_IMETHOD GetContentStyleRules(nsISupportsArray* aRules);
|
||||
NS_IMETHOD GetInlineStyleRules(nsISupportsArray* aRules);
|
||||
NS_IMETHOD GetMappedAttributeImpact(const nsIAtom* aAttribute,
|
||||
PRInt32& aHint) const;
|
||||
|
||||
// nsIXMLContent
|
||||
NS_IMETHOD SetContainingNameSpace(nsINameSpace* aNameSpace);
|
||||
NS_IMETHOD GetContainingNameSpace(nsINameSpace*& aNameSpace) const;
|
||||
NS_IMETHOD SetNameSpacePrefix(nsIAtom* aNameSpace);
|
||||
NS_IMETHOD GetNameSpacePrefix(nsIAtom*& aNameSpace) const;
|
||||
NS_IMETHOD SetNameSpaceID(PRInt32 aNameSpaceID);
|
||||
|
||||
// nsIXULContent
|
||||
NS_IMETHOD PeekChildCount(PRInt32& aCount) const;
|
||||
NS_IMETHOD SetLazyState(PRInt32 aFlags);
|
||||
NS_IMETHOD ClearLazyState(PRInt32 aFlags);
|
||||
NS_IMETHOD GetLazyState(PRInt32 aFlag, PRBool& aValue);
|
||||
NS_IMETHOD AddScriptEventListener(nsIAtom* aName, const nsString& aValue, REFNSIID aIID);
|
||||
NS_IMETHOD ForceElementToOwnResource(PRBool aForce);
|
||||
|
||||
// nsIFocusableContent interface
|
||||
NS_IMETHOD SetFocus(nsIPresContext* aPresContext);
|
||||
NS_IMETHOD RemoveFocus(nsIPresContext* aPresContext);
|
||||
|
||||
// nsIDOMNode (from nsIDOMElement)
|
||||
NS_DECL_IDOMNODE
|
||||
|
||||
// nsIDOMElement
|
||||
NS_DECL_IDOMELEMENT
|
||||
|
||||
// nsIDOMXULElement
|
||||
NS_DECL_IDOMXULELEMENT
|
||||
|
||||
// nsIDOMEventTarget interface (from nsIDOMEventReceiver)
|
||||
NS_IMETHOD AddEventListener(const nsString& aType, nsIDOMEventListener* aListener,
|
||||
PRBool aUseCapture);
|
||||
NS_IMETHOD RemoveEventListener(const nsString& aType, nsIDOMEventListener* aListener,
|
||||
PRBool aUseCapture);
|
||||
|
||||
// nsIDOMEventReceiver
|
||||
NS_IMETHOD AddEventListenerByIID(nsIDOMEventListener *aListener, const nsIID& aIID);
|
||||
NS_IMETHOD RemoveEventListenerByIID(nsIDOMEventListener *aListener, const nsIID& aIID);
|
||||
NS_IMETHOD GetListenerManager(nsIEventListenerManager** aInstancePtrResult);
|
||||
NS_IMETHOD GetNewListenerManager(nsIEventListenerManager **aInstancePtrResult);
|
||||
|
||||
// nsIScriptObjectOwner
|
||||
NS_IMETHOD GetScriptObject(nsIScriptContext* aContext, void** aScriptObject);
|
||||
NS_IMETHOD SetScriptObject(void *aScriptObject);
|
||||
|
||||
// nsIJSScriptObject
|
||||
virtual PRBool AddProperty(JSContext *aContext, jsval aID, jsval *aVp);
|
||||
virtual PRBool DeleteProperty(JSContext *aContext, jsval aID, jsval *aVp);
|
||||
virtual PRBool GetProperty(JSContext *aContext, jsval aID, jsval *aVp);
|
||||
virtual PRBool SetProperty(JSContext *aContext, jsval aID, jsval *aVp);
|
||||
virtual PRBool EnumerateProperty(JSContext *aContext);
|
||||
virtual PRBool Resolve(JSContext *aContext, jsval aID);
|
||||
virtual PRBool Convert(JSContext *aContext, jsval aID);
|
||||
virtual void Finalize(JSContext *aContext);
|
||||
|
||||
// nsIStyleRule interface. The node implements this to deal with attributes that
|
||||
// need to be mapped into style contexts (e.g., width in treecols).
|
||||
NS_IMETHOD GetStyleSheet(nsIStyleSheet*& aSheet) const;
|
||||
NS_IMETHOD GetStrength(PRInt32& aStrength) const;
|
||||
NS_IMETHOD MapFontStyleInto(nsIMutableStyleContext* aContext, nsIPresContext* aPresContext);
|
||||
NS_IMETHOD MapStyleInto(nsIMutableStyleContext* aContext, nsIPresContext* aPresContext);
|
||||
|
||||
protected:
|
||||
nsXULElement();
|
||||
nsresult Init();
|
||||
virtual ~nsXULElement(void);
|
||||
|
||||
|
||||
// Implementation methods
|
||||
nsresult EnsureContentsGenerated(void) const;
|
||||
|
||||
nsresult ExecuteOnBroadcastHandler(nsIDOMElement* anElement, const nsString& attrName);
|
||||
|
||||
PRBool ElementIsInDocument();
|
||||
|
||||
static nsresult
|
||||
ExecuteJSCode(nsIDOMElement* anElement, nsEvent* aEvent);
|
||||
|
||||
// Used with treecol width attributes
|
||||
static PRBool ParseNumericValue(const nsString& aString,
|
||||
PRInt32& aIntValue,
|
||||
float& aFloatValue,
|
||||
nsHTMLUnit& aValueUnit);
|
||||
|
||||
// Static helpers
|
||||
static nsresult
|
||||
GetElementsByTagName(nsIDOMNode* aNode,
|
||||
const nsString& aTagName,
|
||||
nsRDFDOMNodeList* aElements);
|
||||
|
||||
static nsresult
|
||||
GetElementsByAttribute(nsIDOMNode* aNode,
|
||||
const nsString& aAttributeName,
|
||||
const nsString& aAttributeValue,
|
||||
nsRDFDOMNodeList* aElements);
|
||||
|
||||
static PRBool IsAncestor(nsIDOMNode* aParentNode, nsIDOMNode* aChildNode);
|
||||
|
||||
// Helper routine that crawls a parent chain looking for a tree element.
|
||||
NS_IMETHOD GetParentTree(nsIDOMXULTreeElement** aTreeElement);
|
||||
|
||||
PRBool IsFocusableContent();
|
||||
|
||||
nsresult AddPopupListener(nsIAtom* aName);
|
||||
|
||||
protected:
|
||||
// Required fields
|
||||
nsXULPrototypeElement* mPrototype;
|
||||
nsIDocument* mDocument; // [WEAK]
|
||||
nsIContent* mParent; // [WEAK]
|
||||
nsCOMPtr<nsISupportsArray> mChildren; // [OWNER]
|
||||
nsCOMPtr<nsIEventListenerManager> mListenerManager; // [OWNER]
|
||||
void* mScriptObject; // [OWNER]
|
||||
|
||||
// The state of our sloth for lazy content model construction via
|
||||
// RDF; see nsIXULContent and nsRDFGenericBuilder.
|
||||
PRInt32 mLazyState;
|
||||
|
||||
// Lazily instantiated if/when object is mutated. Instantiating
|
||||
// the mSlots makes an nsXULElement 'heavyweight'.
|
||||
struct Slots {
|
||||
Slots(nsXULElement* mElement);
|
||||
~Slots();
|
||||
|
||||
nsXULElement* mElement; // [WEAK]
|
||||
PRInt32 mNameSpaceID;
|
||||
nsCOMPtr<nsINameSpace> mNameSpace; // [OWNER]
|
||||
nsCOMPtr<nsIAtom> mNameSpacePrefix; // [OWNER]
|
||||
nsCOMPtr<nsIAtom> mTag; // [OWNER]
|
||||
nsVoidArray* mBroadcastListeners; // [WEAK]
|
||||
nsIDOMXULElement* mBroadcaster; // [WEAK]
|
||||
nsCOMPtr<nsIControllers> mControllers; // [OWNER]
|
||||
nsCOMPtr<nsIRDFCompositeDataSource> mDatabase; // [OWNER]
|
||||
nsCOMPtr<nsIRDFResource> mOwnedResource; // [OWNER]
|
||||
nsXULAttributes* mAttributes;
|
||||
|
||||
// An unreferenced bare pointer to an aggregate that can
|
||||
// implement element-specific APIs.
|
||||
nsXULAggregateElement* mInnerXULElement;
|
||||
};
|
||||
|
||||
friend struct Slots;
|
||||
Slots* mSlots;
|
||||
nsresult EnsureSlots();
|
||||
|
||||
|
||||
protected:
|
||||
// Internal accessors. These shadow the 'Slots', and return
|
||||
// appropriate default values if there are no slots defined in the
|
||||
// delegate.
|
||||
PRInt32 NameSpaceID() const { return mSlots ? mSlots->mNameSpaceID : mPrototype->mNameSpaceID; }
|
||||
nsINameSpace* NameSpace() const { return mSlots ? mSlots->mNameSpace.get() : mPrototype->mNameSpace.get(); }
|
||||
nsIAtom* NameSpacePrefix() const { return mSlots ? mSlots->mNameSpacePrefix.get() : mPrototype->mNameSpacePrefix.get(); }
|
||||
nsIAtom* Tag() const { return mSlots ? mSlots->mTag.get() : mPrototype->mTag.get(); }
|
||||
nsVoidArray* BroadcastListeners() const { return mSlots ? mSlots->mBroadcastListeners : nsnull; }
|
||||
nsIDOMXULElement* Broadcaster() const { return mSlots ? mSlots->mBroadcaster : nsnull; }
|
||||
nsIControllers* Controllers() const { return mSlots ? mSlots->mControllers.get() : nsnull; }
|
||||
nsIRDFCompositeDataSource* Database() const { return mSlots ? mSlots->mDatabase.get() : nsnull; }
|
||||
nsIRDFResource* OwnedResource() const { return mSlots ? mSlots->mOwnedResource.get() : nsnull; }
|
||||
nsXULAttributes* Attributes() const { return mSlots ? mSlots->mAttributes : nsnull; }
|
||||
nsXULAggregateElement* InnerXULElement() const { return mSlots ? mSlots->mInnerXULElement : nsnull; }
|
||||
|
||||
};
|
||||
|
||||
|
||||
#endif // nsXULElement_h__
|
||||
548
mozilla/content/xul/content/src/nsXULPopupListener.cpp
Normal file
548
mozilla/content/xul/content/src/nsXULPopupListener.cpp
Normal file
@@ -0,0 +1,548 @@
|
||||
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
|
||||
*
|
||||
* The contents of this file are subject to the Netscape Public
|
||||
* License Version 1.1 (the "License"); you may not use this file
|
||||
* except in compliance with the License. You may obtain a copy of
|
||||
* the License at http://www.mozilla.org/NPL/
|
||||
*
|
||||
* Software distributed under the License is distributed on an "AS
|
||||
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
||||
* implied. See the License for the specific language governing
|
||||
* rights and limitations under the License.
|
||||
*
|
||||
* The Original Code is mozilla.org code.
|
||||
*
|
||||
* The Initial Developer of the Original Code is Netscape
|
||||
* Communications Corporation. Portions created by Netscape are
|
||||
* Copyright (C) 1998 Netscape Communications Corporation. All
|
||||
* Rights Reserved.
|
||||
*
|
||||
* Contributor(s):
|
||||
*/
|
||||
|
||||
/*
|
||||
This file provides the implementation for xul popup listener which
|
||||
tracks xul popups, context menus, and tooltips
|
||||
*/
|
||||
|
||||
#include "nsCOMPtr.h"
|
||||
#include "nsIDOMElement.h"
|
||||
#include "nsIXULPopupListener.h"
|
||||
#include "nsIDOMMouseListener.h"
|
||||
#include "nsIDOMMouseMotionListener.h"
|
||||
#include "nsRDFCID.h"
|
||||
|
||||
#include "nsIScriptGlobalObject.h"
|
||||
#include "nsIDOMWindow.h"
|
||||
#include "nsIScriptContextOwner.h"
|
||||
#include "nsIDOMXULDocument.h"
|
||||
#include "nsIDocument.h"
|
||||
#include "nsIContent.h"
|
||||
#include "nsIDOMMouseEvent.h"
|
||||
#include "nsITimer.h"
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////////////////
|
||||
|
||||
static NS_DEFINE_IID(kXULPopupListenerCID, NS_XULPOPUPLISTENER_CID);
|
||||
static NS_DEFINE_IID(kIXULPopupListenerIID, NS_IXULPOPUPLISTENER_IID);
|
||||
static NS_DEFINE_IID(kISupportsIID, NS_ISUPPORTS_IID);
|
||||
|
||||
static NS_DEFINE_IID(kIDomEventListenerIID, NS_IDOMEVENTLISTENER_IID);
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////////////////
|
||||
// PopupListenerImpl
|
||||
//
|
||||
// This is the popup listener implementation for popup menus, context menus,
|
||||
// and tooltips.
|
||||
//
|
||||
class XULPopupListenerImpl : public nsIXULPopupListener,
|
||||
public nsIDOMMouseListener,
|
||||
public nsIDOMMouseMotionListener
|
||||
{
|
||||
public:
|
||||
XULPopupListenerImpl(void);
|
||||
virtual ~XULPopupListenerImpl(void);
|
||||
|
||||
public:
|
||||
// nsISupports
|
||||
NS_DECL_ISUPPORTS
|
||||
|
||||
// nsIXULPopupListener
|
||||
NS_IMETHOD Init(nsIDOMElement* aElement, const XULPopupType& popupType);
|
||||
|
||||
// nsIDOMMouseListener
|
||||
virtual nsresult MouseDown(nsIDOMEvent* aMouseEvent);
|
||||
virtual nsresult MouseUp(nsIDOMEvent* aMouseEvent) { return NS_OK; };
|
||||
virtual nsresult MouseClick(nsIDOMEvent* aMouseEvent) { return NS_OK; };
|
||||
virtual nsresult MouseDblClick(nsIDOMEvent* aMouseEvent) { return NS_OK; };
|
||||
virtual nsresult MouseOver(nsIDOMEvent* aMouseEvent) { return NS_OK; };
|
||||
virtual nsresult MouseOut(nsIDOMEvent* aMouseEvent) ;
|
||||
|
||||
// nsIDOMMouseMotionListener
|
||||
virtual nsresult MouseMove(nsIDOMEvent* aMouseEvent);
|
||||
virtual nsresult DragMove(nsIDOMEvent* aMouseEvent) { return NS_OK; };
|
||||
|
||||
// nsIDOMEventListener
|
||||
virtual nsresult HandleEvent(nsIDOMEvent* anEvent) { return NS_OK; };
|
||||
|
||||
protected:
|
||||
|
||||
virtual nsresult LaunchPopup(nsIDOMEvent* anEvent);
|
||||
virtual nsresult LaunchPopup(PRInt32 aClientX, PRInt32 aClientY) ;
|
||||
|
||||
nsresult FindDocumentForNode(nsIDOMNode* inNode, nsIDOMXULDocument** outDoc) ;
|
||||
|
||||
private:
|
||||
// |mElement| is the node to which this listener is attached.
|
||||
nsIDOMElement* mElement; // Weak ref. The element will go away first.
|
||||
|
||||
// The popup that is getting shown on top of mElement.
|
||||
nsIDOMElement* mPopupContent;
|
||||
|
||||
// The type of the popup
|
||||
XULPopupType popupType;
|
||||
|
||||
// The following members are not used unless |popupType| is tooltip.
|
||||
|
||||
// a timer for determining if a tooltip should be displayed.
|
||||
static void sTooltipCallback ( nsITimer *aTimer, void *aClosure ) ;
|
||||
nsCOMPtr<nsITimer> mTooltipTimer;
|
||||
PRInt32 mMouseClientX, mMouseClientY; // mouse coordinates for tooltip event
|
||||
|
||||
// The node hovered over that fired the timer. This may turn into the node that
|
||||
// triggered the tooltip, but only if the timer ever gets around to firing.
|
||||
nsIDOMNode* mPossibleTooltipNode; // weak ref.
|
||||
|
||||
};
|
||||
|
||||
////////////////////////////////////////////////////////////////////////
|
||||
|
||||
|
||||
XULPopupListenerImpl::XULPopupListenerImpl(void)
|
||||
: mElement(nsnull), mPopupContent(nsnull),
|
||||
mMouseClientX(0), mMouseClientY(0),
|
||||
mPossibleTooltipNode(nsnull)
|
||||
{
|
||||
NS_INIT_REFCNT();
|
||||
}
|
||||
|
||||
XULPopupListenerImpl::~XULPopupListenerImpl(void)
|
||||
{
|
||||
//XXX do we need to close the popup here? Will we get the right events as
|
||||
//XXX the topLevel window is going away when the closebox is pressed?
|
||||
|
||||
#ifdef DEBUG_REFS
|
||||
--gInstanceCount;
|
||||
fprintf(stdout, "%d - RDF: XULPopupListenerImpl\n", gInstanceCount);
|
||||
#endif
|
||||
}
|
||||
|
||||
NS_IMPL_ADDREF(XULPopupListenerImpl)
|
||||
NS_IMPL_RELEASE(XULPopupListenerImpl)
|
||||
|
||||
NS_IMETHODIMP
|
||||
XULPopupListenerImpl::QueryInterface(REFNSIID iid, void** result)
|
||||
{
|
||||
if (! result)
|
||||
return NS_ERROR_NULL_POINTER;
|
||||
|
||||
*result = nsnull;
|
||||
if (iid.Equals(nsIXULPopupListener::GetIID()) ||
|
||||
iid.Equals(kISupportsIID)) {
|
||||
*result = NS_STATIC_CAST(nsIXULPopupListener*, this);
|
||||
NS_ADDREF_THIS();
|
||||
return NS_OK;
|
||||
}
|
||||
else if (iid.Equals(nsIDOMMouseListener::GetIID())) {
|
||||
*result = NS_STATIC_CAST(nsIDOMMouseListener*, this);
|
||||
NS_ADDREF_THIS();
|
||||
return NS_OK;
|
||||
}
|
||||
else if (iid.Equals(nsIDOMMouseMotionListener::GetIID())) {
|
||||
*result = NS_STATIC_CAST(nsIDOMMouseMotionListener*, this);
|
||||
NS_ADDREF_THIS();
|
||||
return NS_OK;
|
||||
}
|
||||
// compiler problems with nsIDOMEventListener::GetIID() cause us to do it this
|
||||
// way. Please excuse the lameness (hyatt and pinkerton).
|
||||
else if (iid.Equals(kIDomEventListenerIID)) {
|
||||
*result = (nsIDOMEventListener*)(nsIDOMMouseListener*)this;
|
||||
NS_ADDREF_THIS();
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
return NS_NOINTERFACE;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
XULPopupListenerImpl::Init(nsIDOMElement* aElement, const XULPopupType& popup)
|
||||
{
|
||||
mElement = aElement; // Weak reference. Don't addref it.
|
||||
popupType = popup;
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////
|
||||
// nsIDOMMouseListener
|
||||
|
||||
nsresult
|
||||
XULPopupListenerImpl::MouseDown(nsIDOMEvent* aMouseEvent)
|
||||
{
|
||||
PRUint16 button;
|
||||
|
||||
nsCOMPtr<nsIDOMMouseEvent> mouseEvent;
|
||||
mouseEvent = do_QueryInterface(aMouseEvent);
|
||||
if (!mouseEvent) {
|
||||
//non-ui event passed in. bad things.
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
// Get the node that was clicked on.
|
||||
nsCOMPtr<nsIDOMNode> targetNode;
|
||||
mouseEvent->GetTarget( getter_AddRefs( targetNode ) );
|
||||
|
||||
// Get the document with the popup.
|
||||
nsCOMPtr<nsIDocument> document;
|
||||
nsCOMPtr<nsIContent> content = do_QueryInterface(mElement);
|
||||
nsresult rv;
|
||||
if (NS_FAILED(rv = content->GetDocument(*getter_AddRefs(document)))) {
|
||||
NS_ERROR("Unable to retrieve the document.");
|
||||
return rv;
|
||||
}
|
||||
|
||||
// Turn the document into a XUL document so we can use SetPopupNode.
|
||||
nsCOMPtr<nsIDOMXULDocument> xulDocument = do_QueryInterface(document);
|
||||
if (xulDocument == nsnull) {
|
||||
NS_ERROR("Popup attached to an element that isn't in XUL!");
|
||||
return NS_ERROR_FAILURE;
|
||||
}
|
||||
|
||||
// Store clicked-on node in xul document.
|
||||
xulDocument->SetPopupNode( targetNode );
|
||||
|
||||
switch (popupType) {
|
||||
case eXULPopupType_popup:
|
||||
// Check for left mouse button down
|
||||
mouseEvent->GetButton(&button);
|
||||
if (button == 1) {
|
||||
// Time to launch a popup menu.
|
||||
LaunchPopup(aMouseEvent);
|
||||
}
|
||||
break;
|
||||
case eXULPopupType_context:
|
||||
#ifdef XP_MAC
|
||||
// XXX: Handle Mac (currently checks if CTRL key is down)
|
||||
PRBool ctrlKey = PR_FALSE;
|
||||
mouseEvent->GetCtrlKey(&ctrlKey);
|
||||
if (ctrlKey == PR_TRUE)
|
||||
#else
|
||||
// Check for right mouse button down
|
||||
mouseEvent->GetButton(&button);
|
||||
if (button == 3)
|
||||
#endif
|
||||
{
|
||||
// Time to launch a context menu.
|
||||
LaunchPopup(aMouseEvent);
|
||||
}
|
||||
break;
|
||||
|
||||
case eXULPopupType_tooltip:
|
||||
case eXULPopupType_blur:
|
||||
// ignore
|
||||
break;
|
||||
|
||||
}
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
||||
//
|
||||
// MouseMove
|
||||
//
|
||||
// If we're a tooltip, fire off a timer to see if a tooltip should be shown.
|
||||
//
|
||||
nsresult
|
||||
XULPopupListenerImpl::MouseMove(nsIDOMEvent* aMouseEvent)
|
||||
{
|
||||
// make sure we're a tooltip. if not, bail.
|
||||
if ( popupType != eXULPopupType_tooltip )
|
||||
return NS_OK;
|
||||
|
||||
nsCOMPtr<nsIDOMMouseEvent> mouseEvent ( do_QueryInterface(aMouseEvent) );
|
||||
if (!mouseEvent)
|
||||
return NS_OK;
|
||||
|
||||
// stash the coordinates of the event so that we can still get back to it from within the
|
||||
// timer scallback. Also stash the node that started this so we can put it into the
|
||||
// document later on (if the timer ever fires).
|
||||
mouseEvent->GetClientX(&mMouseClientX);
|
||||
mouseEvent->GetClientY(&mMouseClientY);
|
||||
|
||||
//XXX recognize when a popup is already up and immediately show the
|
||||
//XXX tooltip for the new item if the dom element is different than
|
||||
//XXX the element for which we are currently displaying the tip.
|
||||
//XXX
|
||||
//XXX for now, just be stupid to get things working.
|
||||
if (mPopupContent || mTooltipTimer)
|
||||
return NS_OK;
|
||||
|
||||
NS_NewTimer ( getter_AddRefs(mTooltipTimer) );
|
||||
if ( mTooltipTimer ) {
|
||||
nsCOMPtr<nsIDOMNode> eventTarget;
|
||||
aMouseEvent->GetTarget(getter_AddRefs(eventTarget));
|
||||
mPossibleTooltipNode = eventTarget.get();
|
||||
mTooltipTimer->Init(sTooltipCallback, this, 500); // 500 ms delay
|
||||
}
|
||||
else
|
||||
NS_WARNING ( "Could not create a timer for tooltip tracking" );
|
||||
|
||||
return NS_OK;
|
||||
|
||||
} // MouseMove
|
||||
|
||||
|
||||
//
|
||||
// MouseOut
|
||||
//
|
||||
// If we're a tooltip, hide any tip that might be showing and remove any
|
||||
// timer that is pending since the mouse is no longer over this area.
|
||||
//
|
||||
nsresult
|
||||
XULPopupListenerImpl::MouseOut(nsIDOMEvent* aMouseEvent)
|
||||
{
|
||||
// make sure we're a tooltip. if not, bail.
|
||||
if ( popupType != eXULPopupType_tooltip )
|
||||
return NS_OK;
|
||||
|
||||
if ( mTooltipTimer ) {
|
||||
mTooltipTimer->Cancel();
|
||||
mTooltipTimer = nsnull;
|
||||
}
|
||||
|
||||
if ( mPopupContent ) {
|
||||
mPopupContent->RemoveAttribute("menugenerated"); // hide the popup
|
||||
mPopupContent->RemoveAttribute("menuactive");
|
||||
|
||||
mPopupContent = nsnull; // release the popup
|
||||
|
||||
// clear out the tooltip node on the document
|
||||
nsCOMPtr<nsIDOMNode> eventTarget;
|
||||
aMouseEvent->GetTarget(getter_AddRefs(eventTarget));
|
||||
nsCOMPtr<nsIDOMXULDocument> doc;
|
||||
FindDocumentForNode ( eventTarget, getter_AddRefs(doc) );
|
||||
if ( doc )
|
||||
doc->SetTooltipNode(nsnull);
|
||||
}
|
||||
|
||||
return NS_OK;
|
||||
|
||||
} // MouseOut
|
||||
|
||||
|
||||
//
|
||||
// FindDocumentForNode
|
||||
//
|
||||
// Given a DOM content node, finds the XUL document associated with it
|
||||
//
|
||||
nsresult
|
||||
XULPopupListenerImpl :: FindDocumentForNode ( nsIDOMNode* inElement, nsIDOMXULDocument** outDoc )
|
||||
{
|
||||
nsresult rv = NS_OK;
|
||||
|
||||
if ( !outDoc || !inElement )
|
||||
return NS_ERROR_INVALID_ARG;
|
||||
|
||||
// get the document associated with this content element
|
||||
nsCOMPtr<nsIDocument> document;
|
||||
nsCOMPtr<nsIContent> content = do_QueryInterface(inElement);
|
||||
if (!content)
|
||||
return rv;
|
||||
|
||||
if (NS_FAILED(rv = content->GetDocument(*getter_AddRefs(document)))) {
|
||||
NS_ERROR("Unable to retrieve the document.");
|
||||
return rv;
|
||||
}
|
||||
|
||||
// Turn the document into a XUL document so we can use getElementById
|
||||
nsCOMPtr<nsIDOMXULDocument> xulDocument = do_QueryInterface(document);
|
||||
if (xulDocument == nsnull) {
|
||||
NS_ERROR("Popup attached to an element that isn't in XUL!");
|
||||
return NS_ERROR_FAILURE;
|
||||
}
|
||||
|
||||
*outDoc = xulDocument;
|
||||
NS_ADDREF ( *outDoc );
|
||||
|
||||
return rv;
|
||||
|
||||
} // FindDocumentForNode
|
||||
|
||||
|
||||
//
|
||||
// LaunchPopup
|
||||
//
|
||||
nsresult
|
||||
XULPopupListenerImpl::LaunchPopup ( nsIDOMEvent* anEvent )
|
||||
{
|
||||
// Retrieve our x and y position.
|
||||
nsCOMPtr<nsIDOMMouseEvent> mouseEvent ( do_QueryInterface(anEvent) );
|
||||
if (!mouseEvent) {
|
||||
//non-ui event passed in. bad things.
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
PRInt32 xPos, yPos;
|
||||
mouseEvent->GetClientX(&xPos);
|
||||
mouseEvent->GetClientY(&yPos);
|
||||
|
||||
return LaunchPopup(xPos, yPos);
|
||||
}
|
||||
|
||||
|
||||
//
|
||||
// LaunchPopup
|
||||
//
|
||||
// Given the element on which the event was triggered and the mouse locations in
|
||||
// Client and widget coordinates, popup a new window showing the appropriate
|
||||
// content.
|
||||
//
|
||||
// This looks for an attribute on |aElement| of the appropriate popup type
|
||||
// (popup, context, tooltip) and uses that attribute's value as an ID for
|
||||
// the popup content in the document.
|
||||
//
|
||||
nsresult
|
||||
XULPopupListenerImpl::LaunchPopup(PRInt32 aClientX, PRInt32 aClientY)
|
||||
{
|
||||
nsresult rv = NS_OK;
|
||||
|
||||
nsAutoString type("popup");
|
||||
if ( popupType == eXULPopupType_context )
|
||||
type = "context";
|
||||
else if ( popupType == eXULPopupType_tooltip )
|
||||
type = "tooltip";
|
||||
|
||||
nsAutoString identifier;
|
||||
mElement->GetAttribute(type, identifier);
|
||||
|
||||
if (identifier == "")
|
||||
return rv;
|
||||
|
||||
// Try to find the popup content and the document. We don't use FindDocumentForNode()
|
||||
// in this case because we need the nsIDocument interface anyway for the script
|
||||
// context.
|
||||
nsCOMPtr<nsIDocument> document;
|
||||
nsCOMPtr<nsIContent> content = do_QueryInterface(mElement);
|
||||
if (NS_FAILED(rv = content->GetDocument(*getter_AddRefs(document)))) {
|
||||
NS_ERROR("Unable to retrieve the document.");
|
||||
return rv;
|
||||
}
|
||||
|
||||
// Turn the document into a XUL document so we can use getElementById
|
||||
nsCOMPtr<nsIDOMXULDocument> xulDocument = do_QueryInterface(document);
|
||||
if (xulDocument == nsnull) {
|
||||
NS_ERROR("Popup attached to an element that isn't in XUL!");
|
||||
return NS_ERROR_FAILURE;
|
||||
}
|
||||
|
||||
// XXX Handle the _child case for popups and context menus!
|
||||
|
||||
// Use getElementById to obtain the popup content and gracefully fail if
|
||||
// we didn't find any popup content in the document.
|
||||
nsCOMPtr<nsIDOMElement> popupContent;
|
||||
if (NS_FAILED(rv = xulDocument->GetElementById(identifier, getter_AddRefs(popupContent)))) {
|
||||
NS_ERROR("GetElementById had some kind of spasm.");
|
||||
return rv;
|
||||
}
|
||||
if ( !popupContent )
|
||||
return NS_OK;
|
||||
|
||||
// We have some popup content. Obtain our window.
|
||||
nsIScriptContextOwner* owner = document->GetScriptContextOwner();
|
||||
nsCOMPtr<nsIScriptContext> context;
|
||||
if (NS_OK == owner->GetScriptContext(getter_AddRefs(context))) {
|
||||
nsIScriptGlobalObject* global = context->GetGlobalObject();
|
||||
if (global) {
|
||||
// Get the DOM window
|
||||
nsCOMPtr<nsIDOMWindow> domWindow = do_QueryInterface(global);
|
||||
if (domWindow != nsnull) {
|
||||
// Find out if we're anchored.
|
||||
nsAutoString anchorAlignment("none");
|
||||
mElement->GetAttribute("popupanchor", anchorAlignment);
|
||||
|
||||
nsAutoString popupAlignment("topleft");
|
||||
mElement->GetAttribute("popupalign", popupAlignment);
|
||||
|
||||
PRInt32 xPos = aClientX, yPos = aClientY;
|
||||
|
||||
mPopupContent = popupContent.get();
|
||||
|
||||
nsCOMPtr<nsIDOMWindow> uselessPopup; // XXX Should go away.
|
||||
domWindow->CreatePopup(mElement, popupContent,
|
||||
xPos, yPos,
|
||||
type, anchorAlignment, popupAlignment,
|
||||
getter_AddRefs(uselessPopup));
|
||||
}
|
||||
NS_RELEASE(global);
|
||||
}
|
||||
}
|
||||
NS_IF_RELEASE(owner);
|
||||
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
//
|
||||
// sTooltipCallback
|
||||
//
|
||||
// A timer callback, fired when the mouse has hovered inside of a frame for the
|
||||
// appropriate amount of time. Getting to this point means that we should show the
|
||||
// toolip.
|
||||
//
|
||||
// This relies on certain things being cached into the |aClosure| object passed to
|
||||
// us by the timer:
|
||||
// -- the x/y coordinates of the mouse
|
||||
// -- the dom node the user hovered over
|
||||
//
|
||||
void
|
||||
XULPopupListenerImpl :: sTooltipCallback (nsITimer *aTimer, void *aClosure)
|
||||
{
|
||||
XULPopupListenerImpl* self = NS_STATIC_CAST(XULPopupListenerImpl*, aClosure);
|
||||
if ( self ) {
|
||||
// set the node in the document that triggered the tooltip and show it
|
||||
nsCOMPtr<nsIDOMXULDocument> doc;
|
||||
self->FindDocumentForNode ( self->mPossibleTooltipNode, getter_AddRefs(doc) );
|
||||
if ( doc ) {
|
||||
nsCOMPtr<nsIDOMElement> element ( do_QueryInterface(self->mPossibleTooltipNode) );
|
||||
if ( element ) {
|
||||
// check that node is enabled before showing tooltip
|
||||
nsAutoString disabledState;
|
||||
element->GetAttribute ( "disabled", disabledState );
|
||||
if ( disabledState != "true" ) {
|
||||
doc->SetTooltipNode ( element );
|
||||
self->LaunchPopup (self->mMouseClientX, self->mMouseClientY+16);
|
||||
} // if node enabled
|
||||
} else {
|
||||
// Tooltip on non-element; e.g., text
|
||||
doc->SetTooltipNode ( self->mPossibleTooltipNode );
|
||||
self->LaunchPopup ( self->mMouseClientX, self->mMouseClientY+16);
|
||||
}
|
||||
} // if document
|
||||
} // if "self" data valid
|
||||
|
||||
} // sTimerCallback
|
||||
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////////
|
||||
nsresult
|
||||
NS_NewXULPopupListener(nsIXULPopupListener** pop)
|
||||
{
|
||||
XULPopupListenerImpl* popup = new XULPopupListenerImpl();
|
||||
if (!popup)
|
||||
return NS_ERROR_OUT_OF_MEMORY;
|
||||
|
||||
NS_ADDREF(popup);
|
||||
*pop = popup;
|
||||
return NS_OK;
|
||||
}
|
||||
384
mozilla/content/xul/content/src/nsXULTreeElement.cpp
Normal file
384
mozilla/content/xul/content/src/nsXULTreeElement.cpp
Normal file
@@ -0,0 +1,384 @@
|
||||
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
|
||||
*
|
||||
* The contents of this file are subject to the Netscape Public
|
||||
* License Version 1.1 (the "License"); you may not use this file
|
||||
* except in compliance with the License. You may obtain a copy of
|
||||
* the License at http://www.mozilla.org/NPL/
|
||||
*
|
||||
* Software distributed under the License is distributed on an "AS
|
||||
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
||||
* implied. See the License for the specific language governing
|
||||
* rights and limitations under the License.
|
||||
*
|
||||
* The Original Code is Mozilla Communicator client code.
|
||||
*
|
||||
* The Initial Developer of the Original Code is Netscape Communications
|
||||
* Corporation. Portions created by Netscape are
|
||||
* Copyright (C) 1998 Netscape Communications Corporation. All
|
||||
* Rights Reserved.
|
||||
*
|
||||
* Contributor(s):
|
||||
*/
|
||||
|
||||
/*
|
||||
|
||||
Implementation methods for the XUL tree element APIs.
|
||||
|
||||
*/
|
||||
|
||||
#include "nsCOMPtr.h"
|
||||
#include "nsRDFCID.h"
|
||||
#include "nsXULTreeElement.h"
|
||||
#include "nsIContent.h"
|
||||
#include "nsIDocument.h"
|
||||
#include "nsIPresContext.h"
|
||||
#include "nsIPresShell.h"
|
||||
#include "nsINameSpaceManager.h"
|
||||
#include "nsString.h"
|
||||
|
||||
nsIAtom* nsXULTreeElement::kSelectedAtom;
|
||||
int nsXULTreeElement::gRefCnt = 0;
|
||||
|
||||
NS_IMPL_ADDREF_INHERITED(nsXULTreeElement, nsXULAggregateElement);
|
||||
NS_IMPL_RELEASE_INHERITED(nsXULTreeElement, nsXULAggregateElement);
|
||||
|
||||
nsresult
|
||||
nsXULTreeElement::QueryInterface(REFNSIID aIID, void** aResult)
|
||||
{
|
||||
NS_PRECONDITION(aResult != nsnull, "null ptr");
|
||||
if (! aResult)
|
||||
return NS_ERROR_NULL_POINTER;
|
||||
|
||||
if (aIID.Equals(nsCOMTypeInfo<nsIDOMXULTreeElement>::GetIID())) {
|
||||
*aResult = NS_STATIC_CAST(nsIDOMXULTreeElement*, this);
|
||||
}
|
||||
else if (aIID.Equals(nsCOMTypeInfo<nsIXULTreeContent>::GetIID())) {
|
||||
*aResult = NS_STATIC_CAST(nsIXULTreeContent*, this);
|
||||
}
|
||||
else {
|
||||
return nsXULAggregateElement::QueryInterface(aIID, aResult);
|
||||
}
|
||||
|
||||
NS_ADDREF(NS_REINTERPRET_CAST(nsISupports*, *aResult));
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
||||
nsXULTreeElement::nsXULTreeElement(nsIDOMXULElement* aOuter)
|
||||
: nsXULAggregateElement(aOuter)
|
||||
{
|
||||
if (gRefCnt++ == 0) {
|
||||
kSelectedAtom = NS_NewAtom("selected");
|
||||
}
|
||||
|
||||
nsresult rv;
|
||||
|
||||
nsRDFDOMNodeList* children;
|
||||
rv = nsRDFDOMNodeList::Create(&children);
|
||||
NS_ASSERTION(NS_SUCCEEDED(rv), "unable to create DOM node list");
|
||||
if (NS_FAILED(rv)) return;
|
||||
|
||||
mSelectedItems = children;
|
||||
|
||||
children = nsnull;
|
||||
rv = nsRDFDOMNodeList::Create(&children);
|
||||
NS_ASSERTION(NS_SUCCEEDED(rv), "unable to create DOM node list");
|
||||
if (NS_FAILED(rv)) return;
|
||||
|
||||
mSelectedCells = children;
|
||||
}
|
||||
|
||||
nsXULTreeElement::~nsXULTreeElement()
|
||||
{
|
||||
#ifdef DEBUG_REFS
|
||||
--gInstanceCount;
|
||||
fprintf(stdout, "%d - RDF: nsXULTreeElement\n", gInstanceCount);
|
||||
#endif
|
||||
|
||||
NS_IF_RELEASE(mSelectedItems);
|
||||
NS_IF_RELEASE(mSelectedCells);
|
||||
|
||||
if (--gRefCnt == 0) {
|
||||
NS_IF_RELEASE(kSelectedAtom);
|
||||
}
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsXULTreeElement::GetSelectedItems(nsIDOMNodeList** aSelectedItems)
|
||||
{
|
||||
NS_IF_ADDREF(mSelectedItems);
|
||||
*aSelectedItems = mSelectedItems;
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsXULTreeElement::GetSelectedCells(nsIDOMNodeList** aSelectedCells)
|
||||
{
|
||||
NS_IF_ADDREF(mSelectedCells);
|
||||
*aSelectedCells = mSelectedCells;
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsXULTreeElement::SelectItem(nsIDOMXULElement* aTreeItem)
|
||||
{
|
||||
// Sanity check. If we're the only item, just bail.
|
||||
PRUint32 length;
|
||||
mSelectedItems->GetLength(&length);
|
||||
if (length == 1) {
|
||||
// See if the single item already selected is us.
|
||||
nsCOMPtr<nsIDOMNode> domNode;
|
||||
mSelectedItems->Item(0, getter_AddRefs(domNode));
|
||||
nsCOMPtr<nsIDOMXULElement> treeItem = do_QueryInterface(domNode);
|
||||
if (treeItem.get() == aTreeItem)
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
// First clear our selection.
|
||||
ClearItemSelectionInternal();
|
||||
|
||||
// Now add ourselves to the selection by setting our selected attribute.
|
||||
AddItemToSelectionInternal(aTreeItem);
|
||||
|
||||
FireOnSelectHandler();
|
||||
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsXULTreeElement::SelectCell(nsIDOMXULElement* aTreeCell)
|
||||
{
|
||||
// Sanity check. If we're the only item, just bail.
|
||||
PRUint32 length;
|
||||
mSelectedCells->GetLength(&length);
|
||||
if (length == 1) {
|
||||
// See if the single item already selected is us.
|
||||
nsCOMPtr<nsIDOMNode> domNode;
|
||||
mSelectedCells->Item(0, getter_AddRefs(domNode));
|
||||
nsCOMPtr<nsIDOMXULElement> treeCell = do_QueryInterface(domNode);
|
||||
if (treeCell.get() == aTreeCell)
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
// First clear our selection.
|
||||
ClearCellSelectionInternal();
|
||||
|
||||
// Now add ourselves to the selection by setting our selected attribute.
|
||||
AddCellToSelectionInternal(aTreeCell);
|
||||
|
||||
FireOnSelectHandler();
|
||||
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsXULTreeElement::ClearItemSelection()
|
||||
{
|
||||
ClearItemSelectionInternal();
|
||||
FireOnSelectHandler();
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
void
|
||||
nsXULTreeElement::ClearItemSelectionInternal()
|
||||
{
|
||||
// Enumerate the elements and remove them from the selection.
|
||||
PRUint32 length;
|
||||
mSelectedItems->GetLength(&length);
|
||||
for (PRUint32 i = 0; i < length; i++) {
|
||||
nsCOMPtr<nsIDOMNode> node;
|
||||
mSelectedItems->Item(0, getter_AddRefs(node));
|
||||
nsCOMPtr<nsIContent> content = do_QueryInterface(node);
|
||||
content->UnsetAttribute(kNameSpaceID_None, kSelectedAtom, PR_TRUE);
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
nsXULTreeElement::ClearCellSelectionInternal()
|
||||
{
|
||||
// Enumerate the elements and remove them from the selection.
|
||||
PRUint32 length;
|
||||
mSelectedCells->GetLength(&length);
|
||||
for (PRUint32 i = 0; i < length; i++) {
|
||||
nsCOMPtr<nsIDOMNode> node;
|
||||
mSelectedCells->Item(0, getter_AddRefs(node));
|
||||
nsCOMPtr<nsIContent> content = do_QueryInterface(node);
|
||||
content->UnsetAttribute(kNameSpaceID_None, kSelectedAtom, PR_TRUE);
|
||||
}
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsXULTreeElement::ClearCellSelection()
|
||||
{
|
||||
ClearCellSelectionInternal();
|
||||
FireOnSelectHandler();
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
void
|
||||
nsXULTreeElement::AddItemToSelectionInternal(nsIDOMXULElement* aTreeItem)
|
||||
{
|
||||
// Without clearing the selection, perform the add.
|
||||
nsCOMPtr<nsIContent> content = do_QueryInterface(aTreeItem);
|
||||
content->SetAttribute(kNameSpaceID_None, kSelectedAtom, nsAutoString("true"), PR_TRUE);
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsXULTreeElement::AddItemToSelection(nsIDOMXULElement* aTreeItem)
|
||||
{
|
||||
// Without clearing the selection, perform the add.
|
||||
AddItemToSelectionInternal(aTreeItem);
|
||||
FireOnSelectHandler();
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
nsXULTreeElement::RemoveItemFromSelectionInternal(nsIDOMXULElement* aTreeItem)
|
||||
{
|
||||
nsCOMPtr<nsIContent> content = do_QueryInterface(aTreeItem);
|
||||
content->UnsetAttribute(kNameSpaceID_None, kSelectedAtom, PR_TRUE);
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsXULTreeElement::RemoveItemFromSelection(nsIDOMXULElement* aTreeItem)
|
||||
{
|
||||
RemoveItemFromSelectionInternal(aTreeItem);
|
||||
FireOnSelectHandler();
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
void
|
||||
nsXULTreeElement::AddCellToSelectionInternal(nsIDOMXULElement* aTreeCell)
|
||||
{
|
||||
// Without clearing the selection, perform the add.
|
||||
nsCOMPtr<nsIContent> content = do_QueryInterface(aTreeCell);
|
||||
content->SetAttribute(kNameSpaceID_None, kSelectedAtom, nsAutoString("true"), PR_TRUE);
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsXULTreeElement::AddCellToSelection(nsIDOMXULElement* aTreeCell)
|
||||
{
|
||||
AddCellToSelectionInternal(aTreeCell);
|
||||
FireOnSelectHandler();
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
void
|
||||
nsXULTreeElement::RemoveCellFromSelectionInternal(nsIDOMXULElement* aTreeCell)
|
||||
{
|
||||
nsCOMPtr<nsIContent> content = do_QueryInterface(aTreeCell);
|
||||
content->UnsetAttribute(kNameSpaceID_None, kSelectedAtom, PR_TRUE);
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsXULTreeElement::RemoveCellFromSelection(nsIDOMXULElement* aTreeCell)
|
||||
{
|
||||
RemoveCellFromSelectionInternal(aTreeCell);
|
||||
FireOnSelectHandler();
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsXULTreeElement::ToggleItemSelection(nsIDOMXULElement* aTreeItem)
|
||||
{
|
||||
nsAutoString isSelected;
|
||||
aTreeItem->GetAttribute("selected", isSelected);
|
||||
if (isSelected == "true")
|
||||
RemoveItemFromSelectionInternal(aTreeItem);
|
||||
else AddItemToSelectionInternal(aTreeItem);
|
||||
|
||||
FireOnSelectHandler();
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsXULTreeElement::ToggleCellSelection(nsIDOMXULElement* aTreeCell)
|
||||
{
|
||||
nsAutoString isSelected;
|
||||
aTreeCell->GetAttribute("selected", isSelected);
|
||||
if (isSelected == "true")
|
||||
RemoveCellFromSelectionInternal(aTreeCell);
|
||||
else AddCellToSelectionInternal(aTreeCell);
|
||||
|
||||
FireOnSelectHandler();
|
||||
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsXULTreeElement::SelectItemRange(nsIDOMXULElement* aStartItem, nsIDOMXULElement* aEndItem)
|
||||
{
|
||||
// XXX Fill in.
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsXULTreeElement::SelectCellRange(nsIDOMXULElement* aStartItem, nsIDOMXULElement* aEndItem)
|
||||
{
|
||||
// XXX Fill in.
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsXULTreeElement::SelectAll()
|
||||
{
|
||||
// XXX Select anything that isn't selected.
|
||||
// Write later.
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsXULTreeElement::InvertSelection()
|
||||
{
|
||||
// XXX Woo hoo. Write this later.
|
||||
// Yikes. Involves an enumeration of the whole tree.
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
nsresult
|
||||
nsXULTreeElement::FireOnSelectHandler()
|
||||
{
|
||||
nsCOMPtr<nsIContent> content = do_QueryInterface(mOuter);
|
||||
nsCOMPtr<nsIDocument> document;
|
||||
content->GetDocument(*getter_AddRefs(document));
|
||||
|
||||
// If there's no document (e.g., a selection is occuring in a
|
||||
// 'orphaned' node), then there ain't a whole lot to do here!
|
||||
if (! document) {
|
||||
NS_WARNING("FireOnSelectHandler occurred in orphaned node");
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
// The frame code can suppress the firing of this handler by setting an attribute
|
||||
// for us. Look for that and bail if it's present.
|
||||
nsCOMPtr<nsIAtom> kSuppressSelectChange = dont_AddRef(NS_NewAtom("suppressonselect"));
|
||||
nsAutoString value;
|
||||
content->GetAttribute(kNameSpaceID_None, kSuppressSelectChange, value);
|
||||
if (value == "true")
|
||||
return NS_OK;
|
||||
|
||||
PRInt32 count = document->GetNumberOfShells();
|
||||
for (PRInt32 i = 0; i < count; i++) {
|
||||
nsIPresShell* shell = document->GetShellAt(i);
|
||||
if (nsnull == shell)
|
||||
continue;
|
||||
|
||||
// Retrieve the context in which our DOM event will fire.
|
||||
nsCOMPtr<nsIPresContext> aPresContext;
|
||||
shell->GetPresContext(getter_AddRefs(aPresContext));
|
||||
|
||||
NS_RELEASE(shell);
|
||||
|
||||
nsEventStatus status = nsEventStatus_eIgnore;
|
||||
nsEvent event;
|
||||
event.eventStructType = NS_EVENT;
|
||||
event.message = NS_FORM_SELECTED;
|
||||
|
||||
content->HandleDOMEvent(*aPresContext, &event, nsnull, NS_EVENT_FLAG_INIT, status);
|
||||
}
|
||||
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
80
mozilla/content/xul/content/src/nsXULTreeElement.h
Normal file
80
mozilla/content/xul/content/src/nsXULTreeElement.h
Normal file
@@ -0,0 +1,80 @@
|
||||
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
|
||||
*
|
||||
* The contents of this file are subject to the Netscape Public
|
||||
* License Version 1.1 (the "License"); you may not use this file
|
||||
* except in compliance with the License. You may obtain a copy of
|
||||
* the License at http://www.mozilla.org/NPL/
|
||||
*
|
||||
* Software distributed under the License is distributed on an "AS
|
||||
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
||||
* implied. See the License for the specific language governing
|
||||
* rights and limitations under the License.
|
||||
*
|
||||
* The Original Code is Mozilla Communicator client code.
|
||||
*
|
||||
* The Initial Developer of the Original Code is Netscape Communications
|
||||
* Corporation. Portions created by Netscape are
|
||||
* Copyright (C) 1998 Netscape Communications Corporation. All
|
||||
* Rights Reserved.
|
||||
*
|
||||
* Contributor(s):
|
||||
*/
|
||||
|
||||
/*
|
||||
|
||||
An aggregate object that implements the XUL tree widget APIs
|
||||
|
||||
*/
|
||||
|
||||
#ifndef nsXULTreeElement_h__
|
||||
#define nsXULTreeElement_h__
|
||||
|
||||
#include "nsXULElement.h"
|
||||
#include "nsIDOMXULTreeElement.h"
|
||||
#include "nsIXULTreeContent.h"
|
||||
#include "nsRDFDOMNodeList.h"
|
||||
|
||||
class nsXULTreeElement : public nsXULAggregateElement,
|
||||
public nsIDOMXULTreeElement,
|
||||
public nsIXULTreeContent
|
||||
{
|
||||
public:
|
||||
nsXULTreeElement(nsIDOMXULElement* aOuter);
|
||||
~nsXULTreeElement();
|
||||
|
||||
NS_DECL_ISUPPORTS_INHERITED
|
||||
|
||||
// nsIDOMNode interface
|
||||
NS_FORWARD_IDOMNODE(mOuter->);
|
||||
|
||||
// nsIDOMElement interface
|
||||
NS_FORWARD_IDOMELEMENT(mOuter->);
|
||||
|
||||
// nsIDOMXULElement interface
|
||||
NS_FORWARD_IDOMXULELEMENT(mOuter->);
|
||||
|
||||
// nsIDOMXULTreeElement interface
|
||||
NS_DECL_IDOMXULTREEELEMENT
|
||||
|
||||
// nsIXULTreeContent interface
|
||||
NS_IMETHOD FireOnSelectHandler();
|
||||
|
||||
static nsIAtom* kSelectedAtom;
|
||||
static int gRefCnt;
|
||||
|
||||
protected:
|
||||
// Helpers
|
||||
void ClearItemSelectionInternal();
|
||||
void ClearCellSelectionInternal();
|
||||
void AddItemToSelectionInternal(nsIDOMXULElement* aTreeItem);
|
||||
void RemoveItemFromSelectionInternal(nsIDOMXULElement* aTreeItem);
|
||||
void AddCellToSelectionInternal(nsIDOMXULElement* aTreeCell);
|
||||
void RemoveCellFromSelectionInternal(nsIDOMXULElement* aTreeCell);
|
||||
|
||||
protected:
|
||||
nsRDFDOMNodeList* mSelectedItems;
|
||||
nsRDFDOMNodeList* mSelectedCells;
|
||||
};
|
||||
|
||||
|
||||
#endif // nsXULTreeElement_h__
|
||||
54
mozilla/content/xul/document/public/nsIXULContentSink.h
Normal file
54
mozilla/content/xul/document/public/nsIXULContentSink.h
Normal file
@@ -0,0 +1,54 @@
|
||||
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
|
||||
*
|
||||
* The contents of this file are subject to the Netscape Public
|
||||
* License Version 1.1 (the "License"); you may not use this file
|
||||
* except in compliance with the License. You may obtain a copy of
|
||||
* the License at http://www.mozilla.org/NPL/
|
||||
*
|
||||
* Software distributed under the License is distributed on an "AS
|
||||
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
||||
* implied. See the License for the specific language governing
|
||||
* rights and limitations under the License.
|
||||
*
|
||||
* The Original Code is Mozilla Communicator client code.
|
||||
*
|
||||
* The Initial Developer of the Original Code is Netscape Communications
|
||||
* Corporation. Portions created by Netscape are
|
||||
* Copyright (C) 1998 Netscape Communications Corporation. All
|
||||
* Rights Reserved.
|
||||
*
|
||||
* Contributor(s):
|
||||
*/
|
||||
|
||||
|
||||
#ifndef nsIXULContentSink_h__
|
||||
#define nsIXULContentSink_h__
|
||||
|
||||
#include "nsIXMLContentSink.h"
|
||||
|
||||
class nsIDocument;
|
||||
class nsIXULPrototypeDocument;
|
||||
|
||||
// {E49AA620-C16C-11d2-A6AA-00104BDE6048}
|
||||
#define NS_IXULCONTENTSINK_IID \
|
||||
{ 0xe49aa620, 0xc16c, 0x11d2, { 0xa6, 0xaa, 0x0, 0x10, 0x4b, 0xde, 0x60, 0x48 } }
|
||||
|
||||
|
||||
class nsIXULContentSink : public nsIXMLContentSink
|
||||
{
|
||||
public:
|
||||
static const nsIID& GetIID() { static nsIID iid = NS_IXULCONTENTSINK_IID; return iid; }
|
||||
|
||||
/**
|
||||
* Initialize the content sink, giving it an nsIDocument object
|
||||
* with which to communicate with the outside world, and an
|
||||
* nsIXULPrototypeDocument to build.
|
||||
*/
|
||||
NS_IMETHOD Init(nsIDocument* aDocument, nsIXULPrototypeDocument* aPrototype) = 0;
|
||||
};
|
||||
|
||||
|
||||
nsresult
|
||||
NS_NewXULContentSink(nsIXULContentSink** aResult);
|
||||
|
||||
#endif // nsIXULContentSink_h__
|
||||
64
mozilla/content/xul/document/public/nsIXULPrototypeCache.h
Normal file
64
mozilla/content/xul/document/public/nsIXULPrototypeCache.h
Normal file
@@ -0,0 +1,64 @@
|
||||
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
|
||||
*
|
||||
* The contents of this file are subject to the Netscape Public
|
||||
* License Version 1.1 (the "License"); you may not use this file
|
||||
* except in compliance with the License. You may obtain a copy of
|
||||
* the License at http://www.mozilla.org/NPL/
|
||||
*
|
||||
* Software distributed under the License is distributed on an "AS
|
||||
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
||||
* implied. See the License for the specific language governing
|
||||
* rights and limitations under the License.
|
||||
*
|
||||
* The Original Code is Mozilla Communicator client code.
|
||||
*
|
||||
* The Initial Developer of the Original Code is Netscape Communications
|
||||
* Corporation. Portions created by Netscape are
|
||||
* Copyright (C) 1998 Netscape Communications Corporation. All
|
||||
* Rights Reserved.
|
||||
*
|
||||
* Contributor(s):
|
||||
*/
|
||||
|
||||
/*
|
||||
|
||||
|
||||
|
||||
*/
|
||||
|
||||
#ifndef nsIXULPrototypeCache_h__
|
||||
#define nsIXULPrototypeCache_h__
|
||||
|
||||
#include "nsISupports.h"
|
||||
class nsICSSStyleSheet;
|
||||
class nsIURI;
|
||||
class nsIXULPrototypeDocument;
|
||||
|
||||
// {3A0A0FC0-8349-11d3-BE47-00104BDE6048}
|
||||
#define NS_IXULPROTOTYPECACHE_IID \
|
||||
{ 0x3a0a0fc0, 0x8349, 0x11d3, { 0xbe, 0x47, 0x0, 0x10, 0x4b, 0xde, 0x60, 0x48 } }
|
||||
|
||||
|
||||
class nsIXULPrototypeCache : public nsISupports
|
||||
{
|
||||
public:
|
||||
NS_DEFINE_STATIC_IID_ACCESSOR(NS_IXULPROTOTYPECACHE_IID);
|
||||
|
||||
NS_IMETHOD GetPrototype(nsIURI* aURI, nsIXULPrototypeDocument** _result) = 0;
|
||||
NS_IMETHOD PutPrototype(nsIXULPrototypeDocument* aDocument) = 0;
|
||||
|
||||
NS_IMETHOD GetStyleSheet(nsIURI* aURI, nsICSSStyleSheet** _result) = 0;
|
||||
NS_IMETHOD PutStyleSheet(nsICSSStyleSheet* aStyleSheet) = 0;
|
||||
|
||||
/**
|
||||
* Flush the cache; remove all XUL prototype documents, style
|
||||
* sheets, and scripts.
|
||||
*/
|
||||
NS_IMETHOD Flush() = 0;
|
||||
};
|
||||
|
||||
|
||||
extern NS_IMETHODIMP
|
||||
NS_NewXULPrototypeCache(nsISupports* aOuter, REFNSIID aIID, void** aResult);
|
||||
|
||||
#endif // nsIXULPrototypeCache_h__
|
||||
378
mozilla/content/xul/document/src/nsElementMap.cpp
Normal file
378
mozilla/content/xul/document/src/nsElementMap.cpp
Normal file
@@ -0,0 +1,378 @@
|
||||
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
|
||||
*
|
||||
* The contents of this file are subject to the Netscape Public
|
||||
* License Version 1.1 (the "License"); you may not use this file
|
||||
* except in compliance with the License. You may obtain a copy of
|
||||
* the License at http://www.mozilla.org/NPL/
|
||||
*
|
||||
* Software distributed under the License is distributed on an "AS
|
||||
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
||||
* implied. See the License for the specific language governing
|
||||
* rights and limitations under the License.
|
||||
*
|
||||
* The Original Code is Mozilla Communicator client code.
|
||||
*
|
||||
* The Initial Developer of the Original Code is Netscape Communications
|
||||
* Corporation. Portions created by Netscape are
|
||||
* Copyright (C) 1998 Netscape Communications Corporation. All
|
||||
* Rights Reserved.
|
||||
*
|
||||
* Contributor(s):
|
||||
*/
|
||||
|
||||
/*
|
||||
|
||||
Maps IDs to elements.
|
||||
|
||||
*/
|
||||
|
||||
#include "nsCOMPtr.h"
|
||||
#include "nsCRT.h"
|
||||
#include "nsElementMap.h"
|
||||
#include "nsISupportsArray.h"
|
||||
#include "nsString.h"
|
||||
#include "prlog.h"
|
||||
|
||||
#ifdef PR_LOGGING
|
||||
static PRLogModuleInfo* gMapLog;
|
||||
#endif
|
||||
|
||||
nsElementMap::nsElementMap()
|
||||
{
|
||||
MOZ_COUNT_CTOR(RDF_nsElementMap);
|
||||
|
||||
// Create a table for mapping IDs to elements in the content tree.
|
||||
static PRInt32 kInitialResourceTableSize = 1023;
|
||||
mMap = PL_NewHashTable(kInitialResourceTableSize,
|
||||
Hash,
|
||||
Compare,
|
||||
PL_CompareValues,
|
||||
nsnull,
|
||||
nsnull);
|
||||
|
||||
NS_ASSERTION(mMap != nsnull, "could not create hash table for resources");
|
||||
|
||||
#ifdef PR_LOGGING
|
||||
if (! gMapLog)
|
||||
gMapLog = PR_NewLogModule("nsElementMap");
|
||||
|
||||
|
||||
PR_LOG(gMapLog, PR_LOG_ALWAYS,
|
||||
("xulelemap(%p) created", this));
|
||||
#endif
|
||||
}
|
||||
|
||||
nsElementMap::~nsElementMap()
|
||||
{
|
||||
MOZ_COUNT_DTOR(RDF_nsElementMap);
|
||||
|
||||
if (mMap) {
|
||||
PL_HashTableEnumerateEntries(mMap, ReleaseContentList, nsnull);
|
||||
PL_HashTableDestroy(mMap);
|
||||
}
|
||||
|
||||
PR_LOG(gMapLog, PR_LOG_ALWAYS,
|
||||
("xulelemap(%p) destroyed", this));
|
||||
}
|
||||
|
||||
|
||||
PRIntn
|
||||
nsElementMap::ReleaseContentList(PLHashEntry* aHashEntry, PRIntn aIndex, void* aClosure)
|
||||
{
|
||||
PRUnichar* id =
|
||||
NS_REINTERPRET_CAST(PRUnichar*, NS_CONST_CAST(void*, aHashEntry->key));
|
||||
|
||||
delete[] id;
|
||||
|
||||
ContentListItem* head =
|
||||
NS_REINTERPRET_CAST(ContentListItem*, aHashEntry->value);
|
||||
|
||||
while (head) {
|
||||
ContentListItem* doomed = head;
|
||||
head = head->mNext;
|
||||
delete doomed;
|
||||
}
|
||||
|
||||
return HT_ENUMERATE_NEXT;
|
||||
}
|
||||
|
||||
|
||||
nsresult
|
||||
nsElementMap::Add(const nsString& aID, nsIContent* aContent)
|
||||
{
|
||||
NS_PRECONDITION(mMap != nsnull, "not initialized");
|
||||
if (! mMap)
|
||||
return NS_ERROR_NOT_INITIALIZED;
|
||||
|
||||
ContentListItem* head =
|
||||
(ContentListItem*) PL_HashTableLookup(mMap, aID.GetUnicode());
|
||||
|
||||
if (! head) {
|
||||
head = new ContentListItem(aContent);
|
||||
if (! head)
|
||||
return NS_ERROR_OUT_OF_MEMORY;
|
||||
|
||||
PRUnichar* key = new PRUnichar[aID.Length() + 1];
|
||||
if (! key)
|
||||
return NS_ERROR_OUT_OF_MEMORY;
|
||||
|
||||
nsCRT::memcpy(key, aID.GetUnicode(), aID.Length() * sizeof(PRUnichar));
|
||||
key[aID.Length()] = PRUnichar(0);
|
||||
|
||||
PL_HashTableAdd(mMap, key, head);
|
||||
}
|
||||
else {
|
||||
while (1) {
|
||||
if (head->mContent.get() == aContent) {
|
||||
// This can happen if an element that was created via
|
||||
// frame construction code is then "appended" to the
|
||||
// content model with aNotify == PR_TRUE. If you see
|
||||
// this warning, it's an indication that you're
|
||||
// unnecessarily notifying the frame system, and
|
||||
// potentially causing unnecessary reflow.
|
||||
//NS_ERROR("element was already in the map");
|
||||
#ifdef PR_LOGGING
|
||||
if (PR_LOG_TEST(gMapLog, PR_LOG_ALWAYS)) {
|
||||
nsresult rv;
|
||||
|
||||
nsCOMPtr<nsIAtom> tag;
|
||||
rv = aContent->GetTag(*getter_AddRefs(tag));
|
||||
if (NS_FAILED(rv)) return rv;
|
||||
|
||||
nsAutoString tagname;
|
||||
rv = tag->ToString(tagname);
|
||||
if (NS_FAILED(rv)) return rv;
|
||||
|
||||
PR_LOG(gMapLog, PR_LOG_ALWAYS,
|
||||
("xulelemap(%p) dup %s[%p] <-- %s\n",
|
||||
this,
|
||||
(const char*) nsCAutoString(tagname),
|
||||
aContent,
|
||||
(const char*) nsCAutoString(aID)));
|
||||
}
|
||||
#endif
|
||||
|
||||
return NS_OK;
|
||||
}
|
||||
if (! head->mNext)
|
||||
break;
|
||||
|
||||
head = head->mNext;
|
||||
}
|
||||
|
||||
head->mNext = new ContentListItem(aContent);
|
||||
if (! head->mNext)
|
||||
return NS_ERROR_OUT_OF_MEMORY;
|
||||
}
|
||||
|
||||
#ifdef PR_LOGGING
|
||||
if (PR_LOG_TEST(gMapLog, PR_LOG_ALWAYS)) {
|
||||
nsresult rv;
|
||||
|
||||
nsCOMPtr<nsIAtom> tag;
|
||||
rv = aContent->GetTag(*getter_AddRefs(tag));
|
||||
if (NS_FAILED(rv)) return rv;
|
||||
|
||||
nsAutoString tagname;
|
||||
rv = tag->ToString(tagname);
|
||||
if (NS_FAILED(rv)) return rv;
|
||||
|
||||
PR_LOG(gMapLog, PR_LOG_ALWAYS,
|
||||
("xulelemap(%p) add %s[%p] <-- %s\n",
|
||||
this,
|
||||
(const char*) nsCAutoString(tagname),
|
||||
aContent,
|
||||
(const char*) nsCAutoString(aID)));
|
||||
}
|
||||
#endif
|
||||
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
||||
nsresult
|
||||
nsElementMap::Remove(const nsString& aID, nsIContent* aContent)
|
||||
{
|
||||
NS_PRECONDITION(mMap != nsnull, "not initialized");
|
||||
if (! mMap)
|
||||
return NS_ERROR_NOT_INITIALIZED;
|
||||
|
||||
#ifdef PR_LOGGING
|
||||
if (PR_LOG_TEST(gMapLog, PR_LOG_ALWAYS)) {
|
||||
nsresult rv;
|
||||
|
||||
nsCOMPtr<nsIAtom> tag;
|
||||
rv = aContent->GetTag(*getter_AddRefs(tag));
|
||||
if (NS_FAILED(rv)) return rv;
|
||||
|
||||
nsAutoString tagname;
|
||||
rv = tag->ToString(tagname);
|
||||
if (NS_FAILED(rv)) return rv;
|
||||
|
||||
PR_LOG(gMapLog, PR_LOG_ALWAYS,
|
||||
("xulelemap(%p) remove %s[%p] <-- %s\n",
|
||||
this,
|
||||
(const char*) nsCAutoString(tagname),
|
||||
aContent,
|
||||
(const char*) nsCAutoString(aID)));
|
||||
}
|
||||
#endif
|
||||
|
||||
PLHashEntry** hep = PL_HashTableRawLookup(mMap,
|
||||
Hash(aID.GetUnicode()),
|
||||
aID.GetUnicode());
|
||||
|
||||
// XXX Don't comment out this assert: if you get here, something
|
||||
// has gone dreadfully, horribly wrong. Curse. Scream. File a bug
|
||||
// against waterson@netscape.com.
|
||||
NS_ASSERTION(hep != nsnull && *hep != nsnull, "attempt to remove an element that was never added");
|
||||
if (!hep || !*hep)
|
||||
return NS_OK;
|
||||
|
||||
ContentListItem* head = NS_REINTERPRET_CAST(ContentListItem*, (*hep)->value);
|
||||
|
||||
if (head->mContent.get() == aContent) {
|
||||
ContentListItem* next = head->mNext;
|
||||
if (next) {
|
||||
(*hep)->value = next;
|
||||
}
|
||||
else {
|
||||
// It was the last reference in the table
|
||||
PRUnichar* key = NS_REINTERPRET_CAST(PRUnichar*, NS_CONST_CAST(void*, (*hep)->key));
|
||||
PL_HashTableRawRemove(mMap, hep, *hep);
|
||||
delete[] key;
|
||||
}
|
||||
delete head;
|
||||
}
|
||||
else {
|
||||
ContentListItem* item = head->mNext;
|
||||
while (item) {
|
||||
if (item->mContent.get() == aContent) {
|
||||
head->mNext = item->mNext;
|
||||
delete item;
|
||||
break;
|
||||
}
|
||||
head = item;
|
||||
item = item->mNext;
|
||||
}
|
||||
}
|
||||
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
||||
|
||||
nsresult
|
||||
nsElementMap::Find(const nsString& aID, nsISupportsArray* aResults)
|
||||
{
|
||||
NS_PRECONDITION(mMap != nsnull, "not initialized");
|
||||
if (! mMap)
|
||||
return NS_ERROR_NOT_INITIALIZED;
|
||||
|
||||
aResults->Clear();
|
||||
ContentListItem* item =
|
||||
NS_REINTERPRET_CAST(ContentListItem*, PL_HashTableLookup(mMap, aID.GetUnicode()));
|
||||
|
||||
while (item) {
|
||||
aResults->AppendElement(item->mContent);
|
||||
item = item->mNext;
|
||||
}
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
||||
nsresult
|
||||
nsElementMap::FindFirst(const nsString& aID, nsIContent** aResult)
|
||||
{
|
||||
NS_PRECONDITION(mMap != nsnull, "not initialized");
|
||||
if (! mMap)
|
||||
return NS_ERROR_NOT_INITIALIZED;
|
||||
|
||||
ContentListItem* item =
|
||||
NS_REINTERPRET_CAST(ContentListItem*, PL_HashTableLookup(mMap, aID.GetUnicode()));
|
||||
|
||||
if (item) {
|
||||
*aResult = item->mContent;
|
||||
NS_ADDREF(*aResult);
|
||||
}
|
||||
else {
|
||||
*aResult = nsnull;
|
||||
}
|
||||
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
nsresult
|
||||
nsElementMap::Enumerate(nsElementMapEnumerator aEnumerator, void* aClosure)
|
||||
{
|
||||
EnumerateClosure closure = { aEnumerator, aClosure };
|
||||
PL_HashTableEnumerateEntries(mMap, EnumerateImpl, &closure);
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
||||
PRIntn
|
||||
nsElementMap::EnumerateImpl(PLHashEntry* aHashEntry, PRIntn aIndex, void* aClosure)
|
||||
{
|
||||
// This routine will be called once for each key in the
|
||||
// hashtable. It will in turn call the enumerator that the user
|
||||
// has passed in via Enumerate() once for each element that's been
|
||||
// mapped to this ID.
|
||||
EnumerateClosure* closure = NS_REINTERPRET_CAST(EnumerateClosure*, aClosure);
|
||||
|
||||
const PRUnichar* id =
|
||||
NS_REINTERPRET_CAST(const PRUnichar*, aHashEntry->key);
|
||||
|
||||
// 'link' holds a pointer to the previous element's link field.
|
||||
ContentListItem** link =
|
||||
NS_REINTERPRET_CAST(ContentListItem**, &aHashEntry->value);
|
||||
|
||||
ContentListItem* item = *link;
|
||||
|
||||
// Iterate through each content node that's been mapped to this ID
|
||||
while (item) {
|
||||
ContentListItem* current = item;
|
||||
item = item->mNext;
|
||||
PRIntn result = (*closure->mEnumerator)(id, current->mContent, closure->mClosure);
|
||||
|
||||
if (result == HT_ENUMERATE_REMOVE) {
|
||||
// If the user wants to remove the current, then deal.
|
||||
*link = item;
|
||||
delete current;
|
||||
|
||||
if ((! *link) && (link == NS_REINTERPRET_CAST(ContentListItem**, &aHashEntry->value))) {
|
||||
// It's the last content node that was mapped to this
|
||||
// ID. Unhash it.
|
||||
PRUnichar* key = NS_CONST_CAST(PRUnichar*, id);
|
||||
delete[] key;
|
||||
return HT_ENUMERATE_REMOVE;
|
||||
}
|
||||
}
|
||||
else {
|
||||
link = ¤t->mNext;
|
||||
}
|
||||
}
|
||||
|
||||
return HT_ENUMERATE_NEXT;
|
||||
}
|
||||
|
||||
|
||||
PLHashNumber
|
||||
nsElementMap::Hash(const void* aKey)
|
||||
{
|
||||
PLHashNumber result = 0;
|
||||
const PRUnichar* s = NS_REINTERPRET_CAST(const PRUnichar*, aKey);
|
||||
while (*s != nsnull) {
|
||||
result = (result >> 28) ^ (result << 4) ^ *s;
|
||||
++s;
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
PRIntn
|
||||
nsElementMap::Compare(const void* aLeft, const void* aRight)
|
||||
{
|
||||
return 0 == nsCRT::strcmp(NS_REINTERPRET_CAST(const PRUnichar*, aLeft),
|
||||
NS_REINTERPRET_CAST(const PRUnichar*, aRight));
|
||||
}
|
||||
102
mozilla/content/xul/document/src/nsElementMap.h
Normal file
102
mozilla/content/xul/document/src/nsElementMap.h
Normal file
@@ -0,0 +1,102 @@
|
||||
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
|
||||
*
|
||||
* The contents of this file are subject to the Netscape Public
|
||||
* License Version 1.1 (the "License"); you may not use this file
|
||||
* except in compliance with the License. You may obtain a copy of
|
||||
* the License at http://www.mozilla.org/NPL/
|
||||
*
|
||||
* Software distributed under the License is distributed on an "AS
|
||||
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
||||
* implied. See the License for the specific language governing
|
||||
* rights and limitations under the License.
|
||||
*
|
||||
* The Original Code is Mozilla Communicator client code.
|
||||
*
|
||||
* The Initial Developer of the Original Code is Netscape Communications
|
||||
* Corporation. Portions created by Netscape are
|
||||
* Copyright (C) 1998 Netscape Communications Corporation. All
|
||||
* Rights Reserved.
|
||||
*
|
||||
* Contributor(s):
|
||||
*/
|
||||
|
||||
/*
|
||||
|
||||
Maintains one-to-many mapping between element IDs and content
|
||||
nodes.
|
||||
|
||||
*/
|
||||
|
||||
#ifndef nsElementMap_h__
|
||||
#define nsElementMap_h__
|
||||
|
||||
#include "nscore.h"
|
||||
#include "nsError.h"
|
||||
#include "plhash.h"
|
||||
#include "nsIContent.h"
|
||||
|
||||
class nsString;
|
||||
class nsISupportsArray;
|
||||
|
||||
class nsElementMap
|
||||
{
|
||||
private:
|
||||
PLHashTable* mMap;
|
||||
|
||||
class ContentListItem {
|
||||
public:
|
||||
ContentListItem(nsIContent* aContent) : mNext(nsnull), mContent(aContent) {
|
||||
MOZ_COUNT_CTOR(RDF_nsElementMap_ContentListItem);
|
||||
}
|
||||
|
||||
~ContentListItem() {
|
||||
MOZ_COUNT_DTOR(RDF_nsElementMap_ContentListItem);
|
||||
}
|
||||
|
||||
ContentListItem* mNext;
|
||||
nsCOMPtr<nsIContent> mContent;
|
||||
};
|
||||
|
||||
static PLHashNumber
|
||||
Hash(const void* akey);
|
||||
|
||||
static PRIntn
|
||||
Compare(const void* aLeft, const void* aRight);
|
||||
|
||||
static PRIntn
|
||||
ReleaseContentList(PLHashEntry* aHashEntry, PRIntn aIndex, void* aClosure);
|
||||
|
||||
public:
|
||||
nsElementMap(void);
|
||||
virtual ~nsElementMap();
|
||||
|
||||
nsresult
|
||||
Add(const nsString& aID, nsIContent* aContent);
|
||||
|
||||
nsresult
|
||||
Remove(const nsString& aID, nsIContent* aContent);
|
||||
|
||||
nsresult
|
||||
Find(const nsString& aID, nsISupportsArray* aResults);
|
||||
|
||||
nsresult
|
||||
FindFirst(const nsString& aID, nsIContent** aContent);
|
||||
|
||||
typedef PRIntn (*nsElementMapEnumerator)(const nsString& aID,
|
||||
nsIContent* aElement,
|
||||
void* aClosure);
|
||||
nsresult
|
||||
Enumerate(nsElementMapEnumerator aEnumerator, void* aClosure);
|
||||
|
||||
private:
|
||||
struct EnumerateClosure {
|
||||
nsElementMapEnumerator mEnumerator;
|
||||
void* mClosure;
|
||||
};
|
||||
|
||||
static PRIntn
|
||||
EnumerateImpl(PLHashEntry* aHashEntry, PRIntn aIndex, void* aClosure);
|
||||
};
|
||||
|
||||
|
||||
#endif // nsElementMap_h__
|
||||
90
mozilla/content/xul/document/src/nsForwardReference.h
Normal file
90
mozilla/content/xul/document/src/nsForwardReference.h
Normal file
@@ -0,0 +1,90 @@
|
||||
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
|
||||
*
|
||||
* The contents of this file are subject to the Netscape Public
|
||||
* License Version 1.1 (the "License"); you may not use this file
|
||||
* except in compliance with the License. You may obtain a copy of
|
||||
* the License at http://www.mozilla.org/NPL/
|
||||
*
|
||||
* Software distributed under the License is distributed on an "AS
|
||||
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
||||
* implied. See the License for the specific language governing
|
||||
* rights and limitations under the License.
|
||||
*
|
||||
* The Original Code is Mozilla Communicator client code.
|
||||
*
|
||||
* The Initial Developer of the Original Code is Netscape Communications
|
||||
* Corporation. Portions created by Netscape are
|
||||
* Copyright (C) 1998 Netscape Communications Corporation. All
|
||||
* Rights Reserved.
|
||||
*
|
||||
* Contributor(s):
|
||||
*/
|
||||
|
||||
#ifndef nsForwardReference_h__
|
||||
#define nsForwardReference_h__
|
||||
|
||||
class nsForwardReference
|
||||
{
|
||||
protected:
|
||||
nsForwardReference() {}
|
||||
|
||||
public:
|
||||
virtual ~nsForwardReference() {}
|
||||
|
||||
/**
|
||||
* Priority codes returned from GetPriority()
|
||||
*/
|
||||
enum Priority {
|
||||
/** The initial pass, after which the content model will be
|
||||
fully built */
|
||||
ePriority_Construction,
|
||||
|
||||
/** A second pass, after which all 'magic attribute' hookup
|
||||
will have been performed */
|
||||
ePriority_Hookup,
|
||||
|
||||
/** A dummy marker, used in kPasses to indicate termination */
|
||||
ePriority_Done
|
||||
};
|
||||
|
||||
/**
|
||||
* Forward references are categorized by 'priority', and all
|
||||
* forward references in a higher priority are resolved before any
|
||||
* reference in a lower priority. This variable specifies this
|
||||
* ordering. The last Priority is guaranteed to be ePriority_Done.
|
||||
*/
|
||||
static const Priority kPasses[];
|
||||
|
||||
/**
|
||||
* Get the priority of the forward reference. 'ePriority_Construction'
|
||||
* references are all resolved before 'ePriority_Hookup' references
|
||||
* are resolved.
|
||||
*
|
||||
* @return the Priority of the reference
|
||||
*/
|
||||
virtual Priority GetPriority() = 0;
|
||||
|
||||
/**
|
||||
* Result codes returned from Resolve()
|
||||
*/
|
||||
enum Result {
|
||||
/** Resolution succeeded, I'm done. */
|
||||
eResolve_Succeeded,
|
||||
|
||||
/** Couldn't resolve, but try me later. */
|
||||
eResolve_Later,
|
||||
|
||||
/** Something bad happened, don't try again. */
|
||||
eResolve_Error
|
||||
};
|
||||
|
||||
/**
|
||||
* Attempt to resolve the forward reference.
|
||||
*
|
||||
* @return a Result that tells the resolver how to treat
|
||||
* the reference.
|
||||
*/
|
||||
virtual Result Resolve() = 0;
|
||||
};
|
||||
|
||||
#endif // nsForwardReference_h__
|
||||
555
mozilla/content/xul/document/src/nsXULCommandDispatcher.cpp
Normal file
555
mozilla/content/xul/document/src/nsXULCommandDispatcher.cpp
Normal file
@@ -0,0 +1,555 @@
|
||||
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
|
||||
*
|
||||
* The contents of this file are subject to the Netscape Public
|
||||
* License Version 1.1 (the "License"); you may not use this file
|
||||
* except in compliance with the License. You may obtain a copy of
|
||||
* the License at http://www.mozilla.org/NPL/
|
||||
*
|
||||
* Software distributed under the License is distributed on an "AS
|
||||
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
||||
* implied. See the License for the specific language governing
|
||||
* rights and limitations under the License.
|
||||
*
|
||||
* The Original Code is mozilla.org code.
|
||||
*
|
||||
* The Initial Developer of the Original Code is Netscape
|
||||
* Communications Corporation. Portions created by Netscape are
|
||||
* Copyright (C) 1998 Netscape Communications Corporation. All
|
||||
* Rights Reserved.
|
||||
*
|
||||
* Contributor(s):
|
||||
*/
|
||||
|
||||
/*
|
||||
This file provides the implementation for the XUL Command Dispatcher.
|
||||
*/
|
||||
|
||||
#include "nsCOMPtr.h"
|
||||
|
||||
#include "nsVoidArray.h"
|
||||
|
||||
#include "nsIDOMElement.h"
|
||||
#include "nsIDOMXULCommandDispatcher.h"
|
||||
#include "nsIXULCommandDispatcher.h"
|
||||
#include "nsIDOMFocusListener.h"
|
||||
#include "nsRDFCID.h"
|
||||
|
||||
#include "nsIScriptObjectOwner.h"
|
||||
#include "nsIScriptGlobalObject.h"
|
||||
#include "nsIDOMWindow.h"
|
||||
#include "nsIScriptContextOwner.h"
|
||||
#include "nsIDOMXULDocument.h"
|
||||
#include "nsIDocument.h"
|
||||
#include "nsIContent.h"
|
||||
#include "nsIDOMUIEvent.h"
|
||||
|
||||
#include "nsIDOMXULElement.h"
|
||||
#include "nsIControllers.h"
|
||||
|
||||
#include "nsIPresContext.h"
|
||||
#include "nsIPresShell.h"
|
||||
#include "nsPIDOMWindow.h"
|
||||
|
||||
#include "prlog.h"
|
||||
|
||||
////////////////////////////////////////////////////////////////////////
|
||||
|
||||
static NS_DEFINE_IID(kIScriptObjectOwnerIID, NS_ISCRIPTOBJECTOWNER_IID);
|
||||
|
||||
static NS_DEFINE_IID(kISupportsIID, NS_ISUPPORTS_IID);
|
||||
|
||||
static NS_DEFINE_IID(kIDomNodeIID, NS_IDOMNODE_IID);
|
||||
static NS_DEFINE_IID(kIDomElementIID, NS_IDOMELEMENT_IID);
|
||||
static NS_DEFINE_IID(kIDomEventListenerIID, NS_IDOMEVENTLISTENER_IID);
|
||||
|
||||
#ifdef PR_LOGGING
|
||||
static PRLogModuleInfo* gLog;
|
||||
#endif
|
||||
|
||||
////////////////////////////////////////////////////////////////////////
|
||||
// XULCommandDispatcherImpl
|
||||
//
|
||||
// This is the focus manager for XUL documents.
|
||||
//
|
||||
class XULCommandDispatcherImpl : public nsIDOMXULCommandDispatcher,
|
||||
public nsIXULCommandDispatcher,
|
||||
public nsIDOMFocusListener,
|
||||
public nsIScriptObjectOwner
|
||||
{
|
||||
public:
|
||||
XULCommandDispatcherImpl(void);
|
||||
virtual ~XULCommandDispatcherImpl(void);
|
||||
|
||||
public:
|
||||
// nsISupports
|
||||
NS_DECL_ISUPPORTS
|
||||
|
||||
// nsIDOMXULCommandDispatcher interface
|
||||
NS_DECL_IDOMXULCOMMANDDISPATCHER
|
||||
|
||||
// nsIDOMFocusListener
|
||||
virtual nsresult Focus(nsIDOMEvent* aEvent);
|
||||
virtual nsresult Blur(nsIDOMEvent* aEvent);
|
||||
|
||||
// nsIDOMEventListener
|
||||
virtual nsresult HandleEvent(nsIDOMEvent* anEvent) { return NS_OK; };
|
||||
|
||||
// nsIScriptObjectOwner interface
|
||||
NS_IMETHOD GetScriptObject(nsIScriptContext *aContext, void** aScriptObject);
|
||||
NS_IMETHOD SetScriptObject(void *aScriptObject);
|
||||
|
||||
protected:
|
||||
NS_IMETHOD GetParentWindowFromElement(nsIDOMElement* aElement, nsPIDOMWindow** aPWindow);
|
||||
|
||||
void* mScriptObject; // ????
|
||||
|
||||
// XXX THis was supposed to be WEAK, but c'mon, that's an accident
|
||||
// waiting to happen! If somebody deletes the node, then asks us
|
||||
// for the focus, we'll get killed!
|
||||
nsCOMPtr<nsIDOMNode> mCurrentNode; // [OWNER]
|
||||
|
||||
class Updater {
|
||||
public:
|
||||
Updater(nsIDOMElement* aElement,
|
||||
const nsString& aEvents,
|
||||
const nsString& aTargets)
|
||||
: mElement(aElement),
|
||||
mEvents(aEvents),
|
||||
mTargets(aTargets),
|
||||
mNext(nsnull)
|
||||
{}
|
||||
|
||||
nsIDOMElement* mElement; // [WEAK]
|
||||
nsString mEvents;
|
||||
nsString mTargets;
|
||||
Updater* mNext;
|
||||
};
|
||||
|
||||
Updater* mUpdaters;
|
||||
|
||||
PRBool Matches(const nsString& aList, const nsString& aElement);
|
||||
};
|
||||
|
||||
////////////////////////////////////////////////////////////////////////
|
||||
|
||||
XULCommandDispatcherImpl::XULCommandDispatcherImpl(void)
|
||||
: mScriptObject(nsnull), mCurrentNode(nsnull), mUpdaters(nsnull)
|
||||
{
|
||||
NS_INIT_REFCNT();
|
||||
|
||||
#ifdef PR_LOGGING
|
||||
if (! gLog)
|
||||
gLog = PR_NewLogModule("nsXULCommandDispatcher");
|
||||
#endif
|
||||
}
|
||||
|
||||
XULCommandDispatcherImpl::~XULCommandDispatcherImpl(void)
|
||||
{
|
||||
while (mUpdaters) {
|
||||
Updater* doomed = mUpdaters;
|
||||
mUpdaters = mUpdaters->mNext;
|
||||
delete doomed;
|
||||
}
|
||||
}
|
||||
|
||||
NS_IMPL_ADDREF(XULCommandDispatcherImpl)
|
||||
NS_IMPL_RELEASE(XULCommandDispatcherImpl)
|
||||
|
||||
NS_IMETHODIMP
|
||||
XULCommandDispatcherImpl::QueryInterface(REFNSIID iid, void** result)
|
||||
{
|
||||
if (! result)
|
||||
return NS_ERROR_NULL_POINTER;
|
||||
|
||||
*result = nsnull;
|
||||
if (iid.Equals(kISupportsIID)) {
|
||||
*result = (nsISupports*)(nsIXULCommandDispatcher*)this;
|
||||
NS_ADDREF_THIS();
|
||||
return NS_OK;
|
||||
}
|
||||
else if (iid.Equals(nsIXULCommandDispatcher::GetIID())) {
|
||||
*result = NS_STATIC_CAST(nsIXULCommandDispatcher*, this);
|
||||
NS_ADDREF_THIS();
|
||||
return NS_OK;
|
||||
}
|
||||
else if (iid.Equals(nsIDOMXULCommandDispatcher::GetIID())) {
|
||||
*result = NS_STATIC_CAST(nsIDOMXULCommandDispatcher*, this);
|
||||
NS_ADDREF_THIS();
|
||||
return NS_OK;
|
||||
}
|
||||
else if (iid.Equals(nsIDOMFocusListener::GetIID())) {
|
||||
*result = NS_STATIC_CAST(nsIDOMFocusListener*, this);
|
||||
NS_ADDREF_THIS();
|
||||
return NS_OK;
|
||||
}
|
||||
else if (iid.Equals(kIDomEventListenerIID)) {
|
||||
*result = (nsIDOMEventListener*)(nsIDOMFocusListener*)this;
|
||||
NS_ADDREF_THIS();
|
||||
return NS_OK;
|
||||
}
|
||||
else if (iid.Equals(kIScriptObjectOwnerIID)) {
|
||||
*result = NS_STATIC_CAST(nsIScriptObjectOwner*, this);
|
||||
NS_ADDREF_THIS();
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
return NS_NOINTERFACE;
|
||||
}
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////////
|
||||
// nsIDOMXULTracker Interface
|
||||
|
||||
NS_IMETHODIMP
|
||||
XULCommandDispatcherImpl::GetFocusedNode(nsIDOMNode** aNode)
|
||||
{
|
||||
*aNode = mCurrentNode;
|
||||
NS_IF_ADDREF(*aNode);
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
XULCommandDispatcherImpl::SetFocusedNode(nsIDOMNode* aNode)
|
||||
{
|
||||
// XXX On a blur, will need to fire an updatecommands (focus) on the
|
||||
// parent window.
|
||||
mCurrentNode = aNode;
|
||||
if (mCurrentNode)
|
||||
UpdateCommands(nsAutoString("focus"));
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
XULCommandDispatcherImpl::AddCommandUpdater(nsIDOMElement* aElement,
|
||||
const nsString& aEvents,
|
||||
const nsString& aTargets)
|
||||
{
|
||||
NS_PRECONDITION(aElement != nsnull, "null ptr");
|
||||
if (! aElement)
|
||||
return NS_ERROR_NULL_POINTER;
|
||||
|
||||
Updater* updater = mUpdaters;
|
||||
Updater** link = &mUpdaters;
|
||||
|
||||
while (updater) {
|
||||
if (updater->mElement == aElement) {
|
||||
PR_LOG(gLog, PR_LOG_ALWAYS,
|
||||
("xulcmd[%p] replace %p(events=%s targets=%s) with (events=%s targets=%s)",
|
||||
this, aElement,
|
||||
(const char*) nsCAutoString(updater->mEvents),
|
||||
(const char*) nsCAutoString(updater->mTargets),
|
||||
(const char*) nsCAutoString(aEvents),
|
||||
(const char*) nsCAutoString(aTargets)));
|
||||
|
||||
// If the updater was already in the list, then replace
|
||||
// (?) the 'events' and 'targets' filters with the new
|
||||
// specification.
|
||||
updater->mEvents = aEvents;
|
||||
updater->mTargets = aTargets;
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
link = &(updater->mNext);
|
||||
updater = updater->mNext;
|
||||
}
|
||||
|
||||
PR_LOG(gLog, PR_LOG_ALWAYS,
|
||||
("xulcmd[%p] add %p(events=%s targets=%s)",
|
||||
this, aElement,
|
||||
(const char*) nsCAutoString(aEvents),
|
||||
(const char*) nsCAutoString(aTargets)));
|
||||
|
||||
// If we get here, this is a new updater. Append it to the list.
|
||||
updater = new Updater(aElement, aEvents, aTargets);
|
||||
if (! updater)
|
||||
return NS_ERROR_OUT_OF_MEMORY;
|
||||
|
||||
*link = updater;
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
XULCommandDispatcherImpl::RemoveCommandUpdater(nsIDOMElement* aElement)
|
||||
{
|
||||
NS_PRECONDITION(aElement != nsnull, "null ptr");
|
||||
if (! aElement)
|
||||
return NS_ERROR_NULL_POINTER;
|
||||
|
||||
Updater* updater = mUpdaters;
|
||||
Updater** link = &mUpdaters;
|
||||
|
||||
while (updater) {
|
||||
if (updater->mElement == aElement) {
|
||||
PR_LOG(gLog, PR_LOG_ALWAYS,
|
||||
("xulcmd[%p] remove %p(events=%s targets=%s)",
|
||||
this, aElement,
|
||||
(const char*) nsCAutoString(updater->mEvents),
|
||||
(const char*) nsCAutoString(updater->mTargets)));
|
||||
|
||||
*link = updater->mNext;
|
||||
delete updater;
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
link = &(updater->mNext);
|
||||
updater = updater->mNext;
|
||||
}
|
||||
|
||||
// Hmm. Not found. Oh well.
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
XULCommandDispatcherImpl::UpdateCommands(const nsString& aEventName)
|
||||
{
|
||||
nsresult rv;
|
||||
|
||||
nsAutoString id;
|
||||
nsCOMPtr<nsIDOMElement> element = do_QueryInterface(mCurrentNode);
|
||||
if (element) {
|
||||
rv = element->GetAttribute(nsAutoString("id"), id);
|
||||
NS_ASSERTION(NS_SUCCEEDED(rv), "unable to get element's id");
|
||||
if (NS_FAILED(rv)) return rv;
|
||||
}
|
||||
|
||||
for (Updater* updater = mUpdaters; updater != nsnull; updater = updater->mNext) {
|
||||
// Skip any nodes that don't match our 'events' or 'targets'
|
||||
// filters.
|
||||
if (! Matches(updater->mEvents, aEventName))
|
||||
continue;
|
||||
|
||||
if (! Matches(updater->mTargets, id))
|
||||
continue;
|
||||
|
||||
nsCOMPtr<nsIContent> content = do_QueryInterface(updater->mElement);
|
||||
NS_ASSERTION(content != nsnull, "not an nsIContent");
|
||||
if (! content)
|
||||
return NS_ERROR_UNEXPECTED;
|
||||
|
||||
nsCOMPtr<nsIDocument> document;
|
||||
rv = content->GetDocument(*getter_AddRefs(document));
|
||||
NS_ASSERTION(NS_SUCCEEDED(rv), "unable to get document");
|
||||
if (NS_FAILED(rv)) return rv;
|
||||
|
||||
NS_ASSERTION(document != nsnull, "element has no document");
|
||||
if (! document)
|
||||
continue;
|
||||
|
||||
PR_LOG(gLog, PR_LOG_ALWAYS,
|
||||
("xulcmd[%p] update %p event=%s",
|
||||
this, updater->mElement,
|
||||
(const char*) nsCAutoString(aEventName)));
|
||||
|
||||
PRInt32 count = document->GetNumberOfShells();
|
||||
for (PRInt32 i = 0; i < count; i++) {
|
||||
nsCOMPtr<nsIPresShell> shell = dont_AddRef(document->GetShellAt(i));
|
||||
if (! shell)
|
||||
continue;
|
||||
|
||||
// Retrieve the context in which our DOM event will fire.
|
||||
nsCOMPtr<nsIPresContext> context;
|
||||
rv = shell->GetPresContext(getter_AddRefs(context));
|
||||
if (NS_FAILED(rv)) return rv;
|
||||
|
||||
// Handle the DOM event
|
||||
nsEventStatus status = nsEventStatus_eIgnore;
|
||||
nsEvent event;
|
||||
event.eventStructType = NS_EVENT;
|
||||
event.message = NS_XUL_COMMAND_UPDATE;
|
||||
content->HandleDOMEvent(*context, &event, nsnull, NS_EVENT_FLAG_INIT, status);
|
||||
}
|
||||
}
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
XULCommandDispatcherImpl::GetControllers(nsIControllers** aResult)
|
||||
{
|
||||
if (mCurrentNode) {
|
||||
nsCOMPtr<nsIDOMXULElement> xulElement = do_QueryInterface(mCurrentNode);
|
||||
if (xulElement)
|
||||
return xulElement->GetControllers(aResult);
|
||||
else {
|
||||
nsCOMPtr<nsIDOMWindow> domWindow = do_QueryInterface(mCurrentNode);
|
||||
if (domWindow)
|
||||
return domWindow->GetControllers(aResult);
|
||||
}
|
||||
}
|
||||
|
||||
*aResult = nsnull;
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
/////
|
||||
// nsIDOMFocusListener
|
||||
/////
|
||||
|
||||
nsresult
|
||||
XULCommandDispatcherImpl::Focus(nsIDOMEvent* aEvent)
|
||||
{
|
||||
nsCOMPtr<nsIDOMNode> t;
|
||||
aEvent->GetTarget(getter_AddRefs(t));
|
||||
|
||||
// XXX: Bad fix
|
||||
nsCOMPtr<nsIDOMElement> element = do_QueryInterface(t);
|
||||
if(element) {
|
||||
SetFocusedNode(t);
|
||||
}
|
||||
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
nsresult
|
||||
XULCommandDispatcherImpl::Blur(nsIDOMEvent* aEvent)
|
||||
{
|
||||
nsCOMPtr<nsIDOMNode> t;
|
||||
aEvent->GetTarget(getter_AddRefs(t));
|
||||
if( t == mCurrentNode ) {
|
||||
SetFocusedNode(nsnull);
|
||||
}
|
||||
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////
|
||||
// nsIScriptObjectOwner interface
|
||||
NS_IMETHODIMP
|
||||
XULCommandDispatcherImpl::GetScriptObject(nsIScriptContext *aContext, void** aScriptObject)
|
||||
{
|
||||
nsresult res = NS_OK;
|
||||
nsIScriptGlobalObject *global = aContext->GetGlobalObject();
|
||||
|
||||
if (nsnull == mScriptObject) {
|
||||
res = NS_NewScriptXULCommandDispatcher(aContext, (nsISupports *)(nsIDOMXULCommandDispatcher*)this, global, (void**)&mScriptObject);
|
||||
}
|
||||
*aScriptObject = mScriptObject;
|
||||
|
||||
NS_RELEASE(global);
|
||||
return res;
|
||||
}
|
||||
|
||||
|
||||
NS_IMETHODIMP
|
||||
XULCommandDispatcherImpl::SetScriptObject(void *aScriptObject)
|
||||
{
|
||||
mScriptObject = aScriptObject;
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
||||
PRBool
|
||||
XULCommandDispatcherImpl::Matches(const nsString& aList, const nsString& aElement)
|
||||
{
|
||||
if (aList == "*")
|
||||
return PR_TRUE; // match _everything_!
|
||||
|
||||
PRInt32 indx = aList.Find(aElement);
|
||||
if (indx == -1)
|
||||
return PR_FALSE; // not in the list at all
|
||||
|
||||
// okay, now make sure it's not a substring snafu; e.g., 'ur'
|
||||
// found inside of 'blur'.
|
||||
if (indx > 0) {
|
||||
PRUnichar ch = aList[indx - 1];
|
||||
if (! nsString::IsSpace(ch) && ch != PRUnichar(','))
|
||||
return PR_FALSE;
|
||||
}
|
||||
|
||||
if (indx + aElement.Length() < aList.Length()) {
|
||||
PRUnichar ch = aList[indx + aElement.Length()];
|
||||
if (! nsString::IsSpace(ch) && ch != PRUnichar(','))
|
||||
return PR_FALSE;
|
||||
}
|
||||
|
||||
return PR_TRUE;
|
||||
}
|
||||
|
||||
|
||||
NS_IMETHODIMP XULCommandDispatcherImpl::GetParentWindowFromElement(nsIDOMElement* aElement, nsPIDOMWindow** aPWindow)
|
||||
{
|
||||
nsCOMPtr<nsIDOMDocument> document;
|
||||
aElement->GetOwnerDocument(getter_AddRefs(document));
|
||||
if(!document) return NS_OK;
|
||||
|
||||
nsCOMPtr<nsIDocument> objectOwner = do_QueryInterface(document);
|
||||
if(!objectOwner) return NS_OK;
|
||||
|
||||
nsCOMPtr<nsIScriptContextOwner> contextOwner = dont_QueryInterface(objectOwner->GetScriptContextOwner());
|
||||
if(!contextOwner) return NS_OK;
|
||||
|
||||
nsCOMPtr<nsIScriptGlobalObject> globalObject;
|
||||
contextOwner->GetScriptGlobalObject(getter_AddRefs(globalObject));
|
||||
if(!globalObject) return NS_OK;
|
||||
|
||||
nsCOMPtr<nsPIDOMWindow> privateDOMWindow = do_QueryInterface(globalObject);
|
||||
if(!privateDOMWindow) return NS_OK;
|
||||
|
||||
privateDOMWindow->GetPrivateParent(aPWindow);
|
||||
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP XULCommandDispatcherImpl::GetControllerForCommand(const nsString& command, nsIController** _retval)
|
||||
{
|
||||
*_retval = nsnull;
|
||||
|
||||
nsCOMPtr<nsIControllers> controllers;
|
||||
GetControllers(getter_AddRefs(controllers));
|
||||
if(controllers) {
|
||||
nsCOMPtr<nsIController> controller;
|
||||
controllers->GetControllerForCommand(command.GetUnicode(), getter_AddRefs(controller));
|
||||
if(controller) {
|
||||
*_retval = controller;
|
||||
NS_ADDREF(*_retval);
|
||||
return NS_OK;
|
||||
}
|
||||
}
|
||||
|
||||
if(!mCurrentNode) return NS_OK;
|
||||
|
||||
nsCOMPtr<nsPIDOMWindow> currentWindow;
|
||||
|
||||
nsCOMPtr<nsIDOMElement> element = do_QueryInterface(mCurrentNode);
|
||||
if(element) {
|
||||
GetParentWindowFromElement(element, getter_AddRefs(currentWindow));
|
||||
} else {
|
||||
nsCOMPtr<nsPIDOMWindow> window = do_QueryInterface(mCurrentNode);
|
||||
if(!window) return NS_OK;
|
||||
|
||||
window->GetPrivateParent(getter_AddRefs(currentWindow));
|
||||
}
|
||||
|
||||
while(currentWindow) {
|
||||
nsCOMPtr<nsIDOMWindow> domWindow = do_QueryInterface(currentWindow);
|
||||
if(domWindow) {
|
||||
nsCOMPtr<nsIControllers> controllers2;
|
||||
domWindow->GetControllers(getter_AddRefs(controllers2));
|
||||
if(controllers2) {
|
||||
nsCOMPtr<nsIController> controller;
|
||||
controllers2->GetControllerForCommand(command.GetUnicode(), getter_AddRefs(controller));
|
||||
if(controller) {
|
||||
*_retval = controller;
|
||||
NS_ADDREF(*_retval);
|
||||
return NS_OK;
|
||||
}
|
||||
}
|
||||
}
|
||||
nsCOMPtr<nsPIDOMWindow> parentPWindow = currentWindow;
|
||||
parentPWindow->GetPrivateParent(getter_AddRefs(currentWindow));
|
||||
}
|
||||
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////
|
||||
nsresult
|
||||
NS_NewXULCommandDispatcher(nsIXULCommandDispatcher** CommandDispatcher)
|
||||
{
|
||||
XULCommandDispatcherImpl* focus = new XULCommandDispatcherImpl();
|
||||
if (!focus)
|
||||
return NS_ERROR_OUT_OF_MEMORY;
|
||||
|
||||
NS_ADDREF(focus);
|
||||
*CommandDispatcher = focus;
|
||||
return NS_OK;
|
||||
}
|
||||
1750
mozilla/content/xul/document/src/nsXULContentSink.cpp
Normal file
1750
mozilla/content/xul/document/src/nsXULContentSink.cpp
Normal file
File diff suppressed because it is too large
Load Diff
228
mozilla/content/xul/document/src/nsXULControllers.cpp
Normal file
228
mozilla/content/xul/document/src/nsXULControllers.cpp
Normal file
@@ -0,0 +1,228 @@
|
||||
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
|
||||
*
|
||||
* The contents of this file are subject to the Netscape Public
|
||||
* License Version 1.1 (the "License"); you may not use this file
|
||||
* except in compliance with the License. You may obtain a copy of
|
||||
* the License at http://www.mozilla.org/NPL/
|
||||
*
|
||||
* Software distributed under the License is distributed on an "AS
|
||||
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
||||
* implied. See the License for the specific language governing
|
||||
* rights and limitations under the License.
|
||||
*
|
||||
* The Original Code is mozilla.org code.
|
||||
*
|
||||
* The Initial Developer of the Original Code is Netscape
|
||||
* Communications Corporation. Portions created by Netscape are
|
||||
* Copyright (C) 1998 Netscape Communications Corporation. All
|
||||
* Rights Reserved.
|
||||
*
|
||||
* Contributor(s):
|
||||
*/
|
||||
|
||||
/*
|
||||
This file provides the implementation for the XUL Command Dispatcher.
|
||||
*/
|
||||
|
||||
#include "nsCOMPtr.h"
|
||||
|
||||
#include "nsVoidArray.h"
|
||||
#include "nsISupportsArray.h"
|
||||
|
||||
#include "nsIDOMElement.h"
|
||||
#include "nsIXULCommandDispatcher.h"
|
||||
#include "nsIDOMFocusListener.h"
|
||||
#include "nsRDFCID.h"
|
||||
|
||||
#include "nsIScriptObjectOwner.h"
|
||||
#include "nsIScriptGlobalObject.h"
|
||||
#include "nsIDOMWindow.h"
|
||||
#include "nsIScriptContextOwner.h"
|
||||
#include "nsIDOMXULDocument.h"
|
||||
#include "nsIDocument.h"
|
||||
#include "nsIContent.h"
|
||||
#include "nsIDOMUIEvent.h"
|
||||
|
||||
#include "nsIDOMXULElement.h"
|
||||
#include "nsIControllers.h"
|
||||
|
||||
#include "nsIPresContext.h"
|
||||
#include "nsIPresShell.h"
|
||||
|
||||
////////////////////////////////////////////////////////////////////////
|
||||
|
||||
static NS_DEFINE_IID(kIScriptObjectOwnerIID, NS_ISCRIPTOBJECTOWNER_IID);
|
||||
|
||||
static NS_DEFINE_IID(kISupportsIID, NS_ISUPPORTS_IID);
|
||||
|
||||
static NS_DEFINE_IID(kIDomNodeIID, NS_IDOMNODE_IID);
|
||||
static NS_DEFINE_IID(kIDomElementIID, NS_IDOMELEMENT_IID);
|
||||
static NS_DEFINE_IID(kIDomEventListenerIID, NS_IDOMEVENTLISTENER_IID);
|
||||
|
||||
////////////////////////////////////////////////////////////////////////
|
||||
// XULControllersImpl
|
||||
//
|
||||
// This is the focus manager for XUL documents.
|
||||
//
|
||||
class XULControllersImpl : public nsIControllers
|
||||
{
|
||||
public:
|
||||
XULControllersImpl(void);
|
||||
virtual ~XULControllersImpl(void);
|
||||
|
||||
public:
|
||||
// nsISupports
|
||||
NS_DECL_ISUPPORTS
|
||||
|
||||
NS_DECL_NSICONTROLLERS
|
||||
|
||||
|
||||
protected:
|
||||
nsISupportsArray* mControllers;
|
||||
};
|
||||
|
||||
////////////////////////////////////////////////////////////////////////
|
||||
|
||||
XULControllersImpl::XULControllersImpl(void) :
|
||||
mControllers(nsnull)
|
||||
{
|
||||
NS_INIT_REFCNT();
|
||||
}
|
||||
|
||||
XULControllersImpl::~XULControllersImpl(void)
|
||||
{
|
||||
NS_IF_RELEASE(mControllers);
|
||||
}
|
||||
|
||||
NS_IMPL_ADDREF(XULControllersImpl)
|
||||
NS_IMPL_RELEASE(XULControllersImpl)
|
||||
|
||||
NS_IMETHODIMP
|
||||
XULControllersImpl::QueryInterface(REFNSIID iid, void** result)
|
||||
{
|
||||
if (! result)
|
||||
return NS_ERROR_NULL_POINTER;
|
||||
|
||||
*result = nsnull;
|
||||
if (iid.Equals(kISupportsIID)) {
|
||||
*result = (nsISupports*)(nsIControllers*)this;
|
||||
NS_ADDREF_THIS();
|
||||
return NS_OK;
|
||||
}
|
||||
else if (iid.Equals(nsIControllers::GetIID())) {
|
||||
*result = NS_STATIC_CAST(nsIControllers*, this);
|
||||
NS_ADDREF_THIS();
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
return NS_NOINTERFACE;
|
||||
}
|
||||
|
||||
|
||||
/* boolean SupportsCommand (in string command); */
|
||||
NS_IMETHODIMP XULControllersImpl::GetControllerForCommand(const PRUnichar *command, nsIController** _retval)
|
||||
{
|
||||
*_retval = nsnull;
|
||||
if(!mControllers)
|
||||
return NS_OK;
|
||||
|
||||
PRUint32 count;
|
||||
mControllers->Count(&count);
|
||||
for(PRUint32 i=0; i < count; i++) {
|
||||
nsCOMPtr<nsIController> controller;
|
||||
nsCOMPtr<nsISupports> supports;
|
||||
mControllers->GetElementAt(i, getter_AddRefs(supports));
|
||||
controller = do_QueryInterface(supports);
|
||||
if( controller ) {
|
||||
PRBool supportsCommand;
|
||||
controller->SupportsCommand(command, &supportsCommand);
|
||||
if(supportsCommand) {
|
||||
*_retval = controller;
|
||||
NS_ADDREF(*_retval);
|
||||
return NS_OK;
|
||||
}
|
||||
}
|
||||
}
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
/* void InsertControllerAt (in short index, in nsIController controller); */
|
||||
NS_IMETHODIMP XULControllersImpl::InsertControllerAt(PRUint32 index, nsIController *controller)
|
||||
{
|
||||
if(! mControllers )
|
||||
NS_NewISupportsArray(&mControllers);
|
||||
|
||||
mControllers->InsertElementAt(controller, index);
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
/* nsIController RemoveControllerAt (in short index); */
|
||||
NS_IMETHODIMP XULControllersImpl::RemoveControllerAt(PRUint32 index, nsIController **_retval)
|
||||
{
|
||||
if(mControllers) {
|
||||
nsCOMPtr<nsISupports> supports;
|
||||
mControllers->GetElementAt(index, getter_AddRefs(supports));
|
||||
supports->QueryInterface(nsIController::GetIID(), (void**)_retval);
|
||||
mControllers->RemoveElementAt(index);
|
||||
} else
|
||||
*_retval = nsnull;
|
||||
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
/* nsIController GetControllerAt (in short index); */
|
||||
NS_IMETHODIMP XULControllersImpl::GetControllerAt(PRUint32 index, nsIController **_retval)
|
||||
{
|
||||
if(mControllers) {
|
||||
nsCOMPtr<nsISupports> supports;
|
||||
mControllers->GetElementAt(index, getter_AddRefs(supports));
|
||||
supports->QueryInterface(nsIController::GetIID(), (void**)_retval);
|
||||
} else
|
||||
*_retval = nsnull;
|
||||
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
/* void AppendController (in nsIController controller); */
|
||||
NS_IMETHODIMP XULControllersImpl::AppendController(nsIController *controller)
|
||||
{
|
||||
if(! mControllers )
|
||||
NS_NewISupportsArray(&mControllers);
|
||||
|
||||
mControllers->AppendElement(controller);
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
/* void RemoveController (in nsIController controller); */
|
||||
NS_IMETHODIMP XULControllersImpl::RemoveController(nsIController *controller)
|
||||
{
|
||||
if(mControllers) {
|
||||
nsCOMPtr<nsISupports> supports = do_QueryInterface(controller);
|
||||
mControllers->RemoveElement(supports);
|
||||
}
|
||||
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
/* short GetControllerCount (); */
|
||||
NS_IMETHODIMP XULControllersImpl::GetControllerCount(PRUint32 *_retval)
|
||||
{
|
||||
*_retval = 0;
|
||||
if(mControllers)
|
||||
mControllers->Count(_retval);
|
||||
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////
|
||||
nsresult
|
||||
NS_NewXULControllers(nsIControllers** aControllers)
|
||||
{
|
||||
nsIControllers* impl = new XULControllersImpl();
|
||||
if (!impl)
|
||||
return NS_ERROR_OUT_OF_MEMORY;
|
||||
|
||||
NS_ADDREF(impl);
|
||||
*aControllers = impl;
|
||||
return NS_OK;
|
||||
}
|
||||
5353
mozilla/content/xul/document/src/nsXULDocument.cpp
Normal file
5353
mozilla/content/xul/document/src/nsXULDocument.cpp
Normal file
File diff suppressed because it is too large
Load Diff
749
mozilla/content/xul/document/src/nsXULDocument.h
Normal file
749
mozilla/content/xul/document/src/nsXULDocument.h
Normal file
@@ -0,0 +1,749 @@
|
||||
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
|
||||
*
|
||||
* The contents of this file are subject to the Netscape Public
|
||||
* License Version 1.1 (the "License"); you may not use this file
|
||||
* except in compliance with the License. You may obtain a copy of
|
||||
* the License at http://www.mozilla.org/NPL/
|
||||
*
|
||||
* Software distributed under the License is distributed on an "AS
|
||||
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
||||
* implied. See the License for the specific language governing
|
||||
* rights and limitations under the License.
|
||||
*
|
||||
* The Original Code is Mozilla Communicator client code.
|
||||
*
|
||||
* The Initial Developer of the Original Code is Netscape Communications
|
||||
* Corporation. Portions created by Netscape are
|
||||
* Copyright (C) 1998 Netscape Communications Corporation. All
|
||||
* Rights Reserved.
|
||||
*
|
||||
* Contributor(s):
|
||||
*/
|
||||
|
||||
#ifndef nsXULDocument_h__
|
||||
#define nsXULDocument_h__
|
||||
|
||||
#include "nsCOMPtr.h"
|
||||
#include "nsElementMap.h"
|
||||
#include "nsForwardReference.h"
|
||||
#include "nsIArena.h"
|
||||
#include "nsICSSLoader.h"
|
||||
#include "nsIContent.h"
|
||||
#include "nsIDOMEventCapturer.h"
|
||||
#include "nsIDOMHTMLFormElement.h"
|
||||
#include "nsIDOMNSDocument.h"
|
||||
#include "nsIDOMSelection.h"
|
||||
#include "nsIDOMXULCommandDispatcher.h"
|
||||
#include "nsIDOMXULDocument.h"
|
||||
#include "nsIDocument.h"
|
||||
#include "nsIEventListenerManager.h"
|
||||
#include "nsIHTMLCSSStyleSheet.h"
|
||||
#include "nsIHTMLContentContainer.h"
|
||||
#include "nsIHTMLStyleSheet.h"
|
||||
#include "nsIJSScriptObject.h"
|
||||
#include "nsILineBreakerFactory.h"
|
||||
#include "nsINameSpaceManager.h"
|
||||
#include "nsIParser.h"
|
||||
#include "nsIPrincipal.h"
|
||||
#include "nsIRDFDataSource.h"
|
||||
#include "nsIScriptObjectOwner.h"
|
||||
#include "nsIStreamLoadableDocument.h"
|
||||
#include "nsISupportsArray.h"
|
||||
#include "nsIURI.h"
|
||||
#include "nsIWordBreakerFactory.h"
|
||||
#include "nsIXULDocument.h"
|
||||
#include "nsIXULPrototypeDocument.h"
|
||||
#include "nsRDFDOMNodeList.h"
|
||||
#include "nsTime.h"
|
||||
#include "nsVoidArray.h"
|
||||
#include "nsWeakPtr.h"
|
||||
#include "nsWeakReference.h"
|
||||
#include "nsIUnicharStreamLoader.h"
|
||||
|
||||
class nsIAtom;
|
||||
class nsIHTMLElementFactory;
|
||||
class nsILoadGroup;
|
||||
class nsIRDFResource;
|
||||
class nsIRDFService;
|
||||
class nsIScriptContextOwner;
|
||||
class nsIUnicharStreamLoader;
|
||||
class nsIXMLElementFactory;
|
||||
class nsIXULContentUtils;
|
||||
class nsIXULPrototypeCache;
|
||||
#if 0 // XXXbe save me, scc (need NSCAP_FORWARD_DECL(nsXULPrototypeScript))
|
||||
class nsIXULPrototypeScript;
|
||||
#else
|
||||
#include "nsXULElement.h"
|
||||
#endif
|
||||
|
||||
struct JSObject;
|
||||
struct PRLogModuleInfo;
|
||||
|
||||
/**
|
||||
* The XUL document class
|
||||
*/
|
||||
class nsXULDocument : public nsIDocument,
|
||||
public nsIXULDocument,
|
||||
public nsIStreamLoadableDocument,
|
||||
public nsIDOMXULDocument,
|
||||
public nsIDOMNSDocument,
|
||||
public nsIDOMEventCapturer,
|
||||
public nsIJSScriptObject,
|
||||
public nsIScriptObjectOwner,
|
||||
public nsIHTMLContentContainer,
|
||||
public nsIUnicharStreamLoaderObserver,
|
||||
public nsSupportsWeakReference
|
||||
{
|
||||
public:
|
||||
nsXULDocument();
|
||||
virtual ~nsXULDocument();
|
||||
|
||||
// nsISupports interface
|
||||
NS_DECL_ISUPPORTS
|
||||
NS_DECL_NSIUNICHARSTREAMLOADEROBSERVER
|
||||
|
||||
// nsIDocument interface
|
||||
virtual nsIArena* GetArena();
|
||||
|
||||
NS_IMETHOD GetContentType(nsString& aContentType) const;
|
||||
|
||||
NS_IMETHOD StartDocumentLoad(const char* aCommand,
|
||||
nsIChannel* aChannel,
|
||||
nsILoadGroup* aLoadGroup,
|
||||
nsIContentViewerContainer* aContainer,
|
||||
nsIStreamListener **aDocListener);
|
||||
|
||||
virtual const nsString* GetDocumentTitle() const;
|
||||
|
||||
virtual nsIURI* GetDocumentURL() const;
|
||||
|
||||
virtual nsIPrincipal* GetDocumentPrincipal();
|
||||
|
||||
NS_IMETHOD GetDocumentLoadGroup(nsILoadGroup **aGroup) const;
|
||||
|
||||
NS_IMETHOD GetBaseURL(nsIURI*& aURL) const;
|
||||
|
||||
NS_IMETHOD GetDocumentCharacterSet(nsString& oCharSetID);
|
||||
|
||||
NS_IMETHOD SetDocumentCharacterSet(const nsString& aCharSetID);
|
||||
|
||||
NS_IMETHOD GetLineBreaker(nsILineBreaker** aResult) ;
|
||||
NS_IMETHOD SetLineBreaker(nsILineBreaker* aLineBreaker) ;
|
||||
NS_IMETHOD GetWordBreaker(nsIWordBreaker** aResult) ;
|
||||
NS_IMETHOD SetWordBreaker(nsIWordBreaker* aWordBreaker) ;
|
||||
|
||||
NS_IMETHOD GetHeaderData(nsIAtom* aHeaderField, nsString& aData) const;
|
||||
NS_IMETHOD SetHeaderData(nsIAtom* aheaderField, const nsString& aData);
|
||||
|
||||
NS_IMETHOD CreateShell(nsIPresContext* aContext,
|
||||
nsIViewManager* aViewManager,
|
||||
nsIStyleSet* aStyleSet,
|
||||
nsIPresShell** aInstancePtrResult);
|
||||
|
||||
virtual PRBool DeleteShell(nsIPresShell* aShell);
|
||||
|
||||
virtual PRInt32 GetNumberOfShells();
|
||||
|
||||
virtual nsIPresShell* GetShellAt(PRInt32 aIndex);
|
||||
|
||||
virtual nsIDocument* GetParentDocument();
|
||||
|
||||
virtual void SetParentDocument(nsIDocument* aParent);
|
||||
|
||||
virtual void AddSubDocument(nsIDocument* aSubDoc);
|
||||
|
||||
virtual PRInt32 GetNumberOfSubDocuments();
|
||||
|
||||
virtual nsIDocument* GetSubDocumentAt(PRInt32 aIndex);
|
||||
|
||||
virtual nsIContent* GetRootContent();
|
||||
|
||||
virtual void SetRootContent(nsIContent* aRoot);
|
||||
|
||||
NS_IMETHOD AppendToProlog(nsIContent* aContent);
|
||||
NS_IMETHOD AppendToEpilog(nsIContent* aContent);
|
||||
NS_IMETHOD ChildAt(PRInt32 aIndex, nsIContent*& aResult) const;
|
||||
NS_IMETHOD IndexOf(nsIContent* aPossibleChild, PRInt32& aIndex) const;
|
||||
NS_IMETHOD GetChildCount(PRInt32& aCount);
|
||||
|
||||
virtual PRInt32 GetNumberOfStyleSheets();
|
||||
|
||||
virtual nsIStyleSheet* GetStyleSheetAt(PRInt32 aIndex);
|
||||
|
||||
virtual PRInt32 GetIndexOfStyleSheet(nsIStyleSheet* aSheet);
|
||||
|
||||
virtual void AddStyleSheet(nsIStyleSheet* aSheet);
|
||||
NS_IMETHOD InsertStyleSheetAt(nsIStyleSheet* aSheet, PRInt32 aIndex, PRBool aNotify);
|
||||
|
||||
virtual void SetStyleSheetDisabledState(nsIStyleSheet* aSheet,
|
||||
PRBool mDisabled);
|
||||
|
||||
NS_IMETHOD GetCSSLoader(nsICSSLoader*& aLoader);
|
||||
|
||||
virtual nsIScriptContextOwner *GetScriptContextOwner();
|
||||
|
||||
virtual void SetScriptContextOwner(nsIScriptContextOwner *aScriptContextOwner);
|
||||
|
||||
NS_IMETHOD GetNameSpaceManager(nsINameSpaceManager*& aManager);
|
||||
|
||||
virtual void AddObserver(nsIDocumentObserver* aObserver);
|
||||
|
||||
virtual PRBool RemoveObserver(nsIDocumentObserver* aObserver);
|
||||
|
||||
NS_IMETHOD BeginLoad();
|
||||
|
||||
NS_IMETHOD EndLoad();
|
||||
|
||||
NS_IMETHOD ContentChanged(nsIContent* aContent,
|
||||
nsISupports* aSubContent);
|
||||
|
||||
NS_IMETHOD ContentStatesChanged(nsIContent* aContent1, nsIContent* aContent2);
|
||||
|
||||
NS_IMETHOD AttributeChanged(nsIContent* aChild,
|
||||
PRInt32 aNameSpaceID,
|
||||
nsIAtom* aAttribute,
|
||||
PRInt32 aHint); // See nsStyleConsts fot hint values
|
||||
|
||||
NS_IMETHOD ContentAppended(nsIContent* aContainer,
|
||||
PRInt32 aNewIndexInContainer);
|
||||
|
||||
NS_IMETHOD ContentInserted(nsIContent* aContainer,
|
||||
nsIContent* aChild,
|
||||
PRInt32 aIndexInContainer);
|
||||
|
||||
NS_IMETHOD ContentReplaced(nsIContent* aContainer,
|
||||
nsIContent* aOldChild,
|
||||
nsIContent* aNewChild,
|
||||
PRInt32 aIndexInContainer);
|
||||
|
||||
NS_IMETHOD ContentRemoved(nsIContent* aContainer,
|
||||
nsIContent* aChild,
|
||||
PRInt32 aIndexInContainer);
|
||||
|
||||
NS_IMETHOD StyleRuleChanged(nsIStyleSheet* aStyleSheet,
|
||||
nsIStyleRule* aStyleRule,
|
||||
PRInt32 aHint); // See nsStyleConsts fot hint values
|
||||
|
||||
NS_IMETHOD StyleRuleAdded(nsIStyleSheet* aStyleSheet,
|
||||
nsIStyleRule* aStyleRule);
|
||||
|
||||
NS_IMETHOD StyleRuleRemoved(nsIStyleSheet* aStyleSheet,
|
||||
nsIStyleRule* aStyleRule);
|
||||
|
||||
NS_IMETHOD GetSelection(nsIDOMSelection** aSelection);
|
||||
|
||||
NS_IMETHOD SelectAll();
|
||||
|
||||
NS_IMETHOD FindNext(const nsString &aSearchStr, PRBool aMatchCase, PRBool aSearchDown, PRBool &aIsFound);
|
||||
|
||||
NS_IMETHOD CreateXIF(nsString & aBuffer, nsIDOMSelection* aSelection);
|
||||
|
||||
NS_IMETHOD ToXIF(nsXIFConverter& aConverter, nsIDOMNode* aNode);
|
||||
|
||||
virtual void BeginConvertToXIF(nsXIFConverter& aConverter, nsIDOMNode* aNode);
|
||||
|
||||
virtual void ConvertChildrenToXIF(nsXIFConverter& aConverter, nsIDOMNode* aNode);
|
||||
|
||||
virtual void FinishConvertToXIF(nsXIFConverter& aConverter, nsIDOMNode* aNode);
|
||||
|
||||
virtual PRBool IsInRange(const nsIContent *aStartContent, const nsIContent* aEndContent, const nsIContent* aContent) const;
|
||||
|
||||
virtual PRBool IsBefore(const nsIContent *aNewContent, const nsIContent* aCurrentContent) const;
|
||||
|
||||
virtual PRBool IsInSelection(nsIDOMSelection* aSelection, const nsIContent *aContent) const;
|
||||
|
||||
virtual nsIContent* GetPrevContent(const nsIContent *aContent) const;
|
||||
|
||||
virtual nsIContent* GetNextContent(const nsIContent *aContent) const;
|
||||
|
||||
virtual void SetDisplaySelection(PRBool aToggle);
|
||||
|
||||
virtual PRBool GetDisplaySelection() const;
|
||||
|
||||
NS_IMETHOD HandleDOMEvent(nsIPresContext& aPresContext,
|
||||
nsEvent* aEvent,
|
||||
nsIDOMEvent** aDOMEvent,
|
||||
PRUint32 aFlags,
|
||||
nsEventStatus& aEventStatus);
|
||||
|
||||
|
||||
// nsIXMLDocument interface
|
||||
NS_IMETHOD GetContentById(const nsString& aName, nsIContent** aContent);
|
||||
#ifdef XSL
|
||||
NS_IMETHOD SetTransformMediator(nsITransformMediator* aMediator);
|
||||
#endif
|
||||
|
||||
// nsIXULDocument interface
|
||||
NS_IMETHOD AddElementForID(const nsString& aID, nsIContent* aElement);
|
||||
NS_IMETHOD RemoveElementForID(const nsString& aID, nsIContent* aElement);
|
||||
NS_IMETHOD GetElementsForID(const nsString& aID, nsISupportsArray* aElements);
|
||||
NS_IMETHOD CreateContents(nsIContent* aElement);
|
||||
NS_IMETHOD AddContentModelBuilder(nsIRDFContentModelBuilder* aBuilder);
|
||||
NS_IMETHOD GetForm(nsIDOMHTMLFormElement** aForm);
|
||||
NS_IMETHOD SetForm(nsIDOMHTMLFormElement* aForm);
|
||||
NS_IMETHOD AddForwardReference(nsForwardReference* aRef);
|
||||
NS_IMETHOD ResolveForwardReferences();
|
||||
|
||||
NS_IMETHOD CreateFromPrototype(const char* aCommand,
|
||||
nsIXULPrototypeDocument* aPrototype,
|
||||
nsIContentViewerContainer* aContainer);
|
||||
|
||||
// nsIStreamLoadableDocument interface
|
||||
NS_IMETHOD LoadFromStream(nsIInputStream& xulStream,
|
||||
nsIContentViewerContainer* aContainer,
|
||||
const char* aCommand );
|
||||
|
||||
// nsIDOMEventCapturer interface
|
||||
NS_IMETHOD CaptureEvent(const nsString& aType);
|
||||
NS_IMETHOD ReleaseEvent(const nsString& aType);
|
||||
|
||||
// nsIDOMEventReceiver interface (yuck. inherited from nsIDOMEventCapturer)
|
||||
NS_IMETHOD AddEventListenerByIID(nsIDOMEventListener *aListener, const nsIID& aIID);
|
||||
NS_IMETHOD RemoveEventListenerByIID(nsIDOMEventListener *aListener, const nsIID& aIID);
|
||||
NS_IMETHOD GetListenerManager(nsIEventListenerManager** aInstancePtrResult);
|
||||
NS_IMETHOD GetNewListenerManager(nsIEventListenerManager **aInstancePtrResult);
|
||||
|
||||
// nsIDOMEventTarget interface
|
||||
NS_IMETHOD AddEventListener(const nsString& aType, nsIDOMEventListener* aListener,
|
||||
PRBool aUseCapture);
|
||||
NS_IMETHOD RemoveEventListener(const nsString& aType, nsIDOMEventListener* aListener,
|
||||
PRBool aUseCapture);
|
||||
|
||||
// nsIDOMDocument interface
|
||||
NS_IMETHOD GetDoctype(nsIDOMDocumentType** aDoctype);
|
||||
NS_IMETHOD GetImplementation(nsIDOMDOMImplementation** aImplementation);
|
||||
NS_IMETHOD GetDocumentElement(nsIDOMElement** aDocumentElement);
|
||||
|
||||
NS_IMETHOD CreateElement(const nsString& aTagName, nsIDOMElement** aReturn);
|
||||
NS_IMETHOD CreateDocumentFragment(nsIDOMDocumentFragment** aReturn);
|
||||
NS_IMETHOD CreateTextNode(const nsString& aData, nsIDOMText** aReturn);
|
||||
NS_IMETHOD CreateComment(const nsString& aData, nsIDOMComment** aReturn);
|
||||
NS_IMETHOD CreateCDATASection(const nsString& aData, nsIDOMCDATASection** aReturn);
|
||||
NS_IMETHOD CreateProcessingInstruction(const nsString& aTarget, const nsString& aData, nsIDOMProcessingInstruction** aReturn);
|
||||
NS_IMETHOD CreateAttribute(const nsString& aName, nsIDOMAttr** aReturn);
|
||||
NS_IMETHOD CreateEntityReference(const nsString& aName, nsIDOMEntityReference** aReturn);
|
||||
NS_IMETHOD GetElementsByTagName(const nsString& aTagname, nsIDOMNodeList** aReturn);
|
||||
|
||||
// nsIDOMNSDocument interface
|
||||
NS_IMETHOD GetStyleSheets(nsIDOMStyleSheetCollection** aStyleSheets);
|
||||
NS_IMETHOD CreateElementWithNameSpace(const nsString& aTagName, const nsString& aNameSpace, nsIDOMElement** aResult);
|
||||
NS_IMETHOD CreateRange(nsIDOMRange** aRange);
|
||||
NS_IMETHOD GetWidth(PRInt32* aWidth);
|
||||
NS_IMETHOD GetHeight(PRInt32* aHeight);
|
||||
|
||||
// nsIDOMXULDocument interface
|
||||
NS_DECL_IDOMXULDOCUMENT
|
||||
|
||||
// nsIDOMNode interface
|
||||
NS_IMETHOD GetNodeName(nsString& aNodeName);
|
||||
NS_IMETHOD GetNodeValue(nsString& aNodeValue);
|
||||
NS_IMETHOD SetNodeValue(const nsString& aNodeValue);
|
||||
NS_IMETHOD GetNodeType(PRUint16* aNodeType);
|
||||
NS_IMETHOD GetParentNode(nsIDOMNode** aParentNode);
|
||||
NS_IMETHOD GetChildNodes(nsIDOMNodeList** aChildNodes);
|
||||
NS_IMETHOD HasChildNodes(PRBool* aHasChildNodes);
|
||||
NS_IMETHOD GetFirstChild(nsIDOMNode** aFirstChild);
|
||||
NS_IMETHOD GetLastChild(nsIDOMNode** aLastChild);
|
||||
NS_IMETHOD GetPreviousSibling(nsIDOMNode** aPreviousSibling);
|
||||
NS_IMETHOD GetNextSibling(nsIDOMNode** aNextSibling);
|
||||
NS_IMETHOD GetAttributes(nsIDOMNamedNodeMap** aAttributes);
|
||||
NS_IMETHOD GetOwnerDocument(nsIDOMDocument** aOwnerDocument);
|
||||
NS_IMETHOD InsertBefore(nsIDOMNode* aNewChild, nsIDOMNode* aRefChild, nsIDOMNode** aReturn);
|
||||
NS_IMETHOD ReplaceChild(nsIDOMNode* aNewChild, nsIDOMNode* aOldChild, nsIDOMNode** aReturn);
|
||||
NS_IMETHOD RemoveChild(nsIDOMNode* aOldChild, nsIDOMNode** aReturn);
|
||||
NS_IMETHOD AppendChild(nsIDOMNode* aNewChild, nsIDOMNode** aReturn);
|
||||
NS_IMETHOD CloneNode(PRBool aDeep, nsIDOMNode** aReturn);
|
||||
|
||||
// nsIJSScriptObject interface
|
||||
virtual PRBool AddProperty(JSContext *aContext, jsval aID, jsval *aVp);
|
||||
virtual PRBool DeleteProperty(JSContext *aContext, jsval aID, jsval *aVp);
|
||||
virtual PRBool GetProperty(JSContext *aContext, jsval aID, jsval *aVp);
|
||||
virtual PRBool SetProperty(JSContext *aContext, jsval aID, jsval *aVp);
|
||||
virtual PRBool EnumerateProperty(JSContext *aContext);
|
||||
virtual PRBool Resolve(JSContext *aContext, jsval aID);
|
||||
virtual PRBool Convert(JSContext *aContext, jsval aID);
|
||||
virtual void Finalize(JSContext *aContext);
|
||||
|
||||
// nsIScriptObjectOwner interface
|
||||
NS_IMETHOD GetScriptObject(nsIScriptContext *aContext, void** aScriptObject);
|
||||
NS_IMETHOD SetScriptObject(void *aScriptObject);
|
||||
|
||||
// nsIHTMLContentContainer interface
|
||||
NS_IMETHOD GetAttributeStyleSheet(nsIHTMLStyleSheet** aResult);
|
||||
NS_IMETHOD GetInlineStyleSheet(nsIHTMLCSSStyleSheet** aResult);
|
||||
|
||||
protected:
|
||||
// Implementation methods
|
||||
friend nsresult
|
||||
NS_NewXULDocument(nsIXULDocument** aResult);
|
||||
|
||||
nsresult Init(void);
|
||||
nsresult StartLayout(void);
|
||||
|
||||
nsresult OpenWidgetItem(nsIContent* aElement);
|
||||
nsresult CloseWidgetItem(nsIContent* aElement);
|
||||
nsresult RebuildWidgetItem(nsIContent* aElement);
|
||||
|
||||
nsresult
|
||||
AddSubtreeToDocument(nsIContent* aElement);
|
||||
|
||||
nsresult
|
||||
RemoveSubtreeFromDocument(nsIContent* aElement);
|
||||
|
||||
nsresult
|
||||
AddElementToMap(nsIContent* aElement);
|
||||
|
||||
nsresult
|
||||
RemoveElementFromMap(nsIContent* aElement);
|
||||
|
||||
static PRIntn
|
||||
RemoveElementsFromMapByContent(const nsString& aID,
|
||||
nsIContent* aElement,
|
||||
void* aClosure);
|
||||
|
||||
static nsresult
|
||||
GetElementsByTagName(nsIDOMNode* aNode,
|
||||
const nsString& aTagName,
|
||||
nsRDFDOMNodeList* aElements);
|
||||
|
||||
static nsresult
|
||||
GetElementsByAttribute(nsIDOMNode* aNode,
|
||||
const nsString& aAttribute,
|
||||
const nsString& aValue,
|
||||
nsRDFDOMNodeList* aElements);
|
||||
|
||||
nsresult
|
||||
ParseTagString(const nsString& aTagName, nsIAtom*& aName, PRInt32& aNameSpaceID);
|
||||
|
||||
NS_IMETHOD PrepareStyleSheets(nsIURI* anURL);
|
||||
|
||||
void SetDocumentURLAndGroup(nsIURI* anURL);
|
||||
void SetIsPopup(PRBool isPopup) { mIsPopup = isPopup; };
|
||||
|
||||
nsresult CreateElement(PRInt32 aNameSpaceID,
|
||||
nsIAtom* aTag,
|
||||
nsIContent** aResult);
|
||||
|
||||
nsresult PrepareToLoad(nsIContentViewerContainer* aContainer,
|
||||
const char* aCommand,
|
||||
nsIChannel* aChannel,
|
||||
nsILoadGroup* aLoadGroup,
|
||||
nsIParser** aResult);
|
||||
|
||||
nsresult
|
||||
PrepareToLoadPrototype(nsIURI* aURI,
|
||||
const char* aCommand,
|
||||
nsIPrincipal* aDocumentPrincipal,
|
||||
nsIParser** aResult);
|
||||
|
||||
nsresult ApplyPersistentAttributes();
|
||||
nsresult ApplyPersistentAttributesToElements(nsIRDFResource* aResource, nsISupportsArray* aElements);
|
||||
|
||||
protected:
|
||||
// pseudo constants
|
||||
static PRInt32 gRefCnt;
|
||||
|
||||
static nsIAtom* kAttributeAtom;
|
||||
static nsIAtom* kCommandUpdaterAtom;
|
||||
static nsIAtom* kDataSourcesAtom;
|
||||
static nsIAtom* kElementAtom;
|
||||
static nsIAtom* kIdAtom;
|
||||
static nsIAtom* kKeysetAtom;
|
||||
static nsIAtom* kObservesAtom;
|
||||
static nsIAtom* kOpenAtom;
|
||||
static nsIAtom* kOverlayAtom;
|
||||
static nsIAtom* kPersistAtom;
|
||||
static nsIAtom* kPositionAtom;
|
||||
static nsIAtom* kRefAtom;
|
||||
static nsIAtom* kRuleAtom;
|
||||
static nsIAtom* kTemplateAtom;
|
||||
|
||||
static nsIAtom** kIdentityAttrs[];
|
||||
|
||||
static nsIRDFService* gRDFService;
|
||||
static nsIRDFResource* kNC_persist;
|
||||
static nsIRDFResource* kNC_attribute;
|
||||
static nsIRDFResource* kNC_value;
|
||||
|
||||
static nsIHTMLElementFactory* gHTMLElementFactory;
|
||||
static nsIXMLElementFactory* gXMLElementFactory;
|
||||
|
||||
static nsINameSpaceManager* gNameSpaceManager;
|
||||
static PRInt32 kNameSpaceID_XUL;
|
||||
|
||||
static nsIXULContentUtils* gXULUtils;
|
||||
static nsIXULPrototypeCache* gXULCache;
|
||||
|
||||
static PRLogModuleInfo* gXULLog;
|
||||
|
||||
nsIContent*
|
||||
FindContent(const nsIContent* aStartNode,
|
||||
const nsIContent* aTest1,
|
||||
const nsIContent* aTest2) const;
|
||||
|
||||
nsresult
|
||||
Persist(nsIContent* aElement, PRInt32 aNameSpaceID, nsIAtom* aAttribute);
|
||||
|
||||
nsresult
|
||||
DestroyForwardReferences();
|
||||
|
||||
// IMPORTANT: The ownership implicit in the following member variables has been
|
||||
// explicitly checked and set using nsCOMPtr for owning pointers and raw COM interface
|
||||
// pointers for weak (ie, non owning) references. If you add any members to this
|
||||
// class, please make the ownership explicit (pinkerton, scc).
|
||||
// NOTE, THIS IS STILL IN PROGRESS, TALK TO PINK OR SCC BEFORE CHANGING
|
||||
|
||||
nsCOMPtr<nsIArena> mArena;
|
||||
nsVoidArray mObservers;
|
||||
nsAutoString mDocumentTitle;
|
||||
nsCOMPtr<nsIURI> mDocumentURL; // [OWNER] ??? compare with loader
|
||||
nsWeakPtr mDocumentLoadGroup; // [WEAK] leads to loader
|
||||
nsCOMPtr<nsIPrincipal> mDocumentPrincipal; // [OWNER]
|
||||
nsCOMPtr<nsIContent> mRootContent; // [OWNER]
|
||||
nsIDocument* mParentDocument; // [WEAK]
|
||||
nsIScriptContextOwner* mScriptContextOwner; // [WEAK] it owns me! (indirectly)
|
||||
void* mScriptObject; // ????
|
||||
nsXULDocument* mNextSrcLoadWaiter; // [OWNER] but not COMPtr
|
||||
nsString mCharSetID;
|
||||
nsVoidArray mStyleSheets;
|
||||
nsCOMPtr<nsIDOMSelection> mSelection; // [OWNER]
|
||||
PRBool mDisplaySelection;
|
||||
nsVoidArray mPresShells;
|
||||
nsCOMPtr<nsIEventListenerManager> mListenerManager; // [OWNER]
|
||||
nsCOMPtr<nsINameSpaceManager> mNameSpaceManager; // [OWNER]
|
||||
nsCOMPtr<nsIHTMLStyleSheet> mAttrStyleSheet; // [OWNER]
|
||||
nsCOMPtr<nsIHTMLCSSStyleSheet> mInlineStyleSheet; // [OWNER]
|
||||
nsCOMPtr<nsICSSLoader> mCSSLoader; // [OWNER]
|
||||
nsElementMap mElementMap;
|
||||
nsCOMPtr<nsISupportsArray> mBuilders; // [OWNER] of array, elements shouldn't own this, but they do
|
||||
nsCOMPtr<nsIRDFDataSource> mLocalStore;
|
||||
nsCOMPtr<nsILineBreaker> mLineBreaker; // [OWNER]
|
||||
nsCOMPtr<nsIWordBreaker> mWordBreaker; // [OWNER]
|
||||
nsIContentViewerContainer* mContentViewerContainer; // [WEAK] it owns me! (indirectly)
|
||||
nsString mCommand;
|
||||
nsVoidArray mSubDocuments; // [OWNER] of subelements
|
||||
PRBool mIsPopup;
|
||||
nsCOMPtr<nsIDOMHTMLFormElement> mHiddenForm; // [OWNER] of this content element
|
||||
nsCOMPtr<nsIDOMXULCommandDispatcher> mCommandDispatcher; // [OWNER] of the focus tracker
|
||||
|
||||
nsVoidArray mForwardReferences;
|
||||
PRBool mForwardReferencesResolved;
|
||||
|
||||
// The following are pointers into the content model which provide access to
|
||||
// the objects triggering either a popup or a tooltip. These are marked as
|
||||
// [OWNER] only because someone could, through DOM calls, delete the object from the
|
||||
// content model while the popup/tooltip was visible. If we didn't have a reference
|
||||
// to it, the object would go away and we'd be left pointing to garbage. This
|
||||
// does not introduce cycles into the ownership model because this is still
|
||||
// parent/child ownership. Just wanted the reader to know hyatt and I had thought about
|
||||
// this (pinkerton).
|
||||
nsCOMPtr<nsIDOMNode> mPopupNode; // [OWNER] element triggering the popup
|
||||
nsCOMPtr<nsIDOMNode> mTooltipNode; // [OWNER] element triggering the tooltip
|
||||
|
||||
/**
|
||||
* Context stack, which maintains the state of the Builder and allows
|
||||
* it to be interrupted.
|
||||
*/
|
||||
class ContextStack {
|
||||
protected:
|
||||
struct Entry {
|
||||
nsXULPrototypeElement* mPrototype;
|
||||
nsIContent* mElement;
|
||||
PRInt32 mIndex;
|
||||
Entry* mNext;
|
||||
};
|
||||
|
||||
Entry* mTop;
|
||||
PRInt32 mDepth;
|
||||
|
||||
public:
|
||||
ContextStack();
|
||||
~ContextStack();
|
||||
|
||||
PRInt32 Depth() { return mDepth; }
|
||||
|
||||
nsresult Push(nsXULPrototypeElement* aPrototype, nsIContent* aElement);
|
||||
nsresult Pop();
|
||||
nsresult Peek(nsXULPrototypeElement** aPrototype, nsIContent** aElement, PRInt32* aIndex);
|
||||
|
||||
nsresult SetTopIndex(PRInt32 aIndex);
|
||||
|
||||
PRBool IsInsideXULTemplate();
|
||||
};
|
||||
|
||||
friend class ContextStack;
|
||||
ContextStack mContextStack;
|
||||
|
||||
enum State { eState_Master, eState_Overlay };
|
||||
State mState;
|
||||
|
||||
/**
|
||||
* An array of overlay nsIURIs that have yet to be resolved. The
|
||||
* order of the array is significant: overlays at the _end_ of the
|
||||
* array are resolved before overlays earlier in the array (i.e.,
|
||||
* it is a stack).
|
||||
*/
|
||||
nsCOMPtr<nsISupportsArray> mUnloadedOverlays;
|
||||
|
||||
/**
|
||||
* Load the transcluded script at the specified URI. If the
|
||||
* prototype construction must 'block' until the load has
|
||||
* completed, aBlock will be set to true.
|
||||
*/
|
||||
nsresult LoadScript(nsXULPrototypeScript *aScriptProto, PRBool* aBlock);
|
||||
|
||||
/**
|
||||
* Execute the precompiled script object scoped by this XUL document's
|
||||
* containing window object, and using its associated script context.
|
||||
*/
|
||||
nsresult ExecuteScript(JSObject* aScriptObject);
|
||||
|
||||
/**
|
||||
* Create a delegate content model element from a prototype.
|
||||
*/
|
||||
nsresult CreateElement(nsXULPrototypeElement* aPrototype, nsIContent** aResult);
|
||||
|
||||
/**
|
||||
* Create a temporary 'overlay' element to which content nodes
|
||||
* can be attached for later resolution.
|
||||
*/
|
||||
nsresult CreateOverlayElement(nsXULPrototypeElement* aPrototype, nsIContent** aResult);
|
||||
|
||||
/**
|
||||
* Add attributes from the prototype to the element.
|
||||
*/
|
||||
nsresult AddAttributes(nsXULPrototypeElement* aPrototype, nsIContent* aElement);
|
||||
|
||||
/**
|
||||
* The prototype-script of the current transcluded script that is being
|
||||
* loaded. For document.write('<script src="nestedwrite.js"><\/script>')
|
||||
* to work, these need to be in a stack element type, and we need to hold
|
||||
* the top of stack here.
|
||||
*/
|
||||
nsXULPrototypeScript* mCurrentScriptProto;
|
||||
|
||||
/**
|
||||
* Create a XUL template builder on the specified node if a 'datasources'
|
||||
* attribute is present.
|
||||
*/
|
||||
static nsresult
|
||||
CheckTemplateBuilder(nsIContent* aElement);
|
||||
|
||||
/**
|
||||
* Do hookup for <xul:observes> tag
|
||||
*/
|
||||
nsresult HookupObserver(nsIContent* aElement);
|
||||
|
||||
/**
|
||||
* Add the current prototype's style sheets to the document.
|
||||
*/
|
||||
nsresult AddPrototypeSheets();
|
||||
|
||||
/**
|
||||
* Used to resolve broadcaster references
|
||||
*/
|
||||
class BroadcasterHookup : public nsForwardReference
|
||||
{
|
||||
protected:
|
||||
nsXULDocument* mDocument; // [WEAK]
|
||||
nsCOMPtr<nsIContent> mObservesElement; // [OWNER]
|
||||
PRBool mResolved;
|
||||
|
||||
public:
|
||||
BroadcasterHookup(nsXULDocument* aDocument, nsIContent* aObservesElement) :
|
||||
mDocument(aDocument),
|
||||
mObservesElement(aObservesElement),
|
||||
mResolved(PR_FALSE) {}
|
||||
|
||||
virtual ~BroadcasterHookup();
|
||||
|
||||
virtual Priority GetPriority() { return ePriority_Hookup; }
|
||||
virtual Result Resolve();
|
||||
};
|
||||
|
||||
friend class BroadcasterHookup;
|
||||
|
||||
|
||||
/**
|
||||
* Used to hook up overlays
|
||||
*/
|
||||
class OverlayForwardReference : public nsForwardReference
|
||||
{
|
||||
protected:
|
||||
nsXULDocument* mDocument; // [WEAK]
|
||||
nsCOMPtr<nsIContent> mOverlay; // [OWNER]
|
||||
PRBool mResolved;
|
||||
|
||||
nsresult Merge(nsIContent* aTargetNode, nsIContent* aOverlayNode);
|
||||
|
||||
public:
|
||||
OverlayForwardReference(nsXULDocument* aDocument, nsIContent* aOverlay)
|
||||
: mDocument(aDocument), mOverlay(aOverlay), mResolved(PR_FALSE) {}
|
||||
|
||||
virtual ~OverlayForwardReference();
|
||||
|
||||
virtual Priority GetPriority() { return ePriority_Construction; }
|
||||
virtual Result Resolve();
|
||||
};
|
||||
|
||||
friend class OverlayForwardReference;
|
||||
|
||||
|
||||
static
|
||||
nsresult
|
||||
CheckBroadcasterHookup(nsXULDocument* aDocument,
|
||||
nsIContent* aElement,
|
||||
PRBool* aDidResolve);
|
||||
|
||||
static
|
||||
nsresult
|
||||
InsertElement(nsIContent* aParent, nsIContent* aChild);
|
||||
|
||||
static
|
||||
PRBool
|
||||
IsChromeURI(nsIURI* aURI);
|
||||
|
||||
/**
|
||||
* The current prototype that we are walking to construct the
|
||||
* content model.
|
||||
*/
|
||||
nsCOMPtr<nsIXULPrototypeDocument> mCurrentPrototype;
|
||||
|
||||
/**
|
||||
* The master document (outermost, .xul) prototype, from which
|
||||
* all subdocuments get their security principals.
|
||||
*/
|
||||
nsCOMPtr<nsIXULPrototypeDocument> mMasterPrototype;
|
||||
|
||||
/**
|
||||
* Owning references to all of the prototype documents that were
|
||||
* used to construct this document.
|
||||
*/
|
||||
nsCOMPtr<nsISupportsArray> mPrototypes;
|
||||
|
||||
/**
|
||||
* Prepare to walk the current prototype.
|
||||
*/
|
||||
nsresult PrepareToWalk();
|
||||
|
||||
/**
|
||||
* Add overlays from the chrome registry to the set of unprocessed
|
||||
* overlays still to do.
|
||||
*/
|
||||
nsresult AddChromeOverlays();
|
||||
|
||||
/**
|
||||
* Resume (or initiate) an interrupted (or newly prepared)
|
||||
* prototype walk.
|
||||
*/
|
||||
nsresult ResumeWalk();
|
||||
|
||||
#if defined(DEBUG_waterson) || defined(DEBUG_hyatt)
|
||||
// timing
|
||||
nsTime mLoadStart;
|
||||
#endif
|
||||
};
|
||||
|
||||
|
||||
|
||||
#endif // nsXULDocument_h__
|
||||
183
mozilla/content/xul/document/src/nsXULPrototypeCache.cpp
Normal file
183
mozilla/content/xul/document/src/nsXULPrototypeCache.cpp
Normal file
@@ -0,0 +1,183 @@
|
||||
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
|
||||
*
|
||||
* The contents of this file are subject to the Netscape Public
|
||||
* License Version 1.1 (the "License"); you may not use this file
|
||||
* except in compliance with the License. You may obtain a copy of
|
||||
* the License at http://www.mozilla.org/NPL/
|
||||
*
|
||||
* Software distributed under the License is distributed on an "AS
|
||||
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
||||
* implied. See the License for the specific language governing
|
||||
* rights and limitations under the License.
|
||||
*
|
||||
* The Original Code is Mozilla Communicator client code.
|
||||
*
|
||||
* The Initial Developer of the Original Code is Netscape Communications
|
||||
* Corporation. Portions created by Netscape are
|
||||
* Copyright (C) 1998 Netscape Communications Corporation. All
|
||||
* Rights Reserved.
|
||||
*
|
||||
* Contributor(s):
|
||||
*/
|
||||
|
||||
/*
|
||||
|
||||
|
||||
|
||||
*/
|
||||
|
||||
#include "nsCOMPtr.h"
|
||||
#include "nsICSSStyleSheet.h"
|
||||
#include "nsIXULPrototypeCache.h"
|
||||
#include "nsIXULPrototypeDocument.h"
|
||||
#include "nsIURI.h"
|
||||
#include "nsHashtable.h"
|
||||
#include "nsXPIDLString.h"
|
||||
#include "plstr.h"
|
||||
|
||||
|
||||
class nsXULPrototypeCache : public nsIXULPrototypeCache
|
||||
{
|
||||
public:
|
||||
// nsISupports
|
||||
NS_DECL_ISUPPORTS
|
||||
|
||||
NS_IMETHOD GetPrototype(nsIURI* aURI, nsIXULPrototypeDocument** _result);
|
||||
NS_IMETHOD PutPrototype(nsIXULPrototypeDocument* aDocument);
|
||||
|
||||
NS_IMETHOD GetStyleSheet(nsIURI* aURI, nsICSSStyleSheet** _result);
|
||||
NS_IMETHOD PutStyleSheet(nsICSSStyleSheet* aStyleSheet);
|
||||
|
||||
NS_IMETHOD Flush();
|
||||
|
||||
protected:
|
||||
friend NS_IMETHODIMP
|
||||
NS_NewXULPrototypeCache(nsISupports* aOuter, REFNSIID aIID, void** aResult);
|
||||
|
||||
nsXULPrototypeCache();
|
||||
virtual ~nsXULPrototypeCache();
|
||||
|
||||
nsSupportsHashtable mPrototypeTable;
|
||||
nsSupportsHashtable mStyleSheetTable;
|
||||
|
||||
|
||||
class nsIURIKey : public nsHashKey {
|
||||
protected:
|
||||
nsCOMPtr<nsIURI> mKey;
|
||||
|
||||
public:
|
||||
nsIURIKey(nsIURI* key) : mKey(key) {}
|
||||
~nsIURIKey(void) {}
|
||||
|
||||
PRUint32 HashValue(void) const {
|
||||
nsXPIDLCString spec;
|
||||
mKey->GetSpec(getter_Copies(spec));
|
||||
return (PRUint32) PL_HashString(spec);
|
||||
}
|
||||
|
||||
PRBool Equals(const nsHashKey *aKey) const {
|
||||
PRBool eq;
|
||||
mKey->Equals( ((nsIURIKey*) aKey)->mKey, &eq );
|
||||
return eq;
|
||||
}
|
||||
|
||||
nsHashKey *Clone(void) const {
|
||||
return new nsIURIKey(mKey);
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
|
||||
nsXULPrototypeCache::nsXULPrototypeCache()
|
||||
{
|
||||
NS_INIT_REFCNT();
|
||||
}
|
||||
|
||||
|
||||
nsXULPrototypeCache::~nsXULPrototypeCache()
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
NS_IMPL_ISUPPORTS1(nsXULPrototypeCache, nsIXULPrototypeCache);
|
||||
|
||||
|
||||
NS_IMETHODIMP
|
||||
NS_NewXULPrototypeCache(nsISupports* aOuter, REFNSIID aIID, void** aResult)
|
||||
{
|
||||
NS_PRECONDITION(! aOuter, "no aggregation");
|
||||
if (aOuter)
|
||||
return NS_ERROR_NO_AGGREGATION;
|
||||
|
||||
nsXULPrototypeCache* result = new nsXULPrototypeCache();
|
||||
if (! result)
|
||||
return NS_ERROR_OUT_OF_MEMORY;
|
||||
|
||||
nsresult rv;
|
||||
|
||||
NS_ADDREF(result);
|
||||
rv = result->QueryInterface(aIID, aResult);
|
||||
NS_RELEASE(result);
|
||||
|
||||
return rv;
|
||||
}
|
||||
|
||||
|
||||
//----------------------------------------------------------------------
|
||||
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsXULPrototypeCache::GetPrototype(nsIURI* aURI, nsIXULPrototypeDocument** _result)
|
||||
{
|
||||
nsIURIKey key(aURI);
|
||||
*_result = NS_STATIC_CAST(nsIXULPrototypeDocument*, mPrototypeTable.Get(&key));
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsXULPrototypeCache::PutPrototype(nsIXULPrototypeDocument* aDocument)
|
||||
{
|
||||
nsresult rv;
|
||||
nsCOMPtr<nsIURI> uri;
|
||||
rv = aDocument->GetURI(getter_AddRefs(uri));
|
||||
|
||||
nsIURIKey key(uri);
|
||||
mPrototypeTable.Put(&key, aDocument);
|
||||
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsXULPrototypeCache::GetStyleSheet(nsIURI* aURI, nsICSSStyleSheet** _result)
|
||||
{
|
||||
nsIURIKey key(aURI);
|
||||
*_result = NS_STATIC_CAST(nsICSSStyleSheet*, mStyleSheetTable.Get(&key));
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsXULPrototypeCache::PutStyleSheet(nsICSSStyleSheet* aStyleSheet)
|
||||
{
|
||||
nsresult rv;
|
||||
nsCOMPtr<nsIURI> uri;
|
||||
rv = aStyleSheet->GetURL(*getter_AddRefs(uri));
|
||||
|
||||
nsIURIKey key(uri);
|
||||
mStyleSheetTable.Put(&key, aStyleSheet);
|
||||
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsXULPrototypeCache::Flush()
|
||||
{
|
||||
mPrototypeTable.Reset();
|
||||
mStyleSheetTable.Reset();
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
263
mozilla/content/xul/document/src/nsXULPrototypeDocument.cpp
Normal file
263
mozilla/content/xul/document/src/nsXULPrototypeDocument.cpp
Normal file
@@ -0,0 +1,263 @@
|
||||
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
|
||||
*
|
||||
* The contents of this file are subject to the Netscape Public
|
||||
* License Version 1.1 (the "License"); you may not use this file
|
||||
* except in compliance with the License. You may obtain a copy of
|
||||
* the License at http://www.mozilla.org/NPL/
|
||||
*
|
||||
* Software distributed under the License is distributed on an "AS
|
||||
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
||||
* implied. See the License for the specific language governing
|
||||
* rights and limitations under the License.
|
||||
*
|
||||
* The Original Code is Mozilla Communicator client code.
|
||||
*
|
||||
* The Initial Developer of the Original Code is Netscape Communications
|
||||
* Corporation. Portions created by Netscape are
|
||||
* Copyright (C) 1998 Netscape Communications Corporation. All
|
||||
* Rights Reserved.
|
||||
*
|
||||
* Contributor(s):
|
||||
*/
|
||||
|
||||
/*
|
||||
|
||||
|
||||
|
||||
*/
|
||||
|
||||
#include "nsCOMPtr.h"
|
||||
#include "nsString2.h"
|
||||
#include "nsVoidArray.h"
|
||||
#include "nsIPrincipal.h"
|
||||
#include "nsISupportsArray.h"
|
||||
#include "nsIURI.h"
|
||||
#include "nsIServiceManager.h"
|
||||
#include "nsIScriptSecurityManager.h"
|
||||
#include "nsIXULPrototypeDocument.h"
|
||||
#include "nsXULElement.h"
|
||||
|
||||
class nsXULPrototypeDocument : public nsIXULPrototypeDocument
|
||||
{
|
||||
public:
|
||||
static nsresult
|
||||
Create(nsIURI* aURI, nsXULPrototypeDocument** aResult);
|
||||
|
||||
// nsISupports interface
|
||||
NS_DECL_ISUPPORTS
|
||||
|
||||
// nsIXULPrototypeDocument interface
|
||||
NS_IMETHOD GetURI(nsIURI** aResult);
|
||||
NS_IMETHOD SetURI(nsIURI* aURI);
|
||||
|
||||
NS_IMETHOD GetRootElement(nsXULPrototypeElement** aResult);
|
||||
NS_IMETHOD SetRootElement(nsXULPrototypeElement* aElement);
|
||||
|
||||
NS_IMETHOD AddStyleSheetReference(nsIURI* aStyleSheet);
|
||||
NS_IMETHOD GetStyleSheetReferences(nsISupportsArray** aResult);
|
||||
|
||||
NS_IMETHOD AddOverlayReference(nsIURI* aURI);
|
||||
NS_IMETHOD GetOverlayReferences(nsISupportsArray** aResult);
|
||||
|
||||
NS_IMETHOD GetHeaderData(nsIAtom* aField, nsString& aData) const;
|
||||
NS_IMETHOD SetHeaderData(nsIAtom* aField, const nsString& aData);
|
||||
|
||||
NS_IMETHOD GetDocumentPrincipal(nsIPrincipal** aResult);
|
||||
NS_IMETHOD SetDocumentPrincipal(nsIPrincipal* aPrincipal);
|
||||
|
||||
protected:
|
||||
nsCOMPtr<nsIURI> mURI;
|
||||
nsXULPrototypeElement* mRoot;
|
||||
nsCOMPtr<nsISupportsArray> mStyleSheetReferences;
|
||||
nsCOMPtr<nsISupportsArray> mOverlayReferences;
|
||||
nsCOMPtr<nsIPrincipal> mDocumentPrincipal;
|
||||
|
||||
nsXULPrototypeDocument();
|
||||
virtual ~nsXULPrototypeDocument();
|
||||
nsresult Init();
|
||||
|
||||
friend NS_IMETHODIMP
|
||||
NS_NewXULPrototypeDocument(nsISupports* aOuter, REFNSIID aIID, void** aResult);
|
||||
};
|
||||
|
||||
|
||||
//----------------------------------------------------------------------
|
||||
|
||||
nsXULPrototypeDocument::nsXULPrototypeDocument()
|
||||
: mRoot(nsnull)
|
||||
{
|
||||
NS_INIT_REFCNT();
|
||||
}
|
||||
|
||||
|
||||
nsresult
|
||||
nsXULPrototypeDocument::Init()
|
||||
{
|
||||
nsresult rv;
|
||||
|
||||
rv = NS_NewISupportsArray(getter_AddRefs(mStyleSheetReferences));
|
||||
if (NS_FAILED(rv)) return rv;
|
||||
|
||||
rv = NS_NewISupportsArray(getter_AddRefs(mOverlayReferences));
|
||||
if (NS_FAILED(rv)) return rv;
|
||||
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
||||
nsXULPrototypeDocument::~nsXULPrototypeDocument()
|
||||
{
|
||||
delete mRoot;
|
||||
}
|
||||
|
||||
|
||||
NS_IMPL_ISUPPORTS1(nsXULPrototypeDocument, nsIXULPrototypeDocument);
|
||||
|
||||
NS_IMETHODIMP
|
||||
NS_NewXULPrototypeDocument(nsISupports* aOuter, REFNSIID aIID, void** aResult)
|
||||
{
|
||||
NS_PRECONDITION(aOuter == nsnull, "no aggregation");
|
||||
if (aOuter)
|
||||
return NS_ERROR_NO_AGGREGATION;
|
||||
|
||||
nsXULPrototypeDocument* result = new nsXULPrototypeDocument();
|
||||
if (! result)
|
||||
return NS_ERROR_OUT_OF_MEMORY;
|
||||
|
||||
nsresult rv;
|
||||
rv = result->Init();
|
||||
if (NS_FAILED(rv)) {
|
||||
delete result;
|
||||
return rv;
|
||||
}
|
||||
|
||||
NS_ADDREF(result);
|
||||
rv = result->QueryInterface(aIID, aResult);
|
||||
NS_RELEASE(result);
|
||||
|
||||
return rv;
|
||||
}
|
||||
|
||||
|
||||
//----------------------------------------------------------------------
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsXULPrototypeDocument::GetURI(nsIURI** aResult)
|
||||
{
|
||||
*aResult = mURI;
|
||||
NS_IF_ADDREF(*aResult);
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsXULPrototypeDocument::SetURI(nsIURI* aURI)
|
||||
{
|
||||
mURI = aURI;
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsXULPrototypeDocument::GetRootElement(nsXULPrototypeElement** aResult)
|
||||
{
|
||||
*aResult = mRoot;
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsXULPrototypeDocument::SetRootElement(nsXULPrototypeElement* aElement)
|
||||
{
|
||||
mRoot = aElement;
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsXULPrototypeDocument::AddStyleSheetReference(nsIURI* aURI)
|
||||
{
|
||||
NS_PRECONDITION(aURI != nsnull, "null ptr");
|
||||
if (! aURI)
|
||||
return NS_ERROR_NULL_POINTER;
|
||||
|
||||
mStyleSheetReferences->AppendElement(aURI);
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsXULPrototypeDocument::GetStyleSheetReferences(nsISupportsArray** aResult)
|
||||
{
|
||||
*aResult = mStyleSheetReferences;
|
||||
NS_ADDREF(*aResult);
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsXULPrototypeDocument::AddOverlayReference(nsIURI* aURI)
|
||||
{
|
||||
NS_PRECONDITION(aURI != nsnull, "null ptr");
|
||||
if (! aURI)
|
||||
return NS_ERROR_NULL_POINTER;
|
||||
|
||||
mOverlayReferences->AppendElement(aURI);
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsXULPrototypeDocument::GetOverlayReferences(nsISupportsArray** aResult)
|
||||
{
|
||||
*aResult = mOverlayReferences;
|
||||
NS_ADDREF(*aResult);
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsXULPrototypeDocument::GetHeaderData(nsIAtom* aField, nsString& aData) const
|
||||
{
|
||||
// XXX Not implemented
|
||||
aData.Truncate();
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsXULPrototypeDocument::SetHeaderData(nsIAtom* aField, const nsString& aData)
|
||||
{
|
||||
// XXX Not implemented
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsXULPrototypeDocument::GetDocumentPrincipal(nsIPrincipal** aResult)
|
||||
{
|
||||
if (!mDocumentPrincipal) {
|
||||
nsresult rv;
|
||||
NS_WITH_SERVICE(nsIScriptSecurityManager, securityManager,
|
||||
NS_SCRIPTSECURITYMANAGER_PROGID, &rv);
|
||||
if (NS_FAILED(rv))
|
||||
return NS_ERROR_FAILURE;
|
||||
rv = securityManager->CreateCodebasePrincipal(mURI, getter_AddRefs(mDocumentPrincipal));
|
||||
if (NS_FAILED(rv))
|
||||
return NS_ERROR_FAILURE;
|
||||
}
|
||||
*aResult = mDocumentPrincipal;
|
||||
NS_ADDREF(*aResult);
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsXULPrototypeDocument::SetDocumentPrincipal(nsIPrincipal* aPrincipal)
|
||||
{
|
||||
mDocumentPrincipal = aPrincipal;
|
||||
return NS_OK;
|
||||
}
|
||||
@@ -0,0 +1,94 @@
|
||||
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
|
||||
*
|
||||
* The contents of this file are subject to the Netscape Public
|
||||
* License Version 1.1 (the "License"); you may not use this file
|
||||
* except in compliance with the License. You may obtain a copy of
|
||||
* the License at http://www.mozilla.org/NPL/
|
||||
*
|
||||
* Software distributed under the License is distributed on an "AS
|
||||
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
||||
* implied. See the License for the specific language governing
|
||||
* rights and limitations under the License.
|
||||
*
|
||||
* The Original Code is Mozilla Communicator client code.
|
||||
*
|
||||
* The Initial Developer of the Original Code is Netscape Communications
|
||||
* Corporation. Portions created by Netscape are
|
||||
* Copyright (C) 1998 Netscape Communications Corporation. All
|
||||
* Rights Reserved.
|
||||
*
|
||||
* Contributor(s):
|
||||
*/
|
||||
|
||||
/*
|
||||
|
||||
A content model builder interface. An object that implements this
|
||||
interface is associated with an nsIXULDocument object to construct
|
||||
an NGLayout content model.
|
||||
|
||||
*/
|
||||
|
||||
#ifndef nsIRDFContentModelBuilder_h__
|
||||
#define nsIRDFContentModelBuilder_h__
|
||||
|
||||
#include "nsISupports.h"
|
||||
|
||||
class nsIAtom;
|
||||
class nsIContent;
|
||||
class nsIRDFCompositeDataSource;
|
||||
class nsIXULDocument;
|
||||
class nsIRDFNode;
|
||||
class nsIRDFResource;
|
||||
|
||||
// {541AFCB0-A9A3-11d2-8EC5-00805F29F370}
|
||||
#define NS_IRDFCONTENTMODELBUILDER_IID \
|
||||
{ 0x541afcb0, 0xa9a3, 0x11d2, { 0x8e, 0xc5, 0x0, 0x80, 0x5f, 0x29, 0xf3, 0x70 } }
|
||||
|
||||
class nsIRDFContentModelBuilder : public nsISupports
|
||||
{
|
||||
public:
|
||||
static const nsIID& GetIID() { static nsIID iid = NS_IRDFCONTENTMODELBUILDER_IID; return iid; }
|
||||
|
||||
/**
|
||||
* Point the content model builder to the document. The content model
|
||||
* builder must not reference count the document.
|
||||
*/
|
||||
NS_IMETHOD SetDocument(nsIXULDocument* aDocument) = 0;
|
||||
|
||||
NS_IMETHOD SetDataBase(nsIRDFCompositeDataSource* aDataBase) = 0;
|
||||
NS_IMETHOD GetDataBase(nsIRDFCompositeDataSource** aDataBase) = 0;
|
||||
|
||||
/**
|
||||
* Set the root element from which this content model will
|
||||
* operate.
|
||||
*/
|
||||
NS_IMETHOD CreateRootContent(nsIRDFResource* aResource) = 0;
|
||||
NS_IMETHOD SetRootContent(nsIContent* aElement) = 0;
|
||||
|
||||
/**
|
||||
* Construct the contents for a container element.
|
||||
*/
|
||||
NS_IMETHOD CreateContents(nsIContent* aElement) = 0;
|
||||
|
||||
/**
|
||||
* 'Open' a container element that was closed before. This gives
|
||||
* the container a chance to populate its contents.
|
||||
*/
|
||||
NS_IMETHOD OpenContainer(nsIContent* aContainer) = 0;
|
||||
|
||||
/**
|
||||
* 'Close' an open container. This gives the container a chance to
|
||||
* release unused content nodes.
|
||||
*/
|
||||
NS_IMETHOD CloseContainer(nsIContent* aContainer) = 0;
|
||||
|
||||
/**
|
||||
* Rebuild the contents of a container.
|
||||
*/
|
||||
NS_IMETHOD RebuildContainer(nsIContent* aContainer) = 0;
|
||||
};
|
||||
|
||||
extern nsresult NS_NewXULTemplateBuilder(nsIRDFContentModelBuilder** aResult);
|
||||
extern nsresult NS_NewRDFXULBuilder(nsIRDFContentModelBuilder** aResult);
|
||||
|
||||
#endif // nsIRDFContentModelBuilder_h__
|
||||
997
mozilla/content/xul/templates/src/nsXULContentUtils.cpp
Normal file
997
mozilla/content/xul/templates/src/nsXULContentUtils.cpp
Normal file
@@ -0,0 +1,997 @@
|
||||
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
|
||||
*
|
||||
* The contents of this file are subject to the Netscape Public
|
||||
* License Version 1.1 (the "License"); you may not use this file
|
||||
* except in compliance with the License. You may obtain a copy of
|
||||
* the License at http://www.mozilla.org/NPL/
|
||||
*
|
||||
* Software distributed under the License is distributed on an "AS
|
||||
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
||||
* implied. See the License for the specific language governing
|
||||
* rights and limitations under the License.
|
||||
*
|
||||
* The Original Code is Mozilla Communicator client code.
|
||||
*
|
||||
* The Initial Developer of the Original Code is Netscape Communications
|
||||
* Corporation. Portions created by Netscape are
|
||||
* Copyright (C) 1998 Netscape Communications Corporation. All
|
||||
* Rights Reserved.
|
||||
*
|
||||
* Contributor(s):
|
||||
*/
|
||||
|
||||
|
||||
/*
|
||||
|
||||
A package of routines shared by the XUL content code.
|
||||
|
||||
*/
|
||||
|
||||
|
||||
#include "nsCOMPtr.h"
|
||||
#include "nsIContent.h"
|
||||
#include "nsIDocument.h"
|
||||
#include "nsIDOMElement.h"
|
||||
#include "nsIDOMXULCommandDispatcher.h"
|
||||
#include "nsIDOMXULDocument.h"
|
||||
#include "nsIDOMMouseListener.h"
|
||||
#include "nsIDOMMouseMotionListener.h"
|
||||
#include "nsIDOMLoadListener.h"
|
||||
#include "nsIDOMFocusListener.h"
|
||||
#include "nsIDOMPaintListener.h"
|
||||
#include "nsIDOMKeyListener.h"
|
||||
#include "nsIDOMFormListener.h"
|
||||
#include "nsIDOMMenuListener.h"
|
||||
#include "nsIDOMDragListener.h"
|
||||
#include "nsIRDFNode.h"
|
||||
#include "nsINameSpace.h"
|
||||
#include "nsINameSpaceManager.h"
|
||||
#include "nsIPref.h"
|
||||
#include "nsIRDFService.h"
|
||||
#include "nsIServiceManager.h"
|
||||
#include "nsITextContent.h"
|
||||
#include "nsIURL.h"
|
||||
#include "nsIXMLContent.h"
|
||||
#include "nsIXULContentUtils.h"
|
||||
#include "nsIXULPrototypeCache.h"
|
||||
#include "nsLayoutCID.h"
|
||||
#include "nsNeckoUtil.h"
|
||||
#include "nsRDFCID.h"
|
||||
#include "nsString.h"
|
||||
#include "nsXPIDLString.h"
|
||||
#include "prlog.h"
|
||||
#include "prtime.h"
|
||||
#include "rdf.h"
|
||||
#include "rdfutil.h"
|
||||
|
||||
#include "nsILocale.h"
|
||||
#include "nsLocaleCID.h"
|
||||
#include "nsILocaleFactory.h"
|
||||
|
||||
#include "nsIDateTimeFormat.h"
|
||||
#include "nsDateTimeFormatCID.h"
|
||||
#include "nsIScriptableDateFormat.h"
|
||||
|
||||
|
||||
static NS_DEFINE_CID(kDateTimeFormatCID, NS_DATETIMEFORMAT_CID);
|
||||
static NS_DEFINE_CID(kDateTimeFormatIID, NS_IDATETIMEFORMAT_IID);
|
||||
static NS_DEFINE_CID(kLocaleCID, NS_LOCALE_CID);
|
||||
static NS_DEFINE_CID(kLocaleFactoryCID, NS_LOCALEFACTORY_CID);
|
||||
static NS_DEFINE_CID(kNameSpaceManagerCID, NS_NAMESPACEMANAGER_CID);
|
||||
static NS_DEFINE_CID(kRDFServiceCID, NS_RDFSERVICE_CID);
|
||||
static NS_DEFINE_CID(kTextNodeCID, NS_TEXTNODE_CID);
|
||||
static NS_DEFINE_CID(kXULPrototypeCacheCID, NS_XULPROTOTYPECACHE_CID);
|
||||
|
||||
//------------------------------------------------------------------------
|
||||
|
||||
class nsXULContentUtils : public nsIXULContentUtils
|
||||
{
|
||||
protected:
|
||||
nsXULContentUtils();
|
||||
nsresult Init();
|
||||
virtual ~nsXULContentUtils();
|
||||
|
||||
friend NS_IMETHODIMP
|
||||
NS_NewXULContentUtils(nsISupports* aOuter, const nsIID& aIID, void** aResult);
|
||||
|
||||
static nsrefcnt gRefCnt;
|
||||
static nsIRDFService* gRDF;
|
||||
static nsINameSpaceManager* gNameSpaceManager;
|
||||
static nsIDateTimeFormat* gFormat;
|
||||
|
||||
static nsIAtom* kEventsAtom;
|
||||
static nsIAtom* kTargetsAtom;
|
||||
|
||||
struct EventHandlerMapEntry {
|
||||
const char* mAttributeName;
|
||||
nsIAtom* mAttributeAtom;
|
||||
const nsIID* mHandlerIID;
|
||||
};
|
||||
|
||||
static EventHandlerMapEntry kEventHandlerMap[];
|
||||
|
||||
static PRBool gDisableXULCache;
|
||||
|
||||
static int
|
||||
DisableXULCacheChangedCallback(const char* aPrefName, void* aClosure);
|
||||
|
||||
public:
|
||||
// nsISupports methods
|
||||
NS_DECL_ISUPPORTS
|
||||
|
||||
// nsIXULContentUtils methods
|
||||
NS_IMETHOD
|
||||
AttachTextNode(nsIContent* parent, nsIRDFNode* value);
|
||||
|
||||
NS_IMETHOD
|
||||
FindChildByTag(nsIContent *aElement,
|
||||
PRInt32 aNameSpaceID,
|
||||
nsIAtom* aTag,
|
||||
nsIContent **aResult);
|
||||
|
||||
NS_IMETHOD
|
||||
FindChildByResource(nsIContent* aElement,
|
||||
nsIRDFResource* aResource,
|
||||
nsIContent** aResult);
|
||||
|
||||
NS_IMETHOD
|
||||
GetElementResource(nsIContent* aElement, nsIRDFResource** aResult);
|
||||
|
||||
NS_IMETHOD
|
||||
GetElementRefResource(nsIContent* aElement, nsIRDFResource** aResult);
|
||||
|
||||
NS_IMETHOD
|
||||
GetTextForNode(nsIRDFNode* aNode, nsString& aResult);
|
||||
|
||||
NS_IMETHOD
|
||||
GetElementLogString(nsIContent* aElement, nsString& aResult);
|
||||
|
||||
NS_IMETHOD
|
||||
GetAttributeLogString(nsIContent* aElement, PRInt32 aNameSpaceID, nsIAtom* aTag, nsString& aResult);
|
||||
|
||||
NS_IMETHOD
|
||||
MakeElementURI(nsIDocument* aDocument, const nsString& aElementID, nsCString& aURI);
|
||||
|
||||
NS_IMETHOD
|
||||
MakeElementResource(nsIDocument* aDocument, const nsString& aElementID, nsIRDFResource** aResult);
|
||||
|
||||
NS_IMETHOD
|
||||
MakeElementID(nsIDocument* aDocument, const nsString& aURI, nsString& aElementID);
|
||||
|
||||
NS_IMETHOD_(PRBool)
|
||||
IsContainedBy(nsIContent* aElement, nsIContent* aContainer);
|
||||
|
||||
NS_IMETHOD
|
||||
GetResource(PRInt32 aNameSpaceID, nsIAtom* aAttribute, nsIRDFResource** aResult);
|
||||
|
||||
NS_IMETHOD
|
||||
GetResource(PRInt32 aNameSpaceID, const nsString& aAttribute, nsIRDFResource** aResult);
|
||||
|
||||
NS_IMETHOD
|
||||
SetCommandUpdater(nsIDocument* aDocument, nsIContent* aElement);
|
||||
|
||||
NS_IMETHOD
|
||||
GetEventHandlerIID(nsIAtom* aName, nsIID* aIID, PRBool* aFound);
|
||||
|
||||
NS_IMETHOD_(PRBool)
|
||||
UseXULCache();
|
||||
};
|
||||
|
||||
nsrefcnt nsXULContentUtils::gRefCnt;
|
||||
nsIRDFService* nsXULContentUtils::gRDF;
|
||||
nsINameSpaceManager* nsXULContentUtils::gNameSpaceManager;
|
||||
nsIDateTimeFormat* nsXULContentUtils::gFormat;
|
||||
|
||||
nsIAtom* nsXULContentUtils::kEventsAtom;
|
||||
nsIAtom* nsXULContentUtils::kTargetsAtom;
|
||||
|
||||
nsXULContentUtils::EventHandlerMapEntry
|
||||
nsXULContentUtils::kEventHandlerMap[] = {
|
||||
{ "onclick", nsnull, &NS_GET_IID(nsIDOMMouseListener) },
|
||||
{ "ondblclick", nsnull, &NS_GET_IID(nsIDOMMouseListener) },
|
||||
{ "onmousedown", nsnull, &NS_GET_IID(nsIDOMMouseListener) },
|
||||
{ "onmouseup", nsnull, &NS_GET_IID(nsIDOMMouseListener) },
|
||||
{ "onmouseover", nsnull, &NS_GET_IID(nsIDOMMouseListener) },
|
||||
{ "onmouseout", nsnull, &NS_GET_IID(nsIDOMMouseListener) },
|
||||
|
||||
{ "onmousemove", nsnull, &NS_GET_IID(nsIDOMMouseMotionListener) },
|
||||
|
||||
{ "onkeydown", nsnull, &NS_GET_IID(nsIDOMKeyListener) },
|
||||
{ "onkeyup", nsnull, &NS_GET_IID(nsIDOMKeyListener) },
|
||||
{ "onkeypress", nsnull, &NS_GET_IID(nsIDOMKeyListener) },
|
||||
|
||||
{ "onload", nsnull, &NS_GET_IID(nsIDOMLoadListener) },
|
||||
{ "onunload", nsnull, &NS_GET_IID(nsIDOMLoadListener) },
|
||||
{ "onabort", nsnull, &NS_GET_IID(nsIDOMLoadListener) },
|
||||
{ "onerror", nsnull, &NS_GET_IID(nsIDOMLoadListener) },
|
||||
|
||||
{ "oncreate", nsnull, &NS_GET_IID(nsIDOMMenuListener) },
|
||||
{ "ondestroy", nsnull, &NS_GET_IID(nsIDOMMenuListener) },
|
||||
{ "oncommand", nsnull, &NS_GET_IID(nsIDOMMenuListener) },
|
||||
{ "onbroadcast", nsnull, &NS_GET_IID(nsIDOMMenuListener) },
|
||||
{ "oncommandupdate", nsnull, &NS_GET_IID(nsIDOMMenuListener) },
|
||||
|
||||
{ "onfocus", nsnull, &NS_GET_IID(nsIDOMFocusListener) },
|
||||
{ "onblur", nsnull, &NS_GET_IID(nsIDOMFocusListener) },
|
||||
|
||||
{ "onsubmit", nsnull, &NS_GET_IID(nsIDOMFormListener) },
|
||||
{ "onreset", nsnull, &NS_GET_IID(nsIDOMFormListener) },
|
||||
{ "onchange", nsnull, &NS_GET_IID(nsIDOMFormListener) },
|
||||
{ "onselect", nsnull, &NS_GET_IID(nsIDOMFormListener) },
|
||||
{ "oninput", nsnull, &NS_GET_IID(nsIDOMFormListener) },
|
||||
|
||||
{ "onpaint", nsnull, &NS_GET_IID(nsIDOMPaintListener) },
|
||||
|
||||
{ "ondragenter", nsnull, &NS_GET_IID(nsIDOMDragListener) },
|
||||
{ "ondragover", nsnull, &NS_GET_IID(nsIDOMDragListener) },
|
||||
{ "ondragexit", nsnull, &NS_GET_IID(nsIDOMDragListener) },
|
||||
{ "ondragdrop", nsnull, &NS_GET_IID(nsIDOMDragListener) },
|
||||
{ "ondraggesture", nsnull, &NS_GET_IID(nsIDOMDragListener) },
|
||||
|
||||
{ nsnull, nsnull, nsnull }
|
||||
};
|
||||
|
||||
|
||||
// Enabled by default. Must be over-ridden to disable
|
||||
PRBool nsXULContentUtils::gDisableXULCache = PR_FALSE;
|
||||
|
||||
|
||||
static const char kDisableXULCachePref[] = "nglayout.debug.disable_xul_cache";
|
||||
|
||||
//------------------------------------------------------------------------
|
||||
// Constructors n' stuff
|
||||
//
|
||||
|
||||
nsXULContentUtils::nsXULContentUtils()
|
||||
{
|
||||
NS_INIT_REFCNT();
|
||||
}
|
||||
|
||||
nsresult
|
||||
nsXULContentUtils::Init()
|
||||
{
|
||||
if (gRefCnt++ == 0) {
|
||||
nsresult rv;
|
||||
rv = nsServiceManager::GetService(kRDFServiceCID,
|
||||
NS_GET_IID(nsIRDFService),
|
||||
(nsISupports**) &gRDF);
|
||||
if (NS_FAILED(rv)) return rv;
|
||||
|
||||
rv = nsComponentManager::CreateInstance(kNameSpaceManagerCID,
|
||||
nsnull,
|
||||
NS_GET_IID(nsINameSpaceManager),
|
||||
(void**) &gNameSpaceManager);
|
||||
if (NS_FAILED(rv)) return rv;
|
||||
|
||||
rv = nsComponentManager::CreateInstance(kDateTimeFormatCID,
|
||||
nsnull,
|
||||
NS_GET_IID(nsIDateTimeFormat),
|
||||
(void**) &gFormat);
|
||||
|
||||
if (NS_FAILED(rv)) return rv;
|
||||
|
||||
kEventsAtom = NS_NewAtom("events");
|
||||
kTargetsAtom = NS_NewAtom("targets");
|
||||
|
||||
EventHandlerMapEntry* entry = kEventHandlerMap;
|
||||
while (entry->mAttributeName) {
|
||||
entry->mAttributeAtom = NS_NewAtom(entry->mAttributeName);
|
||||
++entry;
|
||||
}
|
||||
|
||||
NS_WITH_SERVICE(nsIPref, prefs, NS_PREF_PROGID, &rv);
|
||||
if (NS_SUCCEEDED(rv)) {
|
||||
// XXX Ignore return values.
|
||||
prefs->GetBoolPref(kDisableXULCachePref, &gDisableXULCache);
|
||||
prefs->RegisterCallback(kDisableXULCachePref, DisableXULCacheChangedCallback, nsnull);
|
||||
}
|
||||
}
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
||||
nsXULContentUtils::~nsXULContentUtils()
|
||||
{
|
||||
#ifdef DEBUG_REFS
|
||||
--gInstanceCount;
|
||||
fprintf(stdout, "%d - RDF: nsXULContentUtils\n", gInstanceCount);
|
||||
#endif
|
||||
|
||||
if (--gRefCnt == 0) {
|
||||
if (gRDF) {
|
||||
nsServiceManager::ReleaseService(kRDFServiceCID, gRDF);
|
||||
gRDF = nsnull;
|
||||
}
|
||||
|
||||
NS_IF_RELEASE(gNameSpaceManager);
|
||||
|
||||
NS_IF_RELEASE(kEventsAtom);
|
||||
NS_IF_RELEASE(kTargetsAtom);
|
||||
|
||||
EventHandlerMapEntry* entry = kEventHandlerMap;
|
||||
while (entry->mAttributeName) {
|
||||
NS_IF_RELEASE(entry->mAttributeAtom);
|
||||
++entry;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
NS_NewXULContentUtils(nsISupports* aOuter, const nsIID& aIID, void** aResult)
|
||||
{
|
||||
NS_PRECONDITION(aResult != nsnull, "null ptr");
|
||||
if (! aResult)
|
||||
return NS_ERROR_NULL_POINTER;
|
||||
|
||||
NS_PRECONDITION(aOuter == nsnull, "no aggregation");
|
||||
if (aOuter)
|
||||
return NS_ERROR_NO_AGGREGATION;
|
||||
|
||||
nsXULContentUtils* result = new nsXULContentUtils();
|
||||
if (! result)
|
||||
return NS_ERROR_OUT_OF_MEMORY;
|
||||
|
||||
nsresult rv;
|
||||
rv = result->Init();
|
||||
if (NS_FAILED(rv)) {
|
||||
delete result;
|
||||
return rv;
|
||||
}
|
||||
|
||||
NS_ADDREF(result);
|
||||
rv = result->QueryInterface(aIID, aResult);
|
||||
NS_RELEASE(result);
|
||||
|
||||
return rv;
|
||||
}
|
||||
|
||||
|
||||
|
||||
//------------------------------------------------------------------------
|
||||
// nsISupports methods
|
||||
|
||||
NS_IMPL_ISUPPORTS(nsXULContentUtils, NS_GET_IID(nsIXULContentUtils));
|
||||
|
||||
//------------------------------------------------------------------------
|
||||
// nsIXULContentUtils methods
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsXULContentUtils::AttachTextNode(nsIContent* parent, nsIRDFNode* value)
|
||||
{
|
||||
nsresult rv;
|
||||
|
||||
nsAutoString s;
|
||||
rv = GetTextForNode(value, s);
|
||||
if (NS_FAILED(rv)) return rv;
|
||||
|
||||
nsCOMPtr<nsITextContent> text;
|
||||
rv = nsComponentManager::CreateInstance(kTextNodeCID,
|
||||
nsnull,
|
||||
NS_GET_IID(nsITextContent),
|
||||
getter_AddRefs(text));
|
||||
if (NS_FAILED(rv)) return rv;
|
||||
|
||||
|
||||
rv = text->SetText(s.GetUnicode(), s.Length(), PR_FALSE);
|
||||
if (NS_FAILED(rv)) return rv;
|
||||
|
||||
// hook it up to the child
|
||||
rv = parent->AppendChildTo(nsCOMPtr<nsIContent>( do_QueryInterface(text) ), PR_FALSE);
|
||||
if (NS_FAILED(rv)) return rv;
|
||||
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsXULContentUtils::FindChildByTag(nsIContent* aElement,
|
||||
PRInt32 aNameSpaceID,
|
||||
nsIAtom* aTag,
|
||||
nsIContent** aResult)
|
||||
{
|
||||
nsresult rv;
|
||||
|
||||
PRInt32 count;
|
||||
if (NS_FAILED(rv = aElement->ChildCount(count)))
|
||||
return rv;
|
||||
|
||||
for (PRInt32 i = 0; i < count; ++i) {
|
||||
nsCOMPtr<nsIContent> kid;
|
||||
if (NS_FAILED(rv = aElement->ChildAt(i, *getter_AddRefs(kid))))
|
||||
return rv; // XXX fatal
|
||||
|
||||
PRInt32 nameSpaceID;
|
||||
if (NS_FAILED(rv = kid->GetNameSpaceID(nameSpaceID)))
|
||||
return rv; // XXX fatal
|
||||
|
||||
if (nameSpaceID != aNameSpaceID)
|
||||
continue; // wrong namespace
|
||||
|
||||
nsCOMPtr<nsIAtom> kidTag;
|
||||
if (NS_FAILED(rv = kid->GetTag(*getter_AddRefs(kidTag))))
|
||||
return rv; // XXX fatal
|
||||
|
||||
if (kidTag.get() != aTag)
|
||||
continue;
|
||||
|
||||
*aResult = kid;
|
||||
NS_ADDREF(*aResult);
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
return NS_RDF_NO_VALUE; // not found
|
||||
}
|
||||
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsXULContentUtils::FindChildByResource(nsIContent* aElement,
|
||||
nsIRDFResource* aResource,
|
||||
nsIContent** aResult)
|
||||
{
|
||||
nsresult rv;
|
||||
|
||||
PRInt32 count;
|
||||
if (NS_FAILED(rv = aElement->ChildCount(count)))
|
||||
return rv;
|
||||
|
||||
for (PRInt32 i = 0; i < count; ++i) {
|
||||
nsCOMPtr<nsIContent> kid;
|
||||
if (NS_FAILED(rv = aElement->ChildAt(i, *getter_AddRefs(kid))))
|
||||
return rv; // XXX fatal
|
||||
|
||||
// Now get the resource ID from the RDF:ID attribute. We do it
|
||||
// via the content model, because you're never sure who
|
||||
// might've added this stuff in...
|
||||
nsCOMPtr<nsIRDFResource> resource;
|
||||
rv = GetElementResource(kid, getter_AddRefs(resource));
|
||||
if (NS_FAILED(rv)) continue;
|
||||
|
||||
if (resource.get() != aResource)
|
||||
continue; // not the resource we want
|
||||
|
||||
// Fount it!
|
||||
*aResult = kid;
|
||||
NS_ADDREF(*aResult);
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
return NS_RDF_NO_VALUE; // not found
|
||||
}
|
||||
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsXULContentUtils::GetElementResource(nsIContent* aElement, nsIRDFResource** aResult)
|
||||
{
|
||||
// Perform a reverse mapping from an element in the content model
|
||||
// to an RDF resource.
|
||||
nsresult rv;
|
||||
|
||||
PRUnichar buf[128];
|
||||
nsAutoString id(CBufDescriptor(buf, PR_TRUE, sizeof(buf) / sizeof(PRUnichar), 0));
|
||||
|
||||
nsCOMPtr<nsIAtom> kIdAtom( dont_AddRef(NS_NewAtom("id")) );
|
||||
rv = aElement->GetAttribute(kNameSpaceID_None, kIdAtom, id);
|
||||
NS_ASSERTION(NS_SUCCEEDED(rv), "severe error retrieving attribute");
|
||||
if (NS_FAILED(rv)) return rv;
|
||||
|
||||
if (rv != NS_CONTENT_ATTR_HAS_VALUE)
|
||||
return NS_ERROR_FAILURE;
|
||||
|
||||
// Since the element will store its ID attribute as a document-relative value,
|
||||
// we may need to qualify it first...
|
||||
nsCOMPtr<nsIDocument> doc;
|
||||
rv = aElement->GetDocument(*getter_AddRefs(doc));
|
||||
if (NS_FAILED(rv)) return rv;
|
||||
|
||||
NS_ASSERTION(doc != nsnull, "element is not in any document");
|
||||
if (! doc)
|
||||
return NS_ERROR_FAILURE;
|
||||
|
||||
rv = nsXULContentUtils::MakeElementResource(doc, id, aResult);
|
||||
if (NS_FAILED(rv)) return rv;
|
||||
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsXULContentUtils::GetElementRefResource(nsIContent* aElement, nsIRDFResource** aResult)
|
||||
{
|
||||
// Perform a reverse mapping from an element in the content model
|
||||
// to an RDF resource. Check for a "ref" attribute first, then
|
||||
// fallback on an "id" attribute.
|
||||
nsresult rv;
|
||||
PRUnichar buf[128];
|
||||
nsAutoString uri(CBufDescriptor(buf, PR_TRUE, sizeof(buf) / sizeof(PRUnichar), 0));
|
||||
|
||||
nsCOMPtr<nsIAtom> kIdAtom( dont_AddRef(NS_NewAtom("ref")) );
|
||||
rv = aElement->GetAttribute(kNameSpaceID_None, kIdAtom, uri);
|
||||
NS_ASSERTION(NS_SUCCEEDED(rv), "severe error retrieving attribute");
|
||||
if (NS_FAILED(rv)) return rv;
|
||||
|
||||
if (rv == NS_CONTENT_ATTR_HAS_VALUE) {
|
||||
// We'll use rdf_MakeAbsolute() to translate this to a URL.
|
||||
nsCOMPtr<nsIDocument> doc;
|
||||
rv = aElement->GetDocument(*getter_AddRefs(doc));
|
||||
if (NS_FAILED(rv)) return rv;
|
||||
|
||||
nsCOMPtr<nsIURI> url = dont_AddRef( doc->GetDocumentURL() );
|
||||
NS_ASSERTION(url != nsnull, "element has no document");
|
||||
if (! url)
|
||||
return NS_ERROR_UNEXPECTED;
|
||||
|
||||
rv = rdf_MakeAbsoluteURI(url, uri);
|
||||
if (NS_FAILED(rv)) return rv;
|
||||
|
||||
rv = gRDF->GetUnicodeResource(uri.GetUnicode(), aResult);
|
||||
}
|
||||
else {
|
||||
rv = GetElementResource(aElement, aResult);
|
||||
}
|
||||
|
||||
return rv;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/*
|
||||
Note: this routine is similiar, yet distinctly different from, nsBookmarksService::GetTextForNode
|
||||
*/
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsXULContentUtils::GetTextForNode(nsIRDFNode* aNode, nsString& aResult)
|
||||
{
|
||||
if (! aNode) {
|
||||
aResult.Truncate();
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
nsresult rv;
|
||||
|
||||
// Literals are the most common, so try these first.
|
||||
nsCOMPtr<nsIRDFLiteral> literal = do_QueryInterface(aNode);
|
||||
if (literal) {
|
||||
const PRUnichar* p;
|
||||
rv = literal->GetValueConst(&p);
|
||||
if (NS_FAILED(rv)) return rv;
|
||||
|
||||
aResult = p;
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
nsCOMPtr<nsIRDFDate> dateLiteral = do_QueryInterface(aNode);
|
||||
if (dateLiteral) {
|
||||
PRInt64 value;
|
||||
rv = dateLiteral->GetValue(&value);
|
||||
if (NS_FAILED(rv)) return rv;
|
||||
|
||||
rv = gFormat->FormatPRTime(nsnull /* nsILocale* locale */,
|
||||
kDateFormatShort,
|
||||
kTimeFormatSeconds,
|
||||
PRTime(value),
|
||||
aResult);
|
||||
|
||||
if (NS_FAILED(rv)) return rv;
|
||||
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
nsCOMPtr<nsIRDFInt> intLiteral = do_QueryInterface(aNode);
|
||||
if (intLiteral) {
|
||||
PRInt32 value;
|
||||
rv = intLiteral->GetValue(&value);
|
||||
if (NS_FAILED(rv)) return rv;
|
||||
|
||||
aResult.Truncate();
|
||||
aResult.Append(value, 10);
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
||||
nsCOMPtr<nsIRDFResource> resource = do_QueryInterface(aNode);
|
||||
if (resource) {
|
||||
const char* p;
|
||||
rv = resource->GetValueConst(&p);
|
||||
if (NS_FAILED(rv)) return rv;
|
||||
aResult = p;
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_ERROR("not a resource or a literal");
|
||||
return NS_ERROR_UNEXPECTED;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsXULContentUtils::GetElementLogString(nsIContent* aElement, nsString& aResult)
|
||||
{
|
||||
nsresult rv;
|
||||
|
||||
aResult = '<';
|
||||
|
||||
nsCOMPtr<nsINameSpace> ns;
|
||||
|
||||
PRInt32 elementNameSpaceID;
|
||||
rv = aElement->GetNameSpaceID(elementNameSpaceID);
|
||||
if (NS_FAILED(rv)) return rv;
|
||||
|
||||
if (kNameSpaceID_HTML == elementNameSpaceID) {
|
||||
aResult.Append("html:");
|
||||
}
|
||||
else {
|
||||
nsCOMPtr<nsIXMLContent> xml( do_QueryInterface(aElement) );
|
||||
NS_ASSERTION(xml != nsnull, "not an XML or HTML element");
|
||||
if (! xml) return NS_ERROR_UNEXPECTED;
|
||||
|
||||
rv = xml->GetContainingNameSpace(*getter_AddRefs(ns));
|
||||
if (NS_FAILED(rv)) return rv;
|
||||
|
||||
nsCOMPtr<nsIAtom> prefix;
|
||||
rv = ns->FindNameSpacePrefix(elementNameSpaceID, *getter_AddRefs(prefix));
|
||||
if (NS_SUCCEEDED(rv) && (prefix != nsnull)) {
|
||||
nsAutoString prefixStr;
|
||||
prefix->ToString(prefixStr);
|
||||
if (prefixStr.Length()) {
|
||||
const PRUnichar *unicodeString;
|
||||
prefix->GetUnicode(&unicodeString);
|
||||
aResult.Append(unicodeString);
|
||||
aResult.Append(':');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
nsCOMPtr<nsIAtom> tag;
|
||||
rv = aElement->GetTag(*getter_AddRefs(tag));
|
||||
if (NS_FAILED(rv)) return rv;
|
||||
|
||||
const PRUnichar *unicodeString;
|
||||
tag->GetUnicode(&unicodeString);
|
||||
aResult.Append(unicodeString);
|
||||
|
||||
PRInt32 count;
|
||||
rv = aElement->GetAttributeCount(count);
|
||||
if (NS_FAILED(rv)) return rv;
|
||||
|
||||
for (PRInt32 i = 0; i < count; ++i) {
|
||||
aResult.Append(' ');
|
||||
|
||||
PRInt32 nameSpaceID;
|
||||
nsCOMPtr<nsIAtom> name;
|
||||
rv = aElement->GetAttributeNameAt(i, nameSpaceID, *getter_AddRefs(name));
|
||||
if (NS_FAILED(rv)) return rv;
|
||||
|
||||
nsAutoString attr;
|
||||
nsXULContentUtils::GetAttributeLogString(aElement, nameSpaceID, name, attr);
|
||||
|
||||
aResult.Append(attr);
|
||||
aResult.Append("=\"");
|
||||
|
||||
nsAutoString value;
|
||||
rv = aElement->GetAttribute(nameSpaceID, name, value);
|
||||
if (NS_FAILED(rv)) return rv;
|
||||
|
||||
aResult.Append(value);
|
||||
aResult.Append("\"");
|
||||
}
|
||||
|
||||
aResult.Append('>');
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsXULContentUtils::GetAttributeLogString(nsIContent* aElement, PRInt32 aNameSpaceID, nsIAtom* aTag, nsString& aResult)
|
||||
{
|
||||
nsresult rv;
|
||||
|
||||
PRInt32 elementNameSpaceID;
|
||||
rv = aElement->GetNameSpaceID(elementNameSpaceID);
|
||||
if (NS_FAILED(rv)) return rv;
|
||||
|
||||
if ((kNameSpaceID_HTML == elementNameSpaceID) ||
|
||||
(kNameSpaceID_None == aNameSpaceID)) {
|
||||
aResult.Truncate();
|
||||
}
|
||||
else {
|
||||
// we may have a namespace prefix on the attribute
|
||||
nsCOMPtr<nsIXMLContent> xml( do_QueryInterface(aElement) );
|
||||
NS_ASSERTION(xml != nsnull, "not an XML or HTML element");
|
||||
if (! xml) return NS_ERROR_UNEXPECTED;
|
||||
|
||||
nsCOMPtr<nsINameSpace> ns;
|
||||
rv = xml->GetContainingNameSpace(*getter_AddRefs(ns));
|
||||
if (NS_FAILED(rv)) return rv;
|
||||
|
||||
nsCOMPtr<nsIAtom> prefix;
|
||||
rv = ns->FindNameSpacePrefix(aNameSpaceID, *getter_AddRefs(prefix));
|
||||
if (NS_SUCCEEDED(rv) && (prefix != nsnull)) {
|
||||
nsAutoString prefixStr;
|
||||
prefix->ToString(prefixStr);
|
||||
if (prefixStr.Length()) {
|
||||
const PRUnichar *unicodeString;
|
||||
prefix->GetUnicode(&unicodeString);
|
||||
aResult.Append(unicodeString);
|
||||
aResult.Append(':');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
const PRUnichar *unicodeString;
|
||||
aTag->GetUnicode(&unicodeString);
|
||||
aResult.Append(unicodeString);
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsXULContentUtils::MakeElementURI(nsIDocument* aDocument, const nsString& aElementID, nsCString& aURI)
|
||||
{
|
||||
// Convert an element's ID to a URI that can be used to refer to
|
||||
// the element in the XUL graph.
|
||||
|
||||
if (aElementID.FindChar(':') > 0) {
|
||||
// Assume it's absolute already. Use as is.
|
||||
aURI = aElementID;
|
||||
}
|
||||
else {
|
||||
nsresult rv;
|
||||
|
||||
nsCOMPtr<nsIURI> docURL;
|
||||
rv = aDocument->GetBaseURL(*getter_AddRefs(docURL));
|
||||
if (NS_FAILED(rv)) return rv;
|
||||
|
||||
// XXX Urgh. This is so broken; I'd really just like to use
|
||||
// NS_MakeAbsolueURI(). Unfortunatly, doing that breaks
|
||||
// MakeElementID in some cases that I haven't yet been able to
|
||||
// figure out.
|
||||
#define USE_BROKEN_RELATIVE_PARSING
|
||||
#ifdef USE_BROKEN_RELATIVE_PARSING
|
||||
nsXPIDLCString spec;
|
||||
docURL->GetSpec(getter_Copies(spec));
|
||||
if (! spec)
|
||||
return NS_ERROR_FAILURE;
|
||||
|
||||
aURI = spec;
|
||||
|
||||
if (aElementID.First() != '#') {
|
||||
aURI.Append('#');
|
||||
}
|
||||
aURI.Append(nsCAutoString(aElementID));
|
||||
#else
|
||||
nsXPIDLCString spec;
|
||||
rv = NS_MakeAbsoluteURI(nsCAutoString(aElementID), docURL, getter_Copies(spec));
|
||||
if (NS_SUCCEEDED(rv)) {
|
||||
aURI = spec;
|
||||
}
|
||||
else {
|
||||
NS_WARNING("MakeElementURI: NS_MakeAbsoluteURI failed");
|
||||
aURI = aElementID;
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsXULContentUtils::MakeElementResource(nsIDocument* aDocument, const nsString& aID, nsIRDFResource** aResult)
|
||||
{
|
||||
nsresult rv;
|
||||
|
||||
char buf[256];
|
||||
nsCAutoString uri(CBufDescriptor(buf, PR_TRUE, sizeof(buf), 0));
|
||||
rv = MakeElementURI(aDocument, aID, uri);
|
||||
if (NS_FAILED(rv)) return rv;
|
||||
|
||||
rv = gRDF->GetResource(uri, aResult);
|
||||
NS_ASSERTION(NS_SUCCEEDED(rv), "unable to create resource");
|
||||
if (NS_FAILED(rv)) return rv;
|
||||
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsXULContentUtils::MakeElementID(nsIDocument* aDocument, const nsString& aURI, nsString& aElementID)
|
||||
{
|
||||
// Convert a URI into an element ID that can be accessed from the
|
||||
// DOM APIs.
|
||||
nsresult rv;
|
||||
|
||||
nsCOMPtr<nsIURI> docURL;
|
||||
rv = aDocument->GetBaseURL(*getter_AddRefs(docURL));
|
||||
if (NS_FAILED(rv)) return rv;
|
||||
|
||||
nsXPIDLCString spec;
|
||||
docURL->GetSpec(getter_Copies(spec));
|
||||
if (! spec)
|
||||
return NS_ERROR_FAILURE;
|
||||
|
||||
if (aURI.Find(spec) == 0) {
|
||||
#ifdef USE_BROKEN_RELATIVE_PARSING
|
||||
static const PRInt32 kFudge = 1; // XXX assume '#'
|
||||
#else
|
||||
static const PRInt32 kFudge = 0;
|
||||
#endif
|
||||
PRInt32 len = PL_strlen(spec);
|
||||
aURI.Right(aElementID, aURI.Length() - (len + kFudge));
|
||||
}
|
||||
else {
|
||||
aElementID = aURI;
|
||||
}
|
||||
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP_(PRBool)
|
||||
nsXULContentUtils::IsContainedBy(nsIContent* aElement, nsIContent* aContainer)
|
||||
{
|
||||
nsCOMPtr<nsIContent> element( dont_QueryInterface(aElement) );
|
||||
while (element) {
|
||||
nsresult rv;
|
||||
|
||||
nsCOMPtr<nsIContent> parent;
|
||||
rv = element->GetParent(*getter_AddRefs(parent));
|
||||
if (NS_FAILED(rv)) return PR_FALSE;
|
||||
|
||||
if (parent.get() == aContainer)
|
||||
return PR_TRUE;
|
||||
|
||||
element = parent;
|
||||
}
|
||||
|
||||
return PR_FALSE;
|
||||
}
|
||||
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsXULContentUtils::GetResource(PRInt32 aNameSpaceID, nsIAtom* aAttribute, nsIRDFResource** aResult)
|
||||
{
|
||||
// construct a fully-qualified URI from the namespace/tag pair.
|
||||
NS_PRECONDITION(aAttribute != nsnull, "null ptr");
|
||||
if (! aAttribute)
|
||||
return NS_ERROR_NULL_POINTER;
|
||||
|
||||
nsresult rv;
|
||||
|
||||
nsAutoString attr;
|
||||
rv = aAttribute->ToString(attr);
|
||||
if (NS_FAILED(rv)) return rv;
|
||||
|
||||
return GetResource(aNameSpaceID, attr, aResult);
|
||||
}
|
||||
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsXULContentUtils::GetResource(PRInt32 aNameSpaceID, const nsString& aAttribute, nsIRDFResource** aResult)
|
||||
{
|
||||
// construct a fully-qualified URI from the namespace/tag pair.
|
||||
|
||||
// XXX should we allow nodes with no namespace???
|
||||
//NS_PRECONDITION(aNameSpaceID != kNameSpaceID_Unknown, "no namespace");
|
||||
//if (aNameSpaceID == kNameSpaceID_Unknown)
|
||||
// return NS_ERROR_UNEXPECTED;
|
||||
|
||||
nsresult rv;
|
||||
|
||||
PRUnichar buf[256];
|
||||
nsAutoString uri(CBufDescriptor(buf, PR_TRUE, sizeof(buf) / sizeof(PRUnichar), 0));
|
||||
if (aNameSpaceID != kNameSpaceID_Unknown && aNameSpaceID != kNameSpaceID_None) {
|
||||
rv = gNameSpaceManager->GetNameSpaceURI(aNameSpaceID, uri);
|
||||
// XXX ignore failure; treat as "no namespace"
|
||||
}
|
||||
|
||||
// XXX check to see if we need to insert a '/' or a '#'. Oy.
|
||||
if (uri.Length() > 0 && uri.Last() != '#' && uri.Last() != '/' && aAttribute.First() != '#')
|
||||
uri.Append('#');
|
||||
|
||||
uri.Append(aAttribute);
|
||||
|
||||
rv = gRDF->GetUnicodeResource(uri.GetUnicode(), aResult);
|
||||
NS_ASSERTION(NS_SUCCEEDED(rv), "unable to get resource");
|
||||
if (NS_FAILED(rv)) return rv;
|
||||
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsXULContentUtils::SetCommandUpdater(nsIDocument* aDocument, nsIContent* aElement)
|
||||
{
|
||||
// Deal with setting up a 'commandupdater'. Pulls the 'events' and
|
||||
// 'targets' attributes off of aElement, and adds it to the
|
||||
// document's command dispatcher.
|
||||
NS_PRECONDITION(aDocument != nsnull, "null ptr");
|
||||
if (! aDocument)
|
||||
return NS_ERROR_NULL_POINTER;
|
||||
|
||||
NS_PRECONDITION(aElement != nsnull, "null ptr");
|
||||
if (! aElement)
|
||||
return NS_ERROR_NULL_POINTER;
|
||||
|
||||
nsresult rv;
|
||||
|
||||
nsCOMPtr<nsIDOMXULDocument> xuldoc = do_QueryInterface(aDocument);
|
||||
NS_ASSERTION(xuldoc != nsnull, "not a xul document");
|
||||
if (! xuldoc)
|
||||
return NS_ERROR_UNEXPECTED;
|
||||
|
||||
nsCOMPtr<nsIDOMXULCommandDispatcher> dispatcher;
|
||||
rv = xuldoc->GetCommandDispatcher(getter_AddRefs(dispatcher));
|
||||
NS_ASSERTION(NS_SUCCEEDED(rv), "unable to get dispatcher");
|
||||
if (NS_FAILED(rv)) return rv;
|
||||
|
||||
NS_ASSERTION(dispatcher != nsnull, "no dispatcher");
|
||||
if (! dispatcher)
|
||||
return NS_ERROR_UNEXPECTED;
|
||||
|
||||
nsAutoString events;
|
||||
rv = aElement->GetAttribute(kNameSpaceID_None, kEventsAtom, events);
|
||||
|
||||
if (rv != NS_CONTENT_ATTR_HAS_VALUE)
|
||||
events = "*";
|
||||
|
||||
nsAutoString targets;
|
||||
rv = aElement->GetAttribute(kNameSpaceID_None, kTargetsAtom, targets);
|
||||
|
||||
if (rv != NS_CONTENT_ATTR_HAS_VALUE)
|
||||
targets = "*";
|
||||
|
||||
nsCOMPtr<nsIDOMElement> domelement = do_QueryInterface(aElement);
|
||||
NS_ASSERTION(domelement != nsnull, "not a DOM element");
|
||||
if (! domelement)
|
||||
return NS_ERROR_UNEXPECTED;
|
||||
|
||||
rv = dispatcher->AddCommandUpdater(domelement, events, targets);
|
||||
if (NS_FAILED(rv)) return rv;
|
||||
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsXULContentUtils::GetEventHandlerIID(nsIAtom* aName, nsIID* aIID, PRBool* aFound)
|
||||
{
|
||||
*aFound = PR_FALSE;
|
||||
|
||||
EventHandlerMapEntry* entry = kEventHandlerMap;
|
||||
while (entry->mAttributeAtom) {
|
||||
if (entry->mAttributeAtom == aName) {
|
||||
*aIID = *entry->mHandlerIID;
|
||||
*aFound = PR_TRUE;
|
||||
break;
|
||||
}
|
||||
++entry;
|
||||
}
|
||||
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
||||
NS_IMETHODIMP_(PRBool)
|
||||
nsXULContentUtils::UseXULCache()
|
||||
{
|
||||
return !gDisableXULCache;
|
||||
}
|
||||
|
||||
|
||||
//----------------------------------------------------------------------
|
||||
|
||||
int
|
||||
nsXULContentUtils::DisableXULCacheChangedCallback(const char* aPref, void* aClosure)
|
||||
{
|
||||
nsresult rv;
|
||||
|
||||
NS_WITH_SERVICE(nsIPref, prefs, NS_PREF_PROGID, &rv);
|
||||
if (NS_SUCCEEDED(rv)) {
|
||||
prefs->GetBoolPref(kDisableXULCachePref, &gDisableXULCache);
|
||||
}
|
||||
|
||||
// Flush the cache, regardless
|
||||
NS_WITH_SERVICE(nsIXULPrototypeCache, cache, kXULPrototypeCacheCID, &rv);
|
||||
if (NS_SUCCEEDED(rv)) {
|
||||
cache->Flush();
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
1674
mozilla/content/xul/templates/src/nsXULSortService.cpp
Normal file
1674
mozilla/content/xul/templates/src/nsXULSortService.cpp
Normal file
File diff suppressed because it is too large
Load Diff
3066
mozilla/content/xul/templates/src/nsXULTemplateBuilder.cpp
Normal file
3066
mozilla/content/xul/templates/src/nsXULTemplateBuilder.cpp
Normal file
File diff suppressed because it is too large
Load Diff
37
mozilla/dom/public/MANIFEST
Normal file
37
mozilla/dom/public/MANIFEST
Normal file
@@ -0,0 +1,37 @@
|
||||
# The contents of this file are subject to the Netscape Public
|
||||
# License Version 1.1 (the "License"); you may not use this file
|
||||
# except in compliance with the License. You may obtain a copy of
|
||||
# the License at http://www.mozilla.org/NPL/
|
||||
#
|
||||
# Software distributed under the License is distributed on an "AS
|
||||
# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
||||
# implied. See the License for the specific language governing
|
||||
# rights and limitations under the License.
|
||||
#
|
||||
# The Original Code is mozilla.org code.
|
||||
#
|
||||
# The Initial Developer of the Original Code is Netscape
|
||||
# Communications Corporation. Portions created by Netscape are
|
||||
# Copyright (C) 1998 Netscape Communications Corporation. All
|
||||
# Rights Reserved.
|
||||
#
|
||||
# Contributor(s):
|
||||
#
|
||||
# This is a list of local files which get copied to the mozilla:dist:dom directory
|
||||
#
|
||||
|
||||
nsIScriptContext.h
|
||||
nsIJSScriptObject.h
|
||||
nsIJSNativeInitializer.h
|
||||
nsIScriptObjectOwner.h
|
||||
nsIScriptContextOwner.h
|
||||
nsIScriptGlobalObject.h
|
||||
nsIScriptEventListener.h
|
||||
nsIDOMScriptObjectFactory.h
|
||||
nsIDOMNativeObjectRegistry.h
|
||||
nsDOMCID.h
|
||||
nsIScriptGlobalObjectData.h
|
||||
nsIScriptNameSetRegistry.h
|
||||
nsIScriptExternalNameSet.h
|
||||
nsIScriptNameSpaceManager.h
|
||||
nsDOMError.h
|
||||
1
mozilla/dom/public/MANIFEST_IDL
Normal file
1
mozilla/dom/public/MANIFEST_IDL
Normal file
@@ -0,0 +1 @@
|
||||
domstubs.idl
|
||||
56
mozilla/dom/public/Makefile.in
Normal file
56
mozilla/dom/public/Makefile.in
Normal file
@@ -0,0 +1,56 @@
|
||||
#
|
||||
# The contents of this file are subject to the Netscape Public
|
||||
# License Version 1.1 (the "License"); you may not use this file
|
||||
# except in compliance with the License. You may obtain a copy of
|
||||
# the License at http://www.mozilla.org/NPL/
|
||||
#
|
||||
# Software distributed under the License is distributed on an "AS
|
||||
# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
||||
# implied. See the License for the specific language governing
|
||||
# rights and limitations under the License.
|
||||
#
|
||||
# The Original Code is mozilla.org code.
|
||||
#
|
||||
# The Initial Developer of the Original Code is Netscape
|
||||
# Communications Corporation. Portions created by Netscape are
|
||||
# Copyright (C) 1998 Netscape Communications Corporation. All
|
||||
# Rights Reserved.
|
||||
#
|
||||
# Contributor(s):
|
||||
#
|
||||
|
||||
DEPTH = ../..
|
||||
topsrcdir = @top_srcdir@
|
||||
srcdir = @srcdir@
|
||||
VPATH = @srcdir@
|
||||
|
||||
include $(DEPTH)/config/autoconf.mk
|
||||
|
||||
MODULE = dom
|
||||
|
||||
DIRS = base coreDom coreEvents range events html css
|
||||
|
||||
XPIDLSRCS = domstubs.idl
|
||||
|
||||
EXPORTS = \
|
||||
nsIScriptContext.h \
|
||||
nsIScriptContextOwner.h \
|
||||
nsIJSScriptObject.h \
|
||||
nsIJSNativeInitializer.h \
|
||||
nsIScriptEventListener.h \
|
||||
nsIScriptObjectOwner.h \
|
||||
nsIScriptGlobalObject.h \
|
||||
nsIDOMScriptObjectFactory.h \
|
||||
nsIDOMNativeObjectRegistry.h \
|
||||
nsDOMCID.h \
|
||||
nsIScriptGlobalObjectData.h \
|
||||
nsIScriptNameSetRegistry.h \
|
||||
nsIScriptExternalNameSet.h \
|
||||
nsIScriptNameSpaceManager.h \
|
||||
nsDOMError.h \
|
||||
$(NULL)
|
||||
|
||||
EXPORTS := $(addprefix $(srcdir)/, $(EXPORTS))
|
||||
|
||||
include $(topsrcdir)/config/rules.mk
|
||||
|
||||
37
mozilla/dom/public/base/MANIFEST
Normal file
37
mozilla/dom/public/base/MANIFEST
Normal file
@@ -0,0 +1,37 @@
|
||||
# The contents of this file are subject to the Netscape Public
|
||||
# License Version 1.1 (the "License"); you may not use this file
|
||||
# except in compliance with the License. You may obtain a copy of
|
||||
# the License at http://www.mozilla.org/NPL/
|
||||
#
|
||||
# Software distributed under the License is distributed on an "AS
|
||||
# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
||||
# implied. See the License for the specific language governing
|
||||
# rights and limitations under the License.
|
||||
#
|
||||
# The Original Code is mozilla.org code.
|
||||
#
|
||||
# The Initial Developer of the Original Code is Netscape
|
||||
# Communications Corporation. Portions created by Netscape are
|
||||
# Copyright (C) 1998 Netscape Communications Corporation. All
|
||||
# Rights Reserved.
|
||||
#
|
||||
# Contributor(s):
|
||||
#
|
||||
# This is a list of local files which get copied to the mozilla:dist:dom directory
|
||||
#
|
||||
|
||||
nsIDOMWindow.h
|
||||
nsIDOMLocation.h
|
||||
nsIDOMNSLocation.h
|
||||
nsIDOMNavigator.h
|
||||
nsIDOMWindowCollection.h
|
||||
nsIDOMScreen.h
|
||||
nsIDOMHistory.h
|
||||
nsIDOMMimeType.h
|
||||
nsIDOMMimeTypeArray.h
|
||||
nsIDOMPlugin.h
|
||||
nsIDOMPluginArray.h
|
||||
nsIDOMBarProp.h
|
||||
nsIDOMDOMException.h
|
||||
nsPIDOMWindow.h
|
||||
nsIDOMAbstractView.h
|
||||
52
mozilla/dom/public/base/Makefile.in
Normal file
52
mozilla/dom/public/base/Makefile.in
Normal file
@@ -0,0 +1,52 @@
|
||||
#
|
||||
# The contents of this file are subject to the Netscape Public
|
||||
# License Version 1.1 (the "License"); you may not use this file
|
||||
# except in compliance with the License. You may obtain a copy of
|
||||
# the License at http://www.mozilla.org/NPL/
|
||||
#
|
||||
# Software distributed under the License is distributed on an "AS
|
||||
# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
||||
# implied. See the License for the specific language governing
|
||||
# rights and limitations under the License.
|
||||
#
|
||||
# The Original Code is mozilla.org code.
|
||||
#
|
||||
# The Initial Developer of the Original Code is Netscape
|
||||
# Communications Corporation. Portions created by Netscape are
|
||||
# Copyright (C) 1998 Netscape Communications Corporation. All
|
||||
# Rights Reserved.
|
||||
#
|
||||
# Contributor(s):
|
||||
#
|
||||
|
||||
DEPTH = ../../..
|
||||
topsrcdir = @top_srcdir@
|
||||
srcdir = @srcdir@
|
||||
VPATH = @srcdir@
|
||||
|
||||
include $(DEPTH)/config/autoconf.mk
|
||||
|
||||
MODULE = dom
|
||||
|
||||
EXPORTS = \
|
||||
nsIDOMWindow.h \
|
||||
nsIDOMNavigator.h \
|
||||
nsIDOMLocation.h \
|
||||
nsIDOMNSLocation.h \
|
||||
nsIDOMWindowCollection.h \
|
||||
nsIDOMScreen.h \
|
||||
nsIDOMHistory.h \
|
||||
nsIDOMMimeType.h \
|
||||
nsIDOMMimeTypeArray.h \
|
||||
nsIDOMPlugin.h \
|
||||
nsIDOMPluginArray.h \
|
||||
nsIDOMBarProp.h \
|
||||
nsIDOMDOMException.h \
|
||||
nsPIDOMWindow.h \
|
||||
nsIDOMAbstractView.h \
|
||||
$(NULL)
|
||||
|
||||
EXPORTS := $(addprefix $(srcdir)/, $(EXPORTS))
|
||||
|
||||
include $(topsrcdir)/config/rules.mk
|
||||
|
||||
35
mozilla/dom/public/base/makefile.win
Normal file
35
mozilla/dom/public/base/makefile.win
Normal file
@@ -0,0 +1,35 @@
|
||||
#!nmake
|
||||
#
|
||||
# The contents of this file are subject to the Netscape Public
|
||||
# License Version 1.1 (the "License"); you may not use this file
|
||||
# except in compliance with the License. You may obtain a copy of
|
||||
# the License at http://www.mozilla.org/NPL/
|
||||
#
|
||||
# Software distributed under the License is distributed on an "AS
|
||||
# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
||||
# implied. See the License for the specific language governing
|
||||
# rights and limitations under the License.
|
||||
#
|
||||
# The Original Code is mozilla.org code.
|
||||
#
|
||||
# The Initial Developer of the Original Code is Netscape
|
||||
# Communications Corporation. Portions created by Netscape are
|
||||
# Copyright (C) 1998 Netscape Communications Corporation. All
|
||||
# Rights Reserved.
|
||||
#
|
||||
# Contributor(s):
|
||||
|
||||
DEPTH=..\..\..
|
||||
|
||||
|
||||
DEFINES=-D_IMPL_NS_DOM
|
||||
EXPORTS=nsIDOMWindow.h nsIDOMNavigator.h nsIDOMLocation.h nsIDOMNSLocation.h \
|
||||
nsIDOMWindowCollection.h nsIDOMScreen.h nsIDOMHistory.h \
|
||||
nsIDOMMimeType.h nsIDOMMimeTypeArray.h \
|
||||
nsIDOMPlugin.h nsIDOMPluginArray.h nsIDOMBarProp.h \
|
||||
nsIDOMDOMException.h nsPIDOMWindow.h nsIDOMAbstractView.h
|
||||
|
||||
MODULE=dom
|
||||
|
||||
include <$(DEPTH)\config\rules.mak>
|
||||
|
||||
@@ -19,32 +19,36 @@
|
||||
*
|
||||
* Contributor(s):
|
||||
*/
|
||||
/* AUTO-GENERATED. DO NOT EDIT!!! */
|
||||
|
||||
#ifndef nsIFontRetrieverService_h__
|
||||
#define nsIFontRetrieverService_h__
|
||||
#ifndef nsIDOMAbstractView_h__
|
||||
#define nsIDOMAbstractView_h__
|
||||
|
||||
#include "nsISupports.h"
|
||||
#include "nsString.h"
|
||||
#include "nsIScriptContext.h"
|
||||
|
||||
class nsIFontNameIterator;
|
||||
class nsIFontSizeIterator;
|
||||
class nsString;
|
||||
class nsIDOMDocument;
|
||||
|
||||
// {285EF9B2-094A-11d3-9A87-0050046CDA96}
|
||||
#define NS_IFONTRETRIEVERSERVICE_IID \
|
||||
{ 0x285ef9b2, 0x94a, 0x11d3, { 0x9a, 0x87, 0x0, 0x50, 0x4, 0x6c, 0xda, 0x96 } };
|
||||
#define NS_IDOMABSTRACTVIEW_IID \
|
||||
{ 0xf51ebade, 0x8b1a, 0x11d3, \
|
||||
{ 0xaa, 0xe7, 0x00, 0x10, 0x83, 0x01, 0x23, 0xb4 } }
|
||||
|
||||
class nsIFontRetrieverService : public nsISupports
|
||||
// This (singleton) service exists soley as a factory to manufacture iterators
|
||||
{
|
||||
public:
|
||||
NS_DEFINE_STATIC_IID_ACCESSOR(NS_IFONTRETRIEVERSERVICE_IID)
|
||||
class nsIDOMAbstractView : public nsISupports {
|
||||
public:
|
||||
static const nsIID& GetIID() { static nsIID iid = NS_IDOMABSTRACTVIEW_IID; return iid; }
|
||||
|
||||
NS_IMETHOD CreateFontNameIterator( nsIFontNameIterator** aIterator ) = 0;
|
||||
|
||||
NS_IMETHOD CreateFontSizeIterator( const nsString &aFontName, nsIFontSizeIterator** aIterator ) = 0;
|
||||
|
||||
NS_IMETHOD IsFontScalable( const nsString &aFontName, PRBool* aResult ) = 0;
|
||||
NS_IMETHOD GetDocument(nsIDOMDocument** aDocument)=0;
|
||||
};
|
||||
|
||||
|
||||
#endif
|
||||
#define NS_DECL_IDOMABSTRACTVIEW \
|
||||
NS_IMETHOD GetDocument(nsIDOMDocument** aDocument); \
|
||||
|
||||
|
||||
|
||||
#define NS_FORWARD_IDOMABSTRACTVIEW(_to) \
|
||||
NS_IMETHOD GetDocument(nsIDOMDocument** aDocument) { return _to GetDocument(aDocument); } \
|
||||
|
||||
|
||||
#endif // nsIDOMAbstractView_h__
|
||||
60
mozilla/dom/public/base/nsIDOMBarProp.h
Normal file
60
mozilla/dom/public/base/nsIDOMBarProp.h
Normal file
@@ -0,0 +1,60 @@
|
||||
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
|
||||
*
|
||||
* The contents of this file are subject to the Netscape Public
|
||||
* License Version 1.1 (the "License"); you may not use this file
|
||||
* except in compliance with the License. You may obtain a copy of
|
||||
* the License at http://www.mozilla.org/NPL/
|
||||
*
|
||||
* Software distributed under the License is distributed on an "AS
|
||||
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
||||
* implied. See the License for the specific language governing
|
||||
* rights and limitations under the License.
|
||||
*
|
||||
* The Original Code is mozilla.org code.
|
||||
*
|
||||
* The Initial Developer of the Original Code is Netscape
|
||||
* Communications Corporation. Portions created by Netscape are
|
||||
* Copyright (C) 1998 Netscape Communications Corporation. All
|
||||
* Rights Reserved.
|
||||
*
|
||||
* Contributor(s):
|
||||
*/
|
||||
/* AUTO-GENERATED. DO NOT EDIT!!! */
|
||||
|
||||
#ifndef nsIDOMBarProp_h__
|
||||
#define nsIDOMBarProp_h__
|
||||
|
||||
#include "nsISupports.h"
|
||||
#include "nsString.h"
|
||||
#include "nsIScriptContext.h"
|
||||
|
||||
|
||||
#define NS_IDOMBARPROP_IID \
|
||||
{ 0x9eb2c150, 0x1d56, 0x11d3, \
|
||||
{ 0x82, 0x21, 0x00, 0x60, 0x08, 0x3a, 0x0b, 0xcf } }
|
||||
|
||||
class nsIDOMBarProp : public nsISupports {
|
||||
public:
|
||||
static const nsIID& GetIID() { static nsIID iid = NS_IDOMBARPROP_IID; return iid; }
|
||||
|
||||
NS_IMETHOD GetVisible(PRBool* aVisible)=0;
|
||||
NS_IMETHOD SetVisible(PRBool aVisible)=0;
|
||||
};
|
||||
|
||||
|
||||
#define NS_DECL_IDOMBARPROP \
|
||||
NS_IMETHOD GetVisible(PRBool* aVisible); \
|
||||
NS_IMETHOD SetVisible(PRBool aVisible); \
|
||||
|
||||
|
||||
|
||||
#define NS_FORWARD_IDOMBARPROP(_to) \
|
||||
NS_IMETHOD GetVisible(PRBool* aVisible) { return _to GetVisible(aVisible); } \
|
||||
NS_IMETHOD SetVisible(PRBool aVisible) { return _to SetVisible(aVisible); } \
|
||||
|
||||
|
||||
extern "C" NS_DOM nsresult NS_InitBarPropClass(nsIScriptContext *aContext, void **aPrototype);
|
||||
|
||||
extern "C" NS_DOM nsresult NS_NewScriptBarProp(nsIScriptContext *aContext, nsISupports *aSupports, nsISupports *aParent, void **aReturn);
|
||||
|
||||
#endif // nsIDOMBarProp_h__
|
||||
85
mozilla/dom/public/base/nsIDOMDOMException.h
Normal file
85
mozilla/dom/public/base/nsIDOMDOMException.h
Normal file
@@ -0,0 +1,85 @@
|
||||
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
|
||||
*
|
||||
* The contents of this file are subject to the Netscape Public
|
||||
* License Version 1.1 (the "License"); you may not use this file
|
||||
* except in compliance with the License. You may obtain a copy of
|
||||
* the License at http://www.mozilla.org/NPL/
|
||||
*
|
||||
* Software distributed under the License is distributed on an "AS
|
||||
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
||||
* implied. See the License for the specific language governing
|
||||
* rights and limitations under the License.
|
||||
*
|
||||
* The Original Code is mozilla.org code.
|
||||
*
|
||||
* The Initial Developer of the Original Code is Netscape
|
||||
* Communications Corporation. Portions created by Netscape are
|
||||
* Copyright (C) 1998 Netscape Communications Corporation. All
|
||||
* Rights Reserved.
|
||||
*
|
||||
* Contributor(s):
|
||||
*/
|
||||
/* AUTO-GENERATED. DO NOT EDIT!!! */
|
||||
|
||||
#ifndef nsIDOMDOMException_h__
|
||||
#define nsIDOMDOMException_h__
|
||||
|
||||
#include "nsISupports.h"
|
||||
#include "nsString.h"
|
||||
#include "nsIScriptContext.h"
|
||||
|
||||
|
||||
#define NS_IDOMDOMEXCEPTION_IID \
|
||||
{ 0xa6cf910a, 0x15b3, 0x11d2, \
|
||||
{ 0x93, 0x2e, 0x00, 0x80, 0x5f, 0x8a, 0xdd, 0x32 } }
|
||||
|
||||
class nsIDOMDOMException : public nsISupports {
|
||||
public:
|
||||
static const nsIID& GetIID() { static nsIID iid = NS_IDOMDOMEXCEPTION_IID; return iid; }
|
||||
enum {
|
||||
INDEX_SIZE_ERR = 1,
|
||||
DOMSTRING_SIZE_ERR = 2,
|
||||
HIERARCHY_REQUEST_ERR = 3,
|
||||
WRONG_DOCUMENT_ERR = 4,
|
||||
INVALID_CHARACTER_ERR = 5,
|
||||
NO_DATA_ALLOWED_ERR = 6,
|
||||
NO_MODIFICATION_ALLOWED_ERR = 7,
|
||||
NOT_FOUND_ERR = 8,
|
||||
NOT_SUPPORTED_ERR = 9,
|
||||
INUSE_ATTRIBUTE_ERR = 10
|
||||
};
|
||||
|
||||
NS_IMETHOD GetCode(PRUint32* aCode)=0;
|
||||
|
||||
NS_IMETHOD GetResult(PRUint32* aResult)=0;
|
||||
|
||||
NS_IMETHOD GetMessage(nsString& aMessage)=0;
|
||||
|
||||
NS_IMETHOD GetName(nsString& aName)=0;
|
||||
|
||||
NS_IMETHOD ToString(nsString& aReturn)=0;
|
||||
};
|
||||
|
||||
|
||||
#define NS_DECL_IDOMDOMEXCEPTION \
|
||||
NS_IMETHOD GetCode(PRUint32* aCode); \
|
||||
NS_IMETHOD GetResult(PRUint32* aResult); \
|
||||
NS_IMETHOD GetMessage(nsString& aMessage); \
|
||||
NS_IMETHOD GetName(nsString& aName); \
|
||||
NS_IMETHOD ToString(nsString& aReturn); \
|
||||
|
||||
|
||||
|
||||
#define NS_FORWARD_IDOMDOMEXCEPTION(_to) \
|
||||
NS_IMETHOD GetCode(PRUint32* aCode) { return _to GetCode(aCode); } \
|
||||
NS_IMETHOD GetResult(PRUint32* aResult) { return _to GetResult(aResult); } \
|
||||
NS_IMETHOD GetMessage(nsString& aMessage) { return _to GetMessage(aMessage); } \
|
||||
NS_IMETHOD GetName(nsString& aName) { return _to GetName(aName); } \
|
||||
NS_IMETHOD ToString(nsString& aReturn) { return _to ToString(aReturn); } \
|
||||
|
||||
|
||||
extern "C" NS_DOM nsresult NS_InitDOMExceptionClass(nsIScriptContext *aContext, void **aPrototype);
|
||||
|
||||
extern "C" NS_DOM nsresult NS_NewScriptDOMException(nsIScriptContext *aContext, nsISupports *aSupports, nsISupports *aParent, void **aReturn);
|
||||
|
||||
#endif // nsIDOMDOMException_h__
|
||||
82
mozilla/dom/public/base/nsIDOMHistory.h
Normal file
82
mozilla/dom/public/base/nsIDOMHistory.h
Normal file
@@ -0,0 +1,82 @@
|
||||
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
|
||||
*
|
||||
* The contents of this file are subject to the Netscape Public
|
||||
* License Version 1.1 (the "License"); you may not use this file
|
||||
* except in compliance with the License. You may obtain a copy of
|
||||
* the License at http://www.mozilla.org/NPL/
|
||||
*
|
||||
* Software distributed under the License is distributed on an "AS
|
||||
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
||||
* implied. See the License for the specific language governing
|
||||
* rights and limitations under the License.
|
||||
*
|
||||
* The Original Code is mozilla.org code.
|
||||
*
|
||||
* The Initial Developer of the Original Code is Netscape
|
||||
* Communications Corporation. Portions created by Netscape are
|
||||
* Copyright (C) 1998 Netscape Communications Corporation. All
|
||||
* Rights Reserved.
|
||||
*
|
||||
* Contributor(s):
|
||||
*/
|
||||
/* AUTO-GENERATED. DO NOT EDIT!!! */
|
||||
|
||||
#ifndef nsIDOMHistory_h__
|
||||
#define nsIDOMHistory_h__
|
||||
|
||||
#include "nsISupports.h"
|
||||
#include "nsString.h"
|
||||
#include "nsIScriptContext.h"
|
||||
#include "jsapi.h"
|
||||
|
||||
|
||||
#define NS_IDOMHISTORY_IID \
|
||||
{ 0x896d1d20, 0xb4c4, 0x11d2, \
|
||||
{ 0xbd, 0x93, 0x00, 0x80, 0x5f, 0x8a, 0xe3, 0xf4 } }
|
||||
|
||||
class nsIDOMHistory : public nsISupports {
|
||||
public:
|
||||
static const nsIID& GetIID() { static nsIID iid = NS_IDOMHISTORY_IID; return iid; }
|
||||
|
||||
NS_IMETHOD GetLength(PRInt32* aLength)=0;
|
||||
|
||||
NS_IMETHOD GetCurrent(nsString& aCurrent)=0;
|
||||
|
||||
NS_IMETHOD GetPrevious(nsString& aPrevious)=0;
|
||||
|
||||
NS_IMETHOD GetNext(nsString& aNext)=0;
|
||||
|
||||
NS_IMETHOD Back()=0;
|
||||
|
||||
NS_IMETHOD Forward()=0;
|
||||
|
||||
NS_IMETHOD Go(JSContext* cx, jsval* argv, PRUint32 argc)=0;
|
||||
};
|
||||
|
||||
|
||||
#define NS_DECL_IDOMHISTORY \
|
||||
NS_IMETHOD GetLength(PRInt32* aLength); \
|
||||
NS_IMETHOD GetCurrent(nsString& aCurrent); \
|
||||
NS_IMETHOD GetPrevious(nsString& aPrevious); \
|
||||
NS_IMETHOD GetNext(nsString& aNext); \
|
||||
NS_IMETHOD Back(); \
|
||||
NS_IMETHOD Forward(); \
|
||||
NS_IMETHOD Go(JSContext* cx, jsval* argv, PRUint32 argc); \
|
||||
|
||||
|
||||
|
||||
#define NS_FORWARD_IDOMHISTORY(_to) \
|
||||
NS_IMETHOD GetLength(PRInt32* aLength) { return _to GetLength(aLength); } \
|
||||
NS_IMETHOD GetCurrent(nsString& aCurrent) { return _to GetCurrent(aCurrent); } \
|
||||
NS_IMETHOD GetPrevious(nsString& aPrevious) { return _to GetPrevious(aPrevious); } \
|
||||
NS_IMETHOD GetNext(nsString& aNext) { return _to GetNext(aNext); } \
|
||||
NS_IMETHOD Back() { return _to Back(); } \
|
||||
NS_IMETHOD Forward() { return _to Forward(); } \
|
||||
NS_IMETHOD Go(JSContext* cx, jsval* argv, PRUint32 argc) { return _to Go(cx, argv, argc); } \
|
||||
|
||||
|
||||
extern "C" NS_DOM nsresult NS_InitHistoryClass(nsIScriptContext *aContext, void **aPrototype);
|
||||
|
||||
extern "C" NS_DOM nsresult NS_NewScriptHistory(nsIScriptContext *aContext, nsISupports *aSupports, nsISupports *aParent, void **aReturn);
|
||||
|
||||
#endif // nsIDOMHistory_h__
|
||||
121
mozilla/dom/public/base/nsIDOMLocation.h
Normal file
121
mozilla/dom/public/base/nsIDOMLocation.h
Normal file
@@ -0,0 +1,121 @@
|
||||
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
|
||||
*
|
||||
* The contents of this file are subject to the Netscape Public
|
||||
* License Version 1.1 (the "License"); you may not use this file
|
||||
* except in compliance with the License. You may obtain a copy of
|
||||
* the License at http://www.mozilla.org/NPL/
|
||||
*
|
||||
* Software distributed under the License is distributed on an "AS
|
||||
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
||||
* implied. See the License for the specific language governing
|
||||
* rights and limitations under the License.
|
||||
*
|
||||
* The Original Code is mozilla.org code.
|
||||
*
|
||||
* The Initial Developer of the Original Code is Netscape
|
||||
* Communications Corporation. Portions created by Netscape are
|
||||
* Copyright (C) 1998 Netscape Communications Corporation. All
|
||||
* Rights Reserved.
|
||||
*
|
||||
* Contributor(s):
|
||||
*/
|
||||
/* AUTO-GENERATED. DO NOT EDIT!!! */
|
||||
|
||||
#ifndef nsIDOMLocation_h__
|
||||
#define nsIDOMLocation_h__
|
||||
|
||||
#include "nsISupports.h"
|
||||
#include "nsString.h"
|
||||
#include "nsIScriptContext.h"
|
||||
|
||||
|
||||
#define NS_IDOMLOCATION_IID \
|
||||
{ 0xa6cf906d, 0x15b3, 0x11d2, \
|
||||
{ 0x93, 0x2e, 0x00, 0x80, 0x5f, 0x8a, 0xdd, 0x32 } }
|
||||
|
||||
class nsIDOMLocation : public nsISupports {
|
||||
public:
|
||||
static const nsIID& GetIID() { static nsIID iid = NS_IDOMLOCATION_IID; return iid; }
|
||||
|
||||
NS_IMETHOD GetHash(nsString& aHash)=0;
|
||||
NS_IMETHOD SetHash(const nsString& aHash)=0;
|
||||
|
||||
NS_IMETHOD GetHost(nsString& aHost)=0;
|
||||
NS_IMETHOD SetHost(const nsString& aHost)=0;
|
||||
|
||||
NS_IMETHOD GetHostname(nsString& aHostname)=0;
|
||||
NS_IMETHOD SetHostname(const nsString& aHostname)=0;
|
||||
|
||||
NS_IMETHOD GetHref(nsString& aHref)=0;
|
||||
NS_IMETHOD SetHref(const nsString& aHref)=0;
|
||||
|
||||
NS_IMETHOD GetPathname(nsString& aPathname)=0;
|
||||
NS_IMETHOD SetPathname(const nsString& aPathname)=0;
|
||||
|
||||
NS_IMETHOD GetPort(nsString& aPort)=0;
|
||||
NS_IMETHOD SetPort(const nsString& aPort)=0;
|
||||
|
||||
NS_IMETHOD GetProtocol(nsString& aProtocol)=0;
|
||||
NS_IMETHOD SetProtocol(const nsString& aProtocol)=0;
|
||||
|
||||
NS_IMETHOD GetSearch(nsString& aSearch)=0;
|
||||
NS_IMETHOD SetSearch(const nsString& aSearch)=0;
|
||||
|
||||
NS_IMETHOD Reload(PRBool aForceget)=0;
|
||||
|
||||
NS_IMETHOD Replace(const nsString& aUrl)=0;
|
||||
|
||||
NS_IMETHOD ToString(nsString& aReturn)=0;
|
||||
};
|
||||
|
||||
|
||||
#define NS_DECL_IDOMLOCATION \
|
||||
NS_IMETHOD GetHash(nsString& aHash); \
|
||||
NS_IMETHOD SetHash(const nsString& aHash); \
|
||||
NS_IMETHOD GetHost(nsString& aHost); \
|
||||
NS_IMETHOD SetHost(const nsString& aHost); \
|
||||
NS_IMETHOD GetHostname(nsString& aHostname); \
|
||||
NS_IMETHOD SetHostname(const nsString& aHostname); \
|
||||
NS_IMETHOD GetHref(nsString& aHref); \
|
||||
NS_IMETHOD SetHref(const nsString& aHref); \
|
||||
NS_IMETHOD GetPathname(nsString& aPathname); \
|
||||
NS_IMETHOD SetPathname(const nsString& aPathname); \
|
||||
NS_IMETHOD GetPort(nsString& aPort); \
|
||||
NS_IMETHOD SetPort(const nsString& aPort); \
|
||||
NS_IMETHOD GetProtocol(nsString& aProtocol); \
|
||||
NS_IMETHOD SetProtocol(const nsString& aProtocol); \
|
||||
NS_IMETHOD GetSearch(nsString& aSearch); \
|
||||
NS_IMETHOD SetSearch(const nsString& aSearch); \
|
||||
NS_IMETHOD Reload(PRBool aForceget); \
|
||||
NS_IMETHOD Replace(const nsString& aUrl); \
|
||||
NS_IMETHOD ToString(nsString& aReturn); \
|
||||
|
||||
|
||||
|
||||
#define NS_FORWARD_IDOMLOCATION(_to) \
|
||||
NS_IMETHOD GetHash(nsString& aHash) { return _to GetHash(aHash); } \
|
||||
NS_IMETHOD SetHash(const nsString& aHash) { return _to SetHash(aHash); } \
|
||||
NS_IMETHOD GetHost(nsString& aHost) { return _to GetHost(aHost); } \
|
||||
NS_IMETHOD SetHost(const nsString& aHost) { return _to SetHost(aHost); } \
|
||||
NS_IMETHOD GetHostname(nsString& aHostname) { return _to GetHostname(aHostname); } \
|
||||
NS_IMETHOD SetHostname(const nsString& aHostname) { return _to SetHostname(aHostname); } \
|
||||
NS_IMETHOD GetHref(nsString& aHref) { return _to GetHref(aHref); } \
|
||||
NS_IMETHOD SetHref(const nsString& aHref) { return _to SetHref(aHref); } \
|
||||
NS_IMETHOD GetPathname(nsString& aPathname) { return _to GetPathname(aPathname); } \
|
||||
NS_IMETHOD SetPathname(const nsString& aPathname) { return _to SetPathname(aPathname); } \
|
||||
NS_IMETHOD GetPort(nsString& aPort) { return _to GetPort(aPort); } \
|
||||
NS_IMETHOD SetPort(const nsString& aPort) { return _to SetPort(aPort); } \
|
||||
NS_IMETHOD GetProtocol(nsString& aProtocol) { return _to GetProtocol(aProtocol); } \
|
||||
NS_IMETHOD SetProtocol(const nsString& aProtocol) { return _to SetProtocol(aProtocol); } \
|
||||
NS_IMETHOD GetSearch(nsString& aSearch) { return _to GetSearch(aSearch); } \
|
||||
NS_IMETHOD SetSearch(const nsString& aSearch) { return _to SetSearch(aSearch); } \
|
||||
NS_IMETHOD Reload(PRBool aForceget) { return _to Reload(aForceget); } \
|
||||
NS_IMETHOD Replace(const nsString& aUrl) { return _to Replace(aUrl); } \
|
||||
NS_IMETHOD ToString(nsString& aReturn) { return _to ToString(aReturn); } \
|
||||
|
||||
|
||||
extern "C" NS_DOM nsresult NS_InitLocationClass(nsIScriptContext *aContext, void **aPrototype);
|
||||
|
||||
extern "C" NS_DOM nsresult NS_NewScriptLocation(nsIScriptContext *aContext, nsISupports *aSupports, nsISupports *aParent, void **aReturn);
|
||||
|
||||
#endif // nsIDOMLocation_h__
|
||||
69
mozilla/dom/public/base/nsIDOMMimeType.h
Normal file
69
mozilla/dom/public/base/nsIDOMMimeType.h
Normal file
@@ -0,0 +1,69 @@
|
||||
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
|
||||
*
|
||||
* The contents of this file are subject to the Netscape Public
|
||||
* License Version 1.1 (the "License"); you may not use this file
|
||||
* except in compliance with the License. You may obtain a copy of
|
||||
* the License at http://www.mozilla.org/NPL/
|
||||
*
|
||||
* Software distributed under the License is distributed on an "AS
|
||||
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
||||
* implied. See the License for the specific language governing
|
||||
* rights and limitations under the License.
|
||||
*
|
||||
* The Original Code is mozilla.org code.
|
||||
*
|
||||
* The Initial Developer of the Original Code is Netscape
|
||||
* Communications Corporation. Portions created by Netscape are
|
||||
* Copyright (C) 1998 Netscape Communications Corporation. All
|
||||
* Rights Reserved.
|
||||
*
|
||||
* Contributor(s):
|
||||
*/
|
||||
/* AUTO-GENERATED. DO NOT EDIT!!! */
|
||||
|
||||
#ifndef nsIDOMMimeType_h__
|
||||
#define nsIDOMMimeType_h__
|
||||
|
||||
#include "nsISupports.h"
|
||||
#include "nsString.h"
|
||||
#include "nsIScriptContext.h"
|
||||
|
||||
class nsIDOMPlugin;
|
||||
|
||||
#define NS_IDOMMIMETYPE_IID \
|
||||
{ 0xf6134682, 0xf28b, 0x11d2, { 0x83, 0x60, 0xc9, 0x08, 0x99, 0x04, 0x9c, 0x3c } }
|
||||
|
||||
class nsIDOMMimeType : public nsISupports {
|
||||
public:
|
||||
static const nsIID& GetIID() { static nsIID iid = NS_IDOMMIMETYPE_IID; return iid; }
|
||||
|
||||
NS_IMETHOD GetDescription(nsString& aDescription)=0;
|
||||
|
||||
NS_IMETHOD GetEnabledPlugin(nsIDOMPlugin** aEnabledPlugin)=0;
|
||||
|
||||
NS_IMETHOD GetSuffixes(nsString& aSuffixes)=0;
|
||||
|
||||
NS_IMETHOD GetType(nsString& aType)=0;
|
||||
};
|
||||
|
||||
|
||||
#define NS_DECL_IDOMMIMETYPE \
|
||||
NS_IMETHOD GetDescription(nsString& aDescription); \
|
||||
NS_IMETHOD GetEnabledPlugin(nsIDOMPlugin** aEnabledPlugin); \
|
||||
NS_IMETHOD GetSuffixes(nsString& aSuffixes); \
|
||||
NS_IMETHOD GetType(nsString& aType); \
|
||||
|
||||
|
||||
|
||||
#define NS_FORWARD_IDOMMIMETYPE(_to) \
|
||||
NS_IMETHOD GetDescription(nsString& aDescription) { return _to GetDescription(aDescription); } \
|
||||
NS_IMETHOD GetEnabledPlugin(nsIDOMPlugin** aEnabledPlugin) { return _to GetEnabledPlugin(aEnabledPlugin); } \
|
||||
NS_IMETHOD GetSuffixes(nsString& aSuffixes) { return _to GetSuffixes(aSuffixes); } \
|
||||
NS_IMETHOD GetType(nsString& aType) { return _to GetType(aType); } \
|
||||
|
||||
|
||||
extern "C" NS_DOM nsresult NS_InitMimeTypeClass(nsIScriptContext *aContext, void **aPrototype);
|
||||
|
||||
extern "C" NS_DOM nsresult NS_NewScriptMimeType(nsIScriptContext *aContext, nsISupports *aSupports, nsISupports *aParent, void **aReturn);
|
||||
|
||||
#endif // nsIDOMMimeType_h__
|
||||
65
mozilla/dom/public/base/nsIDOMMimeTypeArray.h
Normal file
65
mozilla/dom/public/base/nsIDOMMimeTypeArray.h
Normal file
@@ -0,0 +1,65 @@
|
||||
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
|
||||
*
|
||||
* The contents of this file are subject to the Netscape Public
|
||||
* License Version 1.1 (the "License"); you may not use this file
|
||||
* except in compliance with the License. You may obtain a copy of
|
||||
* the License at http://www.mozilla.org/NPL/
|
||||
*
|
||||
* Software distributed under the License is distributed on an "AS
|
||||
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
||||
* implied. See the License for the specific language governing
|
||||
* rights and limitations under the License.
|
||||
*
|
||||
* The Original Code is mozilla.org code.
|
||||
*
|
||||
* The Initial Developer of the Original Code is Netscape
|
||||
* Communications Corporation. Portions created by Netscape are
|
||||
* Copyright (C) 1998 Netscape Communications Corporation. All
|
||||
* Rights Reserved.
|
||||
*
|
||||
* Contributor(s):
|
||||
*/
|
||||
/* AUTO-GENERATED. DO NOT EDIT!!! */
|
||||
|
||||
#ifndef nsIDOMMimeTypeArray_h__
|
||||
#define nsIDOMMimeTypeArray_h__
|
||||
|
||||
#include "nsISupports.h"
|
||||
#include "nsString.h"
|
||||
#include "nsIScriptContext.h"
|
||||
|
||||
class nsIDOMMimeType;
|
||||
|
||||
#define NS_IDOMMIMETYPEARRAY_IID \
|
||||
{ 0xf6134683, 0xf28b, 0x11d2, { 0x83, 0x60, 0xc9, 0x08, 0x99, 0x04, 0x9c, 0x3c } }
|
||||
|
||||
class nsIDOMMimeTypeArray : public nsISupports {
|
||||
public:
|
||||
static const nsIID& GetIID() { static nsIID iid = NS_IDOMMIMETYPEARRAY_IID; return iid; }
|
||||
|
||||
NS_IMETHOD GetLength(PRUint32* aLength)=0;
|
||||
|
||||
NS_IMETHOD Item(PRUint32 aIndex, nsIDOMMimeType** aReturn)=0;
|
||||
|
||||
NS_IMETHOD NamedItem(const nsString& aName, nsIDOMMimeType** aReturn)=0;
|
||||
};
|
||||
|
||||
|
||||
#define NS_DECL_IDOMMIMETYPEARRAY \
|
||||
NS_IMETHOD GetLength(PRUint32* aLength); \
|
||||
NS_IMETHOD Item(PRUint32 aIndex, nsIDOMMimeType** aReturn); \
|
||||
NS_IMETHOD NamedItem(const nsString& aName, nsIDOMMimeType** aReturn); \
|
||||
|
||||
|
||||
|
||||
#define NS_FORWARD_IDOMMIMETYPEARRAY(_to) \
|
||||
NS_IMETHOD GetLength(PRUint32* aLength) { return _to GetLength(aLength); } \
|
||||
NS_IMETHOD Item(PRUint32 aIndex, nsIDOMMimeType** aReturn) { return _to Item(aIndex, aReturn); } \
|
||||
NS_IMETHOD NamedItem(const nsString& aName, nsIDOMMimeType** aReturn) { return _to NamedItem(aName, aReturn); } \
|
||||
|
||||
|
||||
extern "C" NS_DOM nsresult NS_InitMimeTypeArrayClass(nsIScriptContext *aContext, void **aPrototype);
|
||||
|
||||
extern "C" NS_DOM nsresult NS_NewScriptMimeTypeArray(nsIScriptContext *aContext, nsISupports *aSupports, nsISupports *aParent, void **aReturn);
|
||||
|
||||
#endif // nsIDOMMimeTypeArray_h__
|
||||
58
mozilla/dom/public/base/nsIDOMNSLocation.h
Normal file
58
mozilla/dom/public/base/nsIDOMNSLocation.h
Normal file
@@ -0,0 +1,58 @@
|
||||
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
|
||||
*
|
||||
* The contents of this file are subject to the Netscape Public
|
||||
* License Version 1.1 (the "License"); you may not use this file
|
||||
* except in compliance with the License. You may obtain a copy of
|
||||
* the License at http://www.mozilla.org/NPL/
|
||||
*
|
||||
* Software distributed under the License is distributed on an "AS
|
||||
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
||||
* implied. See the License for the specific language governing
|
||||
* rights and limitations under the License.
|
||||
*
|
||||
* The Original Code is mozilla.org code.
|
||||
*
|
||||
* The Initial Developer of the Original Code is Netscape
|
||||
* Communications Corporation. Portions created by Netscape are
|
||||
* Copyright (C) 1998 Netscape Communications Corporation. All
|
||||
* Rights Reserved.
|
||||
*
|
||||
* Contributor(s):
|
||||
*/
|
||||
/* AUTO-GENERATED. DO NOT EDIT!!! */
|
||||
|
||||
#ifndef nsIDOMNSLocation_h__
|
||||
#define nsIDOMNSLocation_h__
|
||||
|
||||
#include "nsISupports.h"
|
||||
#include "nsString.h"
|
||||
#include "nsIScriptContext.h"
|
||||
#include "jsapi.h"
|
||||
|
||||
|
||||
#define NS_IDOMNSLOCATION_IID \
|
||||
{ 0xa6cf9108, 0x15b3, 0x11d2, \
|
||||
{ 0x93, 0x2e, 0x00, 0x80, 0x5f, 0x8a, 0xdd, 0x32 } }
|
||||
|
||||
class nsIDOMNSLocation : public nsISupports {
|
||||
public:
|
||||
static const nsIID& GetIID() { static nsIID iid = NS_IDOMNSLOCATION_IID; return iid; }
|
||||
|
||||
NS_IMETHOD Reload(JSContext* cx, jsval* argv, PRUint32 argc)=0;
|
||||
|
||||
NS_IMETHOD Replace(JSContext* cx, jsval* argv, PRUint32 argc)=0;
|
||||
};
|
||||
|
||||
|
||||
#define NS_DECL_IDOMNSLOCATION \
|
||||
NS_IMETHOD Reload(JSContext* cx, jsval* argv, PRUint32 argc); \
|
||||
NS_IMETHOD Replace(JSContext* cx, jsval* argv, PRUint32 argc); \
|
||||
|
||||
|
||||
|
||||
#define NS_FORWARD_IDOMNSLOCATION(_to) \
|
||||
NS_IMETHOD Reload(JSContext* cx, jsval* argv, PRUint32 argc) { return _to Reload(cx, argv, argc); } \
|
||||
NS_IMETHOD Replace(JSContext* cx, jsval* argv, PRUint32 argc) { return _to Replace(cx, argv, argc); } \
|
||||
|
||||
|
||||
#endif // nsIDOMNSLocation_h__
|
||||
104
mozilla/dom/public/base/nsIDOMNavigator.h
Normal file
104
mozilla/dom/public/base/nsIDOMNavigator.h
Normal file
@@ -0,0 +1,104 @@
|
||||
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
|
||||
*
|
||||
* The contents of this file are subject to the Netscape Public
|
||||
* License Version 1.1 (the "License"); you may not use this file
|
||||
* except in compliance with the License. You may obtain a copy of
|
||||
* the License at http://www.mozilla.org/NPL/
|
||||
*
|
||||
* Software distributed under the License is distributed on an "AS
|
||||
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
||||
* implied. See the License for the specific language governing
|
||||
* rights and limitations under the License.
|
||||
*
|
||||
* The Original Code is mozilla.org code.
|
||||
*
|
||||
* The Initial Developer of the Original Code is Netscape
|
||||
* Communications Corporation. Portions created by Netscape are
|
||||
* Copyright (C) 1998 Netscape Communications Corporation. All
|
||||
* Rights Reserved.
|
||||
*
|
||||
* Contributor(s):
|
||||
*/
|
||||
/* AUTO-GENERATED. DO NOT EDIT!!! */
|
||||
|
||||
#ifndef nsIDOMNavigator_h__
|
||||
#define nsIDOMNavigator_h__
|
||||
|
||||
#include "nsISupports.h"
|
||||
#include "nsString.h"
|
||||
#include "nsIScriptContext.h"
|
||||
#include "jsapi.h"
|
||||
|
||||
class nsIDOMPluginArray;
|
||||
class nsIDOMMimeTypeArray;
|
||||
|
||||
#define NS_IDOMNAVIGATOR_IID \
|
||||
{ 0xa6cf906e, 0x15b3, 0x11d2, \
|
||||
{ 0x93, 0x2e, 0x00, 0x80, 0x5f, 0x8a, 0xdd, 0x32 } }
|
||||
|
||||
class nsIDOMNavigator : public nsISupports {
|
||||
public:
|
||||
static const nsIID& GetIID() { static nsIID iid = NS_IDOMNAVIGATOR_IID; return iid; }
|
||||
|
||||
NS_IMETHOD GetAppCodeName(nsString& aAppCodeName)=0;
|
||||
|
||||
NS_IMETHOD GetAppName(nsString& aAppName)=0;
|
||||
|
||||
NS_IMETHOD GetAppVersion(nsString& aAppVersion)=0;
|
||||
|
||||
NS_IMETHOD GetLanguage(nsString& aLanguage)=0;
|
||||
|
||||
NS_IMETHOD GetMimeTypes(nsIDOMMimeTypeArray** aMimeTypes)=0;
|
||||
|
||||
NS_IMETHOD GetPlatform(nsString& aPlatform)=0;
|
||||
|
||||
NS_IMETHOD GetPlugins(nsIDOMPluginArray** aPlugins)=0;
|
||||
|
||||
NS_IMETHOD GetSecurityPolicy(nsString& aSecurityPolicy)=0;
|
||||
|
||||
NS_IMETHOD GetUserAgent(nsString& aUserAgent)=0;
|
||||
|
||||
NS_IMETHOD JavaEnabled(PRBool* aReturn)=0;
|
||||
|
||||
NS_IMETHOD TaintEnabled(PRBool* aReturn)=0;
|
||||
|
||||
NS_IMETHOD Preference(JSContext* cx, jsval* argv, PRUint32 argc, jsval* aReturn)=0;
|
||||
};
|
||||
|
||||
|
||||
#define NS_DECL_IDOMNAVIGATOR \
|
||||
NS_IMETHOD GetAppCodeName(nsString& aAppCodeName); \
|
||||
NS_IMETHOD GetAppName(nsString& aAppName); \
|
||||
NS_IMETHOD GetAppVersion(nsString& aAppVersion); \
|
||||
NS_IMETHOD GetLanguage(nsString& aLanguage); \
|
||||
NS_IMETHOD GetMimeTypes(nsIDOMMimeTypeArray** aMimeTypes); \
|
||||
NS_IMETHOD GetPlatform(nsString& aPlatform); \
|
||||
NS_IMETHOD GetPlugins(nsIDOMPluginArray** aPlugins); \
|
||||
NS_IMETHOD GetSecurityPolicy(nsString& aSecurityPolicy); \
|
||||
NS_IMETHOD GetUserAgent(nsString& aUserAgent); \
|
||||
NS_IMETHOD JavaEnabled(PRBool* aReturn); \
|
||||
NS_IMETHOD TaintEnabled(PRBool* aReturn); \
|
||||
NS_IMETHOD Preference(JSContext* cx, jsval* argv, PRUint32 argc, jsval* aReturn); \
|
||||
|
||||
|
||||
|
||||
#define NS_FORWARD_IDOMNAVIGATOR(_to) \
|
||||
NS_IMETHOD GetAppCodeName(nsString& aAppCodeName) { return _to GetAppCodeName(aAppCodeName); } \
|
||||
NS_IMETHOD GetAppName(nsString& aAppName) { return _to GetAppName(aAppName); } \
|
||||
NS_IMETHOD GetAppVersion(nsString& aAppVersion) { return _to GetAppVersion(aAppVersion); } \
|
||||
NS_IMETHOD GetLanguage(nsString& aLanguage) { return _to GetLanguage(aLanguage); } \
|
||||
NS_IMETHOD GetMimeTypes(nsIDOMMimeTypeArray** aMimeTypes) { return _to GetMimeTypes(aMimeTypes); } \
|
||||
NS_IMETHOD GetPlatform(nsString& aPlatform) { return _to GetPlatform(aPlatform); } \
|
||||
NS_IMETHOD GetPlugins(nsIDOMPluginArray** aPlugins) { return _to GetPlugins(aPlugins); } \
|
||||
NS_IMETHOD GetSecurityPolicy(nsString& aSecurityPolicy) { return _to GetSecurityPolicy(aSecurityPolicy); } \
|
||||
NS_IMETHOD GetUserAgent(nsString& aUserAgent) { return _to GetUserAgent(aUserAgent); } \
|
||||
NS_IMETHOD JavaEnabled(PRBool* aReturn) { return _to JavaEnabled(aReturn); } \
|
||||
NS_IMETHOD TaintEnabled(PRBool* aReturn) { return _to TaintEnabled(aReturn); } \
|
||||
NS_IMETHOD Preference(JSContext* cx, jsval* argv, PRUint32 argc, jsval* aReturn) { return _to Preference(cx, argv, argc, aReturn); } \
|
||||
|
||||
|
||||
extern "C" NS_DOM nsresult NS_InitNavigatorClass(nsIScriptContext *aContext, void **aPrototype);
|
||||
|
||||
extern "C" NS_DOM nsresult NS_NewScriptNavigator(nsIScriptContext *aContext, nsISupports *aSupports, nsISupports *aParent, void **aReturn);
|
||||
|
||||
#endif // nsIDOMNavigator_h__
|
||||
77
mozilla/dom/public/base/nsIDOMPlugin.h
Normal file
77
mozilla/dom/public/base/nsIDOMPlugin.h
Normal file
@@ -0,0 +1,77 @@
|
||||
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
|
||||
*
|
||||
* The contents of this file are subject to the Netscape Public
|
||||
* License Version 1.1 (the "License"); you may not use this file
|
||||
* except in compliance with the License. You may obtain a copy of
|
||||
* the License at http://www.mozilla.org/NPL/
|
||||
*
|
||||
* Software distributed under the License is distributed on an "AS
|
||||
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
||||
* implied. See the License for the specific language governing
|
||||
* rights and limitations under the License.
|
||||
*
|
||||
* The Original Code is mozilla.org code.
|
||||
*
|
||||
* The Initial Developer of the Original Code is Netscape
|
||||
* Communications Corporation. Portions created by Netscape are
|
||||
* Copyright (C) 1998 Netscape Communications Corporation. All
|
||||
* Rights Reserved.
|
||||
*
|
||||
* Contributor(s):
|
||||
*/
|
||||
/* AUTO-GENERATED. DO NOT EDIT!!! */
|
||||
|
||||
#ifndef nsIDOMPlugin_h__
|
||||
#define nsIDOMPlugin_h__
|
||||
|
||||
#include "nsISupports.h"
|
||||
#include "nsString.h"
|
||||
#include "nsIScriptContext.h"
|
||||
|
||||
class nsIDOMMimeType;
|
||||
|
||||
#define NS_IDOMPLUGIN_IID \
|
||||
{ 0xf6134681, 0xf28b, 0x11d2, { 0x83, 0x60, 0xc9, 0x08, 0x99, 0x04, 0x9c, 0x3c } }
|
||||
|
||||
class nsIDOMPlugin : public nsISupports {
|
||||
public:
|
||||
static const nsIID& GetIID() { static nsIID iid = NS_IDOMPLUGIN_IID; return iid; }
|
||||
|
||||
NS_IMETHOD GetDescription(nsString& aDescription)=0;
|
||||
|
||||
NS_IMETHOD GetFilename(nsString& aFilename)=0;
|
||||
|
||||
NS_IMETHOD GetName(nsString& aName)=0;
|
||||
|
||||
NS_IMETHOD GetLength(PRUint32* aLength)=0;
|
||||
|
||||
NS_IMETHOD Item(PRUint32 aIndex, nsIDOMMimeType** aReturn)=0;
|
||||
|
||||
NS_IMETHOD NamedItem(const nsString& aName, nsIDOMMimeType** aReturn)=0;
|
||||
};
|
||||
|
||||
|
||||
#define NS_DECL_IDOMPLUGIN \
|
||||
NS_IMETHOD GetDescription(nsString& aDescription); \
|
||||
NS_IMETHOD GetFilename(nsString& aFilename); \
|
||||
NS_IMETHOD GetName(nsString& aName); \
|
||||
NS_IMETHOD GetLength(PRUint32* aLength); \
|
||||
NS_IMETHOD Item(PRUint32 aIndex, nsIDOMMimeType** aReturn); \
|
||||
NS_IMETHOD NamedItem(const nsString& aName, nsIDOMMimeType** aReturn); \
|
||||
|
||||
|
||||
|
||||
#define NS_FORWARD_IDOMPLUGIN(_to) \
|
||||
NS_IMETHOD GetDescription(nsString& aDescription) { return _to GetDescription(aDescription); } \
|
||||
NS_IMETHOD GetFilename(nsString& aFilename) { return _to GetFilename(aFilename); } \
|
||||
NS_IMETHOD GetName(nsString& aName) { return _to GetName(aName); } \
|
||||
NS_IMETHOD GetLength(PRUint32* aLength) { return _to GetLength(aLength); } \
|
||||
NS_IMETHOD Item(PRUint32 aIndex, nsIDOMMimeType** aReturn) { return _to Item(aIndex, aReturn); } \
|
||||
NS_IMETHOD NamedItem(const nsString& aName, nsIDOMMimeType** aReturn) { return _to NamedItem(aName, aReturn); } \
|
||||
|
||||
|
||||
extern "C" NS_DOM nsresult NS_InitPluginClass(nsIScriptContext *aContext, void **aPrototype);
|
||||
|
||||
extern "C" NS_DOM nsresult NS_NewScriptPlugin(nsIScriptContext *aContext, nsISupports *aSupports, nsISupports *aParent, void **aReturn);
|
||||
|
||||
#endif // nsIDOMPlugin_h__
|
||||
69
mozilla/dom/public/base/nsIDOMPluginArray.h
Normal file
69
mozilla/dom/public/base/nsIDOMPluginArray.h
Normal file
@@ -0,0 +1,69 @@
|
||||
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
|
||||
*
|
||||
* The contents of this file are subject to the Netscape Public
|
||||
* License Version 1.1 (the "License"); you may not use this file
|
||||
* except in compliance with the License. You may obtain a copy of
|
||||
* the License at http://www.mozilla.org/NPL/
|
||||
*
|
||||
* Software distributed under the License is distributed on an "AS
|
||||
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
||||
* implied. See the License for the specific language governing
|
||||
* rights and limitations under the License.
|
||||
*
|
||||
* The Original Code is mozilla.org code.
|
||||
*
|
||||
* The Initial Developer of the Original Code is Netscape
|
||||
* Communications Corporation. Portions created by Netscape are
|
||||
* Copyright (C) 1998 Netscape Communications Corporation. All
|
||||
* Rights Reserved.
|
||||
*
|
||||
* Contributor(s):
|
||||
*/
|
||||
/* AUTO-GENERATED. DO NOT EDIT!!! */
|
||||
|
||||
#ifndef nsIDOMPluginArray_h__
|
||||
#define nsIDOMPluginArray_h__
|
||||
|
||||
#include "nsISupports.h"
|
||||
#include "nsString.h"
|
||||
#include "nsIScriptContext.h"
|
||||
|
||||
class nsIDOMPlugin;
|
||||
|
||||
#define NS_IDOMPLUGINARRAY_IID \
|
||||
{ 0xf6134680, 0xf28b, 0x11d2, { 0x83, 0x60, 0xc9, 0x08, 0x99, 0x04, 0x9c, 0x3c } }
|
||||
|
||||
class nsIDOMPluginArray : public nsISupports {
|
||||
public:
|
||||
static const nsIID& GetIID() { static nsIID iid = NS_IDOMPLUGINARRAY_IID; return iid; }
|
||||
|
||||
NS_IMETHOD GetLength(PRUint32* aLength)=0;
|
||||
|
||||
NS_IMETHOD Item(PRUint32 aIndex, nsIDOMPlugin** aReturn)=0;
|
||||
|
||||
NS_IMETHOD NamedItem(const nsString& aName, nsIDOMPlugin** aReturn)=0;
|
||||
|
||||
NS_IMETHOD Refresh(PRBool aReloadDocuments)=0;
|
||||
};
|
||||
|
||||
|
||||
#define NS_DECL_IDOMPLUGINARRAY \
|
||||
NS_IMETHOD GetLength(PRUint32* aLength); \
|
||||
NS_IMETHOD Item(PRUint32 aIndex, nsIDOMPlugin** aReturn); \
|
||||
NS_IMETHOD NamedItem(const nsString& aName, nsIDOMPlugin** aReturn); \
|
||||
NS_IMETHOD Refresh(PRBool aReloadDocuments); \
|
||||
|
||||
|
||||
|
||||
#define NS_FORWARD_IDOMPLUGINARRAY(_to) \
|
||||
NS_IMETHOD GetLength(PRUint32* aLength) { return _to GetLength(aLength); } \
|
||||
NS_IMETHOD Item(PRUint32 aIndex, nsIDOMPlugin** aReturn) { return _to Item(aIndex, aReturn); } \
|
||||
NS_IMETHOD NamedItem(const nsString& aName, nsIDOMPlugin** aReturn) { return _to NamedItem(aName, aReturn); } \
|
||||
NS_IMETHOD Refresh(PRBool aReloadDocuments) { return _to Refresh(aReloadDocuments); } \
|
||||
|
||||
|
||||
extern "C" NS_DOM nsresult NS_InitPluginArrayClass(nsIScriptContext *aContext, void **aPrototype);
|
||||
|
||||
extern "C" NS_DOM nsresult NS_NewScriptPluginArray(nsIScriptContext *aContext, nsISupports *aSupports, nsISupports *aParent, void **aReturn);
|
||||
|
||||
#endif // nsIDOMPluginArray_h__
|
||||
85
mozilla/dom/public/base/nsIDOMScreen.h
Normal file
85
mozilla/dom/public/base/nsIDOMScreen.h
Normal file
@@ -0,0 +1,85 @@
|
||||
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
|
||||
*
|
||||
* The contents of this file are subject to the Netscape Public
|
||||
* License Version 1.1 (the "License"); you may not use this file
|
||||
* except in compliance with the License. You may obtain a copy of
|
||||
* the License at http://www.mozilla.org/NPL/
|
||||
*
|
||||
* Software distributed under the License is distributed on an "AS
|
||||
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
||||
* implied. See the License for the specific language governing
|
||||
* rights and limitations under the License.
|
||||
*
|
||||
* The Original Code is mozilla.org code.
|
||||
*
|
||||
* The Initial Developer of the Original Code is Netscape
|
||||
* Communications Corporation. Portions created by Netscape are
|
||||
* Copyright (C) 1998 Netscape Communications Corporation. All
|
||||
* Rights Reserved.
|
||||
*
|
||||
* Contributor(s):
|
||||
*/
|
||||
/* AUTO-GENERATED. DO NOT EDIT!!! */
|
||||
|
||||
#ifndef nsIDOMScreen_h__
|
||||
#define nsIDOMScreen_h__
|
||||
|
||||
#include "nsISupports.h"
|
||||
#include "nsString.h"
|
||||
#include "nsIScriptContext.h"
|
||||
|
||||
|
||||
#define NS_IDOMSCREEN_IID \
|
||||
{ 0x77947960, 0xb4af, 0x11d2, \
|
||||
{ 0xbd, 0x93, 0x00, 0x80, 0x5f, 0x8a, 0xe3, 0xf4 } }
|
||||
|
||||
class nsIDOMScreen : public nsISupports {
|
||||
public:
|
||||
static const nsIID& GetIID() { static nsIID iid = NS_IDOMSCREEN_IID; return iid; }
|
||||
|
||||
NS_IMETHOD GetWidth(PRInt32* aWidth)=0;
|
||||
|
||||
NS_IMETHOD GetHeight(PRInt32* aHeight)=0;
|
||||
|
||||
NS_IMETHOD GetPixelDepth(PRInt32* aPixelDepth)=0;
|
||||
|
||||
NS_IMETHOD GetColorDepth(PRInt32* aColorDepth)=0;
|
||||
|
||||
NS_IMETHOD GetAvailWidth(PRInt32* aAvailWidth)=0;
|
||||
|
||||
NS_IMETHOD GetAvailHeight(PRInt32* aAvailHeight)=0;
|
||||
|
||||
NS_IMETHOD GetAvailLeft(PRInt32* aAvailLeft)=0;
|
||||
|
||||
NS_IMETHOD GetAvailTop(PRInt32* aAvailTop)=0;
|
||||
};
|
||||
|
||||
|
||||
#define NS_DECL_IDOMSCREEN \
|
||||
NS_IMETHOD GetWidth(PRInt32* aWidth); \
|
||||
NS_IMETHOD GetHeight(PRInt32* aHeight); \
|
||||
NS_IMETHOD GetPixelDepth(PRInt32* aPixelDepth); \
|
||||
NS_IMETHOD GetColorDepth(PRInt32* aColorDepth); \
|
||||
NS_IMETHOD GetAvailWidth(PRInt32* aAvailWidth); \
|
||||
NS_IMETHOD GetAvailHeight(PRInt32* aAvailHeight); \
|
||||
NS_IMETHOD GetAvailLeft(PRInt32* aAvailLeft); \
|
||||
NS_IMETHOD GetAvailTop(PRInt32* aAvailTop); \
|
||||
|
||||
|
||||
|
||||
#define NS_FORWARD_IDOMSCREEN(_to) \
|
||||
NS_IMETHOD GetWidth(PRInt32* aWidth) { return _to GetWidth(aWidth); } \
|
||||
NS_IMETHOD GetHeight(PRInt32* aHeight) { return _to GetHeight(aHeight); } \
|
||||
NS_IMETHOD GetPixelDepth(PRInt32* aPixelDepth) { return _to GetPixelDepth(aPixelDepth); } \
|
||||
NS_IMETHOD GetColorDepth(PRInt32* aColorDepth) { return _to GetColorDepth(aColorDepth); } \
|
||||
NS_IMETHOD GetAvailWidth(PRInt32* aAvailWidth) { return _to GetAvailWidth(aAvailWidth); } \
|
||||
NS_IMETHOD GetAvailHeight(PRInt32* aAvailHeight) { return _to GetAvailHeight(aAvailHeight); } \
|
||||
NS_IMETHOD GetAvailLeft(PRInt32* aAvailLeft) { return _to GetAvailLeft(aAvailLeft); } \
|
||||
NS_IMETHOD GetAvailTop(PRInt32* aAvailTop) { return _to GetAvailTop(aAvailTop); } \
|
||||
|
||||
|
||||
extern "C" NS_DOM nsresult NS_InitScreenClass(nsIScriptContext *aContext, void **aPrototype);
|
||||
|
||||
extern "C" NS_DOM nsresult NS_NewScriptScreen(nsIScriptContext *aContext, nsISupports *aSupports, nsISupports *aParent, void **aReturn);
|
||||
|
||||
#endif // nsIDOMScreen_h__
|
||||
360
mozilla/dom/public/base/nsIDOMWindow.h
Normal file
360
mozilla/dom/public/base/nsIDOMWindow.h
Normal file
@@ -0,0 +1,360 @@
|
||||
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
|
||||
*
|
||||
* The contents of this file are subject to the Netscape Public
|
||||
* License Version 1.1 (the "License"); you may not use this file
|
||||
* except in compliance with the License. You may obtain a copy of
|
||||
* the License at http://www.mozilla.org/NPL/
|
||||
*
|
||||
* Software distributed under the License is distributed on an "AS
|
||||
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
||||
* implied. See the License for the specific language governing
|
||||
* rights and limitations under the License.
|
||||
*
|
||||
* The Original Code is mozilla.org code.
|
||||
*
|
||||
* The Initial Developer of the Original Code is Netscape
|
||||
* Communications Corporation. Portions created by Netscape are
|
||||
* Copyright (C) 1998 Netscape Communications Corporation. All
|
||||
* Rights Reserved.
|
||||
*
|
||||
* Contributor(s):
|
||||
*/
|
||||
/* AUTO-GENERATED. DO NOT EDIT!!! */
|
||||
|
||||
#ifndef nsIDOMWindow_h__
|
||||
#define nsIDOMWindow_h__
|
||||
|
||||
#include "nsISupports.h"
|
||||
#include "nsString.h"
|
||||
#include "nsIScriptContext.h"
|
||||
#include "jsapi.h"
|
||||
|
||||
class nsIDOMNavigator;
|
||||
class nsIDOMElement;
|
||||
class nsIDOMDocument;
|
||||
class nsIDOMBarProp;
|
||||
class nsIDOMScreen;
|
||||
class nsIDOMHistory;
|
||||
class nsIDOMWindowCollection;
|
||||
class nsIDOMEvent;
|
||||
class nsIDOMWindow;
|
||||
class nsIControllers;
|
||||
|
||||
#define NS_IDOMWINDOW_IID \
|
||||
{ 0xa6cf906b, 0x15b3, 0x11d2, \
|
||||
{ 0x93, 0x2e, 0x00, 0x80, 0x5f, 0x8a, 0xdd, 0x32 } }
|
||||
|
||||
class nsIDOMWindow : public nsISupports {
|
||||
public:
|
||||
static const nsIID& GetIID() { static nsIID iid = NS_IDOMWINDOW_IID; return iid; }
|
||||
|
||||
NS_IMETHOD GetWindow(nsIDOMWindow** aWindow)=0;
|
||||
|
||||
NS_IMETHOD GetSelf(nsIDOMWindow** aSelf)=0;
|
||||
|
||||
NS_IMETHOD GetDocument(nsIDOMDocument** aDocument)=0;
|
||||
|
||||
NS_IMETHOD GetNavigator(nsIDOMNavigator** aNavigator)=0;
|
||||
|
||||
NS_IMETHOD GetScreen(nsIDOMScreen** aScreen)=0;
|
||||
|
||||
NS_IMETHOD GetHistory(nsIDOMHistory** aHistory)=0;
|
||||
|
||||
NS_IMETHOD GetParent(nsIDOMWindow** aParent)=0;
|
||||
|
||||
NS_IMETHOD GetTop(nsIDOMWindow** aTop)=0;
|
||||
|
||||
NS_IMETHOD GetContent(nsIDOMWindow** aContent)=0;
|
||||
|
||||
NS_IMETHOD GetMenubar(nsIDOMBarProp** aMenubar)=0;
|
||||
|
||||
NS_IMETHOD GetToolbar(nsIDOMBarProp** aToolbar)=0;
|
||||
|
||||
NS_IMETHOD GetLocationbar(nsIDOMBarProp** aLocationbar)=0;
|
||||
|
||||
NS_IMETHOD GetPersonalbar(nsIDOMBarProp** aPersonalbar)=0;
|
||||
|
||||
NS_IMETHOD GetStatusbar(nsIDOMBarProp** aStatusbar)=0;
|
||||
|
||||
NS_IMETHOD GetScrollbars(nsIDOMBarProp** aScrollbars)=0;
|
||||
|
||||
NS_IMETHOD GetDirectories(nsIDOMBarProp** aDirectories)=0;
|
||||
|
||||
NS_IMETHOD GetClosed(PRBool* aClosed)=0;
|
||||
|
||||
NS_IMETHOD GetFrames(nsIDOMWindowCollection** aFrames)=0;
|
||||
|
||||
NS_IMETHOD GetControllers(nsIControllers** aControllers)=0;
|
||||
|
||||
NS_IMETHOD GetOpener(nsIDOMWindow** aOpener)=0;
|
||||
NS_IMETHOD SetOpener(nsIDOMWindow* aOpener)=0;
|
||||
|
||||
NS_IMETHOD GetStatus(nsString& aStatus)=0;
|
||||
NS_IMETHOD SetStatus(const nsString& aStatus)=0;
|
||||
|
||||
NS_IMETHOD GetDefaultStatus(nsString& aDefaultStatus)=0;
|
||||
NS_IMETHOD SetDefaultStatus(const nsString& aDefaultStatus)=0;
|
||||
|
||||
NS_IMETHOD GetName(nsString& aName)=0;
|
||||
NS_IMETHOD SetName(const nsString& aName)=0;
|
||||
|
||||
NS_IMETHOD GetInnerWidth(PRInt32* aInnerWidth)=0;
|
||||
NS_IMETHOD SetInnerWidth(PRInt32 aInnerWidth)=0;
|
||||
|
||||
NS_IMETHOD GetInnerHeight(PRInt32* aInnerHeight)=0;
|
||||
NS_IMETHOD SetInnerHeight(PRInt32 aInnerHeight)=0;
|
||||
|
||||
NS_IMETHOD GetOuterWidth(PRInt32* aOuterWidth)=0;
|
||||
NS_IMETHOD SetOuterWidth(PRInt32 aOuterWidth)=0;
|
||||
|
||||
NS_IMETHOD GetOuterHeight(PRInt32* aOuterHeight)=0;
|
||||
NS_IMETHOD SetOuterHeight(PRInt32 aOuterHeight)=0;
|
||||
|
||||
NS_IMETHOD GetScreenX(PRInt32* aScreenX)=0;
|
||||
NS_IMETHOD SetScreenX(PRInt32 aScreenX)=0;
|
||||
|
||||
NS_IMETHOD GetScreenY(PRInt32* aScreenY)=0;
|
||||
NS_IMETHOD SetScreenY(PRInt32 aScreenY)=0;
|
||||
|
||||
NS_IMETHOD GetPageXOffset(PRInt32* aPageXOffset)=0;
|
||||
NS_IMETHOD SetPageXOffset(PRInt32 aPageXOffset)=0;
|
||||
|
||||
NS_IMETHOD GetPageYOffset(PRInt32* aPageYOffset)=0;
|
||||
NS_IMETHOD SetPageYOffset(PRInt32 aPageYOffset)=0;
|
||||
|
||||
NS_IMETHOD GetScrollX(PRInt32* aScrollX)=0;
|
||||
|
||||
NS_IMETHOD GetScrollY(PRInt32* aScrollY)=0;
|
||||
|
||||
NS_IMETHOD Dump(const nsString& aStr)=0;
|
||||
|
||||
NS_IMETHOD Alert(JSContext* cx, jsval* argv, PRUint32 argc)=0;
|
||||
|
||||
NS_IMETHOD Confirm(JSContext* cx, jsval* argv, PRUint32 argc, PRBool* aReturn)=0;
|
||||
|
||||
NS_IMETHOD Prompt(JSContext* cx, jsval* argv, PRUint32 argc, nsString& aReturn)=0;
|
||||
|
||||
NS_IMETHOD Focus()=0;
|
||||
|
||||
NS_IMETHOD Blur()=0;
|
||||
|
||||
NS_IMETHOD Back()=0;
|
||||
|
||||
NS_IMETHOD Forward()=0;
|
||||
|
||||
NS_IMETHOD Home()=0;
|
||||
|
||||
NS_IMETHOD Stop()=0;
|
||||
|
||||
NS_IMETHOD Print()=0;
|
||||
|
||||
NS_IMETHOD MoveTo(PRInt32 aXPos, PRInt32 aYPos)=0;
|
||||
|
||||
NS_IMETHOD MoveBy(PRInt32 aXDif, PRInt32 aYDif)=0;
|
||||
|
||||
NS_IMETHOD ResizeTo(PRInt32 aWidth, PRInt32 aHeight)=0;
|
||||
|
||||
NS_IMETHOD ResizeBy(PRInt32 aWidthDif, PRInt32 aHeightDif)=0;
|
||||
|
||||
NS_IMETHOD SizeToContent()=0;
|
||||
|
||||
NS_IMETHOD ScrollTo(PRInt32 aXScroll, PRInt32 aYScroll)=0;
|
||||
|
||||
NS_IMETHOD ScrollBy(PRInt32 aXScrollDif, PRInt32 aYScrollDif)=0;
|
||||
|
||||
NS_IMETHOD ClearTimeout(PRInt32 aTimerID)=0;
|
||||
|
||||
NS_IMETHOD ClearInterval(PRInt32 aTimerID)=0;
|
||||
|
||||
NS_IMETHOD SetTimeout(JSContext* cx, jsval* argv, PRUint32 argc, PRInt32* aReturn)=0;
|
||||
|
||||
NS_IMETHOD SetInterval(JSContext* cx, jsval* argv, PRUint32 argc, PRInt32* aReturn)=0;
|
||||
|
||||
NS_IMETHOD CaptureEvents(PRInt32 aEventFlags)=0;
|
||||
|
||||
NS_IMETHOD ReleaseEvents(PRInt32 aEventFlags)=0;
|
||||
|
||||
NS_IMETHOD RouteEvent(nsIDOMEvent* aEvt)=0;
|
||||
|
||||
NS_IMETHOD EnableExternalCapture()=0;
|
||||
|
||||
NS_IMETHOD DisableExternalCapture()=0;
|
||||
|
||||
NS_IMETHOD CreatePopup(nsIDOMElement* aElement, nsIDOMElement* aPopupContent, PRInt32 aXPos, PRInt32 aYPos, const nsString& aPopupType, const nsString& aAnchorAlignment, const nsString& aPopupAlignment, nsIDOMWindow** aReturn)=0;
|
||||
|
||||
NS_IMETHOD Open(JSContext* cx, jsval* argv, PRUint32 argc, nsIDOMWindow** aReturn)=0;
|
||||
|
||||
NS_IMETHOD OpenDialog(JSContext* cx, jsval* argv, PRUint32 argc, nsIDOMWindow** aReturn)=0;
|
||||
|
||||
NS_IMETHOD Close()=0;
|
||||
|
||||
NS_IMETHOD Close(JSContext* cx, jsval* argv, PRUint32 argc)=0;
|
||||
};
|
||||
|
||||
|
||||
#define NS_DECL_IDOMWINDOW \
|
||||
NS_IMETHOD GetWindow(nsIDOMWindow** aWindow); \
|
||||
NS_IMETHOD GetSelf(nsIDOMWindow** aSelf); \
|
||||
NS_IMETHOD GetDocument(nsIDOMDocument** aDocument); \
|
||||
NS_IMETHOD GetNavigator(nsIDOMNavigator** aNavigator); \
|
||||
NS_IMETHOD GetScreen(nsIDOMScreen** aScreen); \
|
||||
NS_IMETHOD GetHistory(nsIDOMHistory** aHistory); \
|
||||
NS_IMETHOD GetParent(nsIDOMWindow** aParent); \
|
||||
NS_IMETHOD GetTop(nsIDOMWindow** aTop); \
|
||||
NS_IMETHOD GetContent(nsIDOMWindow** aContent); \
|
||||
NS_IMETHOD GetMenubar(nsIDOMBarProp** aMenubar); \
|
||||
NS_IMETHOD GetToolbar(nsIDOMBarProp** aToolbar); \
|
||||
NS_IMETHOD GetLocationbar(nsIDOMBarProp** aLocationbar); \
|
||||
NS_IMETHOD GetPersonalbar(nsIDOMBarProp** aPersonalbar); \
|
||||
NS_IMETHOD GetStatusbar(nsIDOMBarProp** aStatusbar); \
|
||||
NS_IMETHOD GetScrollbars(nsIDOMBarProp** aScrollbars); \
|
||||
NS_IMETHOD GetDirectories(nsIDOMBarProp** aDirectories); \
|
||||
NS_IMETHOD GetClosed(PRBool* aClosed); \
|
||||
NS_IMETHOD GetFrames(nsIDOMWindowCollection** aFrames); \
|
||||
NS_IMETHOD GetControllers(nsIControllers** aControllers); \
|
||||
NS_IMETHOD GetOpener(nsIDOMWindow** aOpener); \
|
||||
NS_IMETHOD SetOpener(nsIDOMWindow* aOpener); \
|
||||
NS_IMETHOD GetStatus(nsString& aStatus); \
|
||||
NS_IMETHOD SetStatus(const nsString& aStatus); \
|
||||
NS_IMETHOD GetDefaultStatus(nsString& aDefaultStatus); \
|
||||
NS_IMETHOD SetDefaultStatus(const nsString& aDefaultStatus); \
|
||||
NS_IMETHOD GetName(nsString& aName); \
|
||||
NS_IMETHOD SetName(const nsString& aName); \
|
||||
NS_IMETHOD GetInnerWidth(PRInt32* aInnerWidth); \
|
||||
NS_IMETHOD SetInnerWidth(PRInt32 aInnerWidth); \
|
||||
NS_IMETHOD GetInnerHeight(PRInt32* aInnerHeight); \
|
||||
NS_IMETHOD SetInnerHeight(PRInt32 aInnerHeight); \
|
||||
NS_IMETHOD GetOuterWidth(PRInt32* aOuterWidth); \
|
||||
NS_IMETHOD SetOuterWidth(PRInt32 aOuterWidth); \
|
||||
NS_IMETHOD GetOuterHeight(PRInt32* aOuterHeight); \
|
||||
NS_IMETHOD SetOuterHeight(PRInt32 aOuterHeight); \
|
||||
NS_IMETHOD GetScreenX(PRInt32* aScreenX); \
|
||||
NS_IMETHOD SetScreenX(PRInt32 aScreenX); \
|
||||
NS_IMETHOD GetScreenY(PRInt32* aScreenY); \
|
||||
NS_IMETHOD SetScreenY(PRInt32 aScreenY); \
|
||||
NS_IMETHOD GetPageXOffset(PRInt32* aPageXOffset); \
|
||||
NS_IMETHOD SetPageXOffset(PRInt32 aPageXOffset); \
|
||||
NS_IMETHOD GetPageYOffset(PRInt32* aPageYOffset); \
|
||||
NS_IMETHOD SetPageYOffset(PRInt32 aPageYOffset); \
|
||||
NS_IMETHOD GetScrollX(PRInt32* aScrollX); \
|
||||
NS_IMETHOD GetScrollY(PRInt32* aScrollY); \
|
||||
NS_IMETHOD Dump(const nsString& aStr); \
|
||||
NS_IMETHOD Alert(JSContext* cx, jsval* argv, PRUint32 argc); \
|
||||
NS_IMETHOD Confirm(JSContext* cx, jsval* argv, PRUint32 argc, PRBool* aReturn); \
|
||||
NS_IMETHOD Prompt(JSContext* cx, jsval* argv, PRUint32 argc, nsString& aReturn); \
|
||||
NS_IMETHOD Focus(); \
|
||||
NS_IMETHOD Blur(); \
|
||||
NS_IMETHOD Back(); \
|
||||
NS_IMETHOD Forward(); \
|
||||
NS_IMETHOD Home(); \
|
||||
NS_IMETHOD Stop(); \
|
||||
NS_IMETHOD Print(); \
|
||||
NS_IMETHOD MoveTo(PRInt32 aXPos, PRInt32 aYPos); \
|
||||
NS_IMETHOD MoveBy(PRInt32 aXDif, PRInt32 aYDif); \
|
||||
NS_IMETHOD ResizeTo(PRInt32 aWidth, PRInt32 aHeight); \
|
||||
NS_IMETHOD ResizeBy(PRInt32 aWidthDif, PRInt32 aHeightDif); \
|
||||
NS_IMETHOD SizeToContent(); \
|
||||
NS_IMETHOD ScrollTo(PRInt32 aXScroll, PRInt32 aYScroll); \
|
||||
NS_IMETHOD ScrollBy(PRInt32 aXScrollDif, PRInt32 aYScrollDif); \
|
||||
NS_IMETHOD ClearTimeout(PRInt32 aTimerID); \
|
||||
NS_IMETHOD ClearInterval(PRInt32 aTimerID); \
|
||||
NS_IMETHOD SetTimeout(JSContext* cx, jsval* argv, PRUint32 argc, PRInt32* aReturn); \
|
||||
NS_IMETHOD SetInterval(JSContext* cx, jsval* argv, PRUint32 argc, PRInt32* aReturn); \
|
||||
NS_IMETHOD CaptureEvents(PRInt32 aEventFlags); \
|
||||
NS_IMETHOD ReleaseEvents(PRInt32 aEventFlags); \
|
||||
NS_IMETHOD RouteEvent(nsIDOMEvent* aEvt); \
|
||||
NS_IMETHOD EnableExternalCapture(); \
|
||||
NS_IMETHOD DisableExternalCapture(); \
|
||||
NS_IMETHOD CreatePopup(nsIDOMElement* aElement, nsIDOMElement* aPopupContent, PRInt32 aXPos, PRInt32 aYPos, const nsString& aPopupType, const nsString& aAnchorAlignment, const nsString& aPopupAlignment, nsIDOMWindow** aReturn); \
|
||||
NS_IMETHOD Open(JSContext* cx, jsval* argv, PRUint32 argc, nsIDOMWindow** aReturn); \
|
||||
NS_IMETHOD OpenDialog(JSContext* cx, jsval* argv, PRUint32 argc, nsIDOMWindow** aReturn); \
|
||||
NS_IMETHOD Close(); \
|
||||
NS_IMETHOD Close(JSContext* cx, jsval* argv, PRUint32 argc); \
|
||||
|
||||
|
||||
|
||||
#define NS_FORWARD_IDOMWINDOW(_to) \
|
||||
NS_IMETHOD GetWindow(nsIDOMWindow** aWindow) { return _to GetWindow(aWindow); } \
|
||||
NS_IMETHOD GetSelf(nsIDOMWindow** aSelf) { return _to GetSelf(aSelf); } \
|
||||
NS_IMETHOD GetDocument(nsIDOMDocument** aDocument) { return _to GetDocument(aDocument); } \
|
||||
NS_IMETHOD GetNavigator(nsIDOMNavigator** aNavigator) { return _to GetNavigator(aNavigator); } \
|
||||
NS_IMETHOD GetScreen(nsIDOMScreen** aScreen) { return _to GetScreen(aScreen); } \
|
||||
NS_IMETHOD GetHistory(nsIDOMHistory** aHistory) { return _to GetHistory(aHistory); } \
|
||||
NS_IMETHOD GetParent(nsIDOMWindow** aParent) { return _to GetParent(aParent); } \
|
||||
NS_IMETHOD GetTop(nsIDOMWindow** aTop) { return _to GetTop(aTop); } \
|
||||
NS_IMETHOD GetContent(nsIDOMWindow** aContent) { return _to GetContent(aContent); } \
|
||||
NS_IMETHOD GetMenubar(nsIDOMBarProp** aMenubar) { return _to GetMenubar(aMenubar); } \
|
||||
NS_IMETHOD GetToolbar(nsIDOMBarProp** aToolbar) { return _to GetToolbar(aToolbar); } \
|
||||
NS_IMETHOD GetLocationbar(nsIDOMBarProp** aLocationbar) { return _to GetLocationbar(aLocationbar); } \
|
||||
NS_IMETHOD GetPersonalbar(nsIDOMBarProp** aPersonalbar) { return _to GetPersonalbar(aPersonalbar); } \
|
||||
NS_IMETHOD GetStatusbar(nsIDOMBarProp** aStatusbar) { return _to GetStatusbar(aStatusbar); } \
|
||||
NS_IMETHOD GetScrollbars(nsIDOMBarProp** aScrollbars) { return _to GetScrollbars(aScrollbars); } \
|
||||
NS_IMETHOD GetDirectories(nsIDOMBarProp** aDirectories) { return _to GetDirectories(aDirectories); } \
|
||||
NS_IMETHOD GetClosed(PRBool* aClosed) { return _to GetClosed(aClosed); } \
|
||||
NS_IMETHOD GetFrames(nsIDOMWindowCollection** aFrames) { return _to GetFrames(aFrames); } \
|
||||
NS_IMETHOD GetControllers(nsIControllers** aControllers) { return _to GetControllers(aControllers); } \
|
||||
NS_IMETHOD GetOpener(nsIDOMWindow** aOpener) { return _to GetOpener(aOpener); } \
|
||||
NS_IMETHOD SetOpener(nsIDOMWindow* aOpener) { return _to SetOpener(aOpener); } \
|
||||
NS_IMETHOD GetStatus(nsString& aStatus) { return _to GetStatus(aStatus); } \
|
||||
NS_IMETHOD SetStatus(const nsString& aStatus) { return _to SetStatus(aStatus); } \
|
||||
NS_IMETHOD GetDefaultStatus(nsString& aDefaultStatus) { return _to GetDefaultStatus(aDefaultStatus); } \
|
||||
NS_IMETHOD SetDefaultStatus(const nsString& aDefaultStatus) { return _to SetDefaultStatus(aDefaultStatus); } \
|
||||
NS_IMETHOD GetName(nsString& aName) { return _to GetName(aName); } \
|
||||
NS_IMETHOD SetName(const nsString& aName) { return _to SetName(aName); } \
|
||||
NS_IMETHOD GetInnerWidth(PRInt32* aInnerWidth) { return _to GetInnerWidth(aInnerWidth); } \
|
||||
NS_IMETHOD SetInnerWidth(PRInt32 aInnerWidth) { return _to SetInnerWidth(aInnerWidth); } \
|
||||
NS_IMETHOD GetInnerHeight(PRInt32* aInnerHeight) { return _to GetInnerHeight(aInnerHeight); } \
|
||||
NS_IMETHOD SetInnerHeight(PRInt32 aInnerHeight) { return _to SetInnerHeight(aInnerHeight); } \
|
||||
NS_IMETHOD GetOuterWidth(PRInt32* aOuterWidth) { return _to GetOuterWidth(aOuterWidth); } \
|
||||
NS_IMETHOD SetOuterWidth(PRInt32 aOuterWidth) { return _to SetOuterWidth(aOuterWidth); } \
|
||||
NS_IMETHOD GetOuterHeight(PRInt32* aOuterHeight) { return _to GetOuterHeight(aOuterHeight); } \
|
||||
NS_IMETHOD SetOuterHeight(PRInt32 aOuterHeight) { return _to SetOuterHeight(aOuterHeight); } \
|
||||
NS_IMETHOD GetScreenX(PRInt32* aScreenX) { return _to GetScreenX(aScreenX); } \
|
||||
NS_IMETHOD SetScreenX(PRInt32 aScreenX) { return _to SetScreenX(aScreenX); } \
|
||||
NS_IMETHOD GetScreenY(PRInt32* aScreenY) { return _to GetScreenY(aScreenY); } \
|
||||
NS_IMETHOD SetScreenY(PRInt32 aScreenY) { return _to SetScreenY(aScreenY); } \
|
||||
NS_IMETHOD GetPageXOffset(PRInt32* aPageXOffset) { return _to GetPageXOffset(aPageXOffset); } \
|
||||
NS_IMETHOD SetPageXOffset(PRInt32 aPageXOffset) { return _to SetPageXOffset(aPageXOffset); } \
|
||||
NS_IMETHOD GetPageYOffset(PRInt32* aPageYOffset) { return _to GetPageYOffset(aPageYOffset); } \
|
||||
NS_IMETHOD SetPageYOffset(PRInt32 aPageYOffset) { return _to SetPageYOffset(aPageYOffset); } \
|
||||
NS_IMETHOD GetScrollX(PRInt32* aScrollX) { return _to GetScrollX(aScrollX); } \
|
||||
NS_IMETHOD GetScrollY(PRInt32* aScrollY) { return _to GetScrollY(aScrollY); } \
|
||||
NS_IMETHOD Dump(const nsString& aStr) { return _to Dump(aStr); } \
|
||||
NS_IMETHOD Alert(JSContext* cx, jsval* argv, PRUint32 argc) { return _to Alert(cx, argv, argc); } \
|
||||
NS_IMETHOD Confirm(JSContext* cx, jsval* argv, PRUint32 argc, PRBool* aReturn) { return _to Confirm(cx, argv, argc, aReturn); } \
|
||||
NS_IMETHOD Prompt(JSContext* cx, jsval* argv, PRUint32 argc, nsString& aReturn) { return _to Prompt(cx, argv, argc, aReturn); } \
|
||||
NS_IMETHOD Focus() { return _to Focus(); } \
|
||||
NS_IMETHOD Blur() { return _to Blur(); } \
|
||||
NS_IMETHOD Back() { return _to Back(); } \
|
||||
NS_IMETHOD Forward() { return _to Forward(); } \
|
||||
NS_IMETHOD Home() { return _to Home(); } \
|
||||
NS_IMETHOD Stop() { return _to Stop(); } \
|
||||
NS_IMETHOD Print() { return _to Print(); } \
|
||||
NS_IMETHOD MoveTo(PRInt32 aXPos, PRInt32 aYPos) { return _to MoveTo(aXPos, aYPos); } \
|
||||
NS_IMETHOD MoveBy(PRInt32 aXDif, PRInt32 aYDif) { return _to MoveBy(aXDif, aYDif); } \
|
||||
NS_IMETHOD ResizeTo(PRInt32 aWidth, PRInt32 aHeight) { return _to ResizeTo(aWidth, aHeight); } \
|
||||
NS_IMETHOD ResizeBy(PRInt32 aWidthDif, PRInt32 aHeightDif) { return _to ResizeBy(aWidthDif, aHeightDif); } \
|
||||
NS_IMETHOD SizeToContent() { return _to SizeToContent(); } \
|
||||
NS_IMETHOD ScrollTo(PRInt32 aXScroll, PRInt32 aYScroll) { return _to ScrollTo(aXScroll, aYScroll); } \
|
||||
NS_IMETHOD ScrollBy(PRInt32 aXScrollDif, PRInt32 aYScrollDif) { return _to ScrollBy(aXScrollDif, aYScrollDif); } \
|
||||
NS_IMETHOD ClearTimeout(PRInt32 aTimerID) { return _to ClearTimeout(aTimerID); } \
|
||||
NS_IMETHOD ClearInterval(PRInt32 aTimerID) { return _to ClearInterval(aTimerID); } \
|
||||
NS_IMETHOD SetTimeout(JSContext* cx, jsval* argv, PRUint32 argc, PRInt32* aReturn) { return _to SetTimeout(cx, argv, argc, aReturn); } \
|
||||
NS_IMETHOD SetInterval(JSContext* cx, jsval* argv, PRUint32 argc, PRInt32* aReturn) { return _to SetInterval(cx, argv, argc, aReturn); } \
|
||||
NS_IMETHOD CaptureEvents(PRInt32 aEventFlags) { return _to CaptureEvents(aEventFlags); } \
|
||||
NS_IMETHOD ReleaseEvents(PRInt32 aEventFlags) { return _to ReleaseEvents(aEventFlags); } \
|
||||
NS_IMETHOD RouteEvent(nsIDOMEvent* aEvt) { return _to RouteEvent(aEvt); } \
|
||||
NS_IMETHOD EnableExternalCapture() { return _to EnableExternalCapture(); } \
|
||||
NS_IMETHOD DisableExternalCapture() { return _to DisableExternalCapture(); } \
|
||||
NS_IMETHOD CreatePopup(nsIDOMElement* aElement, nsIDOMElement* aPopupContent, PRInt32 aXPos, PRInt32 aYPos, const nsString& aPopupType, const nsString& aAnchorAlignment, const nsString& aPopupAlignment, nsIDOMWindow** aReturn) { return _to CreatePopup(aElement, aPopupContent, aXPos, aYPos, aPopupType, aAnchorAlignment, aPopupAlignment, aReturn); } \
|
||||
NS_IMETHOD Open(JSContext* cx, jsval* argv, PRUint32 argc, nsIDOMWindow** aReturn) { return _to Open(cx, argv, argc, aReturn); } \
|
||||
NS_IMETHOD OpenDialog(JSContext* cx, jsval* argv, PRUint32 argc, nsIDOMWindow** aReturn) { return _to OpenDialog(cx, argv, argc, aReturn); } \
|
||||
NS_IMETHOD Close() { return _to Close(); } \
|
||||
NS_IMETHOD Close(JSContext* cx, jsval* argv, PRUint32 argc) { return _to Close(cx, argv, argc); } \
|
||||
|
||||
|
||||
extern nsresult NS_InitWindowClass(nsIScriptContext *aContext, nsIScriptGlobalObject *aGlobal);
|
||||
|
||||
extern "C" NS_DOM nsresult NS_NewScriptWindow(nsIScriptContext *aContext, nsISupports *aSupports, nsISupports *aParent, void **aReturn);
|
||||
|
||||
#endif // nsIDOMWindow_h__
|
||||
66
mozilla/dom/public/base/nsIDOMWindowCollection.h
Normal file
66
mozilla/dom/public/base/nsIDOMWindowCollection.h
Normal file
@@ -0,0 +1,66 @@
|
||||
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
|
||||
*
|
||||
* The contents of this file are subject to the Netscape Public
|
||||
* License Version 1.1 (the "License"); you may not use this file
|
||||
* except in compliance with the License. You may obtain a copy of
|
||||
* the License at http://www.mozilla.org/NPL/
|
||||
*
|
||||
* Software distributed under the License is distributed on an "AS
|
||||
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
||||
* implied. See the License for the specific language governing
|
||||
* rights and limitations under the License.
|
||||
*
|
||||
* The Original Code is mozilla.org code.
|
||||
*
|
||||
* The Initial Developer of the Original Code is Netscape
|
||||
* Communications Corporation. Portions created by Netscape are
|
||||
* Copyright (C) 1998 Netscape Communications Corporation. All
|
||||
* Rights Reserved.
|
||||
*
|
||||
* Contributor(s):
|
||||
*/
|
||||
/* AUTO-GENERATED. DO NOT EDIT!!! */
|
||||
|
||||
#ifndef nsIDOMWindowCollection_h__
|
||||
#define nsIDOMWindowCollection_h__
|
||||
|
||||
#include "nsISupports.h"
|
||||
#include "nsString.h"
|
||||
#include "nsIScriptContext.h"
|
||||
|
||||
class nsIDOMWindow;
|
||||
|
||||
#define NS_IDOMWINDOWCOLLECTION_IID \
|
||||
{ 0xa6cf906f, 0x15b3, 0x11d2, \
|
||||
{ 0x93, 0x2e, 0x00, 0x80, 0x5f, 0x8a, 0xdd, 0x32 } }
|
||||
|
||||
class nsIDOMWindowCollection : public nsISupports {
|
||||
public:
|
||||
static const nsIID& GetIID() { static nsIID iid = NS_IDOMWINDOWCOLLECTION_IID; return iid; }
|
||||
|
||||
NS_IMETHOD GetLength(PRUint32* aLength)=0;
|
||||
|
||||
NS_IMETHOD Item(PRUint32 aIndex, nsIDOMWindow** aReturn)=0;
|
||||
|
||||
NS_IMETHOD NamedItem(const nsString& aName, nsIDOMWindow** aReturn)=0;
|
||||
};
|
||||
|
||||
|
||||
#define NS_DECL_IDOMWINDOWCOLLECTION \
|
||||
NS_IMETHOD GetLength(PRUint32* aLength); \
|
||||
NS_IMETHOD Item(PRUint32 aIndex, nsIDOMWindow** aReturn); \
|
||||
NS_IMETHOD NamedItem(const nsString& aName, nsIDOMWindow** aReturn); \
|
||||
|
||||
|
||||
|
||||
#define NS_FORWARD_IDOMWINDOWCOLLECTION(_to) \
|
||||
NS_IMETHOD GetLength(PRUint32* aLength) { return _to GetLength(aLength); } \
|
||||
NS_IMETHOD Item(PRUint32 aIndex, nsIDOMWindow** aReturn) { return _to Item(aIndex, aReturn); } \
|
||||
NS_IMETHOD NamedItem(const nsString& aName, nsIDOMWindow** aReturn) { return _to NamedItem(aName, aReturn); } \
|
||||
|
||||
|
||||
extern "C" NS_DOM nsresult NS_InitWindowCollectionClass(nsIScriptContext *aContext, void **aPrototype);
|
||||
|
||||
extern "C" NS_DOM nsresult NS_NewScriptWindowCollection(nsIScriptContext *aContext, nsISupports *aSupports, nsISupports *aParent, void **aReturn);
|
||||
|
||||
#endif // nsIDOMWindowCollection_h__
|
||||
43
mozilla/dom/public/base/nsPIDOMWindow.h
Normal file
43
mozilla/dom/public/base/nsPIDOMWindow.h
Normal file
@@ -0,0 +1,43 @@
|
||||
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
|
||||
*
|
||||
* The contents of this file are subject to the Netscape Public
|
||||
* License Version 1.1 (the "License"); you may not use this file
|
||||
* except in compliance with the License. You may obtain a copy of
|
||||
* the License at http://www.mozilla.org/NPL/
|
||||
*
|
||||
* Software distributed under the License is distributed on an "AS
|
||||
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
||||
* implied. See the License for the specific language governing
|
||||
* rights and limitations under the License.
|
||||
*
|
||||
* The Original Code is mozilla.org code.
|
||||
*
|
||||
* The Initial Developer of the Original Code is Netscape
|
||||
* Communications Corporation. Portions created by Netscape are
|
||||
* Copyright (C) 1998 Netscape Communications Corporation. All
|
||||
* Rights Reserved.
|
||||
*
|
||||
* Contributor(s):
|
||||
*/
|
||||
/* AUTO-GENERATED. DO NOT EDIT!!! */
|
||||
|
||||
#ifndef nsPIDOMWindow_h__
|
||||
#define nsPIDOMWindow_h__
|
||||
|
||||
#include "nsISupports.h"
|
||||
#include "nsString.h"
|
||||
#include "nsIScriptContext.h"
|
||||
|
||||
|
||||
#define NS_PIDOMWINDOW_IID \
|
||||
{ 0x3aa80781, 0x7e6a, 0x11d3, { 0xbf, 0x87, 0x0, 0x10, 0x5a, 0x1b, 0x6, 0x27 } }
|
||||
|
||||
|
||||
class nsPIDOMWindow : public nsISupports {
|
||||
public:
|
||||
static const nsIID& GetIID() { static nsIID iid = NS_PIDOMWINDOW_IID; return iid; }
|
||||
|
||||
NS_IMETHOD GetPrivateParent(nsPIDOMWindow** aResult)=0;
|
||||
};
|
||||
|
||||
#endif // nsPIDOMWindow_h__
|
||||
42
mozilla/dom/public/coreDom/MANIFEST
Normal file
42
mozilla/dom/public/coreDom/MANIFEST
Normal file
@@ -0,0 +1,42 @@
|
||||
# The contents of this file are subject to the Netscape Public
|
||||
# License Version 1.1 (the "License"); you may not use this file
|
||||
# except in compliance with the License. You may obtain a copy of
|
||||
# the License at http://www.mozilla.org/NPL/
|
||||
#
|
||||
# Software distributed under the License is distributed on an "AS
|
||||
# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
||||
# implied. See the License for the specific language governing
|
||||
# rights and limitations under the License.
|
||||
#
|
||||
# The Original Code is mozilla.org code.
|
||||
#
|
||||
# The Initial Developer of the Original Code is Netscape
|
||||
# Communications Corporation. Portions created by Netscape are
|
||||
# Copyright (C) 1998 Netscape Communications Corporation. All
|
||||
# Rights Reserved.
|
||||
#
|
||||
# Contributor(s):
|
||||
#
|
||||
# This is a list of local files which get copied to the mozilla:dist:dom directory
|
||||
#
|
||||
|
||||
nsIDOMAttr.h
|
||||
nsIDOMCDATASection.h
|
||||
nsIDOMCharacterData.h
|
||||
nsIDOMComment.h
|
||||
nsIDOMDOMImplementation.h
|
||||
nsIDOMDocument.h
|
||||
nsIDOMDocumentType.h
|
||||
nsIDOMDocumentFragment.h
|
||||
nsIDOMElement.h
|
||||
nsIDOMEntity.h
|
||||
nsIDOMNotation.h
|
||||
nsIDOMEntityReference.h
|
||||
nsIDOMNode.h
|
||||
nsIDOMNamedNodeMap.h
|
||||
nsIDOMNodeList.h
|
||||
nsIDOMProcessingInstruction.h
|
||||
nsIDOMText.h
|
||||
nsIDOMStyleSheet.h
|
||||
nsIDOMStyleSheetCollection.h
|
||||
nsIDOMNSDocument.h
|
||||
57
mozilla/dom/public/coreDom/Makefile.in
Normal file
57
mozilla/dom/public/coreDom/Makefile.in
Normal file
@@ -0,0 +1,57 @@
|
||||
#
|
||||
# The contents of this file are subject to the Netscape Public
|
||||
# License Version 1.1 (the "License"); you may not use this file
|
||||
# except in compliance with the License. You may obtain a copy of
|
||||
# the License at http://www.mozilla.org/NPL/
|
||||
#
|
||||
# Software distributed under the License is distributed on an "AS
|
||||
# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
||||
# implied. See the License for the specific language governing
|
||||
# rights and limitations under the License.
|
||||
#
|
||||
# The Original Code is mozilla.org code.
|
||||
#
|
||||
# The Initial Developer of the Original Code is Netscape
|
||||
# Communications Corporation. Portions created by Netscape are
|
||||
# Copyright (C) 1998 Netscape Communications Corporation. All
|
||||
# Rights Reserved.
|
||||
#
|
||||
# Contributor(s):
|
||||
#
|
||||
|
||||
DEPTH = ../../..
|
||||
topsrcdir = @top_srcdir@
|
||||
srcdir = @srcdir@
|
||||
VPATH = @srcdir@
|
||||
|
||||
include $(DEPTH)/config/autoconf.mk
|
||||
|
||||
MODULE = dom
|
||||
|
||||
EXPORTS = \
|
||||
nsIDOMAttr.h \
|
||||
nsIDOMCDATASection.h \
|
||||
nsIDOMCharacterData.h \
|
||||
nsIDOMComment.h \
|
||||
nsIDOMDOMImplementation.h \
|
||||
nsIDOMDocument.h \
|
||||
nsIDOMDocumentType.h \
|
||||
nsIDOMDocumentFragment.h \
|
||||
nsIDOMElement.h \
|
||||
nsIDOMEntity.h \
|
||||
nsIDOMNotation.h \
|
||||
nsIDOMEntityReference.h \
|
||||
nsIDOMNode.h \
|
||||
nsIDOMNamedNodeMap.h \
|
||||
nsIDOMNodeList.h \
|
||||
nsIDOMProcessingInstruction.h \
|
||||
nsIDOMText.h \
|
||||
nsIDOMStyleSheet.h \
|
||||
nsIDOMStyleSheetCollection.h \
|
||||
nsIDOMNSDocument.h \
|
||||
$(NULL)
|
||||
|
||||
EXPORTS := $(addprefix $(srcdir)/, $(EXPORTS))
|
||||
|
||||
include $(topsrcdir)/config/rules.mk
|
||||
|
||||
53
mozilla/dom/public/coreDom/makefile.win
Normal file
53
mozilla/dom/public/coreDom/makefile.win
Normal file
@@ -0,0 +1,53 @@
|
||||
#!nmake
|
||||
#
|
||||
# The contents of this file are subject to the Netscape Public
|
||||
# License Version 1.1 (the "License"); you may not use this file
|
||||
# except in compliance with the License. You may obtain a copy of
|
||||
# the License at http://www.mozilla.org/NPL/
|
||||
#
|
||||
# Software distributed under the License is distributed on an "AS
|
||||
# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
||||
# implied. See the License for the specific language governing
|
||||
# rights and limitations under the License.
|
||||
#
|
||||
# The Original Code is mozilla.org code.
|
||||
#
|
||||
# The Initial Developer of the Original Code is Netscape
|
||||
# Communications Corporation. Portions created by Netscape are
|
||||
# Copyright (C) 1998 Netscape Communications Corporation. All
|
||||
# Rights Reserved.
|
||||
#
|
||||
# Contributor(s):
|
||||
|
||||
DEPTH=..\..\..
|
||||
|
||||
|
||||
DEFINES=-D_IMPL_NS_DOM
|
||||
EXPORTS = \
|
||||
nsIDOMAttr.h \
|
||||
nsIDOMCDATASection.h \
|
||||
nsIDOMCharacterData.h \
|
||||
nsIDOMComment.h \
|
||||
nsIDOMDOMImplementation.h \
|
||||
nsIDOMDocument.h \
|
||||
nsIDOMDocumentType.h \
|
||||
nsIDOMDocumentFragment.h \
|
||||
nsIDOMElement.h \
|
||||
nsIDOMEntity.h \
|
||||
nsIDOMNotation.h \
|
||||
nsIDOMEntityReference.h \
|
||||
nsIDOMNode.h \
|
||||
nsIDOMNamedNodeMap.h \
|
||||
nsIDOMNodeList.h \
|
||||
nsIDOMProcessingInstruction.h \
|
||||
nsIDOMText.h \
|
||||
nsIDOMStyleSheet.h \
|
||||
nsIDOMStyleSheetCollection.h \
|
||||
nsIDOMNSDocument.h \
|
||||
$(NULL)
|
||||
|
||||
|
||||
MODULE=dom
|
||||
|
||||
include <$(DEPTH)\config\rules.mak>
|
||||
|
||||
69
mozilla/dom/public/coreDom/nsIDOMAttr.h
Normal file
69
mozilla/dom/public/coreDom/nsIDOMAttr.h
Normal file
@@ -0,0 +1,69 @@
|
||||
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
|
||||
*
|
||||
* The contents of this file are subject to the Netscape Public
|
||||
* License Version 1.1 (the "License"); you may not use this file
|
||||
* except in compliance with the License. You may obtain a copy of
|
||||
* the License at http://www.mozilla.org/NPL/
|
||||
*
|
||||
* Software distributed under the License is distributed on an "AS
|
||||
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
||||
* implied. See the License for the specific language governing
|
||||
* rights and limitations under the License.
|
||||
*
|
||||
* The Original Code is mozilla.org code.
|
||||
*
|
||||
* The Initial Developer of the Original Code is Netscape
|
||||
* Communications Corporation. Portions created by Netscape are
|
||||
* Copyright (C) 1998 Netscape Communications Corporation. All
|
||||
* Rights Reserved.
|
||||
*
|
||||
* Contributor(s):
|
||||
*/
|
||||
/* AUTO-GENERATED. DO NOT EDIT!!! */
|
||||
|
||||
#ifndef nsIDOMAttr_h__
|
||||
#define nsIDOMAttr_h__
|
||||
|
||||
#include "nsISupports.h"
|
||||
#include "nsString.h"
|
||||
#include "nsIScriptContext.h"
|
||||
#include "nsIDOMNode.h"
|
||||
|
||||
|
||||
#define NS_IDOMATTR_IID \
|
||||
{ 0xa6cf9070, 0x15b3, 0x11d2, \
|
||||
{ 0x93, 0x2e, 0x00, 0x80, 0x5f, 0x8a, 0xdd, 0x32 } }
|
||||
|
||||
class nsIDOMAttr : public nsIDOMNode {
|
||||
public:
|
||||
static const nsIID& GetIID() { static nsIID iid = NS_IDOMATTR_IID; return iid; }
|
||||
|
||||
NS_IMETHOD GetName(nsString& aName)=0;
|
||||
|
||||
NS_IMETHOD GetSpecified(PRBool* aSpecified)=0;
|
||||
|
||||
NS_IMETHOD GetValue(nsString& aValue)=0;
|
||||
NS_IMETHOD SetValue(const nsString& aValue)=0;
|
||||
};
|
||||
|
||||
|
||||
#define NS_DECL_IDOMATTR \
|
||||
NS_IMETHOD GetName(nsString& aName); \
|
||||
NS_IMETHOD GetSpecified(PRBool* aSpecified); \
|
||||
NS_IMETHOD GetValue(nsString& aValue); \
|
||||
NS_IMETHOD SetValue(const nsString& aValue); \
|
||||
|
||||
|
||||
|
||||
#define NS_FORWARD_IDOMATTR(_to) \
|
||||
NS_IMETHOD GetName(nsString& aName) { return _to GetName(aName); } \
|
||||
NS_IMETHOD GetSpecified(PRBool* aSpecified) { return _to GetSpecified(aSpecified); } \
|
||||
NS_IMETHOD GetValue(nsString& aValue) { return _to GetValue(aValue); } \
|
||||
NS_IMETHOD SetValue(const nsString& aValue) { return _to SetValue(aValue); } \
|
||||
|
||||
|
||||
extern "C" NS_DOM nsresult NS_InitAttrClass(nsIScriptContext *aContext, void **aPrototype);
|
||||
|
||||
extern "C" NS_DOM nsresult NS_NewScriptAttr(nsIScriptContext *aContext, nsISupports *aSupports, nsISupports *aParent, void **aReturn);
|
||||
|
||||
#endif // nsIDOMAttr_h__
|
||||
54
mozilla/dom/public/coreDom/nsIDOMCDATASection.h
Normal file
54
mozilla/dom/public/coreDom/nsIDOMCDATASection.h
Normal file
@@ -0,0 +1,54 @@
|
||||
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
|
||||
*
|
||||
* The contents of this file are subject to the Netscape Public
|
||||
* License Version 1.1 (the "License"); you may not use this file
|
||||
* except in compliance with the License. You may obtain a copy of
|
||||
* the License at http://www.mozilla.org/NPL/
|
||||
*
|
||||
* Software distributed under the License is distributed on an "AS
|
||||
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
||||
* implied. See the License for the specific language governing
|
||||
* rights and limitations under the License.
|
||||
*
|
||||
* The Original Code is mozilla.org code.
|
||||
*
|
||||
* The Initial Developer of the Original Code is Netscape
|
||||
* Communications Corporation. Portions created by Netscape are
|
||||
* Copyright (C) 1998 Netscape Communications Corporation. All
|
||||
* Rights Reserved.
|
||||
*
|
||||
* Contributor(s):
|
||||
*/
|
||||
/* AUTO-GENERATED. DO NOT EDIT!!! */
|
||||
|
||||
#ifndef nsIDOMCDATASection_h__
|
||||
#define nsIDOMCDATASection_h__
|
||||
|
||||
#include "nsISupports.h"
|
||||
#include "nsString.h"
|
||||
#include "nsIScriptContext.h"
|
||||
#include "nsIDOMText.h"
|
||||
|
||||
|
||||
#define NS_IDOMCDATASECTION_IID \
|
||||
{ 0xa6cf9071, 0x15b3, 0x11d2, \
|
||||
{ 0x93, 0x2e, 0x00, 0x80, 0x5f, 0x8a, 0xdd, 0x32 } }
|
||||
|
||||
class nsIDOMCDATASection : public nsIDOMText {
|
||||
public:
|
||||
static const nsIID& GetIID() { static nsIID iid = NS_IDOMCDATASECTION_IID; return iid; }
|
||||
};
|
||||
|
||||
|
||||
#define NS_DECL_IDOMCDATASECTION \
|
||||
|
||||
|
||||
|
||||
#define NS_FORWARD_IDOMCDATASECTION(_to) \
|
||||
|
||||
|
||||
extern "C" NS_DOM nsresult NS_InitCDATASectionClass(nsIScriptContext *aContext, void **aPrototype);
|
||||
|
||||
extern "C" NS_DOM nsresult NS_NewScriptCDATASection(nsIScriptContext *aContext, nsISupports *aSupports, nsISupports *aParent, void **aReturn);
|
||||
|
||||
#endif // nsIDOMCDATASection_h__
|
||||
85
mozilla/dom/public/coreDom/nsIDOMCharacterData.h
Normal file
85
mozilla/dom/public/coreDom/nsIDOMCharacterData.h
Normal file
@@ -0,0 +1,85 @@
|
||||
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
|
||||
*
|
||||
* The contents of this file are subject to the Netscape Public
|
||||
* License Version 1.1 (the "License"); you may not use this file
|
||||
* except in compliance with the License. You may obtain a copy of
|
||||
* the License at http://www.mozilla.org/NPL/
|
||||
*
|
||||
* Software distributed under the License is distributed on an "AS
|
||||
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
||||
* implied. See the License for the specific language governing
|
||||
* rights and limitations under the License.
|
||||
*
|
||||
* The Original Code is mozilla.org code.
|
||||
*
|
||||
* The Initial Developer of the Original Code is Netscape
|
||||
* Communications Corporation. Portions created by Netscape are
|
||||
* Copyright (C) 1998 Netscape Communications Corporation. All
|
||||
* Rights Reserved.
|
||||
*
|
||||
* Contributor(s):
|
||||
*/
|
||||
/* AUTO-GENERATED. DO NOT EDIT!!! */
|
||||
|
||||
#ifndef nsIDOMCharacterData_h__
|
||||
#define nsIDOMCharacterData_h__
|
||||
|
||||
#include "nsISupports.h"
|
||||
#include "nsString.h"
|
||||
#include "nsIScriptContext.h"
|
||||
#include "nsIDOMNode.h"
|
||||
|
||||
|
||||
#define NS_IDOMCHARACTERDATA_IID \
|
||||
{ 0xa6cf9072, 0x15b3, 0x11d2, \
|
||||
{ 0x93, 0x2e, 0x00, 0x80, 0x5f, 0x8a, 0xdd, 0x32 } }
|
||||
|
||||
class nsIDOMCharacterData : public nsIDOMNode {
|
||||
public:
|
||||
static const nsIID& GetIID() { static nsIID iid = NS_IDOMCHARACTERDATA_IID; return iid; }
|
||||
|
||||
NS_IMETHOD GetData(nsString& aData)=0;
|
||||
NS_IMETHOD SetData(const nsString& aData)=0;
|
||||
|
||||
NS_IMETHOD GetLength(PRUint32* aLength)=0;
|
||||
|
||||
NS_IMETHOD SubstringData(PRUint32 aOffset, PRUint32 aCount, nsString& aReturn)=0;
|
||||
|
||||
NS_IMETHOD AppendData(const nsString& aArg)=0;
|
||||
|
||||
NS_IMETHOD InsertData(PRUint32 aOffset, const nsString& aArg)=0;
|
||||
|
||||
NS_IMETHOD DeleteData(PRUint32 aOffset, PRUint32 aCount)=0;
|
||||
|
||||
NS_IMETHOD ReplaceData(PRUint32 aOffset, PRUint32 aCount, const nsString& aArg)=0;
|
||||
};
|
||||
|
||||
|
||||
#define NS_DECL_IDOMCHARACTERDATA \
|
||||
NS_IMETHOD GetData(nsString& aData); \
|
||||
NS_IMETHOD SetData(const nsString& aData); \
|
||||
NS_IMETHOD GetLength(PRUint32* aLength); \
|
||||
NS_IMETHOD SubstringData(PRUint32 aOffset, PRUint32 aCount, nsString& aReturn); \
|
||||
NS_IMETHOD AppendData(const nsString& aArg); \
|
||||
NS_IMETHOD InsertData(PRUint32 aOffset, const nsString& aArg); \
|
||||
NS_IMETHOD DeleteData(PRUint32 aOffset, PRUint32 aCount); \
|
||||
NS_IMETHOD ReplaceData(PRUint32 aOffset, PRUint32 aCount, const nsString& aArg); \
|
||||
|
||||
|
||||
|
||||
#define NS_FORWARD_IDOMCHARACTERDATA(_to) \
|
||||
NS_IMETHOD GetData(nsString& aData) { return _to GetData(aData); } \
|
||||
NS_IMETHOD SetData(const nsString& aData) { return _to SetData(aData); } \
|
||||
NS_IMETHOD GetLength(PRUint32* aLength) { return _to GetLength(aLength); } \
|
||||
NS_IMETHOD SubstringData(PRUint32 aOffset, PRUint32 aCount, nsString& aReturn) { return _to SubstringData(aOffset, aCount, aReturn); } \
|
||||
NS_IMETHOD AppendData(const nsString& aArg) { return _to AppendData(aArg); } \
|
||||
NS_IMETHOD InsertData(PRUint32 aOffset, const nsString& aArg) { return _to InsertData(aOffset, aArg); } \
|
||||
NS_IMETHOD DeleteData(PRUint32 aOffset, PRUint32 aCount) { return _to DeleteData(aOffset, aCount); } \
|
||||
NS_IMETHOD ReplaceData(PRUint32 aOffset, PRUint32 aCount, const nsString& aArg) { return _to ReplaceData(aOffset, aCount, aArg); } \
|
||||
|
||||
|
||||
extern "C" NS_DOM nsresult NS_InitCharacterDataClass(nsIScriptContext *aContext, void **aPrototype);
|
||||
|
||||
extern "C" NS_DOM nsresult NS_NewScriptCharacterData(nsIScriptContext *aContext, nsISupports *aSupports, nsISupports *aParent, void **aReturn);
|
||||
|
||||
#endif // nsIDOMCharacterData_h__
|
||||
@@ -19,45 +19,36 @@
|
||||
*
|
||||
* Contributor(s):
|
||||
*/
|
||||
/* AUTO-GENERATED. DO NOT EDIT!!! */
|
||||
|
||||
#ifndef nsIButton_h__
|
||||
#define nsIButton_h__
|
||||
#ifndef nsIDOMComment_h__
|
||||
#define nsIDOMComment_h__
|
||||
|
||||
#include "nsIWidget.h"
|
||||
#include "nsISupports.h"
|
||||
#include "nsString.h"
|
||||
#include "nsIScriptContext.h"
|
||||
#include "nsIDOMCharacterData.h"
|
||||
|
||||
// {18032AD0-B265-11d1-AA2A-000000000000}
|
||||
#define NS_IBUTTON_IID \
|
||||
{ 0x18032ad0, 0xb265, 0x11d1, \
|
||||
{ 0xaa, 0x2a, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0 } }
|
||||
|
||||
/**
|
||||
* Push button widget.
|
||||
* Automatically shows itself as depressed when clicked on.
|
||||
*/
|
||||
class nsIButton : public nsISupports {
|
||||
#define NS_IDOMCOMMENT_IID \
|
||||
{ 0xa6cf9073, 0x15b3, 0x11d2, \
|
||||
{ 0x93, 0x2e, 0x00, 0x80, 0x5f, 0x8a, 0xdd, 0x32 } }
|
||||
|
||||
class nsIDOMComment : public nsIDOMCharacterData {
|
||||
public:
|
||||
NS_DEFINE_STATIC_IID_ACCESSOR(NS_IBUTTON_IID)
|
||||
|
||||
/**
|
||||
* Set the label
|
||||
*
|
||||
* @param Set the label to aText
|
||||
* @result NS_Ok if no errors
|
||||
*/
|
||||
|
||||
NS_IMETHOD SetLabel(const nsString &aText) = 0;
|
||||
|
||||
/**
|
||||
* Get the button label
|
||||
*
|
||||
* @param aBuffer contains label upon return
|
||||
* @result NS_Ok if no errors
|
||||
*/
|
||||
|
||||
NS_IMETHOD GetLabel(nsString &aBuffer) = 0;
|
||||
|
||||
static const nsIID& GetIID() { static nsIID iid = NS_IDOMCOMMENT_IID; return iid; }
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
#define NS_DECL_IDOMCOMMENT \
|
||||
|
||||
|
||||
|
||||
#define NS_FORWARD_IDOMCOMMENT(_to) \
|
||||
|
||||
|
||||
extern "C" NS_DOM nsresult NS_InitCommentClass(nsIScriptContext *aContext, void **aPrototype);
|
||||
|
||||
extern "C" NS_DOM nsresult NS_NewScriptComment(nsIScriptContext *aContext, nsISupports *aSupports, nsISupports *aParent, void **aReturn);
|
||||
|
||||
#endif // nsIDOMComment_h__
|
||||
57
mozilla/dom/public/coreDom/nsIDOMDOMImplementation.h
Normal file
57
mozilla/dom/public/coreDom/nsIDOMDOMImplementation.h
Normal file
@@ -0,0 +1,57 @@
|
||||
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
|
||||
*
|
||||
* The contents of this file are subject to the Netscape Public
|
||||
* License Version 1.1 (the "License"); you may not use this file
|
||||
* except in compliance with the License. You may obtain a copy of
|
||||
* the License at http://www.mozilla.org/NPL/
|
||||
*
|
||||
* Software distributed under the License is distributed on an "AS
|
||||
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
||||
* implied. See the License for the specific language governing
|
||||
* rights and limitations under the License.
|
||||
*
|
||||
* The Original Code is mozilla.org code.
|
||||
*
|
||||
* The Initial Developer of the Original Code is Netscape
|
||||
* Communications Corporation. Portions created by Netscape are
|
||||
* Copyright (C) 1998 Netscape Communications Corporation. All
|
||||
* Rights Reserved.
|
||||
*
|
||||
* Contributor(s):
|
||||
*/
|
||||
/* AUTO-GENERATED. DO NOT EDIT!!! */
|
||||
|
||||
#ifndef nsIDOMDOMImplementation_h__
|
||||
#define nsIDOMDOMImplementation_h__
|
||||
|
||||
#include "nsISupports.h"
|
||||
#include "nsString.h"
|
||||
#include "nsIScriptContext.h"
|
||||
|
||||
|
||||
#define NS_IDOMDOMIMPLEMENTATION_IID \
|
||||
{ 0xa6cf9074, 0x15b3, 0x11d2, \
|
||||
{ 0x93, 0x2e, 0x00, 0x80, 0x5f, 0x8a, 0xdd, 0x32 } }
|
||||
|
||||
class nsIDOMDOMImplementation : public nsISupports {
|
||||
public:
|
||||
static const nsIID& GetIID() { static nsIID iid = NS_IDOMDOMIMPLEMENTATION_IID; return iid; }
|
||||
|
||||
NS_IMETHOD HasFeature(const nsString& aFeature, const nsString& aVersion, PRBool* aReturn)=0;
|
||||
};
|
||||
|
||||
|
||||
#define NS_DECL_IDOMDOMIMPLEMENTATION \
|
||||
NS_IMETHOD HasFeature(const nsString& aFeature, const nsString& aVersion, PRBool* aReturn); \
|
||||
|
||||
|
||||
|
||||
#define NS_FORWARD_IDOMDOMIMPLEMENTATION(_to) \
|
||||
NS_IMETHOD HasFeature(const nsString& aFeature, const nsString& aVersion, PRBool* aReturn) { return _to HasFeature(aFeature, aVersion, aReturn); } \
|
||||
|
||||
|
||||
extern "C" NS_DOM nsresult NS_InitDOMImplementationClass(nsIScriptContext *aContext, void **aPrototype);
|
||||
|
||||
extern "C" NS_DOM nsresult NS_NewScriptDOMImplementation(nsIScriptContext *aContext, nsISupports *aSupports, nsISupports *aParent, void **aReturn);
|
||||
|
||||
#endif // nsIDOMDOMImplementation_h__
|
||||
113
mozilla/dom/public/coreDom/nsIDOMDocument.h
Normal file
113
mozilla/dom/public/coreDom/nsIDOMDocument.h
Normal file
@@ -0,0 +1,113 @@
|
||||
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
|
||||
*
|
||||
* The contents of this file are subject to the Netscape Public
|
||||
* License Version 1.1 (the "License"); you may not use this file
|
||||
* except in compliance with the License. You may obtain a copy of
|
||||
* the License at http://www.mozilla.org/NPL/
|
||||
*
|
||||
* Software distributed under the License is distributed on an "AS
|
||||
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
||||
* implied. See the License for the specific language governing
|
||||
* rights and limitations under the License.
|
||||
*
|
||||
* The Original Code is mozilla.org code.
|
||||
*
|
||||
* The Initial Developer of the Original Code is Netscape
|
||||
* Communications Corporation. Portions created by Netscape are
|
||||
* Copyright (C) 1998 Netscape Communications Corporation. All
|
||||
* Rights Reserved.
|
||||
*
|
||||
* Contributor(s):
|
||||
*/
|
||||
/* AUTO-GENERATED. DO NOT EDIT!!! */
|
||||
|
||||
#ifndef nsIDOMDocument_h__
|
||||
#define nsIDOMDocument_h__
|
||||
|
||||
#include "nsISupports.h"
|
||||
#include "nsString.h"
|
||||
#include "nsIScriptContext.h"
|
||||
#include "nsIDOMNode.h"
|
||||
|
||||
class nsIDOMElement;
|
||||
class nsIDOMProcessingInstruction;
|
||||
class nsIDOMAttr;
|
||||
class nsIDOMCDATASection;
|
||||
class nsIDOMText;
|
||||
class nsIDOMDOMImplementation;
|
||||
class nsIDOMDocumentType;
|
||||
class nsIDOMEntityReference;
|
||||
class nsIDOMDocumentFragment;
|
||||
class nsIDOMComment;
|
||||
class nsIDOMNodeList;
|
||||
|
||||
#define NS_IDOMDOCUMENT_IID \
|
||||
{ 0xa6cf9075, 0x15b3, 0x11d2, \
|
||||
{ 0x93, 0x2e, 0x00, 0x80, 0x5f, 0x8a, 0xdd, 0x32 } }
|
||||
|
||||
class nsIDOMDocument : public nsIDOMNode {
|
||||
public:
|
||||
static const nsIID& GetIID() { static nsIID iid = NS_IDOMDOCUMENT_IID; return iid; }
|
||||
|
||||
NS_IMETHOD GetDoctype(nsIDOMDocumentType** aDoctype)=0;
|
||||
|
||||
NS_IMETHOD GetImplementation(nsIDOMDOMImplementation** aImplementation)=0;
|
||||
|
||||
NS_IMETHOD GetDocumentElement(nsIDOMElement** aDocumentElement)=0;
|
||||
|
||||
NS_IMETHOD CreateElement(const nsString& aTagName, nsIDOMElement** aReturn)=0;
|
||||
|
||||
NS_IMETHOD CreateDocumentFragment(nsIDOMDocumentFragment** aReturn)=0;
|
||||
|
||||
NS_IMETHOD CreateTextNode(const nsString& aData, nsIDOMText** aReturn)=0;
|
||||
|
||||
NS_IMETHOD CreateComment(const nsString& aData, nsIDOMComment** aReturn)=0;
|
||||
|
||||
NS_IMETHOD CreateCDATASection(const nsString& aData, nsIDOMCDATASection** aReturn)=0;
|
||||
|
||||
NS_IMETHOD CreateProcessingInstruction(const nsString& aTarget, const nsString& aData, nsIDOMProcessingInstruction** aReturn)=0;
|
||||
|
||||
NS_IMETHOD CreateAttribute(const nsString& aName, nsIDOMAttr** aReturn)=0;
|
||||
|
||||
NS_IMETHOD CreateEntityReference(const nsString& aName, nsIDOMEntityReference** aReturn)=0;
|
||||
|
||||
NS_IMETHOD GetElementsByTagName(const nsString& aTagname, nsIDOMNodeList** aReturn)=0;
|
||||
};
|
||||
|
||||
|
||||
#define NS_DECL_IDOMDOCUMENT \
|
||||
NS_IMETHOD GetDoctype(nsIDOMDocumentType** aDoctype); \
|
||||
NS_IMETHOD GetImplementation(nsIDOMDOMImplementation** aImplementation); \
|
||||
NS_IMETHOD GetDocumentElement(nsIDOMElement** aDocumentElement); \
|
||||
NS_IMETHOD CreateElement(const nsString& aTagName, nsIDOMElement** aReturn); \
|
||||
NS_IMETHOD CreateDocumentFragment(nsIDOMDocumentFragment** aReturn); \
|
||||
NS_IMETHOD CreateTextNode(const nsString& aData, nsIDOMText** aReturn); \
|
||||
NS_IMETHOD CreateComment(const nsString& aData, nsIDOMComment** aReturn); \
|
||||
NS_IMETHOD CreateCDATASection(const nsString& aData, nsIDOMCDATASection** aReturn); \
|
||||
NS_IMETHOD CreateProcessingInstruction(const nsString& aTarget, const nsString& aData, nsIDOMProcessingInstruction** aReturn); \
|
||||
NS_IMETHOD CreateAttribute(const nsString& aName, nsIDOMAttr** aReturn); \
|
||||
NS_IMETHOD CreateEntityReference(const nsString& aName, nsIDOMEntityReference** aReturn); \
|
||||
NS_IMETHOD GetElementsByTagName(const nsString& aTagname, nsIDOMNodeList** aReturn); \
|
||||
|
||||
|
||||
|
||||
#define NS_FORWARD_IDOMDOCUMENT(_to) \
|
||||
NS_IMETHOD GetDoctype(nsIDOMDocumentType** aDoctype) { return _to GetDoctype(aDoctype); } \
|
||||
NS_IMETHOD GetImplementation(nsIDOMDOMImplementation** aImplementation) { return _to GetImplementation(aImplementation); } \
|
||||
NS_IMETHOD GetDocumentElement(nsIDOMElement** aDocumentElement) { return _to GetDocumentElement(aDocumentElement); } \
|
||||
NS_IMETHOD CreateElement(const nsString& aTagName, nsIDOMElement** aReturn) { return _to CreateElement(aTagName, aReturn); } \
|
||||
NS_IMETHOD CreateDocumentFragment(nsIDOMDocumentFragment** aReturn) { return _to CreateDocumentFragment(aReturn); } \
|
||||
NS_IMETHOD CreateTextNode(const nsString& aData, nsIDOMText** aReturn) { return _to CreateTextNode(aData, aReturn); } \
|
||||
NS_IMETHOD CreateComment(const nsString& aData, nsIDOMComment** aReturn) { return _to CreateComment(aData, aReturn); } \
|
||||
NS_IMETHOD CreateCDATASection(const nsString& aData, nsIDOMCDATASection** aReturn) { return _to CreateCDATASection(aData, aReturn); } \
|
||||
NS_IMETHOD CreateProcessingInstruction(const nsString& aTarget, const nsString& aData, nsIDOMProcessingInstruction** aReturn) { return _to CreateProcessingInstruction(aTarget, aData, aReturn); } \
|
||||
NS_IMETHOD CreateAttribute(const nsString& aName, nsIDOMAttr** aReturn) { return _to CreateAttribute(aName, aReturn); } \
|
||||
NS_IMETHOD CreateEntityReference(const nsString& aName, nsIDOMEntityReference** aReturn) { return _to CreateEntityReference(aName, aReturn); } \
|
||||
NS_IMETHOD GetElementsByTagName(const nsString& aTagname, nsIDOMNodeList** aReturn) { return _to GetElementsByTagName(aTagname, aReturn); } \
|
||||
|
||||
|
||||
extern "C" NS_DOM nsresult NS_InitDocumentClass(nsIScriptContext *aContext, void **aPrototype);
|
||||
|
||||
extern "C" NS_DOM nsresult NS_NewScriptDocument(nsIScriptContext *aContext, nsISupports *aSupports, nsISupports *aParent, void **aReturn);
|
||||
|
||||
#endif // nsIDOMDocument_h__
|
||||
54
mozilla/dom/public/coreDom/nsIDOMDocumentFragment.h
Normal file
54
mozilla/dom/public/coreDom/nsIDOMDocumentFragment.h
Normal file
@@ -0,0 +1,54 @@
|
||||
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
|
||||
*
|
||||
* The contents of this file are subject to the Netscape Public
|
||||
* License Version 1.1 (the "License"); you may not use this file
|
||||
* except in compliance with the License. You may obtain a copy of
|
||||
* the License at http://www.mozilla.org/NPL/
|
||||
*
|
||||
* Software distributed under the License is distributed on an "AS
|
||||
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
||||
* implied. See the License for the specific language governing
|
||||
* rights and limitations under the License.
|
||||
*
|
||||
* The Original Code is mozilla.org code.
|
||||
*
|
||||
* The Initial Developer of the Original Code is Netscape
|
||||
* Communications Corporation. Portions created by Netscape are
|
||||
* Copyright (C) 1998 Netscape Communications Corporation. All
|
||||
* Rights Reserved.
|
||||
*
|
||||
* Contributor(s):
|
||||
*/
|
||||
/* AUTO-GENERATED. DO NOT EDIT!!! */
|
||||
|
||||
#ifndef nsIDOMDocumentFragment_h__
|
||||
#define nsIDOMDocumentFragment_h__
|
||||
|
||||
#include "nsISupports.h"
|
||||
#include "nsString.h"
|
||||
#include "nsIScriptContext.h"
|
||||
#include "nsIDOMNode.h"
|
||||
|
||||
|
||||
#define NS_IDOMDOCUMENTFRAGMENT_IID \
|
||||
{ 0xa6cf9076, 0x15b3, 0x11d2, \
|
||||
{ 0x93, 0x2e, 0x00, 0x80, 0x5f, 0x8a, 0xdd, 0x32 } }
|
||||
|
||||
class nsIDOMDocumentFragment : public nsIDOMNode {
|
||||
public:
|
||||
static const nsIID& GetIID() { static nsIID iid = NS_IDOMDOCUMENTFRAGMENT_IID; return iid; }
|
||||
};
|
||||
|
||||
|
||||
#define NS_DECL_IDOMDOCUMENTFRAGMENT \
|
||||
|
||||
|
||||
|
||||
#define NS_FORWARD_IDOMDOCUMENTFRAGMENT(_to) \
|
||||
|
||||
|
||||
extern "C" NS_DOM nsresult NS_InitDocumentFragmentClass(nsIScriptContext *aContext, void **aPrototype);
|
||||
|
||||
extern "C" NS_DOM nsresult NS_NewScriptDocumentFragment(nsIScriptContext *aContext, nsISupports *aSupports, nsISupports *aParent, void **aReturn);
|
||||
|
||||
#endif // nsIDOMDocumentFragment_h__
|
||||
67
mozilla/dom/public/coreDom/nsIDOMDocumentType.h
Normal file
67
mozilla/dom/public/coreDom/nsIDOMDocumentType.h
Normal file
@@ -0,0 +1,67 @@
|
||||
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
|
||||
*
|
||||
* The contents of this file are subject to the Netscape Public
|
||||
* License Version 1.1 (the "License"); you may not use this file
|
||||
* except in compliance with the License. You may obtain a copy of
|
||||
* the License at http://www.mozilla.org/NPL/
|
||||
*
|
||||
* Software distributed under the License is distributed on an "AS
|
||||
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
||||
* implied. See the License for the specific language governing
|
||||
* rights and limitations under the License.
|
||||
*
|
||||
* The Original Code is mozilla.org code.
|
||||
*
|
||||
* The Initial Developer of the Original Code is Netscape
|
||||
* Communications Corporation. Portions created by Netscape are
|
||||
* Copyright (C) 1998 Netscape Communications Corporation. All
|
||||
* Rights Reserved.
|
||||
*
|
||||
* Contributor(s):
|
||||
*/
|
||||
/* AUTO-GENERATED. DO NOT EDIT!!! */
|
||||
|
||||
#ifndef nsIDOMDocumentType_h__
|
||||
#define nsIDOMDocumentType_h__
|
||||
|
||||
#include "nsISupports.h"
|
||||
#include "nsString.h"
|
||||
#include "nsIScriptContext.h"
|
||||
#include "nsIDOMNode.h"
|
||||
|
||||
class nsIDOMNamedNodeMap;
|
||||
|
||||
#define NS_IDOMDOCUMENTTYPE_IID \
|
||||
{ 0xa6cf9077, 0x15b3, 0x11d2, \
|
||||
{ 0x93, 0x2e, 0x00, 0x80, 0x5f, 0x8a, 0xdd, 0x32 } }
|
||||
|
||||
class nsIDOMDocumentType : public nsIDOMNode {
|
||||
public:
|
||||
static const nsIID& GetIID() { static nsIID iid = NS_IDOMDOCUMENTTYPE_IID; return iid; }
|
||||
|
||||
NS_IMETHOD GetName(nsString& aName)=0;
|
||||
|
||||
NS_IMETHOD GetEntities(nsIDOMNamedNodeMap** aEntities)=0;
|
||||
|
||||
NS_IMETHOD GetNotations(nsIDOMNamedNodeMap** aNotations)=0;
|
||||
};
|
||||
|
||||
|
||||
#define NS_DECL_IDOMDOCUMENTTYPE \
|
||||
NS_IMETHOD GetName(nsString& aName); \
|
||||
NS_IMETHOD GetEntities(nsIDOMNamedNodeMap** aEntities); \
|
||||
NS_IMETHOD GetNotations(nsIDOMNamedNodeMap** aNotations); \
|
||||
|
||||
|
||||
|
||||
#define NS_FORWARD_IDOMDOCUMENTTYPE(_to) \
|
||||
NS_IMETHOD GetName(nsString& aName) { return _to GetName(aName); } \
|
||||
NS_IMETHOD GetEntities(nsIDOMNamedNodeMap** aEntities) { return _to GetEntities(aEntities); } \
|
||||
NS_IMETHOD GetNotations(nsIDOMNamedNodeMap** aNotations) { return _to GetNotations(aNotations); } \
|
||||
|
||||
|
||||
extern "C" NS_DOM nsresult NS_InitDocumentTypeClass(nsIScriptContext *aContext, void **aPrototype);
|
||||
|
||||
extern "C" NS_DOM nsresult NS_NewScriptDocumentType(nsIScriptContext *aContext, nsISupports *aSupports, nsISupports *aParent, void **aReturn);
|
||||
|
||||
#endif // nsIDOMDocumentType_h__
|
||||
92
mozilla/dom/public/coreDom/nsIDOMElement.h
Normal file
92
mozilla/dom/public/coreDom/nsIDOMElement.h
Normal file
@@ -0,0 +1,92 @@
|
||||
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
|
||||
*
|
||||
* The contents of this file are subject to the Netscape Public
|
||||
* License Version 1.1 (the "License"); you may not use this file
|
||||
* except in compliance with the License. You may obtain a copy of
|
||||
* the License at http://www.mozilla.org/NPL/
|
||||
*
|
||||
* Software distributed under the License is distributed on an "AS
|
||||
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
||||
* implied. See the License for the specific language governing
|
||||
* rights and limitations under the License.
|
||||
*
|
||||
* The Original Code is mozilla.org code.
|
||||
*
|
||||
* The Initial Developer of the Original Code is Netscape
|
||||
* Communications Corporation. Portions created by Netscape are
|
||||
* Copyright (C) 1998 Netscape Communications Corporation. All
|
||||
* Rights Reserved.
|
||||
*
|
||||
* Contributor(s):
|
||||
*/
|
||||
/* AUTO-GENERATED. DO NOT EDIT!!! */
|
||||
|
||||
#ifndef nsIDOMElement_h__
|
||||
#define nsIDOMElement_h__
|
||||
|
||||
#include "nsISupports.h"
|
||||
#include "nsString.h"
|
||||
#include "nsIScriptContext.h"
|
||||
#include "nsIDOMNode.h"
|
||||
|
||||
class nsIDOMAttr;
|
||||
class nsIDOMNodeList;
|
||||
|
||||
#define NS_IDOMELEMENT_IID \
|
||||
{ 0xa6cf9078, 0x15b3, 0x11d2, \
|
||||
{ 0x93, 0x2e, 0x00, 0x80, 0x5f, 0x8a, 0xdd, 0x32 } }
|
||||
|
||||
class nsIDOMElement : public nsIDOMNode {
|
||||
public:
|
||||
static const nsIID& GetIID() { static nsIID iid = NS_IDOMELEMENT_IID; return iid; }
|
||||
|
||||
NS_IMETHOD GetTagName(nsString& aTagName)=0;
|
||||
|
||||
NS_IMETHOD GetAttribute(const nsString& aName, nsString& aReturn)=0;
|
||||
|
||||
NS_IMETHOD SetAttribute(const nsString& aName, const nsString& aValue)=0;
|
||||
|
||||
NS_IMETHOD RemoveAttribute(const nsString& aName)=0;
|
||||
|
||||
NS_IMETHOD GetAttributeNode(const nsString& aName, nsIDOMAttr** aReturn)=0;
|
||||
|
||||
NS_IMETHOD SetAttributeNode(nsIDOMAttr* aNewAttr, nsIDOMAttr** aReturn)=0;
|
||||
|
||||
NS_IMETHOD RemoveAttributeNode(nsIDOMAttr* aOldAttr, nsIDOMAttr** aReturn)=0;
|
||||
|
||||
NS_IMETHOD GetElementsByTagName(const nsString& aName, nsIDOMNodeList** aReturn)=0;
|
||||
|
||||
NS_IMETHOD Normalize()=0;
|
||||
};
|
||||
|
||||
|
||||
#define NS_DECL_IDOMELEMENT \
|
||||
NS_IMETHOD GetTagName(nsString& aTagName); \
|
||||
NS_IMETHOD GetAttribute(const nsString& aName, nsString& aReturn); \
|
||||
NS_IMETHOD SetAttribute(const nsString& aName, const nsString& aValue); \
|
||||
NS_IMETHOD RemoveAttribute(const nsString& aName); \
|
||||
NS_IMETHOD GetAttributeNode(const nsString& aName, nsIDOMAttr** aReturn); \
|
||||
NS_IMETHOD SetAttributeNode(nsIDOMAttr* aNewAttr, nsIDOMAttr** aReturn); \
|
||||
NS_IMETHOD RemoveAttributeNode(nsIDOMAttr* aOldAttr, nsIDOMAttr** aReturn); \
|
||||
NS_IMETHOD GetElementsByTagName(const nsString& aName, nsIDOMNodeList** aReturn); \
|
||||
NS_IMETHOD Normalize(); \
|
||||
|
||||
|
||||
|
||||
#define NS_FORWARD_IDOMELEMENT(_to) \
|
||||
NS_IMETHOD GetTagName(nsString& aTagName) { return _to GetTagName(aTagName); } \
|
||||
NS_IMETHOD GetAttribute(const nsString& aName, nsString& aReturn) { return _to GetAttribute(aName, aReturn); } \
|
||||
NS_IMETHOD SetAttribute(const nsString& aName, const nsString& aValue) { return _to SetAttribute(aName, aValue); } \
|
||||
NS_IMETHOD RemoveAttribute(const nsString& aName) { return _to RemoveAttribute(aName); } \
|
||||
NS_IMETHOD GetAttributeNode(const nsString& aName, nsIDOMAttr** aReturn) { return _to GetAttributeNode(aName, aReturn); } \
|
||||
NS_IMETHOD SetAttributeNode(nsIDOMAttr* aNewAttr, nsIDOMAttr** aReturn) { return _to SetAttributeNode(aNewAttr, aReturn); } \
|
||||
NS_IMETHOD RemoveAttributeNode(nsIDOMAttr* aOldAttr, nsIDOMAttr** aReturn) { return _to RemoveAttributeNode(aOldAttr, aReturn); } \
|
||||
NS_IMETHOD GetElementsByTagName(const nsString& aName, nsIDOMNodeList** aReturn) { return _to GetElementsByTagName(aName, aReturn); } \
|
||||
NS_IMETHOD Normalize() { return _to Normalize(); } \
|
||||
|
||||
|
||||
extern "C" NS_DOM nsresult NS_InitElementClass(nsIScriptContext *aContext, void **aPrototype);
|
||||
|
||||
extern "C" NS_DOM nsresult NS_NewScriptElement(nsIScriptContext *aContext, nsISupports *aSupports, nsISupports *aParent, void **aReturn);
|
||||
|
||||
#endif // nsIDOMElement_h__
|
||||
66
mozilla/dom/public/coreDom/nsIDOMEntity.h
Normal file
66
mozilla/dom/public/coreDom/nsIDOMEntity.h
Normal file
@@ -0,0 +1,66 @@
|
||||
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
|
||||
*
|
||||
* The contents of this file are subject to the Netscape Public
|
||||
* License Version 1.1 (the "License"); you may not use this file
|
||||
* except in compliance with the License. You may obtain a copy of
|
||||
* the License at http://www.mozilla.org/NPL/
|
||||
*
|
||||
* Software distributed under the License is distributed on an "AS
|
||||
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
||||
* implied. See the License for the specific language governing
|
||||
* rights and limitations under the License.
|
||||
*
|
||||
* The Original Code is mozilla.org code.
|
||||
*
|
||||
* The Initial Developer of the Original Code is Netscape
|
||||
* Communications Corporation. Portions created by Netscape are
|
||||
* Copyright (C) 1998 Netscape Communications Corporation. All
|
||||
* Rights Reserved.
|
||||
*
|
||||
* Contributor(s):
|
||||
*/
|
||||
/* AUTO-GENERATED. DO NOT EDIT!!! */
|
||||
|
||||
#ifndef nsIDOMEntity_h__
|
||||
#define nsIDOMEntity_h__
|
||||
|
||||
#include "nsISupports.h"
|
||||
#include "nsString.h"
|
||||
#include "nsIScriptContext.h"
|
||||
#include "nsIDOMNode.h"
|
||||
|
||||
|
||||
#define NS_IDOMENTITY_IID \
|
||||
{ 0xa6cf9079, 0x15b3, 0x11d2, \
|
||||
{ 0x93, 0x2e, 0x00, 0x80, 0x5f, 0x8a, 0xdd, 0x32 } }
|
||||
|
||||
class nsIDOMEntity : public nsIDOMNode {
|
||||
public:
|
||||
static const nsIID& GetIID() { static nsIID iid = NS_IDOMENTITY_IID; return iid; }
|
||||
|
||||
NS_IMETHOD GetPublicId(nsString& aPublicId)=0;
|
||||
|
||||
NS_IMETHOD GetSystemId(nsString& aSystemId)=0;
|
||||
|
||||
NS_IMETHOD GetNotationName(nsString& aNotationName)=0;
|
||||
};
|
||||
|
||||
|
||||
#define NS_DECL_IDOMENTITY \
|
||||
NS_IMETHOD GetPublicId(nsString& aPublicId); \
|
||||
NS_IMETHOD GetSystemId(nsString& aSystemId); \
|
||||
NS_IMETHOD GetNotationName(nsString& aNotationName); \
|
||||
|
||||
|
||||
|
||||
#define NS_FORWARD_IDOMENTITY(_to) \
|
||||
NS_IMETHOD GetPublicId(nsString& aPublicId) { return _to GetPublicId(aPublicId); } \
|
||||
NS_IMETHOD GetSystemId(nsString& aSystemId) { return _to GetSystemId(aSystemId); } \
|
||||
NS_IMETHOD GetNotationName(nsString& aNotationName) { return _to GetNotationName(aNotationName); } \
|
||||
|
||||
|
||||
extern "C" NS_DOM nsresult NS_InitEntityClass(nsIScriptContext *aContext, void **aPrototype);
|
||||
|
||||
extern "C" NS_DOM nsresult NS_NewScriptEntity(nsIScriptContext *aContext, nsISupports *aSupports, nsISupports *aParent, void **aReturn);
|
||||
|
||||
#endif // nsIDOMEntity_h__
|
||||
54
mozilla/dom/public/coreDom/nsIDOMEntityReference.h
Normal file
54
mozilla/dom/public/coreDom/nsIDOMEntityReference.h
Normal file
@@ -0,0 +1,54 @@
|
||||
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
|
||||
*
|
||||
* The contents of this file are subject to the Netscape Public
|
||||
* License Version 1.1 (the "License"); you may not use this file
|
||||
* except in compliance with the License. You may obtain a copy of
|
||||
* the License at http://www.mozilla.org/NPL/
|
||||
*
|
||||
* Software distributed under the License is distributed on an "AS
|
||||
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
||||
* implied. See the License for the specific language governing
|
||||
* rights and limitations under the License.
|
||||
*
|
||||
* The Original Code is mozilla.org code.
|
||||
*
|
||||
* The Initial Developer of the Original Code is Netscape
|
||||
* Communications Corporation. Portions created by Netscape are
|
||||
* Copyright (C) 1998 Netscape Communications Corporation. All
|
||||
* Rights Reserved.
|
||||
*
|
||||
* Contributor(s):
|
||||
*/
|
||||
/* AUTO-GENERATED. DO NOT EDIT!!! */
|
||||
|
||||
#ifndef nsIDOMEntityReference_h__
|
||||
#define nsIDOMEntityReference_h__
|
||||
|
||||
#include "nsISupports.h"
|
||||
#include "nsString.h"
|
||||
#include "nsIScriptContext.h"
|
||||
#include "nsIDOMNode.h"
|
||||
|
||||
|
||||
#define NS_IDOMENTITYREFERENCE_IID \
|
||||
{ 0xa6cf907a, 0x15b3, 0x11d2, \
|
||||
{ 0x93, 0x2e, 0x00, 0x80, 0x5f, 0x8a, 0xdd, 0x32 } }
|
||||
|
||||
class nsIDOMEntityReference : public nsIDOMNode {
|
||||
public:
|
||||
static const nsIID& GetIID() { static nsIID iid = NS_IDOMENTITYREFERENCE_IID; return iid; }
|
||||
};
|
||||
|
||||
|
||||
#define NS_DECL_IDOMENTITYREFERENCE \
|
||||
|
||||
|
||||
|
||||
#define NS_FORWARD_IDOMENTITYREFERENCE(_to) \
|
||||
|
||||
|
||||
extern "C" NS_DOM nsresult NS_InitEntityReferenceClass(nsIScriptContext *aContext, void **aPrototype);
|
||||
|
||||
extern "C" NS_DOM nsresult NS_NewScriptEntityReference(nsIScriptContext *aContext, nsISupports *aSupports, nsISupports *aParent, void **aReturn);
|
||||
|
||||
#endif // nsIDOMEntityReference_h__
|
||||
72
mozilla/dom/public/coreDom/nsIDOMNSDocument.h
Normal file
72
mozilla/dom/public/coreDom/nsIDOMNSDocument.h
Normal file
@@ -0,0 +1,72 @@
|
||||
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
|
||||
*
|
||||
* The contents of this file are subject to the Netscape Public
|
||||
* License Version 1.1 (the "License"); you may not use this file
|
||||
* except in compliance with the License. You may obtain a copy of
|
||||
* the License at http://www.mozilla.org/NPL/
|
||||
*
|
||||
* Software distributed under the License is distributed on an "AS
|
||||
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
||||
* implied. See the License for the specific language governing
|
||||
* rights and limitations under the License.
|
||||
*
|
||||
* The Original Code is mozilla.org code.
|
||||
*
|
||||
* The Initial Developer of the Original Code is Netscape
|
||||
* Communications Corporation. Portions created by Netscape are
|
||||
* Copyright (C) 1998 Netscape Communications Corporation. All
|
||||
* Rights Reserved.
|
||||
*
|
||||
* Contributor(s):
|
||||
*/
|
||||
/* AUTO-GENERATED. DO NOT EDIT!!! */
|
||||
|
||||
#ifndef nsIDOMNSDocument_h__
|
||||
#define nsIDOMNSDocument_h__
|
||||
|
||||
#include "nsISupports.h"
|
||||
#include "nsString.h"
|
||||
#include "nsIScriptContext.h"
|
||||
|
||||
class nsIDOMElement;
|
||||
class nsIDOMStyleSheetCollection;
|
||||
class nsIDOMRange;
|
||||
|
||||
#define NS_IDOMNSDOCUMENT_IID \
|
||||
{ 0xa6cf90cd, 0x15b3, 0x11d2, \
|
||||
{ 0x93, 0x2e, 0x00, 0x80, 0x5f, 0x8a, 0xdd, 0x32} }
|
||||
|
||||
class nsIDOMNSDocument : public nsISupports {
|
||||
public:
|
||||
static const nsIID& GetIID() { static nsIID iid = NS_IDOMNSDOCUMENT_IID; return iid; }
|
||||
|
||||
NS_IMETHOD GetWidth(PRInt32* aWidth)=0;
|
||||
|
||||
NS_IMETHOD GetHeight(PRInt32* aHeight)=0;
|
||||
|
||||
NS_IMETHOD GetStyleSheets(nsIDOMStyleSheetCollection** aStyleSheets)=0;
|
||||
|
||||
NS_IMETHOD CreateElementWithNameSpace(const nsString& aTagName, const nsString& aNameSpace, nsIDOMElement** aReturn)=0;
|
||||
|
||||
NS_IMETHOD CreateRange(nsIDOMRange** aReturn)=0;
|
||||
};
|
||||
|
||||
|
||||
#define NS_DECL_IDOMNSDOCUMENT \
|
||||
NS_IMETHOD GetWidth(PRInt32* aWidth); \
|
||||
NS_IMETHOD GetHeight(PRInt32* aHeight); \
|
||||
NS_IMETHOD GetStyleSheets(nsIDOMStyleSheetCollection** aStyleSheets); \
|
||||
NS_IMETHOD CreateElementWithNameSpace(const nsString& aTagName, const nsString& aNameSpace, nsIDOMElement** aReturn); \
|
||||
NS_IMETHOD CreateRange(nsIDOMRange** aReturn); \
|
||||
|
||||
|
||||
|
||||
#define NS_FORWARD_IDOMNSDOCUMENT(_to) \
|
||||
NS_IMETHOD GetWidth(PRInt32* aWidth) { return _to GetWidth(aWidth); } \
|
||||
NS_IMETHOD GetHeight(PRInt32* aHeight) { return _to GetHeight(aHeight); } \
|
||||
NS_IMETHOD GetStyleSheets(nsIDOMStyleSheetCollection** aStyleSheets) { return _to GetStyleSheets(aStyleSheets); } \
|
||||
NS_IMETHOD CreateElementWithNameSpace(const nsString& aTagName, const nsString& aNameSpace, nsIDOMElement** aReturn) { return _to CreateElementWithNameSpace(aTagName, aNameSpace, aReturn); } \
|
||||
NS_IMETHOD CreateRange(nsIDOMRange** aReturn) { return _to CreateRange(aReturn); } \
|
||||
|
||||
|
||||
#endif // nsIDOMNSDocument_h__
|
||||
74
mozilla/dom/public/coreDom/nsIDOMNamedNodeMap.h
Normal file
74
mozilla/dom/public/coreDom/nsIDOMNamedNodeMap.h
Normal file
@@ -0,0 +1,74 @@
|
||||
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
|
||||
*
|
||||
* The contents of this file are subject to the Netscape Public
|
||||
* License Version 1.1 (the "License"); you may not use this file
|
||||
* except in compliance with the License. You may obtain a copy of
|
||||
* the License at http://www.mozilla.org/NPL/
|
||||
*
|
||||
* Software distributed under the License is distributed on an "AS
|
||||
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
||||
* implied. See the License for the specific language governing
|
||||
* rights and limitations under the License.
|
||||
*
|
||||
* The Original Code is mozilla.org code.
|
||||
*
|
||||
* The Initial Developer of the Original Code is Netscape
|
||||
* Communications Corporation. Portions created by Netscape are
|
||||
* Copyright (C) 1998 Netscape Communications Corporation. All
|
||||
* Rights Reserved.
|
||||
*
|
||||
* Contributor(s):
|
||||
*/
|
||||
/* AUTO-GENERATED. DO NOT EDIT!!! */
|
||||
|
||||
#ifndef nsIDOMNamedNodeMap_h__
|
||||
#define nsIDOMNamedNodeMap_h__
|
||||
|
||||
#include "nsISupports.h"
|
||||
#include "nsString.h"
|
||||
#include "nsIScriptContext.h"
|
||||
|
||||
class nsIDOMNode;
|
||||
|
||||
#define NS_IDOMNAMEDNODEMAP_IID \
|
||||
{ 0xa6cf907b, 0x15b3, 0x11d2, \
|
||||
{ 0x93, 0x2e, 0x00, 0x80, 0x5f, 0x8a, 0xdd, 0x32 } }
|
||||
|
||||
class nsIDOMNamedNodeMap : public nsISupports {
|
||||
public:
|
||||
static const nsIID& GetIID() { static nsIID iid = NS_IDOMNAMEDNODEMAP_IID; return iid; }
|
||||
|
||||
NS_IMETHOD GetLength(PRUint32* aLength)=0;
|
||||
|
||||
NS_IMETHOD GetNamedItem(const nsString& aName, nsIDOMNode** aReturn)=0;
|
||||
|
||||
NS_IMETHOD SetNamedItem(nsIDOMNode* aArg, nsIDOMNode** aReturn)=0;
|
||||
|
||||
NS_IMETHOD RemoveNamedItem(const nsString& aName, nsIDOMNode** aReturn)=0;
|
||||
|
||||
NS_IMETHOD Item(PRUint32 aIndex, nsIDOMNode** aReturn)=0;
|
||||
};
|
||||
|
||||
|
||||
#define NS_DECL_IDOMNAMEDNODEMAP \
|
||||
NS_IMETHOD GetLength(PRUint32* aLength); \
|
||||
NS_IMETHOD GetNamedItem(const nsString& aName, nsIDOMNode** aReturn); \
|
||||
NS_IMETHOD SetNamedItem(nsIDOMNode* aArg, nsIDOMNode** aReturn); \
|
||||
NS_IMETHOD RemoveNamedItem(const nsString& aName, nsIDOMNode** aReturn); \
|
||||
NS_IMETHOD Item(PRUint32 aIndex, nsIDOMNode** aReturn); \
|
||||
|
||||
|
||||
|
||||
#define NS_FORWARD_IDOMNAMEDNODEMAP(_to) \
|
||||
NS_IMETHOD GetLength(PRUint32* aLength) { return _to GetLength(aLength); } \
|
||||
NS_IMETHOD GetNamedItem(const nsString& aName, nsIDOMNode** aReturn) { return _to GetNamedItem(aName, aReturn); } \
|
||||
NS_IMETHOD SetNamedItem(nsIDOMNode* aArg, nsIDOMNode** aReturn) { return _to SetNamedItem(aArg, aReturn); } \
|
||||
NS_IMETHOD RemoveNamedItem(const nsString& aName, nsIDOMNode** aReturn) { return _to RemoveNamedItem(aName, aReturn); } \
|
||||
NS_IMETHOD Item(PRUint32 aIndex, nsIDOMNode** aReturn) { return _to Item(aIndex, aReturn); } \
|
||||
|
||||
|
||||
extern "C" NS_DOM nsresult NS_InitNamedNodeMapClass(nsIScriptContext *aContext, void **aPrototype);
|
||||
|
||||
extern "C" NS_DOM nsresult NS_NewScriptNamedNodeMap(nsIScriptContext *aContext, nsISupports *aSupports, nsISupports *aParent, void **aReturn);
|
||||
|
||||
#endif // nsIDOMNamedNodeMap_h__
|
||||
142
mozilla/dom/public/coreDom/nsIDOMNode.h
Normal file
142
mozilla/dom/public/coreDom/nsIDOMNode.h
Normal file
@@ -0,0 +1,142 @@
|
||||
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
|
||||
*
|
||||
* The contents of this file are subject to the Netscape Public
|
||||
* License Version 1.1 (the "License"); you may not use this file
|
||||
* except in compliance with the License. You may obtain a copy of
|
||||
* the License at http://www.mozilla.org/NPL/
|
||||
*
|
||||
* Software distributed under the License is distributed on an "AS
|
||||
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
||||
* implied. See the License for the specific language governing
|
||||
* rights and limitations under the License.
|
||||
*
|
||||
* The Original Code is mozilla.org code.
|
||||
*
|
||||
* The Initial Developer of the Original Code is Netscape
|
||||
* Communications Corporation. Portions created by Netscape are
|
||||
* Copyright (C) 1998 Netscape Communications Corporation. All
|
||||
* Rights Reserved.
|
||||
*
|
||||
* Contributor(s):
|
||||
*/
|
||||
/* AUTO-GENERATED. DO NOT EDIT!!! */
|
||||
|
||||
#ifndef nsIDOMNode_h__
|
||||
#define nsIDOMNode_h__
|
||||
|
||||
#include "nsISupports.h"
|
||||
#include "nsString.h"
|
||||
#include "nsIScriptContext.h"
|
||||
|
||||
class nsIDOMDocument;
|
||||
class nsIDOMNamedNodeMap;
|
||||
class nsIDOMNode;
|
||||
class nsIDOMNodeList;
|
||||
|
||||
#define NS_IDOMNODE_IID \
|
||||
{ 0xa6cf907c, 0x15b3, 0x11d2, \
|
||||
{ 0x93, 0x2e, 0x00, 0x80, 0x5f, 0x8a, 0xdd, 0x32 } }
|
||||
|
||||
class nsIDOMNode : public nsISupports {
|
||||
public:
|
||||
static const nsIID& GetIID() { static nsIID iid = NS_IDOMNODE_IID; return iid; }
|
||||
enum {
|
||||
ELEMENT_NODE = 1,
|
||||
ATTRIBUTE_NODE = 2,
|
||||
TEXT_NODE = 3,
|
||||
CDATA_SECTION_NODE = 4,
|
||||
ENTITY_REFERENCE_NODE = 5,
|
||||
ENTITY_NODE = 6,
|
||||
PROCESSING_INSTRUCTION_NODE = 7,
|
||||
COMMENT_NODE = 8,
|
||||
DOCUMENT_NODE = 9,
|
||||
DOCUMENT_TYPE_NODE = 10,
|
||||
DOCUMENT_FRAGMENT_NODE = 11,
|
||||
NOTATION_NODE = 12
|
||||
};
|
||||
|
||||
NS_IMETHOD GetNodeName(nsString& aNodeName)=0;
|
||||
|
||||
NS_IMETHOD GetNodeValue(nsString& aNodeValue)=0;
|
||||
NS_IMETHOD SetNodeValue(const nsString& aNodeValue)=0;
|
||||
|
||||
NS_IMETHOD GetNodeType(PRUint16* aNodeType)=0;
|
||||
|
||||
NS_IMETHOD GetParentNode(nsIDOMNode** aParentNode)=0;
|
||||
|
||||
NS_IMETHOD GetChildNodes(nsIDOMNodeList** aChildNodes)=0;
|
||||
|
||||
NS_IMETHOD GetFirstChild(nsIDOMNode** aFirstChild)=0;
|
||||
|
||||
NS_IMETHOD GetLastChild(nsIDOMNode** aLastChild)=0;
|
||||
|
||||
NS_IMETHOD GetPreviousSibling(nsIDOMNode** aPreviousSibling)=0;
|
||||
|
||||
NS_IMETHOD GetNextSibling(nsIDOMNode** aNextSibling)=0;
|
||||
|
||||
NS_IMETHOD GetAttributes(nsIDOMNamedNodeMap** aAttributes)=0;
|
||||
|
||||
NS_IMETHOD GetOwnerDocument(nsIDOMDocument** aOwnerDocument)=0;
|
||||
|
||||
NS_IMETHOD InsertBefore(nsIDOMNode* aNewChild, nsIDOMNode* aRefChild, nsIDOMNode** aReturn)=0;
|
||||
|
||||
NS_IMETHOD ReplaceChild(nsIDOMNode* aNewChild, nsIDOMNode* aOldChild, nsIDOMNode** aReturn)=0;
|
||||
|
||||
NS_IMETHOD RemoveChild(nsIDOMNode* aOldChild, nsIDOMNode** aReturn)=0;
|
||||
|
||||
NS_IMETHOD AppendChild(nsIDOMNode* aNewChild, nsIDOMNode** aReturn)=0;
|
||||
|
||||
NS_IMETHOD HasChildNodes(PRBool* aReturn)=0;
|
||||
|
||||
NS_IMETHOD CloneNode(PRBool aDeep, nsIDOMNode** aReturn)=0;
|
||||
};
|
||||
|
||||
|
||||
#define NS_DECL_IDOMNODE \
|
||||
NS_IMETHOD GetNodeName(nsString& aNodeName); \
|
||||
NS_IMETHOD GetNodeValue(nsString& aNodeValue); \
|
||||
NS_IMETHOD SetNodeValue(const nsString& aNodeValue); \
|
||||
NS_IMETHOD GetNodeType(PRUint16* aNodeType); \
|
||||
NS_IMETHOD GetParentNode(nsIDOMNode** aParentNode); \
|
||||
NS_IMETHOD GetChildNodes(nsIDOMNodeList** aChildNodes); \
|
||||
NS_IMETHOD GetFirstChild(nsIDOMNode** aFirstChild); \
|
||||
NS_IMETHOD GetLastChild(nsIDOMNode** aLastChild); \
|
||||
NS_IMETHOD GetPreviousSibling(nsIDOMNode** aPreviousSibling); \
|
||||
NS_IMETHOD GetNextSibling(nsIDOMNode** aNextSibling); \
|
||||
NS_IMETHOD GetAttributes(nsIDOMNamedNodeMap** aAttributes); \
|
||||
NS_IMETHOD GetOwnerDocument(nsIDOMDocument** aOwnerDocument); \
|
||||
NS_IMETHOD InsertBefore(nsIDOMNode* aNewChild, nsIDOMNode* aRefChild, nsIDOMNode** aReturn); \
|
||||
NS_IMETHOD ReplaceChild(nsIDOMNode* aNewChild, nsIDOMNode* aOldChild, nsIDOMNode** aReturn); \
|
||||
NS_IMETHOD RemoveChild(nsIDOMNode* aOldChild, nsIDOMNode** aReturn); \
|
||||
NS_IMETHOD AppendChild(nsIDOMNode* aNewChild, nsIDOMNode** aReturn); \
|
||||
NS_IMETHOD HasChildNodes(PRBool* aReturn); \
|
||||
NS_IMETHOD CloneNode(PRBool aDeep, nsIDOMNode** aReturn); \
|
||||
|
||||
|
||||
|
||||
#define NS_FORWARD_IDOMNODE(_to) \
|
||||
NS_IMETHOD GetNodeName(nsString& aNodeName) { return _to GetNodeName(aNodeName); } \
|
||||
NS_IMETHOD GetNodeValue(nsString& aNodeValue) { return _to GetNodeValue(aNodeValue); } \
|
||||
NS_IMETHOD SetNodeValue(const nsString& aNodeValue) { return _to SetNodeValue(aNodeValue); } \
|
||||
NS_IMETHOD GetNodeType(PRUint16* aNodeType) { return _to GetNodeType(aNodeType); } \
|
||||
NS_IMETHOD GetParentNode(nsIDOMNode** aParentNode) { return _to GetParentNode(aParentNode); } \
|
||||
NS_IMETHOD GetChildNodes(nsIDOMNodeList** aChildNodes) { return _to GetChildNodes(aChildNodes); } \
|
||||
NS_IMETHOD GetFirstChild(nsIDOMNode** aFirstChild) { return _to GetFirstChild(aFirstChild); } \
|
||||
NS_IMETHOD GetLastChild(nsIDOMNode** aLastChild) { return _to GetLastChild(aLastChild); } \
|
||||
NS_IMETHOD GetPreviousSibling(nsIDOMNode** aPreviousSibling) { return _to GetPreviousSibling(aPreviousSibling); } \
|
||||
NS_IMETHOD GetNextSibling(nsIDOMNode** aNextSibling) { return _to GetNextSibling(aNextSibling); } \
|
||||
NS_IMETHOD GetAttributes(nsIDOMNamedNodeMap** aAttributes) { return _to GetAttributes(aAttributes); } \
|
||||
NS_IMETHOD GetOwnerDocument(nsIDOMDocument** aOwnerDocument) { return _to GetOwnerDocument(aOwnerDocument); } \
|
||||
NS_IMETHOD InsertBefore(nsIDOMNode* aNewChild, nsIDOMNode* aRefChild, nsIDOMNode** aReturn) { return _to InsertBefore(aNewChild, aRefChild, aReturn); } \
|
||||
NS_IMETHOD ReplaceChild(nsIDOMNode* aNewChild, nsIDOMNode* aOldChild, nsIDOMNode** aReturn) { return _to ReplaceChild(aNewChild, aOldChild, aReturn); } \
|
||||
NS_IMETHOD RemoveChild(nsIDOMNode* aOldChild, nsIDOMNode** aReturn) { return _to RemoveChild(aOldChild, aReturn); } \
|
||||
NS_IMETHOD AppendChild(nsIDOMNode* aNewChild, nsIDOMNode** aReturn) { return _to AppendChild(aNewChild, aReturn); } \
|
||||
NS_IMETHOD HasChildNodes(PRBool* aReturn) { return _to HasChildNodes(aReturn); } \
|
||||
NS_IMETHOD CloneNode(PRBool aDeep, nsIDOMNode** aReturn) { return _to CloneNode(aDeep, aReturn); } \
|
||||
|
||||
|
||||
extern "C" NS_DOM nsresult NS_InitNodeClass(nsIScriptContext *aContext, void **aPrototype);
|
||||
|
||||
extern "C" NS_DOM nsresult NS_NewScriptNode(nsIScriptContext *aContext, nsISupports *aSupports, nsISupports *aParent, void **aReturn);
|
||||
|
||||
#endif // nsIDOMNode_h__
|
||||
62
mozilla/dom/public/coreDom/nsIDOMNodeList.h
Normal file
62
mozilla/dom/public/coreDom/nsIDOMNodeList.h
Normal file
@@ -0,0 +1,62 @@
|
||||
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
|
||||
*
|
||||
* The contents of this file are subject to the Netscape Public
|
||||
* License Version 1.1 (the "License"); you may not use this file
|
||||
* except in compliance with the License. You may obtain a copy of
|
||||
* the License at http://www.mozilla.org/NPL/
|
||||
*
|
||||
* Software distributed under the License is distributed on an "AS
|
||||
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
||||
* implied. See the License for the specific language governing
|
||||
* rights and limitations under the License.
|
||||
*
|
||||
* The Original Code is mozilla.org code.
|
||||
*
|
||||
* The Initial Developer of the Original Code is Netscape
|
||||
* Communications Corporation. Portions created by Netscape are
|
||||
* Copyright (C) 1998 Netscape Communications Corporation. All
|
||||
* Rights Reserved.
|
||||
*
|
||||
* Contributor(s):
|
||||
*/
|
||||
/* AUTO-GENERATED. DO NOT EDIT!!! */
|
||||
|
||||
#ifndef nsIDOMNodeList_h__
|
||||
#define nsIDOMNodeList_h__
|
||||
|
||||
#include "nsISupports.h"
|
||||
#include "nsString.h"
|
||||
#include "nsIScriptContext.h"
|
||||
|
||||
class nsIDOMNode;
|
||||
|
||||
#define NS_IDOMNODELIST_IID \
|
||||
{ 0xa6cf907d, 0x15b3, 0x11d2, \
|
||||
{ 0x93, 0x2e, 0x00, 0x80, 0x5f, 0x8a, 0xdd, 0x32 } }
|
||||
|
||||
class nsIDOMNodeList : public nsISupports {
|
||||
public:
|
||||
static const nsIID& GetIID() { static nsIID iid = NS_IDOMNODELIST_IID; return iid; }
|
||||
|
||||
NS_IMETHOD GetLength(PRUint32* aLength)=0;
|
||||
|
||||
NS_IMETHOD Item(PRUint32 aIndex, nsIDOMNode** aReturn)=0;
|
||||
};
|
||||
|
||||
|
||||
#define NS_DECL_IDOMNODELIST \
|
||||
NS_IMETHOD GetLength(PRUint32* aLength); \
|
||||
NS_IMETHOD Item(PRUint32 aIndex, nsIDOMNode** aReturn); \
|
||||
|
||||
|
||||
|
||||
#define NS_FORWARD_IDOMNODELIST(_to) \
|
||||
NS_IMETHOD GetLength(PRUint32* aLength) { return _to GetLength(aLength); } \
|
||||
NS_IMETHOD Item(PRUint32 aIndex, nsIDOMNode** aReturn) { return _to Item(aIndex, aReturn); } \
|
||||
|
||||
|
||||
extern "C" NS_DOM nsresult NS_InitNodeListClass(nsIScriptContext *aContext, void **aPrototype);
|
||||
|
||||
extern "C" NS_DOM nsresult NS_NewScriptNodeList(nsIScriptContext *aContext, nsISupports *aSupports, nsISupports *aParent, void **aReturn);
|
||||
|
||||
#endif // nsIDOMNodeList_h__
|
||||
62
mozilla/dom/public/coreDom/nsIDOMNotation.h
Normal file
62
mozilla/dom/public/coreDom/nsIDOMNotation.h
Normal file
@@ -0,0 +1,62 @@
|
||||
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
|
||||
*
|
||||
* The contents of this file are subject to the Netscape Public
|
||||
* License Version 1.1 (the "License"); you may not use this file
|
||||
* except in compliance with the License. You may obtain a copy of
|
||||
* the License at http://www.mozilla.org/NPL/
|
||||
*
|
||||
* Software distributed under the License is distributed on an "AS
|
||||
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
||||
* implied. See the License for the specific language governing
|
||||
* rights and limitations under the License.
|
||||
*
|
||||
* The Original Code is mozilla.org code.
|
||||
*
|
||||
* The Initial Developer of the Original Code is Netscape
|
||||
* Communications Corporation. Portions created by Netscape are
|
||||
* Copyright (C) 1998 Netscape Communications Corporation. All
|
||||
* Rights Reserved.
|
||||
*
|
||||
* Contributor(s):
|
||||
*/
|
||||
/* AUTO-GENERATED. DO NOT EDIT!!! */
|
||||
|
||||
#ifndef nsIDOMNotation_h__
|
||||
#define nsIDOMNotation_h__
|
||||
|
||||
#include "nsISupports.h"
|
||||
#include "nsString.h"
|
||||
#include "nsIScriptContext.h"
|
||||
#include "nsIDOMNode.h"
|
||||
|
||||
|
||||
#define NS_IDOMNOTATION_IID \
|
||||
{ 0xa6cf907e, 0x15b3, 0x11d2, \
|
||||
{ 0x93, 0x2e, 0x00, 0x80, 0x5f, 0x8a, 0xdd, 0x32 } }
|
||||
|
||||
class nsIDOMNotation : public nsIDOMNode {
|
||||
public:
|
||||
static const nsIID& GetIID() { static nsIID iid = NS_IDOMNOTATION_IID; return iid; }
|
||||
|
||||
NS_IMETHOD GetPublicId(nsString& aPublicId)=0;
|
||||
|
||||
NS_IMETHOD GetSystemId(nsString& aSystemId)=0;
|
||||
};
|
||||
|
||||
|
||||
#define NS_DECL_IDOMNOTATION \
|
||||
NS_IMETHOD GetPublicId(nsString& aPublicId); \
|
||||
NS_IMETHOD GetSystemId(nsString& aSystemId); \
|
||||
|
||||
|
||||
|
||||
#define NS_FORWARD_IDOMNOTATION(_to) \
|
||||
NS_IMETHOD GetPublicId(nsString& aPublicId) { return _to GetPublicId(aPublicId); } \
|
||||
NS_IMETHOD GetSystemId(nsString& aSystemId) { return _to GetSystemId(aSystemId); } \
|
||||
|
||||
|
||||
extern "C" NS_DOM nsresult NS_InitNotationClass(nsIScriptContext *aContext, void **aPrototype);
|
||||
|
||||
extern "C" NS_DOM nsresult NS_NewScriptNotation(nsIScriptContext *aContext, nsISupports *aSupports, nsISupports *aParent, void **aReturn);
|
||||
|
||||
#endif // nsIDOMNotation_h__
|
||||
65
mozilla/dom/public/coreDom/nsIDOMProcessingInstruction.h
Normal file
65
mozilla/dom/public/coreDom/nsIDOMProcessingInstruction.h
Normal file
@@ -0,0 +1,65 @@
|
||||
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
|
||||
*
|
||||
* The contents of this file are subject to the Netscape Public
|
||||
* License Version 1.1 (the "License"); you may not use this file
|
||||
* except in compliance with the License. You may obtain a copy of
|
||||
* the License at http://www.mozilla.org/NPL/
|
||||
*
|
||||
* Software distributed under the License is distributed on an "AS
|
||||
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
||||
* implied. See the License for the specific language governing
|
||||
* rights and limitations under the License.
|
||||
*
|
||||
* The Original Code is mozilla.org code.
|
||||
*
|
||||
* The Initial Developer of the Original Code is Netscape
|
||||
* Communications Corporation. Portions created by Netscape are
|
||||
* Copyright (C) 1998 Netscape Communications Corporation. All
|
||||
* Rights Reserved.
|
||||
*
|
||||
* Contributor(s):
|
||||
*/
|
||||
/* AUTO-GENERATED. DO NOT EDIT!!! */
|
||||
|
||||
#ifndef nsIDOMProcessingInstruction_h__
|
||||
#define nsIDOMProcessingInstruction_h__
|
||||
|
||||
#include "nsISupports.h"
|
||||
#include "nsString.h"
|
||||
#include "nsIScriptContext.h"
|
||||
#include "nsIDOMNode.h"
|
||||
|
||||
|
||||
#define NS_IDOMPROCESSINGINSTRUCTION_IID \
|
||||
{ 0xa6cf907f, 0x15b3, 0x11d2, \
|
||||
{ 0x93, 0x2e, 0x00, 0x80, 0x5f, 0x8a, 0xdd, 0x32 } }
|
||||
|
||||
class nsIDOMProcessingInstruction : public nsIDOMNode {
|
||||
public:
|
||||
static const nsIID& GetIID() { static nsIID iid = NS_IDOMPROCESSINGINSTRUCTION_IID; return iid; }
|
||||
|
||||
NS_IMETHOD GetTarget(nsString& aTarget)=0;
|
||||
|
||||
NS_IMETHOD GetData(nsString& aData)=0;
|
||||
NS_IMETHOD SetData(const nsString& aData)=0;
|
||||
};
|
||||
|
||||
|
||||
#define NS_DECL_IDOMPROCESSINGINSTRUCTION \
|
||||
NS_IMETHOD GetTarget(nsString& aTarget); \
|
||||
NS_IMETHOD GetData(nsString& aData); \
|
||||
NS_IMETHOD SetData(const nsString& aData); \
|
||||
|
||||
|
||||
|
||||
#define NS_FORWARD_IDOMPROCESSINGINSTRUCTION(_to) \
|
||||
NS_IMETHOD GetTarget(nsString& aTarget) { return _to GetTarget(aTarget); } \
|
||||
NS_IMETHOD GetData(nsString& aData) { return _to GetData(aData); } \
|
||||
NS_IMETHOD SetData(const nsString& aData) { return _to SetData(aData); } \
|
||||
|
||||
|
||||
extern "C" NS_DOM nsresult NS_InitProcessingInstructionClass(nsIScriptContext *aContext, void **aPrototype);
|
||||
|
||||
extern "C" NS_DOM nsresult NS_NewScriptProcessingInstruction(nsIScriptContext *aContext, nsISupports *aSupports, nsISupports *aParent, void **aReturn);
|
||||
|
||||
#endif // nsIDOMProcessingInstruction_h__
|
||||
68
mozilla/dom/public/coreDom/nsIDOMStyleSheet.h
Normal file
68
mozilla/dom/public/coreDom/nsIDOMStyleSheet.h
Normal file
@@ -0,0 +1,68 @@
|
||||
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
|
||||
*
|
||||
* The contents of this file are subject to the Netscape Public
|
||||
* License Version 1.1 (the "License"); you may not use this file
|
||||
* except in compliance with the License. You may obtain a copy of
|
||||
* the License at http://www.mozilla.org/NPL/
|
||||
*
|
||||
* Software distributed under the License is distributed on an "AS
|
||||
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
||||
* implied. See the License for the specific language governing
|
||||
* rights and limitations under the License.
|
||||
*
|
||||
* The Original Code is mozilla.org code.
|
||||
*
|
||||
* The Initial Developer of the Original Code is Netscape
|
||||
* Communications Corporation. Portions created by Netscape are
|
||||
* Copyright (C) 1998 Netscape Communications Corporation. All
|
||||
* Rights Reserved.
|
||||
*
|
||||
* Contributor(s):
|
||||
*/
|
||||
/* AUTO-GENERATED. DO NOT EDIT!!! */
|
||||
|
||||
#ifndef nsIDOMStyleSheet_h__
|
||||
#define nsIDOMStyleSheet_h__
|
||||
|
||||
#include "nsISupports.h"
|
||||
#include "nsString.h"
|
||||
#include "nsIScriptContext.h"
|
||||
|
||||
|
||||
#define NS_IDOMSTYLESHEET_IID \
|
||||
{ 0xa6cf9080, 0x15b3, 0x11d2, \
|
||||
{ 0x93, 0x2e, 0x00, 0x80, 0x5f, 0x8a, 0xdd, 0x32 } }
|
||||
|
||||
class nsIDOMStyleSheet : public nsISupports {
|
||||
public:
|
||||
static const nsIID& GetIID() { static nsIID iid = NS_IDOMSTYLESHEET_IID; return iid; }
|
||||
|
||||
NS_IMETHOD GetType(nsString& aType)=0;
|
||||
|
||||
NS_IMETHOD GetDisabled(PRBool* aDisabled)=0;
|
||||
NS_IMETHOD SetDisabled(PRBool aDisabled)=0;
|
||||
|
||||
NS_IMETHOD GetReadOnly(PRBool* aReadOnly)=0;
|
||||
};
|
||||
|
||||
|
||||
#define NS_DECL_IDOMSTYLESHEET \
|
||||
NS_IMETHOD GetType(nsString& aType); \
|
||||
NS_IMETHOD GetDisabled(PRBool* aDisabled); \
|
||||
NS_IMETHOD SetDisabled(PRBool aDisabled); \
|
||||
NS_IMETHOD GetReadOnly(PRBool* aReadOnly); \
|
||||
|
||||
|
||||
|
||||
#define NS_FORWARD_IDOMSTYLESHEET(_to) \
|
||||
NS_IMETHOD GetType(nsString& aType) { return _to GetType(aType); } \
|
||||
NS_IMETHOD GetDisabled(PRBool* aDisabled) { return _to GetDisabled(aDisabled); } \
|
||||
NS_IMETHOD SetDisabled(PRBool aDisabled) { return _to SetDisabled(aDisabled); } \
|
||||
NS_IMETHOD GetReadOnly(PRBool* aReadOnly) { return _to GetReadOnly(aReadOnly); } \
|
||||
|
||||
|
||||
extern "C" NS_DOM nsresult NS_InitStyleSheetClass(nsIScriptContext *aContext, void **aPrototype);
|
||||
|
||||
extern "C" NS_DOM nsresult NS_NewScriptStyleSheet(nsIScriptContext *aContext, nsISupports *aSupports, nsISupports *aParent, void **aReturn);
|
||||
|
||||
#endif // nsIDOMStyleSheet_h__
|
||||
62
mozilla/dom/public/coreDom/nsIDOMStyleSheetCollection.h
Normal file
62
mozilla/dom/public/coreDom/nsIDOMStyleSheetCollection.h
Normal file
@@ -0,0 +1,62 @@
|
||||
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
|
||||
*
|
||||
* The contents of this file are subject to the Netscape Public
|
||||
* License Version 1.1 (the "License"); you may not use this file
|
||||
* except in compliance with the License. You may obtain a copy of
|
||||
* the License at http://www.mozilla.org/NPL/
|
||||
*
|
||||
* Software distributed under the License is distributed on an "AS
|
||||
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
||||
* implied. See the License for the specific language governing
|
||||
* rights and limitations under the License.
|
||||
*
|
||||
* The Original Code is mozilla.org code.
|
||||
*
|
||||
* The Initial Developer of the Original Code is Netscape
|
||||
* Communications Corporation. Portions created by Netscape are
|
||||
* Copyright (C) 1998 Netscape Communications Corporation. All
|
||||
* Rights Reserved.
|
||||
*
|
||||
* Contributor(s):
|
||||
*/
|
||||
/* AUTO-GENERATED. DO NOT EDIT!!! */
|
||||
|
||||
#ifndef nsIDOMStyleSheetCollection_h__
|
||||
#define nsIDOMStyleSheetCollection_h__
|
||||
|
||||
#include "nsISupports.h"
|
||||
#include "nsString.h"
|
||||
#include "nsIScriptContext.h"
|
||||
|
||||
class nsIDOMStyleSheet;
|
||||
|
||||
#define NS_IDOMSTYLESHEETCOLLECTION_IID \
|
||||
{ 0xa6cf9081, 0x15b3, 0x11d2, \
|
||||
{ 0x93, 0x2e, 0x00, 0x80, 0x5f, 0x8a, 0xdd, 0x32 } }
|
||||
|
||||
class nsIDOMStyleSheetCollection : public nsISupports {
|
||||
public:
|
||||
static const nsIID& GetIID() { static nsIID iid = NS_IDOMSTYLESHEETCOLLECTION_IID; return iid; }
|
||||
|
||||
NS_IMETHOD GetLength(PRUint32* aLength)=0;
|
||||
|
||||
NS_IMETHOD Item(PRUint32 aIndex, nsIDOMStyleSheet** aReturn)=0;
|
||||
};
|
||||
|
||||
|
||||
#define NS_DECL_IDOMSTYLESHEETCOLLECTION \
|
||||
NS_IMETHOD GetLength(PRUint32* aLength); \
|
||||
NS_IMETHOD Item(PRUint32 aIndex, nsIDOMStyleSheet** aReturn); \
|
||||
|
||||
|
||||
|
||||
#define NS_FORWARD_IDOMSTYLESHEETCOLLECTION(_to) \
|
||||
NS_IMETHOD GetLength(PRUint32* aLength) { return _to GetLength(aLength); } \
|
||||
NS_IMETHOD Item(PRUint32 aIndex, nsIDOMStyleSheet** aReturn) { return _to Item(aIndex, aReturn); } \
|
||||
|
||||
|
||||
extern "C" NS_DOM nsresult NS_InitStyleSheetCollectionClass(nsIScriptContext *aContext, void **aPrototype);
|
||||
|
||||
extern "C" NS_DOM nsresult NS_NewScriptStyleSheetCollection(nsIScriptContext *aContext, nsISupports *aSupports, nsISupports *aParent, void **aReturn);
|
||||
|
||||
#endif // nsIDOMStyleSheetCollection_h__
|
||||
59
mozilla/dom/public/coreDom/nsIDOMText.h
Normal file
59
mozilla/dom/public/coreDom/nsIDOMText.h
Normal file
@@ -0,0 +1,59 @@
|
||||
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
|
||||
*
|
||||
* The contents of this file are subject to the Netscape Public
|
||||
* License Version 1.1 (the "License"); you may not use this file
|
||||
* except in compliance with the License. You may obtain a copy of
|
||||
* the License at http://www.mozilla.org/NPL/
|
||||
*
|
||||
* Software distributed under the License is distributed on an "AS
|
||||
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
||||
* implied. See the License for the specific language governing
|
||||
* rights and limitations under the License.
|
||||
*
|
||||
* The Original Code is mozilla.org code.
|
||||
*
|
||||
* The Initial Developer of the Original Code is Netscape
|
||||
* Communications Corporation. Portions created by Netscape are
|
||||
* Copyright (C) 1998 Netscape Communications Corporation. All
|
||||
* Rights Reserved.
|
||||
*
|
||||
* Contributor(s):
|
||||
*/
|
||||
/* AUTO-GENERATED. DO NOT EDIT!!! */
|
||||
|
||||
#ifndef nsIDOMText_h__
|
||||
#define nsIDOMText_h__
|
||||
|
||||
#include "nsISupports.h"
|
||||
#include "nsString.h"
|
||||
#include "nsIScriptContext.h"
|
||||
#include "nsIDOMCharacterData.h"
|
||||
|
||||
class nsIDOMText;
|
||||
|
||||
#define NS_IDOMTEXT_IID \
|
||||
{ 0xa6cf9082, 0x15b3, 0x11d2, \
|
||||
{ 0x93, 0x2e, 0x00, 0x80, 0x5f, 0x8a, 0xdd, 0x32 } }
|
||||
|
||||
class nsIDOMText : public nsIDOMCharacterData {
|
||||
public:
|
||||
static const nsIID& GetIID() { static nsIID iid = NS_IDOMTEXT_IID; return iid; }
|
||||
|
||||
NS_IMETHOD SplitText(PRUint32 aOffset, nsIDOMText** aReturn)=0;
|
||||
};
|
||||
|
||||
|
||||
#define NS_DECL_IDOMTEXT \
|
||||
NS_IMETHOD SplitText(PRUint32 aOffset, nsIDOMText** aReturn); \
|
||||
|
||||
|
||||
|
||||
#define NS_FORWARD_IDOMTEXT(_to) \
|
||||
NS_IMETHOD SplitText(PRUint32 aOffset, nsIDOMText** aReturn) { return _to SplitText(aOffset, aReturn); } \
|
||||
|
||||
|
||||
extern "C" NS_DOM nsresult NS_InitTextClass(nsIScriptContext *aContext, void **aPrototype);
|
||||
|
||||
extern "C" NS_DOM nsresult NS_NewScriptText(nsIScriptContext *aContext, nsISupports *aSupports, nsISupports *aParent, void **aReturn);
|
||||
|
||||
#endif // nsIDOMText_h__
|
||||
26
mozilla/dom/public/coreEvents/MANIFEST
Normal file
26
mozilla/dom/public/coreEvents/MANIFEST
Normal file
@@ -0,0 +1,26 @@
|
||||
#
|
||||
# This is a list of local files which get copied to the mozilla:dist:dom directory
|
||||
#
|
||||
|
||||
nsIDOMEvent.h
|
||||
nsIDOMUIEvent.h
|
||||
nsIDOMKeyEvent.h
|
||||
nsIDOMMouseEvent.h
|
||||
nsIDOMNSUIEvent.h
|
||||
nsIDOMEventListener.h
|
||||
nsIDOMEventCapturer.h
|
||||
nsIDOMEventReceiver.h
|
||||
nsIDOMFocusListener.h
|
||||
nsIDOMFormListener.h
|
||||
nsIDOMKeyListener.h
|
||||
nsIDOMLoadListener.h
|
||||
nsIDOMMouseListener.h
|
||||
nsIDOMMouseMotionListener.h
|
||||
nsIDOMDragListener.h
|
||||
nsIDOMPaintListener.h
|
||||
nsIDOMEventTarget.h
|
||||
nsIDOMTextListener.h
|
||||
nsIDOMCompositionListener.h
|
||||
nsIDOMMenuListener.h
|
||||
|
||||
|
||||
57
mozilla/dom/public/coreEvents/Makefile.in
Normal file
57
mozilla/dom/public/coreEvents/Makefile.in
Normal file
@@ -0,0 +1,57 @@
|
||||
#
|
||||
# The contents of this file are subject to the Netscape Public
|
||||
# License Version 1.1 (the "License"); you may not use this file
|
||||
# except in compliance with the License. You may obtain a copy of
|
||||
# the License at http://www.mozilla.org/NPL/
|
||||
#
|
||||
# Software distributed under the License is distributed on an "AS
|
||||
# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
||||
# implied. See the License for the specific language governing
|
||||
# rights and limitations under the License.
|
||||
#
|
||||
# The Original Code is mozilla.org code.
|
||||
#
|
||||
# The Initial Developer of the Original Code is Netscape
|
||||
# Communications Corporation. Portions created by Netscape are
|
||||
# Copyright (C) 1998 Netscape Communications Corporation. All
|
||||
# Rights Reserved.
|
||||
#
|
||||
# Contributor(s):
|
||||
#
|
||||
|
||||
DEPTH = ../../..
|
||||
topsrcdir = @top_srcdir@
|
||||
srcdir = @srcdir@
|
||||
VPATH = @srcdir@
|
||||
|
||||
include $(DEPTH)/config/autoconf.mk
|
||||
|
||||
MODULE = dom
|
||||
|
||||
EXPORTS = \
|
||||
nsIDOMEvent.h \
|
||||
nsIDOMUIEvent.h \
|
||||
nsIDOMKeyEvent.h \
|
||||
nsIDOMMouseEvent.h \
|
||||
nsIDOMEventListener.h \
|
||||
nsIDOMEventCapturer.h \
|
||||
nsIDOMEventReceiver.h \
|
||||
nsIDOMFocusListener.h \
|
||||
nsIDOMFormListener.h \
|
||||
nsIDOMKeyListener.h \
|
||||
nsIDOMLoadListener.h \
|
||||
nsIDOMMouseListener.h \
|
||||
nsIDOMMouseMotionListener.h \
|
||||
nsIDOMPaintListener.h \
|
||||
nsIDOMDragListener.h \
|
||||
nsIDOMNSUIEvent.h \
|
||||
nsIDOMEventTarget.h \
|
||||
nsIDOMTextListener.h \
|
||||
nsIDOMCompositionListener.h \
|
||||
nsIDOMMenuListener.h \
|
||||
$(NULL)
|
||||
|
||||
EXPORTS := $(addprefix $(srcdir)/, $(EXPORTS))
|
||||
|
||||
include $(topsrcdir)/config/rules.mk
|
||||
|
||||
53
mozilla/dom/public/coreEvents/makefile.win
Normal file
53
mozilla/dom/public/coreEvents/makefile.win
Normal file
@@ -0,0 +1,53 @@
|
||||
#!nmake
|
||||
#
|
||||
# The contents of this file are subject to the Netscape Public
|
||||
# License Version 1.1 (the "License"); you may not use this file
|
||||
# except in compliance with the License. You may obtain a copy of
|
||||
# the License at http://www.mozilla.org/NPL/
|
||||
#
|
||||
# Software distributed under the License is distributed on an "AS
|
||||
# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
||||
# implied. See the License for the specific language governing
|
||||
# rights and limitations under the License.
|
||||
#
|
||||
# The Original Code is mozilla.org code.
|
||||
#
|
||||
# The Initial Developer of the Original Code is Netscape
|
||||
# Communications Corporation. Portions created by Netscape are
|
||||
# Copyright (C) 1998 Netscape Communications Corporation. All
|
||||
# Rights Reserved.
|
||||
#
|
||||
# Contributor(s):
|
||||
|
||||
DEPTH=..\..\..
|
||||
|
||||
|
||||
DEFINES=-D_IMPL_NS_DOM
|
||||
|
||||
EXPORTS = \
|
||||
nsIDOMEvent.h \
|
||||
nsIDOMUIEvent.h \
|
||||
nsIDOMKeyEvent.h \
|
||||
nsIDOMMouseEvent.h \
|
||||
nsIDOMEventListener.h \
|
||||
nsIDOMEventCapturer.h \
|
||||
nsIDOMEventReceiver.h \
|
||||
nsIDOMFocusListener.h \
|
||||
nsIDOMFormListener.h \
|
||||
nsIDOMKeyListener.h \
|
||||
nsIDOMLoadListener.h \
|
||||
nsIDOMMouseListener.h \
|
||||
nsIDOMMouseMotionListener.h \
|
||||
nsIDOMPaintListener.h \
|
||||
nsIDOMDragListener.h \
|
||||
nsIDOMNSUIEvent.h \
|
||||
nsIDOMEventTarget.h \
|
||||
nsIDOMTextListener.h \
|
||||
nsIDOMCompositionListener.h \
|
||||
nsIDOMMenuListener.h \
|
||||
$(NULL)
|
||||
|
||||
MODULE=dom
|
||||
|
||||
include <$(DEPTH)\config\rules.mak>
|
||||
|
||||
@@ -20,40 +20,29 @@
|
||||
* Contributor(s):
|
||||
*/
|
||||
|
||||
#ifndef nsBaseDragService_h__
|
||||
#define nsBaseDragService_h__
|
||||
#ifndef nsIDOMCompositionListener_h__
|
||||
#define nsIDOMCompositionListener_h__
|
||||
|
||||
#include "nsIDragService.h"
|
||||
#include "nsIDragSession.h"
|
||||
#include "nsITransferable.h"
|
||||
#include "nsISupportsArray.h"
|
||||
#include "nsCOMPtr.h"
|
||||
#include "nsIDOMEvent.h"
|
||||
#include "nsIDOMEventListener.h"
|
||||
|
||||
/**
|
||||
* XP DragService wrapper base class
|
||||
/*
|
||||
* Key pressed / released / typed listener interface.
|
||||
*/
|
||||
// {F14B6491-E95B-11d2-9E85-0060089FE59B}
|
||||
#define NS_IDOMCOMPOSITIONLISTENER_IID \
|
||||
{ 0xf14b6491, 0xe95b, 0x11d2, \
|
||||
{ 0x9e, 0x85, 0x0, 0x60, 0x8, 0x9f, 0xe5, 0x9b } }
|
||||
|
||||
class nsBaseDragService : public nsIDragService, public nsIDragSession
|
||||
{
|
||||
|
||||
class nsIDOMCompositionListener : public nsIDOMEventListener {
|
||||
|
||||
public:
|
||||
nsBaseDragService();
|
||||
virtual ~nsBaseDragService();
|
||||
|
||||
//nsISupports
|
||||
NS_DECL_ISUPPORTS
|
||||
|
||||
//nsIDragSession and nsIDragService
|
||||
NS_DECL_NSIDRAGSERVICE
|
||||
NS_DECL_NSIDRAGSESSION
|
||||
NS_DEFINE_STATIC_IID_ACCESSOR(NS_IDOMCOMPOSITIONLISTENER_IID)
|
||||
|
||||
protected:
|
||||
virtual nsresult HandleStartComposition(nsIDOMEvent* aCompositionEvent) = 0;
|
||||
virtual nsresult HandleEndComposition(nsIDOMEvent* aCompositionEvent) = 0;
|
||||
|
||||
nsCOMPtr<nsISupportsArray> mTransArray;
|
||||
PRBool mCanDrop;
|
||||
PRBool mDoingDrag;
|
||||
nsSize mTargetSize;
|
||||
PRUint32 mDragAction;
|
||||
};
|
||||
|
||||
#endif // nsBaseDragService_h__
|
||||
#endif // nsIDOMCompositionListener_h__
|
||||
82
mozilla/dom/public/coreEvents/nsIDOMDragListener.h
Normal file
82
mozilla/dom/public/coreEvents/nsIDOMDragListener.h
Normal file
@@ -0,0 +1,82 @@
|
||||
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
|
||||
*
|
||||
* The contents of this file are subject to the Netscape Public
|
||||
* License Version 1.1 (the "License"); you may not use this file
|
||||
* except in compliance with the License. You may obtain a copy of
|
||||
* the License at http://www.mozilla.org/NPL/
|
||||
*
|
||||
* Software distributed under the License is distributed on an "AS
|
||||
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
||||
* implied. See the License for the specific language governing
|
||||
* rights and limitations under the License.
|
||||
*
|
||||
* The Original Code is mozilla.org code.
|
||||
*
|
||||
* The Initial Developer of the Original Code is Netscape
|
||||
* Communications Corporation. Portions created by Netscape are
|
||||
* Copyright (C) 1998 Netscape Communications Corporation. All
|
||||
* Rights Reserved.
|
||||
*
|
||||
* Contributor(s):
|
||||
*/
|
||||
|
||||
|
||||
#ifndef nsIDOMDragListener_h__
|
||||
#define nsIDOMDragListener_h__
|
||||
|
||||
#include "nsIDOMEvent.h"
|
||||
#include "nsIDOMEventListener.h"
|
||||
|
||||
/*
|
||||
* Mouse up/down/move event listener
|
||||
*
|
||||
*/
|
||||
#define NS_IDOMDRAGLISTENER_IID \
|
||||
{ /* 6b8b25d0-ded5-11d1-bd85-00805f8ae3f4 */ \
|
||||
0x6b8b25d0, 0xded5, 0x11d1, \
|
||||
{0xbd, 0x85, 0x00, 0x80, 0x5f, 0x8a, 0xe3, 0xf4} }
|
||||
|
||||
class nsIDOMDragListener : public nsIDOMEventListener {
|
||||
|
||||
public:
|
||||
|
||||
NS_DEFINE_STATIC_IID_ACCESSOR(NS_IDOMDRAGLISTENER_IID)
|
||||
|
||||
/**
|
||||
* Processes a drag enter event
|
||||
* @param aMouseEvent @see nsIDOMEvent.h
|
||||
* @returns whether the event was consumed or ignored. @see nsresult
|
||||
*/
|
||||
virtual nsresult DragEnter(nsIDOMEvent* aMouseEvent) = 0;
|
||||
|
||||
/**
|
||||
* Processes a drag over event
|
||||
* @param aMouseEvent @see nsIDOMEvent.h
|
||||
* @returns whether the event was consumed or ignored. @see nsresult
|
||||
*/
|
||||
virtual nsresult DragOver(nsIDOMEvent* aMouseEvent) = 0;
|
||||
|
||||
/**
|
||||
* Processes a drag Exit event
|
||||
* @param aMouseEvent @see nsIDOMEvent.h
|
||||
* @returns whether the event was consumed or ignored. @see nsresult
|
||||
*/
|
||||
virtual nsresult DragExit(nsIDOMEvent* aMouseEvent) = 0;
|
||||
|
||||
/**
|
||||
* Processes a drag drop event
|
||||
* @param aMouseEvent @see nsIDOMEvent.h
|
||||
* @returns whether the event was consumed or ignored. @see nsresult
|
||||
*/
|
||||
virtual nsresult DragDrop(nsIDOMEvent* aMouseEvent) = 0;
|
||||
|
||||
/**
|
||||
* Processes a drag gesture event
|
||||
* @param aMouseEvent @see nsIDOMEvent.h
|
||||
* @returns whether the event was consumed or ignored. @see nsresult
|
||||
*/
|
||||
virtual nsresult DragGesture(nsIDOMEvent* aMouseEvent) = 0;
|
||||
|
||||
};
|
||||
|
||||
#endif // nsIDOMDragListener_h__
|
||||
99
mozilla/dom/public/coreEvents/nsIDOMEvent.h
Normal file
99
mozilla/dom/public/coreEvents/nsIDOMEvent.h
Normal file
@@ -0,0 +1,99 @@
|
||||
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
|
||||
*
|
||||
* The contents of this file are subject to the Netscape Public
|
||||
* License Version 1.1 (the "License"); you may not use this file
|
||||
* except in compliance with the License. You may obtain a copy of
|
||||
* the License at http://www.mozilla.org/NPL/
|
||||
*
|
||||
* Software distributed under the License is distributed on an "AS
|
||||
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
||||
* implied. See the License for the specific language governing
|
||||
* rights and limitations under the License.
|
||||
*
|
||||
* The Original Code is mozilla.org code.
|
||||
*
|
||||
* The Initial Developer of the Original Code is Netscape
|
||||
* Communications Corporation. Portions created by Netscape are
|
||||
* Copyright (C) 1998 Netscape Communications Corporation. All
|
||||
* Rights Reserved.
|
||||
*
|
||||
* Contributor(s):
|
||||
*/
|
||||
/* AUTO-GENERATED. DO NOT EDIT!!! */
|
||||
|
||||
#ifndef nsIDOMEvent_h__
|
||||
#define nsIDOMEvent_h__
|
||||
|
||||
#include "nsISupports.h"
|
||||
#include "nsString.h"
|
||||
#include "nsIScriptContext.h"
|
||||
|
||||
class nsIDOMNode;
|
||||
|
||||
#define NS_IDOMEVENT_IID \
|
||||
{ 0xa66b7b80, 0xff46, 0xbd97, \
|
||||
{ 0x00, 0x80, 0x5f, 0x8a, 0xe3, 0x8a, 0xdd, 0x32 } }
|
||||
|
||||
class nsIDOMEvent : public nsISupports {
|
||||
public:
|
||||
static const nsIID& GetIID() { static nsIID iid = NS_IDOMEVENT_IID; return iid; }
|
||||
enum {
|
||||
BUBBLING_PHASE = 1,
|
||||
CAPTURING_PHASE = 2,
|
||||
AT_TARGET = 3
|
||||
};
|
||||
|
||||
NS_IMETHOD GetType(nsString& aType)=0;
|
||||
|
||||
NS_IMETHOD GetTarget(nsIDOMNode** aTarget)=0;
|
||||
|
||||
NS_IMETHOD GetCurrentNode(nsIDOMNode** aCurrentNode)=0;
|
||||
|
||||
NS_IMETHOD GetEventPhase(PRUint16* aEventPhase)=0;
|
||||
|
||||
NS_IMETHOD GetBubbles(PRBool* aBubbles)=0;
|
||||
|
||||
NS_IMETHOD GetCancelable(PRBool* aCancelable)=0;
|
||||
|
||||
NS_IMETHOD PreventBubble()=0;
|
||||
|
||||
NS_IMETHOD PreventCapture()=0;
|
||||
|
||||
NS_IMETHOD PreventDefault()=0;
|
||||
|
||||
NS_IMETHOD InitEvent(const nsString& aEventTypeArg, PRBool aCanBubbleArg, PRBool aCancelableArg)=0;
|
||||
};
|
||||
|
||||
|
||||
#define NS_DECL_IDOMEVENT \
|
||||
NS_IMETHOD GetType(nsString& aType); \
|
||||
NS_IMETHOD GetTarget(nsIDOMNode** aTarget); \
|
||||
NS_IMETHOD GetCurrentNode(nsIDOMNode** aCurrentNode); \
|
||||
NS_IMETHOD GetEventPhase(PRUint16* aEventPhase); \
|
||||
NS_IMETHOD GetBubbles(PRBool* aBubbles); \
|
||||
NS_IMETHOD GetCancelable(PRBool* aCancelable); \
|
||||
NS_IMETHOD PreventBubble(); \
|
||||
NS_IMETHOD PreventCapture(); \
|
||||
NS_IMETHOD PreventDefault(); \
|
||||
NS_IMETHOD InitEvent(const nsString& aEventTypeArg, PRBool aCanBubbleArg, PRBool aCancelableArg); \
|
||||
|
||||
|
||||
|
||||
#define NS_FORWARD_IDOMEVENT(_to) \
|
||||
NS_IMETHOD GetType(nsString& aType) { return _to GetType(aType); } \
|
||||
NS_IMETHOD GetTarget(nsIDOMNode** aTarget) { return _to GetTarget(aTarget); } \
|
||||
NS_IMETHOD GetCurrentNode(nsIDOMNode** aCurrentNode) { return _to GetCurrentNode(aCurrentNode); } \
|
||||
NS_IMETHOD GetEventPhase(PRUint16* aEventPhase) { return _to GetEventPhase(aEventPhase); } \
|
||||
NS_IMETHOD GetBubbles(PRBool* aBubbles) { return _to GetBubbles(aBubbles); } \
|
||||
NS_IMETHOD GetCancelable(PRBool* aCancelable) { return _to GetCancelable(aCancelable); } \
|
||||
NS_IMETHOD PreventBubble() { return _to PreventBubble(); } \
|
||||
NS_IMETHOD PreventCapture() { return _to PreventCapture(); } \
|
||||
NS_IMETHOD PreventDefault() { return _to PreventDefault(); } \
|
||||
NS_IMETHOD InitEvent(const nsString& aEventTypeArg, PRBool aCanBubbleArg, PRBool aCancelableArg) { return _to InitEvent(aEventTypeArg, aCanBubbleArg, aCancelableArg); } \
|
||||
|
||||
|
||||
extern "C" NS_DOM nsresult NS_InitEventClass(nsIScriptContext *aContext, void **aPrototype);
|
||||
|
||||
extern "C" NS_DOM nsresult NS_NewScriptEvent(nsIScriptContext *aContext, nsISupports *aSupports, nsISupports *aParent, void **aReturn);
|
||||
|
||||
#endif // nsIDOMEvent_h__
|
||||
58
mozilla/dom/public/coreEvents/nsIDOMEventCapturer.h
Normal file
58
mozilla/dom/public/coreEvents/nsIDOMEventCapturer.h
Normal file
@@ -0,0 +1,58 @@
|
||||
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
|
||||
*
|
||||
* The contents of this file are subject to the Netscape Public
|
||||
* License Version 1.1 (the "License"); you may not use this file
|
||||
* except in compliance with the License. You may obtain a copy of
|
||||
* the License at http://www.mozilla.org/NPL/
|
||||
*
|
||||
* Software distributed under the License is distributed on an "AS
|
||||
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
||||
* implied. See the License for the specific language governing
|
||||
* rights and limitations under the License.
|
||||
*
|
||||
* The Original Code is mozilla.org code.
|
||||
*
|
||||
* The Initial Developer of the Original Code is Netscape
|
||||
* Communications Corporation. Portions created by Netscape are
|
||||
* Copyright (C) 1998 Netscape Communications Corporation. All
|
||||
* Rights Reserved.
|
||||
*
|
||||
* Contributor(s):
|
||||
*/
|
||||
/* AUTO-GENERATED. DO NOT EDIT!!! */
|
||||
|
||||
#ifndef nsIDOMEventCapturer_h__
|
||||
#define nsIDOMEventCapturer_h__
|
||||
|
||||
#include "nsISupports.h"
|
||||
#include "nsString.h"
|
||||
#include "nsIScriptContext.h"
|
||||
#include "nsIDOMEventReceiver.h"
|
||||
|
||||
|
||||
#define NS_IDOMEVENTCAPTURER_IID \
|
||||
{ 0xa6cf906c, 0x15b3, 0x11d2, \
|
||||
{ 0x93, 0x2e, 0x00, 0x80, 0x5f, 0x8a, 0xdd, 0x32 } }
|
||||
|
||||
class nsIDOMEventCapturer : public nsIDOMEventReceiver {
|
||||
public:
|
||||
static const nsIID& GetIID() { static nsIID iid = NS_IDOMEVENTCAPTURER_IID; return iid; }
|
||||
|
||||
NS_IMETHOD CaptureEvent(const nsString& aType)=0;
|
||||
|
||||
NS_IMETHOD ReleaseEvent(const nsString& aType)=0;
|
||||
};
|
||||
|
||||
|
||||
#define NS_DECL_IDOMEVENTCAPTURER \
|
||||
NS_IMETHOD CaptureEvent(const nsString& aType); \
|
||||
NS_IMETHOD ReleaseEvent(const nsString& aType); \
|
||||
|
||||
|
||||
|
||||
#define NS_FORWARD_IDOMEVENTCAPTURER(_to) \
|
||||
NS_IMETHOD CaptureEvent(const nsString& aType) { return _to CaptureEvent(aType); } \
|
||||
NS_IMETHOD ReleaseEvent(const nsString& aType) { return _to ReleaseEvent(aType); } \
|
||||
|
||||
|
||||
#endif // nsIDOMEventCapturer_h__
|
||||
@@ -20,33 +20,34 @@
|
||||
* Contributor(s):
|
||||
*/
|
||||
|
||||
#ifndef nsIEventListener_h__
|
||||
#define nsIEventListener_h__
|
||||
#ifndef nsIDOMEventListener_h__
|
||||
#define nsIDOMEventListener_h__
|
||||
|
||||
#include "nsIDOMEvent.h"
|
||||
#include "nsISupports.h"
|
||||
#include "nsGUIEvent.h"
|
||||
|
||||
/**
|
||||
/*
|
||||
* Event listener interface.
|
||||
* Alternative to a callback for recieving events.
|
||||
*/
|
||||
|
||||
// {c83f6b80-d7ce-11d2-8360-c4c894c4917c}
|
||||
#define NS_IEVENTLISTENER_IID \
|
||||
{ 0xc83f6b80, 0xd7ce, 0x11d2, { 0x83, 0x60, 0xc4, 0xc8, 0x94, 0xc4, 0x91, 0x7c } }
|
||||
#define NS_IDOMEVENTLISTENER_IID \
|
||||
{ /* df31c120-ded6-11d1-bd85-00805f8ae3f4 */ \
|
||||
0xdf31c120, 0xded6, 0x11d1, \
|
||||
{0xbd, 0x85, 0x00, 0x80, 0x5f, 0x8a, 0xe3, 0xf4} }
|
||||
|
||||
class nsIDOMEventListener : public nsISupports {
|
||||
|
||||
class nsIEventListener : public nsISupports {
|
||||
public:
|
||||
NS_DEFINE_STATIC_IID_ACCESSOR(NS_IEVENTLISTENER_IID)
|
||||
|
||||
|
||||
NS_DEFINE_STATIC_IID_ACCESSOR(NS_IDOMEVENTLISTENER_IID)
|
||||
|
||||
/**
|
||||
* Processes all events.
|
||||
* If a mouse listener is registered this method will not process mouse events.
|
||||
* @param anEvent the event to process. See nsGUIEvent.h for event types.
|
||||
* Processes all events excepting mouse and key events.
|
||||
* @param anEvent the event to process. @see nsIDOMEvent.h for event types.
|
||||
*/
|
||||
|
||||
virtual nsEventStatus ProcessEvent(const nsGUIEvent & anEvent) = 0;
|
||||
virtual nsresult HandleEvent(nsIDOMEvent* aEvent) = 0;
|
||||
|
||||
};
|
||||
|
||||
#endif // nsIEventListener_h__
|
||||
#endif // nsIDOMEventListener_h__
|
||||
57
mozilla/dom/public/coreEvents/nsIDOMEventReceiver.h
Normal file
57
mozilla/dom/public/coreEvents/nsIDOMEventReceiver.h
Normal file
@@ -0,0 +1,57 @@
|
||||
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
|
||||
*
|
||||
* The contents of this file are subject to the Netscape Public
|
||||
* License Version 1.1 (the "License"); you may not use this file
|
||||
* except in compliance with the License. You may obtain a copy of
|
||||
* the License at http://www.mozilla.org/NPL/
|
||||
*
|
||||
* Software distributed under the License is distributed on an "AS
|
||||
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
||||
* implied. See the License for the specific language governing
|
||||
* rights and limitations under the License.
|
||||
*
|
||||
* The Original Code is mozilla.org code.
|
||||
*
|
||||
* The Initial Developer of the Original Code is Netscape
|
||||
* Communications Corporation. Portions created by Netscape are
|
||||
* Copyright (C) 1998 Netscape Communications Corporation. All
|
||||
* Rights Reserved.
|
||||
*
|
||||
* Contributor(s):
|
||||
*/
|
||||
|
||||
#ifndef nsIDOMEventReceiver_h__
|
||||
#define nsIDOMEventReceiver_h__
|
||||
|
||||
#include "nsIDOMEventTarget.h"
|
||||
|
||||
class nsIDOMEventListener;
|
||||
class nsIDOMMouseListener;
|
||||
class nsIDOMMouseMotionListener;
|
||||
class nsIDOMKeyListener;
|
||||
class nsIDOMFocusListener;
|
||||
class nsIDOMLoadListener;
|
||||
class nsIDOMDragListener;
|
||||
class nsIEventListenerManager;
|
||||
|
||||
/*
|
||||
* DOM event source class. Object that allow event registration and distribution
|
||||
* from themselves implement this interface.
|
||||
*/
|
||||
#define NS_IDOMEVENTRECEIVER_IID \
|
||||
{ /* e1dbcba0-fb38-11d1-bd87-00805f8ae3f4 */ \
|
||||
0xe1dbcba0, 0xfb38, 0x11d1, \
|
||||
{0xbd, 0x87, 0x00, 0x80, 0x5f, 0x8a, 0xe3, 0xf4} }
|
||||
|
||||
class nsIDOMEventReceiver : public nsIDOMEventTarget {
|
||||
|
||||
public:
|
||||
NS_DEFINE_STATIC_IID_ACCESSOR(NS_IDOMEVENTRECEIVER_IID)
|
||||
|
||||
NS_IMETHOD AddEventListenerByIID(nsIDOMEventListener *aListener, const nsIID& aIID) = 0;
|
||||
NS_IMETHOD RemoveEventListenerByIID(nsIDOMEventListener *aListener, const nsIID& aIID) = 0;
|
||||
NS_IMETHOD GetListenerManager(nsIEventListenerManager** aInstancePtrResult) = 0;
|
||||
NS_IMETHOD GetNewListenerManager(nsIEventListenerManager **aInstancePtrResult) = 0;
|
||||
|
||||
};
|
||||
#endif // nsIDOMEventReceiver_h__
|
||||
58
mozilla/dom/public/coreEvents/nsIDOMEventTarget.h
Normal file
58
mozilla/dom/public/coreEvents/nsIDOMEventTarget.h
Normal file
@@ -0,0 +1,58 @@
|
||||
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
|
||||
*
|
||||
* The contents of this file are subject to the Netscape Public
|
||||
* License Version 1.1 (the "License"); you may not use this file
|
||||
* except in compliance with the License. You may obtain a copy of
|
||||
* the License at http://www.mozilla.org/NPL/
|
||||
*
|
||||
* Software distributed under the License is distributed on an "AS
|
||||
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
||||
* implied. See the License for the specific language governing
|
||||
* rights and limitations under the License.
|
||||
*
|
||||
* The Original Code is mozilla.org code.
|
||||
*
|
||||
* The Initial Developer of the Original Code is Netscape
|
||||
* Communications Corporation. Portions created by Netscape are
|
||||
* Copyright (C) 1998 Netscape Communications Corporation. All
|
||||
* Rights Reserved.
|
||||
*
|
||||
* Contributor(s):
|
||||
*/
|
||||
/* AUTO-GENERATED. DO NOT EDIT!!! */
|
||||
|
||||
#ifndef nsIDOMEventTarget_h__
|
||||
#define nsIDOMEventTarget_h__
|
||||
|
||||
#include "nsISupports.h"
|
||||
#include "nsString.h"
|
||||
#include "nsIScriptContext.h"
|
||||
|
||||
class nsIDOMEventListener;
|
||||
|
||||
#define NS_IDOMEVENTTARGET_IID \
|
||||
{ 0x1c773b30, 0xd1cf, 0x11d2, \
|
||||
{ 0xbd, 0x95, 0x00, 0x80, 0x5f, 0x8a, 0xe3, 0xf4 } }
|
||||
|
||||
class nsIDOMEventTarget : public nsISupports {
|
||||
public:
|
||||
static const nsIID& GetIID() { static nsIID iid = NS_IDOMEVENTTARGET_IID; return iid; }
|
||||
|
||||
NS_IMETHOD AddEventListener(const nsString& aType, nsIDOMEventListener* aListener, PRBool aUseCapture)=0;
|
||||
|
||||
NS_IMETHOD RemoveEventListener(const nsString& aType, nsIDOMEventListener* aListener, PRBool aUseCapture)=0;
|
||||
};
|
||||
|
||||
|
||||
#define NS_DECL_IDOMEVENTTARGET \
|
||||
NS_IMETHOD AddEventListener(const nsString& aType, nsIDOMEventListener* aListener, PRBool aUseCapture); \
|
||||
NS_IMETHOD RemoveEventListener(const nsString& aType, nsIDOMEventListener* aListener, PRBool aUseCapture); \
|
||||
|
||||
|
||||
|
||||
#define NS_FORWARD_IDOMEVENTTARGET(_to) \
|
||||
NS_IMETHOD AddEventListener(const nsString& aType, nsIDOMEventListener* aListener, PRBool aUseCapture) { return _to AddEventListener(aType, aListener, aUseCapture); } \
|
||||
NS_IMETHOD RemoveEventListener(const nsString& aType, nsIDOMEventListener* aListener, PRBool aUseCapture) { return _to RemoveEventListener(aType, aListener, aUseCapture); } \
|
||||
|
||||
|
||||
#endif // nsIDOMEventTarget_h__
|
||||
61
mozilla/dom/public/coreEvents/nsIDOMFocusListener.h
Normal file
61
mozilla/dom/public/coreEvents/nsIDOMFocusListener.h
Normal file
@@ -0,0 +1,61 @@
|
||||
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
|
||||
*
|
||||
* The contents of this file are subject to the Netscape Public
|
||||
* License Version 1.1 (the "License"); you may not use this file
|
||||
* except in compliance with the License. You may obtain a copy of
|
||||
* the License at http://www.mozilla.org/NPL/
|
||||
*
|
||||
* Software distributed under the License is distributed on an "AS
|
||||
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
||||
* implied. See the License for the specific language governing
|
||||
* rights and limitations under the License.
|
||||
*
|
||||
* The Original Code is mozilla.org code.
|
||||
*
|
||||
* The Initial Developer of the Original Code is Netscape
|
||||
* Communications Corporation. Portions created by Netscape are
|
||||
* Copyright (C) 1998 Netscape Communications Corporation. All
|
||||
* Rights Reserved.
|
||||
*
|
||||
* Contributor(s):
|
||||
*/
|
||||
|
||||
|
||||
#ifndef nsIDOMFocusListener_h__
|
||||
#define nsIDOMFocusListener_h__
|
||||
|
||||
#include "nsIDOMEvent.h"
|
||||
#include "nsIDOMEventListener.h"
|
||||
|
||||
/*
|
||||
* Mouse up/down/move event listener
|
||||
*
|
||||
*/
|
||||
#define NS_IDOMFOCUSLISTENER_IID \
|
||||
{ /* 80974670-ded6-11d1-bd85-00805f8ae3f4 */ \
|
||||
0x80974670, 0xded6, 0x11d1, \
|
||||
{0xbd, 0x85, 0x00, 0x80, 0x5f, 0x8a, 0xe3, 0xf4} }
|
||||
|
||||
class nsIDOMFocusListener : public nsIDOMEventListener {
|
||||
|
||||
public:
|
||||
|
||||
NS_DEFINE_STATIC_IID_ACCESSOR(NS_IDOMFOCUSLISTENER_IID)
|
||||
|
||||
/**
|
||||
* Processes a focus event
|
||||
* @param aMouseEvent @see nsIDOMEvent.h
|
||||
* @returns whether the event was consumed or ignored. @see nsresult
|
||||
*/
|
||||
virtual nsresult Focus(nsIDOMEvent* aEvent) = 0;
|
||||
|
||||
/**
|
||||
* Processes a blur event
|
||||
* @param aMouseEvent @see nsIDOMEvent.h
|
||||
* @returns whether the event was consumed or ignored. @see nsresult
|
||||
*/
|
||||
virtual nsresult Blur(nsIDOMEvent* aEvent) = 0;
|
||||
|
||||
};
|
||||
|
||||
#endif // nsIDOMFocusListener_h__
|
||||
80
mozilla/dom/public/coreEvents/nsIDOMFormListener.h
Normal file
80
mozilla/dom/public/coreEvents/nsIDOMFormListener.h
Normal file
@@ -0,0 +1,80 @@
|
||||
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
|
||||
*
|
||||
* The contents of this file are subject to the Netscape Public
|
||||
* License Version 1.1 (the "License"); you may not use this file
|
||||
* except in compliance with the License. You may obtain a copy of
|
||||
* the License at http://www.mozilla.org/NPL/
|
||||
*
|
||||
* Software distributed under the License is distributed on an "AS
|
||||
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
||||
* implied. See the License for the specific language governing
|
||||
* rights and limitations under the License.
|
||||
*
|
||||
* The Original Code is mozilla.org code.
|
||||
*
|
||||
* The Initial Developer of the Original Code is Netscape
|
||||
* Communications Corporation. Portions created by Netscape are
|
||||
* Copyright (C) 1998 Netscape Communications Corporation. All
|
||||
* Rights Reserved.
|
||||
*
|
||||
* Contributor(s):
|
||||
*/
|
||||
|
||||
|
||||
#ifndef nsIDOMFormListener_h__
|
||||
#define nsIDOMFormListener_h__
|
||||
|
||||
#include "nsIDOMEvent.h"
|
||||
#include "nsIDOMEventListener.h"
|
||||
|
||||
/*
|
||||
* Form submit/reset listener
|
||||
*
|
||||
*/
|
||||
#define NS_IDOMFORMLISTENER_IID \
|
||||
{ /* 566c3f80-28ab-11d2-bd89-00805f8ae3f4 */ \
|
||||
0x566c3f80, 0x28ab, 0x11d2, \
|
||||
{0xbd, 0x89, 0x00, 0x80, 0x5f, 0x8a, 0xe3, 0xf4} }
|
||||
|
||||
class nsIDOMFormListener : public nsIDOMEventListener {
|
||||
|
||||
public:
|
||||
NS_DEFINE_STATIC_IID_ACCESSOR(NS_IDOMFORMLISTENER_IID)
|
||||
/**
|
||||
* Processes a form submit event
|
||||
* @param aEvent @see nsIDOMEvent.h
|
||||
* @returns whether the event was consumed or ignored. @see nsresult
|
||||
*/
|
||||
virtual nsresult Submit(nsIDOMEvent* aEvent) = 0;
|
||||
|
||||
/**
|
||||
* Processes a form reset event
|
||||
* @param aEvent @see nsIDOMEvent.h
|
||||
* @returns whether the event was consumed or ignored. @see nsresult
|
||||
*/
|
||||
virtual nsresult Reset(nsIDOMEvent* aEvent) = 0;
|
||||
|
||||
/**
|
||||
* Processes a form change event
|
||||
* @param aEvent @see nsIDOMEvent.h
|
||||
* @returns whether the event was consumed or ignored. @see nsresult
|
||||
*/
|
||||
virtual nsresult Change(nsIDOMEvent* aEvent) = 0;
|
||||
|
||||
/**
|
||||
* Processes a form select event
|
||||
* @param aEvent @see nsIDOMEvent.h
|
||||
* @returns whether the event was consumed or ignored. @see nsresult
|
||||
*/
|
||||
virtual nsresult Select(nsIDOMEvent* aEvent) = 0;
|
||||
|
||||
/**
|
||||
* Processes a form input event
|
||||
* @param aEvent @see nsIDOMEvent.h
|
||||
* @returns whether the event was consumed or ignored. @see nsresult
|
||||
*/
|
||||
virtual nsresult Input(nsIDOMEvent* aEvent) = 0;
|
||||
|
||||
};
|
||||
|
||||
#endif // nsIDOMFormListener_h__
|
||||
197
mozilla/dom/public/coreEvents/nsIDOMKeyEvent.h
Normal file
197
mozilla/dom/public/coreEvents/nsIDOMKeyEvent.h
Normal file
@@ -0,0 +1,197 @@
|
||||
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
|
||||
*
|
||||
* The contents of this file are subject to the Netscape Public
|
||||
* License Version 1.1 (the "License"); you may not use this file
|
||||
* except in compliance with the License. You may obtain a copy of
|
||||
* the License at http://www.mozilla.org/NPL/
|
||||
*
|
||||
* Software distributed under the License is distributed on an "AS
|
||||
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
||||
* implied. See the License for the specific language governing
|
||||
* rights and limitations under the License.
|
||||
*
|
||||
* The Original Code is mozilla.org code.
|
||||
*
|
||||
* The Initial Developer of the Original Code is Netscape
|
||||
* Communications Corporation. Portions created by Netscape are
|
||||
* Copyright (C) 1998 Netscape Communications Corporation. All
|
||||
* Rights Reserved.
|
||||
*
|
||||
* Contributor(s):
|
||||
*/
|
||||
/* AUTO-GENERATED. DO NOT EDIT!!! */
|
||||
|
||||
#ifndef nsIDOMKeyEvent_h__
|
||||
#define nsIDOMKeyEvent_h__
|
||||
|
||||
#include "nsISupports.h"
|
||||
#include "nsString.h"
|
||||
#include "nsIScriptContext.h"
|
||||
#include "nsIDOMUIEvent.h"
|
||||
|
||||
class nsIDOMAbstractView;
|
||||
|
||||
#define NS_IDOMKEYEVENT_IID \
|
||||
{ 0x028e0e6e, 0x8b01, 0x11d3, \
|
||||
{ 0xaa, 0xe7, 0x00, 0x10, 0x83, 0x8a, 0x31, 0x23 } }
|
||||
|
||||
class nsIDOMKeyEvent : public nsIDOMUIEvent {
|
||||
public:
|
||||
static const nsIID& GetIID() { static nsIID iid = NS_IDOMKEYEVENT_IID; return iid; }
|
||||
enum {
|
||||
DOM_VK_CANCEL = 3,
|
||||
DOM_VK_BACK_SPACE = 8,
|
||||
DOM_VK_TAB = 9,
|
||||
DOM_VK_CLEAR = 12,
|
||||
DOM_VK_RETURN = 13,
|
||||
DOM_VK_ENTER = 14,
|
||||
DOM_VK_SHIFT = 16,
|
||||
DOM_VK_CONTROL = 17,
|
||||
DOM_VK_ALT = 18,
|
||||
DOM_VK_PAUSE = 19,
|
||||
DOM_VK_CAPS_LOCK = 20,
|
||||
DOM_VK_ESCAPE = 27,
|
||||
DOM_VK_SPACE = 32,
|
||||
DOM_VK_PAGE_UP = 33,
|
||||
DOM_VK_PAGE_DOWN = 34,
|
||||
DOM_VK_END = 35,
|
||||
DOM_VK_HOME = 36,
|
||||
DOM_VK_LEFT = 37,
|
||||
DOM_VK_UP = 38,
|
||||
DOM_VK_RIGHT = 39,
|
||||
DOM_VK_DOWN = 40,
|
||||
DOM_VK_PRINTSCREEN = 44,
|
||||
DOM_VK_INSERT = 45,
|
||||
DOM_VK_DELETE = 46,
|
||||
DOM_VK_0 = 48,
|
||||
DOM_VK_1 = 49,
|
||||
DOM_VK_2 = 50,
|
||||
DOM_VK_3 = 51,
|
||||
DOM_VK_4 = 52,
|
||||
DOM_VK_5 = 53,
|
||||
DOM_VK_6 = 54,
|
||||
DOM_VK_7 = 55,
|
||||
DOM_VK_8 = 56,
|
||||
DOM_VK_9 = 57,
|
||||
DOM_VK_SEMICOLON = 59,
|
||||
DOM_VK_EQUALS = 61,
|
||||
DOM_VK_A = 65,
|
||||
DOM_VK_B = 66,
|
||||
DOM_VK_C = 67,
|
||||
DOM_VK_D = 68,
|
||||
DOM_VK_E = 69,
|
||||
DOM_VK_F = 70,
|
||||
DOM_VK_G = 71,
|
||||
DOM_VK_H = 72,
|
||||
DOM_VK_I = 73,
|
||||
DOM_VK_J = 74,
|
||||
DOM_VK_K = 75,
|
||||
DOM_VK_L = 76,
|
||||
DOM_VK_M = 77,
|
||||
DOM_VK_N = 78,
|
||||
DOM_VK_O = 79,
|
||||
DOM_VK_P = 80,
|
||||
DOM_VK_Q = 81,
|
||||
DOM_VK_R = 82,
|
||||
DOM_VK_S = 83,
|
||||
DOM_VK_T = 84,
|
||||
DOM_VK_U = 85,
|
||||
DOM_VK_V = 86,
|
||||
DOM_VK_W = 87,
|
||||
DOM_VK_X = 88,
|
||||
DOM_VK_Y = 89,
|
||||
DOM_VK_Z = 90,
|
||||
DOM_VK_NUMPAD0 = 96,
|
||||
DOM_VK_NUMPAD1 = 97,
|
||||
DOM_VK_NUMPAD2 = 98,
|
||||
DOM_VK_NUMPAD3 = 99,
|
||||
DOM_VK_NUMPAD4 = 100,
|
||||
DOM_VK_NUMPAD5 = 101,
|
||||
DOM_VK_NUMPAD6 = 102,
|
||||
DOM_VK_NUMPAD7 = 103,
|
||||
DOM_VK_NUMPAD8 = 104,
|
||||
DOM_VK_NUMPAD9 = 105,
|
||||
DOM_VK_MULTIPLY = 106,
|
||||
DOM_VK_ADD = 107,
|
||||
DOM_VK_SEPARATOR = 108,
|
||||
DOM_VK_SUBTRACT = 109,
|
||||
DOM_VK_DECIMAL = 110,
|
||||
DOM_VK_DIVIDE = 111,
|
||||
DOM_VK_F1 = 112,
|
||||
DOM_VK_F2 = 113,
|
||||
DOM_VK_F3 = 114,
|
||||
DOM_VK_F4 = 115,
|
||||
DOM_VK_F5 = 116,
|
||||
DOM_VK_F6 = 117,
|
||||
DOM_VK_F7 = 118,
|
||||
DOM_VK_F8 = 119,
|
||||
DOM_VK_F9 = 120,
|
||||
DOM_VK_F10 = 121,
|
||||
DOM_VK_F11 = 122,
|
||||
DOM_VK_F12 = 123,
|
||||
DOM_VK_F13 = 124,
|
||||
DOM_VK_F14 = 125,
|
||||
DOM_VK_F15 = 126,
|
||||
DOM_VK_F16 = 127,
|
||||
DOM_VK_F17 = 128,
|
||||
DOM_VK_F18 = 129,
|
||||
DOM_VK_F19 = 130,
|
||||
DOM_VK_F20 = 131,
|
||||
DOM_VK_F21 = 132,
|
||||
DOM_VK_F22 = 133,
|
||||
DOM_VK_F23 = 134,
|
||||
DOM_VK_F24 = 135,
|
||||
DOM_VK_NUM_LOCK = 144,
|
||||
DOM_VK_SCROLL_LOCK = 145,
|
||||
DOM_VK_COMMA = 188,
|
||||
DOM_VK_PERIOD = 190,
|
||||
DOM_VK_SLASH = 191,
|
||||
DOM_VK_BACK_QUOTE = 192,
|
||||
DOM_VK_OPEN_BRACKET = 219,
|
||||
DOM_VK_BACK_SLASH = 220,
|
||||
DOM_VK_CLOSE_BRACKET = 221,
|
||||
DOM_VK_QUOTE = 222
|
||||
};
|
||||
|
||||
NS_IMETHOD GetCharCode(PRUint32* aCharCode)=0;
|
||||
|
||||
NS_IMETHOD GetKeyCode(PRUint32* aKeyCode)=0;
|
||||
|
||||
NS_IMETHOD GetAltKey(PRBool* aAltKey)=0;
|
||||
|
||||
NS_IMETHOD GetCtrlKey(PRBool* aCtrlKey)=0;
|
||||
|
||||
NS_IMETHOD GetShiftKey(PRBool* aShiftKey)=0;
|
||||
|
||||
NS_IMETHOD GetMetaKey(PRBool* aMetaKey)=0;
|
||||
|
||||
NS_IMETHOD InitKeyEvent(const nsString& aTypeArg, PRBool aCanBubbleArg, PRBool aCancelableArg, PRBool aCtrlKeyArg, PRBool aAltKeyArg, PRBool aShiftKeyArg, PRBool aMetaKeyArg, PRUint32 aKeyCodeArg, PRUint32 aCharCodeArg, nsIDOMAbstractView* aViewArg)=0;
|
||||
};
|
||||
|
||||
|
||||
#define NS_DECL_IDOMKEYEVENT \
|
||||
NS_IMETHOD GetCharCode(PRUint32* aCharCode); \
|
||||
NS_IMETHOD GetKeyCode(PRUint32* aKeyCode); \
|
||||
NS_IMETHOD GetAltKey(PRBool* aAltKey); \
|
||||
NS_IMETHOD GetCtrlKey(PRBool* aCtrlKey); \
|
||||
NS_IMETHOD GetShiftKey(PRBool* aShiftKey); \
|
||||
NS_IMETHOD GetMetaKey(PRBool* aMetaKey); \
|
||||
NS_IMETHOD InitKeyEvent(const nsString& aTypeArg, PRBool aCanBubbleArg, PRBool aCancelableArg, PRBool aCtrlKeyArg, PRBool aAltKeyArg, PRBool aShiftKeyArg, PRBool aMetaKeyArg, PRUint32 aKeyCodeArg, PRUint32 aCharCodeArg, nsIDOMAbstractView* aViewArg); \
|
||||
|
||||
|
||||
|
||||
#define NS_FORWARD_IDOMKEYEVENT(_to) \
|
||||
NS_IMETHOD GetCharCode(PRUint32* aCharCode) { return _to GetCharCode(aCharCode); } \
|
||||
NS_IMETHOD GetKeyCode(PRUint32* aKeyCode) { return _to GetKeyCode(aKeyCode); } \
|
||||
NS_IMETHOD GetAltKey(PRBool* aAltKey) { return _to GetAltKey(aAltKey); } \
|
||||
NS_IMETHOD GetCtrlKey(PRBool* aCtrlKey) { return _to GetCtrlKey(aCtrlKey); } \
|
||||
NS_IMETHOD GetShiftKey(PRBool* aShiftKey) { return _to GetShiftKey(aShiftKey); } \
|
||||
NS_IMETHOD GetMetaKey(PRBool* aMetaKey) { return _to GetMetaKey(aMetaKey); } \
|
||||
NS_IMETHOD InitKeyEvent(const nsString& aTypeArg, PRBool aCanBubbleArg, PRBool aCancelableArg, PRBool aCtrlKeyArg, PRBool aAltKeyArg, PRBool aShiftKeyArg, PRBool aMetaKeyArg, PRUint32 aKeyCodeArg, PRUint32 aCharCodeArg, nsIDOMAbstractView* aViewArg) { return _to InitKeyEvent(aTypeArg, aCanBubbleArg, aCancelableArg, aCtrlKeyArg, aAltKeyArg, aShiftKeyArg, aMetaKeyArg, aKeyCodeArg, aCharCodeArg, aViewArg); } \
|
||||
|
||||
|
||||
extern "C" NS_DOM nsresult NS_InitKeyEventClass(nsIScriptContext *aContext, void **aPrototype);
|
||||
|
||||
extern "C" NS_DOM nsresult NS_NewScriptKeyEvent(nsIScriptContext *aContext, nsISupports *aSupports, nsISupports *aParent, void **aReturn);
|
||||
|
||||
#endif // nsIDOMKeyEvent_h__
|
||||
66
mozilla/dom/public/coreEvents/nsIDOMKeyListener.h
Normal file
66
mozilla/dom/public/coreEvents/nsIDOMKeyListener.h
Normal file
@@ -0,0 +1,66 @@
|
||||
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
|
||||
*
|
||||
* The contents of this file are subject to the Netscape Public
|
||||
* License Version 1.1 (the "License"); you may not use this file
|
||||
* except in compliance with the License. You may obtain a copy of
|
||||
* the License at http://www.mozilla.org/NPL/
|
||||
*
|
||||
* Software distributed under the License is distributed on an "AS
|
||||
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
||||
* implied. See the License for the specific language governing
|
||||
* rights and limitations under the License.
|
||||
*
|
||||
* The Original Code is mozilla.org code.
|
||||
*
|
||||
* The Initial Developer of the Original Code is Netscape
|
||||
* Communications Corporation. Portions created by Netscape are
|
||||
* Copyright (C) 1998 Netscape Communications Corporation. All
|
||||
* Rights Reserved.
|
||||
*
|
||||
* Contributor(s):
|
||||
*/
|
||||
|
||||
#ifndef nsIDOMKeyListener_h__
|
||||
#define nsIDOMKeyListener_h__
|
||||
|
||||
#include "nsIDOMEvent.h"
|
||||
#include "nsIDOMEventListener.h"
|
||||
|
||||
/*
|
||||
* Key pressed / released / typed listener interface.
|
||||
*/
|
||||
#define NS_IDOMKEYLISTENER_IID \
|
||||
{ /* 35f0d080-da38-11d1-bd85-00805f8ae3f4 */ \
|
||||
0x35f0d080, 0xda38, 0x11d1, \
|
||||
{0xbd, 0x85, 0x00, 0x80, 0x5f, 0x8a, 0xe3, 0xf4} }
|
||||
|
||||
class nsIDOMKeyListener : public nsIDOMEventListener {
|
||||
|
||||
public:
|
||||
|
||||
NS_DEFINE_STATIC_IID_ACCESSOR(NS_IDOMKEYLISTENER_IID)
|
||||
|
||||
/**
|
||||
* Processes a key pressed event
|
||||
* @param aKeyEvent @see nsIDOMEvent.h
|
||||
* @returns whether the event was consumed or ignored. @see nsresult
|
||||
*/
|
||||
virtual nsresult KeyDown(nsIDOMEvent* aKeyEvent) = 0;
|
||||
|
||||
/**
|
||||
* Processes a key release event
|
||||
* @param aKeyEvent @see nsIDOMEvent.h
|
||||
* @returns whether the event was consumed or ignored. @see nsresult
|
||||
*/
|
||||
virtual nsresult KeyUp(nsIDOMEvent* aKeyEvent) = 0;
|
||||
|
||||
/**
|
||||
* Processes a key typed event
|
||||
* @param aKeyEvent @see nsIDOMEvent.h
|
||||
* @returns whether the event was consumed or ignored. @see nsresult
|
||||
*
|
||||
*/
|
||||
virtual nsresult KeyPress(nsIDOMEvent* aKeyEvent) = 0;
|
||||
|
||||
};
|
||||
#endif // nsIDOMKeyListener_h__
|
||||
74
mozilla/dom/public/coreEvents/nsIDOMLoadListener.h
Normal file
74
mozilla/dom/public/coreEvents/nsIDOMLoadListener.h
Normal file
@@ -0,0 +1,74 @@
|
||||
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
|
||||
*
|
||||
* The contents of this file are subject to the Netscape Public
|
||||
* License Version 1.1 (the "License"); you may not use this file
|
||||
* except in compliance with the License. You may obtain a copy of
|
||||
* the License at http://www.mozilla.org/NPL/
|
||||
*
|
||||
* Software distributed under the License is distributed on an "AS
|
||||
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
||||
* implied. See the License for the specific language governing
|
||||
* rights and limitations under the License.
|
||||
*
|
||||
* The Original Code is mozilla.org code.
|
||||
*
|
||||
* The Initial Developer of the Original Code is Netscape
|
||||
* Communications Corporation. Portions created by Netscape are
|
||||
* Copyright (C) 1998 Netscape Communications Corporation. All
|
||||
* Rights Reserved.
|
||||
*
|
||||
* Contributor(s):
|
||||
*/
|
||||
|
||||
|
||||
#ifndef nsIDOMLoadListener_h__
|
||||
#define nsIDOMLoadListener_h__
|
||||
|
||||
#include "nsIDOMEvent.h"
|
||||
#include "nsIDOMEventListener.h"
|
||||
|
||||
/*
|
||||
* Mouse up/down/move event listener
|
||||
*
|
||||
*/
|
||||
#define NS_IDOMLOADLISTENER_IID \
|
||||
{ /* f2b05200-ded5-11d1-bd85-00805f8ae3f4 */ \
|
||||
0xf2b05200, 0xded5, 0x11d1, \
|
||||
{0xbd, 0x85, 0x00, 0x80, 0x5f, 0x8a, 0xe3, 0xf4} }
|
||||
|
||||
class nsIDOMLoadListener : public nsIDOMEventListener {
|
||||
|
||||
public:
|
||||
NS_DEFINE_STATIC_IID_ACCESSOR(NS_IDOMLOADLISTENER_IID)
|
||||
/**
|
||||
* Processes a page or image load event
|
||||
* @param aMouseEvent @see nsIDOMEvent.h
|
||||
* @returns whether the event was consumed or ignored. @see nsresult
|
||||
*/
|
||||
virtual nsresult Load(nsIDOMEvent* aEvent) = 0;
|
||||
|
||||
/**
|
||||
* Processes a page unload event
|
||||
* @param aMouseEvent @see nsIDOMEvent.h
|
||||
* @returns whether the event was consumed or ignored. @see nsresult
|
||||
*/
|
||||
virtual nsresult Unload(nsIDOMEvent* aEvent) = 0;
|
||||
|
||||
/**
|
||||
* Processes a load abort event
|
||||
* @param aMouseEvent @see nsIDOMEvent.h
|
||||
* @returns whether the event was consumed or ignored. @see nsresult
|
||||
*
|
||||
*/
|
||||
virtual nsresult Abort(nsIDOMEvent* aEvent) = 0;
|
||||
|
||||
/**
|
||||
* Processes an load error event
|
||||
* @param aMouseEvent @see nsIDOMEvent.h
|
||||
* @returns whether the event was consumed or ignored. @see nsresult
|
||||
*/
|
||||
virtual nsresult Error(nsIDOMEvent* aEvent) = 0;
|
||||
|
||||
};
|
||||
|
||||
#endif // nsIDOMLoadListener_h__
|
||||
46
mozilla/dom/public/coreEvents/nsIDOMMenuListener.h
Normal file
46
mozilla/dom/public/coreEvents/nsIDOMMenuListener.h
Normal file
@@ -0,0 +1,46 @@
|
||||
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
|
||||
*
|
||||
* The contents of this file are subject to the Netscape Public
|
||||
* License Version 1.1 (the "License"); you may not use this file
|
||||
* except in compliance with the License. You may obtain a copy of
|
||||
* the License at http://www.mozilla.org/NPL/
|
||||
*
|
||||
* Software distributed under the License is distributed on an "AS
|
||||
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
||||
* implied. See the License for the specific language governing
|
||||
* rights and limitations under the License.
|
||||
*
|
||||
* The Original Code is mozilla.org code.
|
||||
*
|
||||
* The Initial Developer of the Original Code is Netscape
|
||||
* Communications Corporation. Portions created by Netscape are
|
||||
* Copyright (C) 1998 Netscape Communications Corporation. All
|
||||
* Rights Reserved.
|
||||
*
|
||||
* Contributor(s):
|
||||
*/
|
||||
|
||||
|
||||
#ifndef nsIDOMMenuListener_h__
|
||||
#define nsIDOMMenuListener_h__
|
||||
|
||||
#include "nsIDOMEvent.h"
|
||||
#include "nsIDOMEventListener.h"
|
||||
|
||||
// {0730C841-42F3-11d3-97FA-00400553EEF0}
|
||||
#define NS_IDOMMENULISTENER_IID \
|
||||
{ 0x730c841, 0x42f3, 0x11d3, { 0x97, 0xfa, 0x0, 0x40, 0x5, 0x53, 0xee, 0xf0 } }
|
||||
|
||||
class nsIDOMMenuListener : public nsIDOMEventListener {
|
||||
|
||||
public:
|
||||
NS_DEFINE_STATIC_IID_ACCESSOR(NS_IDOMMENULISTENER_IID)
|
||||
|
||||
NS_IMETHOD Create(nsIDOMEvent* aEvent) = 0;
|
||||
NS_IMETHOD Destroy(nsIDOMEvent* aEvent) = 0;
|
||||
NS_IMETHOD Action(nsIDOMEvent* aEvent) = 0;
|
||||
NS_IMETHOD Broadcast(nsIDOMEvent* aEvent) = 0;
|
||||
NS_IMETHOD CommandUpdate(nsIDOMEvent* aEvent) = 0;
|
||||
};
|
||||
|
||||
#endif // nsIDOMMenuListener_h__
|
||||
99
mozilla/dom/public/coreEvents/nsIDOMMouseEvent.h
Normal file
99
mozilla/dom/public/coreEvents/nsIDOMMouseEvent.h
Normal file
@@ -0,0 +1,99 @@
|
||||
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
|
||||
*
|
||||
* The contents of this file are subject to the Netscape Public
|
||||
* License Version 1.1 (the "License"); you may not use this file
|
||||
* except in compliance with the License. You may obtain a copy of
|
||||
* the License at http://www.mozilla.org/NPL/
|
||||
*
|
||||
* Software distributed under the License is distributed on an "AS
|
||||
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
||||
* implied. See the License for the specific language governing
|
||||
* rights and limitations under the License.
|
||||
*
|
||||
* The Original Code is mozilla.org code.
|
||||
*
|
||||
* The Initial Developer of the Original Code is Netscape
|
||||
* Communications Corporation. Portions created by Netscape are
|
||||
* Copyright (C) 1998 Netscape Communications Corporation. All
|
||||
* Rights Reserved.
|
||||
*
|
||||
* Contributor(s):
|
||||
*/
|
||||
/* AUTO-GENERATED. DO NOT EDIT!!! */
|
||||
|
||||
#ifndef nsIDOMMouseEvent_h__
|
||||
#define nsIDOMMouseEvent_h__
|
||||
|
||||
#include "nsISupports.h"
|
||||
#include "nsString.h"
|
||||
#include "nsIScriptContext.h"
|
||||
#include "nsIDOMUIEvent.h"
|
||||
|
||||
class nsIDOMNode;
|
||||
|
||||
#define NS_IDOMMOUSEEVENT_IID \
|
||||
{ 0xff751edc, 0x8b02, 0xaae7, \
|
||||
{ 0x00, 0x10, 0x83, 0x01, 0x83, 0x8a, 0x31, 0x23 } }
|
||||
|
||||
class nsIDOMMouseEvent : public nsIDOMUIEvent {
|
||||
public:
|
||||
static const nsIID& GetIID() { static nsIID iid = NS_IDOMMOUSEEVENT_IID; return iid; }
|
||||
|
||||
NS_IMETHOD GetScreenX(PRInt32* aScreenX)=0;
|
||||
|
||||
NS_IMETHOD GetScreenY(PRInt32* aScreenY)=0;
|
||||
|
||||
NS_IMETHOD GetClientX(PRInt32* aClientX)=0;
|
||||
|
||||
NS_IMETHOD GetClientY(PRInt32* aClientY)=0;
|
||||
|
||||
NS_IMETHOD GetAltKey(PRBool* aAltKey)=0;
|
||||
|
||||
NS_IMETHOD GetCtrlKey(PRBool* aCtrlKey)=0;
|
||||
|
||||
NS_IMETHOD GetShiftKey(PRBool* aShiftKey)=0;
|
||||
|
||||
NS_IMETHOD GetMetaKey(PRBool* aMetaKey)=0;
|
||||
|
||||
NS_IMETHOD GetButton(PRUint16* aButton)=0;
|
||||
|
||||
NS_IMETHOD GetClickCount(PRUint16* aClickCount)=0;
|
||||
|
||||
NS_IMETHOD GetRelatedNode(nsIDOMNode** aRelatedNode)=0;
|
||||
|
||||
NS_IMETHOD InitMouseEvent(const nsString& aTypeArg, PRBool aCtrlKeyArg, PRBool aAltKeyArg, PRBool aShiftKeyArg, PRBool aMetaKeyArg, PRInt32 aScreenXArg, PRInt32 aScreenYArg, PRInt32 aClientXArg, PRInt32 aClientYArg, PRUint16 aButtonArg, PRUint16 aDetailArg)=0;
|
||||
};
|
||||
|
||||
|
||||
#define NS_DECL_IDOMMOUSEEVENT \
|
||||
NS_IMETHOD GetScreenX(PRInt32* aScreenX); \
|
||||
NS_IMETHOD GetScreenY(PRInt32* aScreenY); \
|
||||
NS_IMETHOD GetClientX(PRInt32* aClientX); \
|
||||
NS_IMETHOD GetClientY(PRInt32* aClientY); \
|
||||
NS_IMETHOD GetAltKey(PRBool* aAltKey); \
|
||||
NS_IMETHOD GetCtrlKey(PRBool* aCtrlKey); \
|
||||
NS_IMETHOD GetShiftKey(PRBool* aShiftKey); \
|
||||
NS_IMETHOD GetMetaKey(PRBool* aMetaKey); \
|
||||
NS_IMETHOD GetButton(PRUint16* aButton); \
|
||||
NS_IMETHOD GetClickCount(PRUint16* aClickCount); \
|
||||
NS_IMETHOD GetRelatedNode(nsIDOMNode** aRelatedNode); \
|
||||
NS_IMETHOD InitMouseEvent(const nsString& aTypeArg, PRBool aCtrlKeyArg, PRBool aAltKeyArg, PRBool aShiftKeyArg, PRBool aMetaKeyArg, PRInt32 aScreenXArg, PRInt32 aScreenYArg, PRInt32 aClientXArg, PRInt32 aClientYArg, PRUint16 aButtonArg, PRUint16 aDetailArg); \
|
||||
|
||||
|
||||
|
||||
#define NS_FORWARD_IDOMMOUSEEVENT(_to) \
|
||||
NS_IMETHOD GetScreenX(PRInt32* aScreenX) { return _to GetScreenX(aScreenX); } \
|
||||
NS_IMETHOD GetScreenY(PRInt32* aScreenY) { return _to GetScreenY(aScreenY); } \
|
||||
NS_IMETHOD GetClientX(PRInt32* aClientX) { return _to GetClientX(aClientX); } \
|
||||
NS_IMETHOD GetClientY(PRInt32* aClientY) { return _to GetClientY(aClientY); } \
|
||||
NS_IMETHOD GetAltKey(PRBool* aAltKey) { return _to GetAltKey(aAltKey); } \
|
||||
NS_IMETHOD GetCtrlKey(PRBool* aCtrlKey) { return _to GetCtrlKey(aCtrlKey); } \
|
||||
NS_IMETHOD GetShiftKey(PRBool* aShiftKey) { return _to GetShiftKey(aShiftKey); } \
|
||||
NS_IMETHOD GetMetaKey(PRBool* aMetaKey) { return _to GetMetaKey(aMetaKey); } \
|
||||
NS_IMETHOD GetButton(PRUint16* aButton) { return _to GetButton(aButton); } \
|
||||
NS_IMETHOD GetClickCount(PRUint16* aClickCount) { return _to GetClickCount(aClickCount); } \
|
||||
NS_IMETHOD GetRelatedNode(nsIDOMNode** aRelatedNode) { return _to GetRelatedNode(aRelatedNode); } \
|
||||
NS_IMETHOD InitMouseEvent(const nsString& aTypeArg, PRBool aCtrlKeyArg, PRBool aAltKeyArg, PRBool aShiftKeyArg, PRBool aMetaKeyArg, PRInt32 aScreenXArg, PRInt32 aScreenYArg, PRInt32 aClientXArg, PRInt32 aClientYArg, PRUint16 aButtonArg, PRUint16 aDetailArg) { return _to InitMouseEvent(aTypeArg, aCtrlKeyArg, aAltKeyArg, aShiftKeyArg, aMetaKeyArg, aScreenXArg, aScreenYArg, aClientXArg, aClientYArg, aButtonArg, aDetailArg); } \
|
||||
|
||||
|
||||
#endif // nsIDOMMouseEvent_h__
|
||||
91
mozilla/dom/public/coreEvents/nsIDOMMouseListener.h
Normal file
91
mozilla/dom/public/coreEvents/nsIDOMMouseListener.h
Normal file
@@ -0,0 +1,91 @@
|
||||
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
|
||||
*
|
||||
* The contents of this file are subject to the Netscape Public
|
||||
* License Version 1.1 (the "License"); you may not use this file
|
||||
* except in compliance with the License. You may obtain a copy of
|
||||
* the License at http://www.mozilla.org/NPL/
|
||||
*
|
||||
* Software distributed under the License is distributed on an "AS
|
||||
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
||||
* implied. See the License for the specific language governing
|
||||
* rights and limitations under the License.
|
||||
*
|
||||
* The Original Code is mozilla.org code.
|
||||
*
|
||||
* The Initial Developer of the Original Code is Netscape
|
||||
* Communications Corporation. Portions created by Netscape are
|
||||
* Copyright (C) 1998 Netscape Communications Corporation. All
|
||||
* Rights Reserved.
|
||||
*
|
||||
* Contributor(s):
|
||||
*/
|
||||
|
||||
|
||||
#ifndef nsIDOMMouseListener_h__
|
||||
#define nsIDOMMouseListener_h__
|
||||
|
||||
#include "nsIDOMEvent.h"
|
||||
#include "nsIDOMEventListener.h"
|
||||
|
||||
/*
|
||||
* Mouse up/down/move event listener
|
||||
*
|
||||
*/
|
||||
#define NS_IDOMMOUSELISTENER_IID \
|
||||
{ /* ccd7fa30-da37-11d1-bd85-00805f8ae3f4 */ \
|
||||
0xccd7fa30, 0xda37, 0x11d1, \
|
||||
{0xbd, 0x85, 0x00, 0x80, 0x5f, 0x8a, 0xe3, 0xf4} }
|
||||
|
||||
class nsIDOMMouseListener : public nsIDOMEventListener {
|
||||
|
||||
public:
|
||||
|
||||
NS_DEFINE_STATIC_IID_ACCESSOR(NS_IDOMMOUSELISTENER_IID)
|
||||
|
||||
/**
|
||||
* Processes a mouse down event
|
||||
* @param aMouseEvent @see nsIDOMEvent.h
|
||||
* @returns whether the event was consumed or ignored. @see nsresult
|
||||
*/
|
||||
virtual nsresult MouseDown(nsIDOMEvent* aMouseEvent) = 0;
|
||||
|
||||
/**
|
||||
* Processes a mouse up event
|
||||
* @param aMouseEvent @see nsIDOMEvent.h
|
||||
* @returns whether the event was consumed or ignored. @see nsresult
|
||||
*/
|
||||
virtual nsresult MouseUp(nsIDOMEvent* aMouseEvent) = 0;
|
||||
|
||||
/**
|
||||
* Processes a mouse click event
|
||||
* @param aMouseEvent @see nsIDOMEvent.h
|
||||
* @returns whether the event was consumed or ignored. @see nsresult
|
||||
*
|
||||
*/
|
||||
virtual nsresult MouseClick(nsIDOMEvent* aMouseEvent) = 0;
|
||||
|
||||
/**
|
||||
* Processes a mouse click event
|
||||
* @param aMouseEvent @see nsIDOMEvent.h
|
||||
* @returns whether the event was consumed or ignored. @see nsresult
|
||||
*
|
||||
*/
|
||||
virtual nsresult MouseDblClick(nsIDOMEvent* aMouseEvent) = 0;
|
||||
|
||||
/**
|
||||
* Processes a mouse enter event
|
||||
* @param aMouseEvent @see nsIDOMEvent.h
|
||||
* @returns whether the event was consumed or ignored. @see nsresult
|
||||
*/
|
||||
virtual nsresult MouseOver(nsIDOMEvent* aMouseEvent) = 0;
|
||||
|
||||
/**
|
||||
* Processes a mouse leave event
|
||||
* @param aMouseEvent @see nsIDOMEvent.h
|
||||
* @returns whether the event was consumed or ignored. @see nsresult
|
||||
*/
|
||||
virtual nsresult MouseOut(nsIDOMEvent* aMouseEvent) = 0;
|
||||
|
||||
};
|
||||
|
||||
#endif // nsIDOMMouseListener_h__
|
||||
59
mozilla/dom/public/coreEvents/nsIDOMMouseMotionListener.h
Normal file
59
mozilla/dom/public/coreEvents/nsIDOMMouseMotionListener.h
Normal file
@@ -0,0 +1,59 @@
|
||||
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
|
||||
*
|
||||
* The contents of this file are subject to the Netscape Public
|
||||
* License Version 1.1 (the "License"); you may not use this file
|
||||
* except in compliance with the License. You may obtain a copy of
|
||||
* the License at http://www.mozilla.org/NPL/
|
||||
*
|
||||
* Software distributed under the License is distributed on an "AS
|
||||
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
||||
* implied. See the License for the specific language governing
|
||||
* rights and limitations under the License.
|
||||
*
|
||||
* The Original Code is mozilla.org code.
|
||||
*
|
||||
* The Initial Developer of the Original Code is Netscape
|
||||
* Communications Corporation. Portions created by Netscape are
|
||||
* Copyright (C) 1998 Netscape Communications Corporation. All
|
||||
* Rights Reserved.
|
||||
*
|
||||
* Contributor(s):
|
||||
*/
|
||||
|
||||
|
||||
#ifndef nsIDOMMouseMotionListener_h__
|
||||
#define nsIDOMMouseMotionListener_h__
|
||||
|
||||
#include "nsIDOMEvent.h"
|
||||
#include "nsIDOMEventListener.h"
|
||||
|
||||
/*
|
||||
* Mouse motion event listener
|
||||
*
|
||||
*/
|
||||
#define NS_IDOMMOUSEMOTIONLISTENER_IID \
|
||||
{ /* 162b3480-ded6-11d1-bd85-00805f8ae3f4 */ \
|
||||
0x162b3480, 0xded6, 0x11d1, \
|
||||
{0xbd, 0x85, 0x00, 0x80, 0x5f, 0x8a, 0xe3, 0xf4} }
|
||||
|
||||
class nsIDOMMouseMotionListener : public nsIDOMEventListener {
|
||||
|
||||
public:
|
||||
NS_DEFINE_STATIC_IID_ACCESSOR(NS_IDOMMOUSEMOTIONLISTENER_IID)
|
||||
/**
|
||||
* Processes a mouse move event
|
||||
* @param aMouseEvent @see nsIDOMEvent.h
|
||||
* @returns whether the event was consumed or ignored. @see nsresult
|
||||
*/
|
||||
virtual nsresult MouseMove(nsIDOMEvent* aMouseEvent) = 0;
|
||||
|
||||
/**
|
||||
* Processes a drag move event
|
||||
* @param aMouseEvent @see nsIDOMEvent.h
|
||||
* @returns whether the event was consumed or ignored. @see nsresult
|
||||
*/
|
||||
virtual nsresult DragMove(nsIDOMEvent* aMouseEvent) = 0;
|
||||
|
||||
};
|
||||
|
||||
#endif // nsIDOMMouseMotionListener_h__
|
||||
126
mozilla/dom/public/coreEvents/nsIDOMNSUIEvent.h
Normal file
126
mozilla/dom/public/coreEvents/nsIDOMNSUIEvent.h
Normal file
@@ -0,0 +1,126 @@
|
||||
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
|
||||
*
|
||||
* The contents of this file are subject to the Netscape Public
|
||||
* License Version 1.1 (the "License"); you may not use this file
|
||||
* except in compliance with the License. You may obtain a copy of
|
||||
* the License at http://www.mozilla.org/NPL/
|
||||
*
|
||||
* Software distributed under the License is distributed on an "AS
|
||||
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
||||
* implied. See the License for the specific language governing
|
||||
* rights and limitations under the License.
|
||||
*
|
||||
* The Original Code is mozilla.org code.
|
||||
*
|
||||
* The Initial Developer of the Original Code is Netscape
|
||||
* Communications Corporation. Portions created by Netscape are
|
||||
* Copyright (C) 1998 Netscape Communications Corporation. All
|
||||
* Rights Reserved.
|
||||
*
|
||||
* Contributor(s):
|
||||
*/
|
||||
/* AUTO-GENERATED. DO NOT EDIT!!! */
|
||||
|
||||
#ifndef nsIDOMNSUIEvent_h__
|
||||
#define nsIDOMNSUIEvent_h__
|
||||
|
||||
#include "nsISupports.h"
|
||||
#include "nsString.h"
|
||||
#include "nsIScriptContext.h"
|
||||
|
||||
class nsIDOMNode;
|
||||
|
||||
#define NS_IDOMNSUIEVENT_IID \
|
||||
{ 0xa6cf90c4, 0x15b3, 0x11d2, \
|
||||
{ 0x93, 0x2e, 0x00, 0x80, 0x5f, 0x8a, 0xdd, 0x32 } }
|
||||
|
||||
class nsIDOMNSUIEvent : public nsISupports {
|
||||
public:
|
||||
static const nsIID& GetIID() { static nsIID iid = NS_IDOMNSUIEVENT_IID; return iid; }
|
||||
enum {
|
||||
MOUSEDOWN = 1,
|
||||
MOUSEUP = 2,
|
||||
MOUSEOVER = 4,
|
||||
MOUSEOUT = 8,
|
||||
MOUSEMOVE = 16,
|
||||
MOUSEDRAG = 32,
|
||||
CLICK = 64,
|
||||
DBLCLICK = 128,
|
||||
KEYDOWN = 256,
|
||||
KEYUP = 512,
|
||||
KEYPRESS = 1024,
|
||||
DRAGDROP = 2048,
|
||||
FOCUS = 4096,
|
||||
BLUR = 8192,
|
||||
SELECT = 16384,
|
||||
CHANGE = 32768,
|
||||
RESET = 65536,
|
||||
SUBMIT = 131072,
|
||||
SCROLL = 262144,
|
||||
LOAD = 524288,
|
||||
UNLOAD = 1048576,
|
||||
XFER_DONE = 2097152,
|
||||
ABORT = 4194304,
|
||||
ERROR = 8388608,
|
||||
LOCATE = 16777216,
|
||||
MOVE = 33554432,
|
||||
RESIZE = 67108864,
|
||||
FORWARD = 134217728,
|
||||
HELP = 268435456,
|
||||
BACK = 536870912,
|
||||
TEXT = 1073741824,
|
||||
ALT_MASK = 1,
|
||||
CONTROL_MASK = 2,
|
||||
SHIFT_MASK = 4,
|
||||
META_MASK = 8
|
||||
};
|
||||
|
||||
NS_IMETHOD GetLayerX(PRInt32* aLayerX)=0;
|
||||
|
||||
NS_IMETHOD GetLayerY(PRInt32* aLayerY)=0;
|
||||
|
||||
NS_IMETHOD GetPageX(PRInt32* aPageX)=0;
|
||||
|
||||
NS_IMETHOD GetPageY(PRInt32* aPageY)=0;
|
||||
|
||||
NS_IMETHOD GetWhich(PRUint32* aWhich)=0;
|
||||
|
||||
NS_IMETHOD GetRangeParent(nsIDOMNode** aRangeParent)=0;
|
||||
|
||||
NS_IMETHOD GetRangeOffset(PRInt32* aRangeOffset)=0;
|
||||
|
||||
NS_IMETHOD GetCancelBubble(PRBool* aCancelBubble)=0;
|
||||
NS_IMETHOD SetCancelBubble(PRBool aCancelBubble)=0;
|
||||
|
||||
NS_IMETHOD GetIsChar(PRBool* aIsChar)=0;
|
||||
};
|
||||
|
||||
|
||||
#define NS_DECL_IDOMNSUIEVENT \
|
||||
NS_IMETHOD GetLayerX(PRInt32* aLayerX); \
|
||||
NS_IMETHOD GetLayerY(PRInt32* aLayerY); \
|
||||
NS_IMETHOD GetPageX(PRInt32* aPageX); \
|
||||
NS_IMETHOD GetPageY(PRInt32* aPageY); \
|
||||
NS_IMETHOD GetWhich(PRUint32* aWhich); \
|
||||
NS_IMETHOD GetRangeParent(nsIDOMNode** aRangeParent); \
|
||||
NS_IMETHOD GetRangeOffset(PRInt32* aRangeOffset); \
|
||||
NS_IMETHOD GetCancelBubble(PRBool* aCancelBubble); \
|
||||
NS_IMETHOD SetCancelBubble(PRBool aCancelBubble); \
|
||||
NS_IMETHOD GetIsChar(PRBool* aIsChar); \
|
||||
|
||||
|
||||
|
||||
#define NS_FORWARD_IDOMNSUIEVENT(_to) \
|
||||
NS_IMETHOD GetLayerX(PRInt32* aLayerX) { return _to GetLayerX(aLayerX); } \
|
||||
NS_IMETHOD GetLayerY(PRInt32* aLayerY) { return _to GetLayerY(aLayerY); } \
|
||||
NS_IMETHOD GetPageX(PRInt32* aPageX) { return _to GetPageX(aPageX); } \
|
||||
NS_IMETHOD GetPageY(PRInt32* aPageY) { return _to GetPageY(aPageY); } \
|
||||
NS_IMETHOD GetWhich(PRUint32* aWhich) { return _to GetWhich(aWhich); } \
|
||||
NS_IMETHOD GetRangeParent(nsIDOMNode** aRangeParent) { return _to GetRangeParent(aRangeParent); } \
|
||||
NS_IMETHOD GetRangeOffset(PRInt32* aRangeOffset) { return _to GetRangeOffset(aRangeOffset); } \
|
||||
NS_IMETHOD GetCancelBubble(PRBool* aCancelBubble) { return _to GetCancelBubble(aCancelBubble); } \
|
||||
NS_IMETHOD SetCancelBubble(PRBool aCancelBubble) { return _to SetCancelBubble(aCancelBubble); } \
|
||||
NS_IMETHOD GetIsChar(PRBool* aIsChar) { return _to GetIsChar(aIsChar); } \
|
||||
|
||||
|
||||
#endif // nsIDOMNSUIEvent_h__
|
||||
46
mozilla/dom/public/coreEvents/nsIDOMPaintListener.h
Normal file
46
mozilla/dom/public/coreEvents/nsIDOMPaintListener.h
Normal file
@@ -0,0 +1,46 @@
|
||||
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
|
||||
*
|
||||
* The contents of this file are subject to the Netscape Public
|
||||
* License Version 1.1 (the "License"); you may not use this file
|
||||
* except in compliance with the License. You may obtain a copy of
|
||||
* the License at http://www.mozilla.org/NPL/
|
||||
*
|
||||
* Software distributed under the License is distributed on an "AS
|
||||
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
||||
* implied. See the License for the specific language governing
|
||||
* rights and limitations under the License.
|
||||
*
|
||||
* The Original Code is Mozilla Communicator client code.
|
||||
*
|
||||
* The Initial Developer of the Original Code is Netscape Communications
|
||||
* Corporation. Portions created by Netscape are
|
||||
* Copyright (C) 1998 Netscape Communications Corporation. All
|
||||
* Rights Reserved.
|
||||
*
|
||||
* Contributor(s):
|
||||
*/
|
||||
#ifndef nsIDOMPaintListener_h__
|
||||
#define nsIDOMPaintListener_h__
|
||||
|
||||
#include "nsIDOMEvent.h"
|
||||
#include "nsIDOMEventListener.h"
|
||||
|
||||
/* a6cf906a-15b3-11d2-932e-00805f8add32 */
|
||||
#define NS_IDOMPAINTLISTENER_IID \
|
||||
{0xa6cf906a, 0x15b3, 0x11d2, {0x93, 0x2e, 0x00, 0x80, 0x5f, 0x8a, 0xdd, 0x32}}
|
||||
|
||||
/*
|
||||
* Paint event listener
|
||||
*/
|
||||
class nsIDOMPaintListener : public nsIDOMEventListener {
|
||||
public:
|
||||
NS_DEFINE_STATIC_IID_ACCESSOR(NS_IDOMPAINTLISTENER_IID)
|
||||
/**
|
||||
* Processes a paint event
|
||||
* @param aEvent @see nsIDOMEvent.h
|
||||
* @returns whether the event was consumed or ignored. @see nsresult
|
||||
*/
|
||||
virtual nsresult Paint(nsIDOMEvent* aEvent) = 0;
|
||||
};
|
||||
|
||||
#endif /* nsIDOMPaintListener_h__ */
|
||||
46
mozilla/dom/public/coreEvents/nsIDOMTextListener.h
Normal file
46
mozilla/dom/public/coreEvents/nsIDOMTextListener.h
Normal file
@@ -0,0 +1,46 @@
|
||||
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
|
||||
*
|
||||
* The contents of this file are subject to the Netscape Public
|
||||
* License Version 1.1 (the "License"); you may not use this file
|
||||
* except in compliance with the License. You may obtain a copy of
|
||||
* the License at http://www.mozilla.org/NPL/
|
||||
*
|
||||
* Software distributed under the License is distributed on an "AS
|
||||
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
||||
* implied. See the License for the specific language governing
|
||||
* rights and limitations under the License.
|
||||
*
|
||||
* The Original Code is mozilla.org code.
|
||||
*
|
||||
* The Initial Developer of the Original Code is Netscape
|
||||
* Communications Corporation. Portions created by Netscape are
|
||||
* Copyright (C) 1998 Netscape Communications Corporation. All
|
||||
* Rights Reserved.
|
||||
*
|
||||
* Contributor(s):
|
||||
*/
|
||||
|
||||
#ifndef nsIDOMTextListener_h__
|
||||
#define nsIDOMTextListener_h__
|
||||
|
||||
#include "nsIDOMEvent.h"
|
||||
#include "nsIDOMEventListener.h"
|
||||
|
||||
/*
|
||||
* Key pressed / released / typed listener interface.
|
||||
*/
|
||||
// {C6296E81-D823-11d2-9E7F-0060089FE59B}
|
||||
#define NS_IDOMTEXTLISTENER_IID \
|
||||
{ 0xc6296e81, 0xd823, 0x11d2, { 0x9e, 0x7f, 0x0, 0x60, 0x8, 0x9f, 0xe5, 0x9b } }
|
||||
|
||||
|
||||
class nsIDOMTextListener : public nsIDOMEventListener {
|
||||
|
||||
public:
|
||||
|
||||
NS_DEFINE_STATIC_IID_ACCESSOR(NS_IDOMTEXTLISTENER_IID)
|
||||
|
||||
virtual nsresult HandleText(nsIDOMEvent* aTextEvent) = 0;
|
||||
|
||||
};
|
||||
#endif // nsIDOMTextListener_h__
|
||||
67
mozilla/dom/public/coreEvents/nsIDOMUIEvent.h
Normal file
67
mozilla/dom/public/coreEvents/nsIDOMUIEvent.h
Normal file
@@ -0,0 +1,67 @@
|
||||
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
|
||||
*
|
||||
* The contents of this file are subject to the Netscape Public
|
||||
* License Version 1.1 (the "License"); you may not use this file
|
||||
* except in compliance with the License. You may obtain a copy of
|
||||
* the License at http://www.mozilla.org/NPL/
|
||||
*
|
||||
* Software distributed under the License is distributed on an "AS
|
||||
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
||||
* implied. See the License for the specific language governing
|
||||
* rights and limitations under the License.
|
||||
*
|
||||
* The Original Code is mozilla.org code.
|
||||
*
|
||||
* The Initial Developer of the Original Code is Netscape
|
||||
* Communications Corporation. Portions created by Netscape are
|
||||
* Copyright (C) 1998 Netscape Communications Corporation. All
|
||||
* Rights Reserved.
|
||||
*
|
||||
* Contributor(s):
|
||||
*/
|
||||
/* AUTO-GENERATED. DO NOT EDIT!!! */
|
||||
|
||||
#ifndef nsIDOMUIEvent_h__
|
||||
#define nsIDOMUIEvent_h__
|
||||
|
||||
#include "nsISupports.h"
|
||||
#include "nsString.h"
|
||||
#include "nsIScriptContext.h"
|
||||
#include "nsIDOMEvent.h"
|
||||
|
||||
class nsIDOMAbstractView;
|
||||
|
||||
#define NS_IDOMUIEVENT_IID \
|
||||
{ 0xa6cf90c3, 0x15b3, 0x11d2, \
|
||||
{ 0x93, 0x2e, 0x00, 0x80, 0x5f, 0x8a, 0xdd, 0x32 } }
|
||||
|
||||
class nsIDOMUIEvent : public nsIDOMEvent {
|
||||
public:
|
||||
static const nsIID& GetIID() { static nsIID iid = NS_IDOMUIEVENT_IID; return iid; }
|
||||
|
||||
NS_IMETHOD GetView(nsIDOMAbstractView** aView)=0;
|
||||
|
||||
NS_IMETHOD GetDetail(PRInt32* aDetail)=0;
|
||||
|
||||
NS_IMETHOD InitUIEvent(const nsString& aTypeArg, PRBool aCanBubbleArg, PRBool aCancelableArg, nsIDOMAbstractView* aViewArg, PRInt32 aDetailArg)=0;
|
||||
};
|
||||
|
||||
|
||||
#define NS_DECL_IDOMUIEVENT \
|
||||
NS_IMETHOD GetView(nsIDOMAbstractView** aView); \
|
||||
NS_IMETHOD GetDetail(PRInt32* aDetail); \
|
||||
NS_IMETHOD InitUIEvent(const nsString& aTypeArg, PRBool aCanBubbleArg, PRBool aCancelableArg, nsIDOMAbstractView* aViewArg, PRInt32 aDetailArg); \
|
||||
|
||||
|
||||
|
||||
#define NS_FORWARD_IDOMUIEVENT(_to) \
|
||||
NS_IMETHOD GetView(nsIDOMAbstractView** aView) { return _to GetView(aView); } \
|
||||
NS_IMETHOD GetDetail(PRInt32* aDetail) { return _to GetDetail(aDetail); } \
|
||||
NS_IMETHOD InitUIEvent(const nsString& aTypeArg, PRBool aCanBubbleArg, PRBool aCancelableArg, nsIDOMAbstractView* aViewArg, PRInt32 aDetailArg) { return _to InitUIEvent(aTypeArg, aCanBubbleArg, aCancelableArg, aViewArg, aDetailArg); } \
|
||||
|
||||
|
||||
extern "C" NS_DOM nsresult NS_InitUIEventClass(nsIScriptContext *aContext, void **aPrototype);
|
||||
|
||||
extern "C" NS_DOM nsresult NS_NewScriptUIEvent(nsIScriptContext *aContext, nsISupports *aSupports, nsISupports *aParent, void **aReturn);
|
||||
|
||||
#endif // nsIDOMUIEvent_h__
|
||||
33
mozilla/dom/public/css/MANIFEST
Normal file
33
mozilla/dom/public/css/MANIFEST
Normal file
@@ -0,0 +1,33 @@
|
||||
# The contents of this file are subject to the Netscape Public
|
||||
# License Version 1.1 (the "License"); you may not use this file
|
||||
# except in compliance with the License. You may obtain a copy of
|
||||
# the License at http://www.mozilla.org/NPL/
|
||||
#
|
||||
# Software distributed under the License is distributed on an "AS
|
||||
# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
||||
# implied. See the License for the specific language governing
|
||||
# rights and limitations under the License.
|
||||
#
|
||||
# The Original Code is mozilla.org code.
|
||||
#
|
||||
# The Initial Developer of the Original Code is Netscape
|
||||
# Communications Corporation. Portions created by Netscape are
|
||||
# Copyright (C) 1998 Netscape Communications Corporation. All
|
||||
# Rights Reserved.
|
||||
#
|
||||
# Contributor(s):
|
||||
#
|
||||
# This is a list of local files which get copied to the mozilla:dist:dom directory
|
||||
#
|
||||
|
||||
nsIDOMCSS2Properties.h
|
||||
nsIDOMCSSFontFaceRule.h
|
||||
nsIDOMCSSImportRule.h
|
||||
nsIDOMCSSMediaRule.h
|
||||
nsIDOMCSSPageRule.h
|
||||
nsIDOMCSSRule.h
|
||||
nsIDOMCSSStyleDeclaration.h
|
||||
nsIDOMCSSStyleRule.h
|
||||
nsIDOMCSSStyleRuleCollection.h
|
||||
nsIDOMCSSStyleSheet.h
|
||||
nsIDOMCSSUnknownRule.h
|
||||
48
mozilla/dom/public/css/Makefile.in
Normal file
48
mozilla/dom/public/css/Makefile.in
Normal file
@@ -0,0 +1,48 @@
|
||||
#
|
||||
# The contents of this file are subject to the Netscape Public
|
||||
# License Version 1.1 (the "License"); you may not use this file
|
||||
# except in compliance with the License. You may obtain a copy of
|
||||
# the License at http://www.mozilla.org/NPL/
|
||||
#
|
||||
# Software distributed under the License is distributed on an "AS
|
||||
# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
||||
# implied. See the License for the specific language governing
|
||||
# rights and limitations under the License.
|
||||
#
|
||||
# The Original Code is mozilla.org code.
|
||||
#
|
||||
# The Initial Developer of the Original Code is Netscape
|
||||
# Communications Corporation. Portions created by Netscape are
|
||||
# Copyright (C) 1998 Netscape Communications Corporation. All
|
||||
# Rights Reserved.
|
||||
#
|
||||
# Contributor(s):
|
||||
#
|
||||
|
||||
DEPTH = ../../..
|
||||
topsrcdir = @top_srcdir@
|
||||
srcdir = @srcdir@
|
||||
VPATH = @srcdir@
|
||||
|
||||
include $(DEPTH)/config/autoconf.mk
|
||||
|
||||
MODULE = dom
|
||||
|
||||
EXPORTS = \
|
||||
nsIDOMCSS2Properties.h \
|
||||
nsIDOMCSSFontFaceRule.h \
|
||||
nsIDOMCSSImportRule.h \
|
||||
nsIDOMCSSMediaRule.h \
|
||||
nsIDOMCSSPageRule.h \
|
||||
nsIDOMCSSRule.h \
|
||||
nsIDOMCSSStyleDeclaration.h \
|
||||
nsIDOMCSSStyleRule.h \
|
||||
nsIDOMCSSStyleRuleCollection.h \
|
||||
nsIDOMCSSStyleSheet.h \
|
||||
nsIDOMCSSUnknownRule.h \
|
||||
$(NULL)
|
||||
|
||||
EXPORTS := $(addprefix $(srcdir)/, $(EXPORTS))
|
||||
|
||||
include $(topsrcdir)/config/rules.mk
|
||||
|
||||
41
mozilla/dom/public/css/makefile.win
Normal file
41
mozilla/dom/public/css/makefile.win
Normal file
@@ -0,0 +1,41 @@
|
||||
#!nmake
|
||||
#
|
||||
# The contents of this file are subject to the Netscape Public
|
||||
# License Version 1.1 (the "License"); you may not use this file
|
||||
# except in compliance with the License. You may obtain a copy of
|
||||
# the License at http://www.mozilla.org/NPL/
|
||||
#
|
||||
# Software distributed under the License is distributed on an "AS
|
||||
# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
||||
# implied. See the License for the specific language governing
|
||||
# rights and limitations under the License.
|
||||
#
|
||||
# The Original Code is mozilla.org code.
|
||||
#
|
||||
# The Initial Developer of the Original Code is Netscape
|
||||
# Communications Corporation. Portions created by Netscape are
|
||||
# Copyright (C) 1998 Netscape Communications Corporation. All
|
||||
# Rights Reserved.
|
||||
#
|
||||
# Contributor(s):
|
||||
|
||||
DEPTH=..\..\..
|
||||
|
||||
|
||||
DEFINES=-D_IMPL_NS_DOM
|
||||
EXPORTS= \
|
||||
nsIDOMCSS2Properties.h \
|
||||
nsIDOMCSSFontFaceRule.h \
|
||||
nsIDOMCSSImportRule.h \
|
||||
nsIDOMCSSMediaRule.h \
|
||||
nsIDOMCSSPageRule.h \
|
||||
nsIDOMCSSRule.h \
|
||||
nsIDOMCSSStyleDeclaration.h \
|
||||
nsIDOMCSSStyleRule.h \
|
||||
nsIDOMCSSStyleRuleCollection.h \
|
||||
nsIDOMCSSStyleSheet.h \
|
||||
nsIDOMCSSUnknownRule.h
|
||||
|
||||
MODULE=dom
|
||||
|
||||
include <$(DEPTH)\config\rules.mak>
|
||||
915
mozilla/dom/public/css/nsIDOMCSS2Properties.h
Normal file
915
mozilla/dom/public/css/nsIDOMCSS2Properties.h
Normal file
@@ -0,0 +1,915 @@
|
||||
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
|
||||
*
|
||||
* The contents of this file are subject to the Netscape Public
|
||||
* License Version 1.1 (the "License"); you may not use this file
|
||||
* except in compliance with the License. You may obtain a copy of
|
||||
* the License at http://www.mozilla.org/NPL/
|
||||
*
|
||||
* Software distributed under the License is distributed on an "AS
|
||||
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
||||
* implied. See the License for the specific language governing
|
||||
* rights and limitations under the License.
|
||||
*
|
||||
* The Original Code is mozilla.org code.
|
||||
*
|
||||
* The Initial Developer of the Original Code is Netscape
|
||||
* Communications Corporation. Portions created by Netscape are
|
||||
* Copyright (C) 1998 Netscape Communications Corporation. All
|
||||
* Rights Reserved.
|
||||
*
|
||||
* Contributor(s):
|
||||
*/
|
||||
/* AUTO-GENERATED. DO NOT EDIT!!! */
|
||||
|
||||
#ifndef nsIDOMCSS2Properties_h__
|
||||
#define nsIDOMCSS2Properties_h__
|
||||
|
||||
#include "nsISupports.h"
|
||||
#include "nsString.h"
|
||||
#include "nsIScriptContext.h"
|
||||
#include "nsIDOMCSSStyleDeclaration.h"
|
||||
|
||||
|
||||
#define NS_IDOMCSS2PROPERTIES_IID \
|
||||
{ 0xa6cf90d1, 0x15b3, 0x11d2, \
|
||||
{0x93, 0x2e, 0x00, 0x80, 0x5f, 0x8a, 0xdd, 0x32 } }
|
||||
|
||||
class nsIDOMCSS2Properties : public nsIDOMCSSStyleDeclaration {
|
||||
public:
|
||||
static const nsIID& GetIID() { static nsIID iid = NS_IDOMCSS2PROPERTIES_IID; return iid; }
|
||||
|
||||
NS_IMETHOD GetAzimuth(nsString& aAzimuth)=0;
|
||||
NS_IMETHOD SetAzimuth(const nsString& aAzimuth)=0;
|
||||
|
||||
NS_IMETHOD GetBackground(nsString& aBackground)=0;
|
||||
NS_IMETHOD SetBackground(const nsString& aBackground)=0;
|
||||
|
||||
NS_IMETHOD GetBackgroundAttachment(nsString& aBackgroundAttachment)=0;
|
||||
NS_IMETHOD SetBackgroundAttachment(const nsString& aBackgroundAttachment)=0;
|
||||
|
||||
NS_IMETHOD GetBackgroundColor(nsString& aBackgroundColor)=0;
|
||||
NS_IMETHOD SetBackgroundColor(const nsString& aBackgroundColor)=0;
|
||||
|
||||
NS_IMETHOD GetBackgroundImage(nsString& aBackgroundImage)=0;
|
||||
NS_IMETHOD SetBackgroundImage(const nsString& aBackgroundImage)=0;
|
||||
|
||||
NS_IMETHOD GetBackgroundPosition(nsString& aBackgroundPosition)=0;
|
||||
NS_IMETHOD SetBackgroundPosition(const nsString& aBackgroundPosition)=0;
|
||||
|
||||
NS_IMETHOD GetBackgroundRepeat(nsString& aBackgroundRepeat)=0;
|
||||
NS_IMETHOD SetBackgroundRepeat(const nsString& aBackgroundRepeat)=0;
|
||||
|
||||
NS_IMETHOD GetBorder(nsString& aBorder)=0;
|
||||
NS_IMETHOD SetBorder(const nsString& aBorder)=0;
|
||||
|
||||
NS_IMETHOD GetBorderCollapse(nsString& aBorderCollapse)=0;
|
||||
NS_IMETHOD SetBorderCollapse(const nsString& aBorderCollapse)=0;
|
||||
|
||||
NS_IMETHOD GetBorderColor(nsString& aBorderColor)=0;
|
||||
NS_IMETHOD SetBorderColor(const nsString& aBorderColor)=0;
|
||||
|
||||
NS_IMETHOD GetBorderSpacing(nsString& aBorderSpacing)=0;
|
||||
NS_IMETHOD SetBorderSpacing(const nsString& aBorderSpacing)=0;
|
||||
|
||||
NS_IMETHOD GetBorderStyle(nsString& aBorderStyle)=0;
|
||||
NS_IMETHOD SetBorderStyle(const nsString& aBorderStyle)=0;
|
||||
|
||||
NS_IMETHOD GetBorderTop(nsString& aBorderTop)=0;
|
||||
NS_IMETHOD SetBorderTop(const nsString& aBorderTop)=0;
|
||||
|
||||
NS_IMETHOD GetBorderRight(nsString& aBorderRight)=0;
|
||||
NS_IMETHOD SetBorderRight(const nsString& aBorderRight)=0;
|
||||
|
||||
NS_IMETHOD GetBorderBottom(nsString& aBorderBottom)=0;
|
||||
NS_IMETHOD SetBorderBottom(const nsString& aBorderBottom)=0;
|
||||
|
||||
NS_IMETHOD GetBorderLeft(nsString& aBorderLeft)=0;
|
||||
NS_IMETHOD SetBorderLeft(const nsString& aBorderLeft)=0;
|
||||
|
||||
NS_IMETHOD GetBorderTopColor(nsString& aBorderTopColor)=0;
|
||||
NS_IMETHOD SetBorderTopColor(const nsString& aBorderTopColor)=0;
|
||||
|
||||
NS_IMETHOD GetBorderRightColor(nsString& aBorderRightColor)=0;
|
||||
NS_IMETHOD SetBorderRightColor(const nsString& aBorderRightColor)=0;
|
||||
|
||||
NS_IMETHOD GetBorderBottomColor(nsString& aBorderBottomColor)=0;
|
||||
NS_IMETHOD SetBorderBottomColor(const nsString& aBorderBottomColor)=0;
|
||||
|
||||
NS_IMETHOD GetBorderLeftColor(nsString& aBorderLeftColor)=0;
|
||||
NS_IMETHOD SetBorderLeftColor(const nsString& aBorderLeftColor)=0;
|
||||
|
||||
NS_IMETHOD GetBorderTopStyle(nsString& aBorderTopStyle)=0;
|
||||
NS_IMETHOD SetBorderTopStyle(const nsString& aBorderTopStyle)=0;
|
||||
|
||||
NS_IMETHOD GetBorderRightStyle(nsString& aBorderRightStyle)=0;
|
||||
NS_IMETHOD SetBorderRightStyle(const nsString& aBorderRightStyle)=0;
|
||||
|
||||
NS_IMETHOD GetBorderBottomStyle(nsString& aBorderBottomStyle)=0;
|
||||
NS_IMETHOD SetBorderBottomStyle(const nsString& aBorderBottomStyle)=0;
|
||||
|
||||
NS_IMETHOD GetBorderLeftStyle(nsString& aBorderLeftStyle)=0;
|
||||
NS_IMETHOD SetBorderLeftStyle(const nsString& aBorderLeftStyle)=0;
|
||||
|
||||
NS_IMETHOD GetBorderTopWidth(nsString& aBorderTopWidth)=0;
|
||||
NS_IMETHOD SetBorderTopWidth(const nsString& aBorderTopWidth)=0;
|
||||
|
||||
NS_IMETHOD GetBorderRightWidth(nsString& aBorderRightWidth)=0;
|
||||
NS_IMETHOD SetBorderRightWidth(const nsString& aBorderRightWidth)=0;
|
||||
|
||||
NS_IMETHOD GetBorderBottomWidth(nsString& aBorderBottomWidth)=0;
|
||||
NS_IMETHOD SetBorderBottomWidth(const nsString& aBorderBottomWidth)=0;
|
||||
|
||||
NS_IMETHOD GetBorderLeftWidth(nsString& aBorderLeftWidth)=0;
|
||||
NS_IMETHOD SetBorderLeftWidth(const nsString& aBorderLeftWidth)=0;
|
||||
|
||||
NS_IMETHOD GetBorderWidth(nsString& aBorderWidth)=0;
|
||||
NS_IMETHOD SetBorderWidth(const nsString& aBorderWidth)=0;
|
||||
|
||||
NS_IMETHOD GetBottom(nsString& aBottom)=0;
|
||||
NS_IMETHOD SetBottom(const nsString& aBottom)=0;
|
||||
|
||||
NS_IMETHOD GetCaptionSide(nsString& aCaptionSide)=0;
|
||||
NS_IMETHOD SetCaptionSide(const nsString& aCaptionSide)=0;
|
||||
|
||||
NS_IMETHOD GetClear(nsString& aClear)=0;
|
||||
NS_IMETHOD SetClear(const nsString& aClear)=0;
|
||||
|
||||
NS_IMETHOD GetClip(nsString& aClip)=0;
|
||||
NS_IMETHOD SetClip(const nsString& aClip)=0;
|
||||
|
||||
NS_IMETHOD GetColor(nsString& aColor)=0;
|
||||
NS_IMETHOD SetColor(const nsString& aColor)=0;
|
||||
|
||||
NS_IMETHOD GetContent(nsString& aContent)=0;
|
||||
NS_IMETHOD SetContent(const nsString& aContent)=0;
|
||||
|
||||
NS_IMETHOD GetCounterIncrement(nsString& aCounterIncrement)=0;
|
||||
NS_IMETHOD SetCounterIncrement(const nsString& aCounterIncrement)=0;
|
||||
|
||||
NS_IMETHOD GetCounterReset(nsString& aCounterReset)=0;
|
||||
NS_IMETHOD SetCounterReset(const nsString& aCounterReset)=0;
|
||||
|
||||
NS_IMETHOD GetCue(nsString& aCue)=0;
|
||||
NS_IMETHOD SetCue(const nsString& aCue)=0;
|
||||
|
||||
NS_IMETHOD GetCueAfter(nsString& aCueAfter)=0;
|
||||
NS_IMETHOD SetCueAfter(const nsString& aCueAfter)=0;
|
||||
|
||||
NS_IMETHOD GetCueBefore(nsString& aCueBefore)=0;
|
||||
NS_IMETHOD SetCueBefore(const nsString& aCueBefore)=0;
|
||||
|
||||
NS_IMETHOD GetCursor(nsString& aCursor)=0;
|
||||
NS_IMETHOD SetCursor(const nsString& aCursor)=0;
|
||||
|
||||
NS_IMETHOD GetDirection(nsString& aDirection)=0;
|
||||
NS_IMETHOD SetDirection(const nsString& aDirection)=0;
|
||||
|
||||
NS_IMETHOD GetDisplay(nsString& aDisplay)=0;
|
||||
NS_IMETHOD SetDisplay(const nsString& aDisplay)=0;
|
||||
|
||||
NS_IMETHOD GetElevation(nsString& aElevation)=0;
|
||||
NS_IMETHOD SetElevation(const nsString& aElevation)=0;
|
||||
|
||||
NS_IMETHOD GetEmptyCells(nsString& aEmptyCells)=0;
|
||||
NS_IMETHOD SetEmptyCells(const nsString& aEmptyCells)=0;
|
||||
|
||||
NS_IMETHOD GetCssFloat(nsString& aCssFloat)=0;
|
||||
NS_IMETHOD SetCssFloat(const nsString& aCssFloat)=0;
|
||||
|
||||
NS_IMETHOD GetFont(nsString& aFont)=0;
|
||||
NS_IMETHOD SetFont(const nsString& aFont)=0;
|
||||
|
||||
NS_IMETHOD GetFontFamily(nsString& aFontFamily)=0;
|
||||
NS_IMETHOD SetFontFamily(const nsString& aFontFamily)=0;
|
||||
|
||||
NS_IMETHOD GetFontSize(nsString& aFontSize)=0;
|
||||
NS_IMETHOD SetFontSize(const nsString& aFontSize)=0;
|
||||
|
||||
NS_IMETHOD GetFontSizeAdjust(nsString& aFontSizeAdjust)=0;
|
||||
NS_IMETHOD SetFontSizeAdjust(const nsString& aFontSizeAdjust)=0;
|
||||
|
||||
NS_IMETHOD GetFontStretch(nsString& aFontStretch)=0;
|
||||
NS_IMETHOD SetFontStretch(const nsString& aFontStretch)=0;
|
||||
|
||||
NS_IMETHOD GetFontStyle(nsString& aFontStyle)=0;
|
||||
NS_IMETHOD SetFontStyle(const nsString& aFontStyle)=0;
|
||||
|
||||
NS_IMETHOD GetFontVariant(nsString& aFontVariant)=0;
|
||||
NS_IMETHOD SetFontVariant(const nsString& aFontVariant)=0;
|
||||
|
||||
NS_IMETHOD GetFontWeight(nsString& aFontWeight)=0;
|
||||
NS_IMETHOD SetFontWeight(const nsString& aFontWeight)=0;
|
||||
|
||||
NS_IMETHOD GetHeight(nsString& aHeight)=0;
|
||||
NS_IMETHOD SetHeight(const nsString& aHeight)=0;
|
||||
|
||||
NS_IMETHOD GetLeft(nsString& aLeft)=0;
|
||||
NS_IMETHOD SetLeft(const nsString& aLeft)=0;
|
||||
|
||||
NS_IMETHOD GetLetterSpacing(nsString& aLetterSpacing)=0;
|
||||
NS_IMETHOD SetLetterSpacing(const nsString& aLetterSpacing)=0;
|
||||
|
||||
NS_IMETHOD GetLineHeight(nsString& aLineHeight)=0;
|
||||
NS_IMETHOD SetLineHeight(const nsString& aLineHeight)=0;
|
||||
|
||||
NS_IMETHOD GetListStyle(nsString& aListStyle)=0;
|
||||
NS_IMETHOD SetListStyle(const nsString& aListStyle)=0;
|
||||
|
||||
NS_IMETHOD GetListStyleImage(nsString& aListStyleImage)=0;
|
||||
NS_IMETHOD SetListStyleImage(const nsString& aListStyleImage)=0;
|
||||
|
||||
NS_IMETHOD GetListStylePosition(nsString& aListStylePosition)=0;
|
||||
NS_IMETHOD SetListStylePosition(const nsString& aListStylePosition)=0;
|
||||
|
||||
NS_IMETHOD GetListStyleType(nsString& aListStyleType)=0;
|
||||
NS_IMETHOD SetListStyleType(const nsString& aListStyleType)=0;
|
||||
|
||||
NS_IMETHOD GetMargin(nsString& aMargin)=0;
|
||||
NS_IMETHOD SetMargin(const nsString& aMargin)=0;
|
||||
|
||||
NS_IMETHOD GetMarginTop(nsString& aMarginTop)=0;
|
||||
NS_IMETHOD SetMarginTop(const nsString& aMarginTop)=0;
|
||||
|
||||
NS_IMETHOD GetMarginRight(nsString& aMarginRight)=0;
|
||||
NS_IMETHOD SetMarginRight(const nsString& aMarginRight)=0;
|
||||
|
||||
NS_IMETHOD GetMarginBottom(nsString& aMarginBottom)=0;
|
||||
NS_IMETHOD SetMarginBottom(const nsString& aMarginBottom)=0;
|
||||
|
||||
NS_IMETHOD GetMarginLeft(nsString& aMarginLeft)=0;
|
||||
NS_IMETHOD SetMarginLeft(const nsString& aMarginLeft)=0;
|
||||
|
||||
NS_IMETHOD GetMarkerOffset(nsString& aMarkerOffset)=0;
|
||||
NS_IMETHOD SetMarkerOffset(const nsString& aMarkerOffset)=0;
|
||||
|
||||
NS_IMETHOD GetMarks(nsString& aMarks)=0;
|
||||
NS_IMETHOD SetMarks(const nsString& aMarks)=0;
|
||||
|
||||
NS_IMETHOD GetMaxHeight(nsString& aMaxHeight)=0;
|
||||
NS_IMETHOD SetMaxHeight(const nsString& aMaxHeight)=0;
|
||||
|
||||
NS_IMETHOD GetMaxWidth(nsString& aMaxWidth)=0;
|
||||
NS_IMETHOD SetMaxWidth(const nsString& aMaxWidth)=0;
|
||||
|
||||
NS_IMETHOD GetMinHeight(nsString& aMinHeight)=0;
|
||||
NS_IMETHOD SetMinHeight(const nsString& aMinHeight)=0;
|
||||
|
||||
NS_IMETHOD GetMinWidth(nsString& aMinWidth)=0;
|
||||
NS_IMETHOD SetMinWidth(const nsString& aMinWidth)=0;
|
||||
|
||||
NS_IMETHOD GetOrphans(nsString& aOrphans)=0;
|
||||
NS_IMETHOD SetOrphans(const nsString& aOrphans)=0;
|
||||
|
||||
NS_IMETHOD GetOutline(nsString& aOutline)=0;
|
||||
NS_IMETHOD SetOutline(const nsString& aOutline)=0;
|
||||
|
||||
NS_IMETHOD GetOutlineColor(nsString& aOutlineColor)=0;
|
||||
NS_IMETHOD SetOutlineColor(const nsString& aOutlineColor)=0;
|
||||
|
||||
NS_IMETHOD GetOutlineStyle(nsString& aOutlineStyle)=0;
|
||||
NS_IMETHOD SetOutlineStyle(const nsString& aOutlineStyle)=0;
|
||||
|
||||
NS_IMETHOD GetOutlineWidth(nsString& aOutlineWidth)=0;
|
||||
NS_IMETHOD SetOutlineWidth(const nsString& aOutlineWidth)=0;
|
||||
|
||||
NS_IMETHOD GetOverflow(nsString& aOverflow)=0;
|
||||
NS_IMETHOD SetOverflow(const nsString& aOverflow)=0;
|
||||
|
||||
NS_IMETHOD GetPadding(nsString& aPadding)=0;
|
||||
NS_IMETHOD SetPadding(const nsString& aPadding)=0;
|
||||
|
||||
NS_IMETHOD GetPaddingTop(nsString& aPaddingTop)=0;
|
||||
NS_IMETHOD SetPaddingTop(const nsString& aPaddingTop)=0;
|
||||
|
||||
NS_IMETHOD GetPaddingRight(nsString& aPaddingRight)=0;
|
||||
NS_IMETHOD SetPaddingRight(const nsString& aPaddingRight)=0;
|
||||
|
||||
NS_IMETHOD GetPaddingBottom(nsString& aPaddingBottom)=0;
|
||||
NS_IMETHOD SetPaddingBottom(const nsString& aPaddingBottom)=0;
|
||||
|
||||
NS_IMETHOD GetPaddingLeft(nsString& aPaddingLeft)=0;
|
||||
NS_IMETHOD SetPaddingLeft(const nsString& aPaddingLeft)=0;
|
||||
|
||||
NS_IMETHOD GetPage(nsString& aPage)=0;
|
||||
NS_IMETHOD SetPage(const nsString& aPage)=0;
|
||||
|
||||
NS_IMETHOD GetPageBreakAfter(nsString& aPageBreakAfter)=0;
|
||||
NS_IMETHOD SetPageBreakAfter(const nsString& aPageBreakAfter)=0;
|
||||
|
||||
NS_IMETHOD GetPageBreakBefore(nsString& aPageBreakBefore)=0;
|
||||
NS_IMETHOD SetPageBreakBefore(const nsString& aPageBreakBefore)=0;
|
||||
|
||||
NS_IMETHOD GetPageBreakInside(nsString& aPageBreakInside)=0;
|
||||
NS_IMETHOD SetPageBreakInside(const nsString& aPageBreakInside)=0;
|
||||
|
||||
NS_IMETHOD GetPause(nsString& aPause)=0;
|
||||
NS_IMETHOD SetPause(const nsString& aPause)=0;
|
||||
|
||||
NS_IMETHOD GetPauseAfter(nsString& aPauseAfter)=0;
|
||||
NS_IMETHOD SetPauseAfter(const nsString& aPauseAfter)=0;
|
||||
|
||||
NS_IMETHOD GetPauseBefore(nsString& aPauseBefore)=0;
|
||||
NS_IMETHOD SetPauseBefore(const nsString& aPauseBefore)=0;
|
||||
|
||||
NS_IMETHOD GetPitch(nsString& aPitch)=0;
|
||||
NS_IMETHOD SetPitch(const nsString& aPitch)=0;
|
||||
|
||||
NS_IMETHOD GetPitchRange(nsString& aPitchRange)=0;
|
||||
NS_IMETHOD SetPitchRange(const nsString& aPitchRange)=0;
|
||||
|
||||
NS_IMETHOD GetPlayDuring(nsString& aPlayDuring)=0;
|
||||
NS_IMETHOD SetPlayDuring(const nsString& aPlayDuring)=0;
|
||||
|
||||
NS_IMETHOD GetPosition(nsString& aPosition)=0;
|
||||
NS_IMETHOD SetPosition(const nsString& aPosition)=0;
|
||||
|
||||
NS_IMETHOD GetQuotes(nsString& aQuotes)=0;
|
||||
NS_IMETHOD SetQuotes(const nsString& aQuotes)=0;
|
||||
|
||||
NS_IMETHOD GetRichness(nsString& aRichness)=0;
|
||||
NS_IMETHOD SetRichness(const nsString& aRichness)=0;
|
||||
|
||||
NS_IMETHOD GetRight(nsString& aRight)=0;
|
||||
NS_IMETHOD SetRight(const nsString& aRight)=0;
|
||||
|
||||
NS_IMETHOD GetSize(nsString& aSize)=0;
|
||||
NS_IMETHOD SetSize(const nsString& aSize)=0;
|
||||
|
||||
NS_IMETHOD GetSpeak(nsString& aSpeak)=0;
|
||||
NS_IMETHOD SetSpeak(const nsString& aSpeak)=0;
|
||||
|
||||
NS_IMETHOD GetSpeakHeader(nsString& aSpeakHeader)=0;
|
||||
NS_IMETHOD SetSpeakHeader(const nsString& aSpeakHeader)=0;
|
||||
|
||||
NS_IMETHOD GetSpeakNumeral(nsString& aSpeakNumeral)=0;
|
||||
NS_IMETHOD SetSpeakNumeral(const nsString& aSpeakNumeral)=0;
|
||||
|
||||
NS_IMETHOD GetSpeakPunctuation(nsString& aSpeakPunctuation)=0;
|
||||
NS_IMETHOD SetSpeakPunctuation(const nsString& aSpeakPunctuation)=0;
|
||||
|
||||
NS_IMETHOD GetSpeechRate(nsString& aSpeechRate)=0;
|
||||
NS_IMETHOD SetSpeechRate(const nsString& aSpeechRate)=0;
|
||||
|
||||
NS_IMETHOD GetStress(nsString& aStress)=0;
|
||||
NS_IMETHOD SetStress(const nsString& aStress)=0;
|
||||
|
||||
NS_IMETHOD GetTableLayout(nsString& aTableLayout)=0;
|
||||
NS_IMETHOD SetTableLayout(const nsString& aTableLayout)=0;
|
||||
|
||||
NS_IMETHOD GetTextAlign(nsString& aTextAlign)=0;
|
||||
NS_IMETHOD SetTextAlign(const nsString& aTextAlign)=0;
|
||||
|
||||
NS_IMETHOD GetTextDecoration(nsString& aTextDecoration)=0;
|
||||
NS_IMETHOD SetTextDecoration(const nsString& aTextDecoration)=0;
|
||||
|
||||
NS_IMETHOD GetTextIndent(nsString& aTextIndent)=0;
|
||||
NS_IMETHOD SetTextIndent(const nsString& aTextIndent)=0;
|
||||
|
||||
NS_IMETHOD GetTextShadow(nsString& aTextShadow)=0;
|
||||
NS_IMETHOD SetTextShadow(const nsString& aTextShadow)=0;
|
||||
|
||||
NS_IMETHOD GetTextTransform(nsString& aTextTransform)=0;
|
||||
NS_IMETHOD SetTextTransform(const nsString& aTextTransform)=0;
|
||||
|
||||
NS_IMETHOD GetTop(nsString& aTop)=0;
|
||||
NS_IMETHOD SetTop(const nsString& aTop)=0;
|
||||
|
||||
NS_IMETHOD GetUnicodeBidi(nsString& aUnicodeBidi)=0;
|
||||
NS_IMETHOD SetUnicodeBidi(const nsString& aUnicodeBidi)=0;
|
||||
|
||||
NS_IMETHOD GetVerticalAlign(nsString& aVerticalAlign)=0;
|
||||
NS_IMETHOD SetVerticalAlign(const nsString& aVerticalAlign)=0;
|
||||
|
||||
NS_IMETHOD GetVisibility(nsString& aVisibility)=0;
|
||||
NS_IMETHOD SetVisibility(const nsString& aVisibility)=0;
|
||||
|
||||
NS_IMETHOD GetVoiceFamily(nsString& aVoiceFamily)=0;
|
||||
NS_IMETHOD SetVoiceFamily(const nsString& aVoiceFamily)=0;
|
||||
|
||||
NS_IMETHOD GetVolume(nsString& aVolume)=0;
|
||||
NS_IMETHOD SetVolume(const nsString& aVolume)=0;
|
||||
|
||||
NS_IMETHOD GetWhiteSpace(nsString& aWhiteSpace)=0;
|
||||
NS_IMETHOD SetWhiteSpace(const nsString& aWhiteSpace)=0;
|
||||
|
||||
NS_IMETHOD GetWidows(nsString& aWidows)=0;
|
||||
NS_IMETHOD SetWidows(const nsString& aWidows)=0;
|
||||
|
||||
NS_IMETHOD GetWidth(nsString& aWidth)=0;
|
||||
NS_IMETHOD SetWidth(const nsString& aWidth)=0;
|
||||
|
||||
NS_IMETHOD GetWordSpacing(nsString& aWordSpacing)=0;
|
||||
NS_IMETHOD SetWordSpacing(const nsString& aWordSpacing)=0;
|
||||
|
||||
NS_IMETHOD GetZIndex(nsString& aZIndex)=0;
|
||||
NS_IMETHOD SetZIndex(const nsString& aZIndex)=0;
|
||||
|
||||
NS_IMETHOD GetOpacity(nsString& aOpacity)=0;
|
||||
NS_IMETHOD SetOpacity(const nsString& aOpacity)=0;
|
||||
};
|
||||
|
||||
|
||||
#define NS_DECL_IDOMCSS2PROPERTIES \
|
||||
NS_IMETHOD GetAzimuth(nsString& aAzimuth); \
|
||||
NS_IMETHOD SetAzimuth(const nsString& aAzimuth); \
|
||||
NS_IMETHOD GetBackground(nsString& aBackground); \
|
||||
NS_IMETHOD SetBackground(const nsString& aBackground); \
|
||||
NS_IMETHOD GetBackgroundAttachment(nsString& aBackgroundAttachment); \
|
||||
NS_IMETHOD SetBackgroundAttachment(const nsString& aBackgroundAttachment); \
|
||||
NS_IMETHOD GetBackgroundColor(nsString& aBackgroundColor); \
|
||||
NS_IMETHOD SetBackgroundColor(const nsString& aBackgroundColor); \
|
||||
NS_IMETHOD GetBackgroundImage(nsString& aBackgroundImage); \
|
||||
NS_IMETHOD SetBackgroundImage(const nsString& aBackgroundImage); \
|
||||
NS_IMETHOD GetBackgroundPosition(nsString& aBackgroundPosition); \
|
||||
NS_IMETHOD SetBackgroundPosition(const nsString& aBackgroundPosition); \
|
||||
NS_IMETHOD GetBackgroundRepeat(nsString& aBackgroundRepeat); \
|
||||
NS_IMETHOD SetBackgroundRepeat(const nsString& aBackgroundRepeat); \
|
||||
NS_IMETHOD GetBorder(nsString& aBorder); \
|
||||
NS_IMETHOD SetBorder(const nsString& aBorder); \
|
||||
NS_IMETHOD GetBorderCollapse(nsString& aBorderCollapse); \
|
||||
NS_IMETHOD SetBorderCollapse(const nsString& aBorderCollapse); \
|
||||
NS_IMETHOD GetBorderColor(nsString& aBorderColor); \
|
||||
NS_IMETHOD SetBorderColor(const nsString& aBorderColor); \
|
||||
NS_IMETHOD GetBorderSpacing(nsString& aBorderSpacing); \
|
||||
NS_IMETHOD SetBorderSpacing(const nsString& aBorderSpacing); \
|
||||
NS_IMETHOD GetBorderStyle(nsString& aBorderStyle); \
|
||||
NS_IMETHOD SetBorderStyle(const nsString& aBorderStyle); \
|
||||
NS_IMETHOD GetBorderTop(nsString& aBorderTop); \
|
||||
NS_IMETHOD SetBorderTop(const nsString& aBorderTop); \
|
||||
NS_IMETHOD GetBorderRight(nsString& aBorderRight); \
|
||||
NS_IMETHOD SetBorderRight(const nsString& aBorderRight); \
|
||||
NS_IMETHOD GetBorderBottom(nsString& aBorderBottom); \
|
||||
NS_IMETHOD SetBorderBottom(const nsString& aBorderBottom); \
|
||||
NS_IMETHOD GetBorderLeft(nsString& aBorderLeft); \
|
||||
NS_IMETHOD SetBorderLeft(const nsString& aBorderLeft); \
|
||||
NS_IMETHOD GetBorderTopColor(nsString& aBorderTopColor); \
|
||||
NS_IMETHOD SetBorderTopColor(const nsString& aBorderTopColor); \
|
||||
NS_IMETHOD GetBorderRightColor(nsString& aBorderRightColor); \
|
||||
NS_IMETHOD SetBorderRightColor(const nsString& aBorderRightColor); \
|
||||
NS_IMETHOD GetBorderBottomColor(nsString& aBorderBottomColor); \
|
||||
NS_IMETHOD SetBorderBottomColor(const nsString& aBorderBottomColor); \
|
||||
NS_IMETHOD GetBorderLeftColor(nsString& aBorderLeftColor); \
|
||||
NS_IMETHOD SetBorderLeftColor(const nsString& aBorderLeftColor); \
|
||||
NS_IMETHOD GetBorderTopStyle(nsString& aBorderTopStyle); \
|
||||
NS_IMETHOD SetBorderTopStyle(const nsString& aBorderTopStyle); \
|
||||
NS_IMETHOD GetBorderRightStyle(nsString& aBorderRightStyle); \
|
||||
NS_IMETHOD SetBorderRightStyle(const nsString& aBorderRightStyle); \
|
||||
NS_IMETHOD GetBorderBottomStyle(nsString& aBorderBottomStyle); \
|
||||
NS_IMETHOD SetBorderBottomStyle(const nsString& aBorderBottomStyle); \
|
||||
NS_IMETHOD GetBorderLeftStyle(nsString& aBorderLeftStyle); \
|
||||
NS_IMETHOD SetBorderLeftStyle(const nsString& aBorderLeftStyle); \
|
||||
NS_IMETHOD GetBorderTopWidth(nsString& aBorderTopWidth); \
|
||||
NS_IMETHOD SetBorderTopWidth(const nsString& aBorderTopWidth); \
|
||||
NS_IMETHOD GetBorderRightWidth(nsString& aBorderRightWidth); \
|
||||
NS_IMETHOD SetBorderRightWidth(const nsString& aBorderRightWidth); \
|
||||
NS_IMETHOD GetBorderBottomWidth(nsString& aBorderBottomWidth); \
|
||||
NS_IMETHOD SetBorderBottomWidth(const nsString& aBorderBottomWidth); \
|
||||
NS_IMETHOD GetBorderLeftWidth(nsString& aBorderLeftWidth); \
|
||||
NS_IMETHOD SetBorderLeftWidth(const nsString& aBorderLeftWidth); \
|
||||
NS_IMETHOD GetBorderWidth(nsString& aBorderWidth); \
|
||||
NS_IMETHOD SetBorderWidth(const nsString& aBorderWidth); \
|
||||
NS_IMETHOD GetBottom(nsString& aBottom); \
|
||||
NS_IMETHOD SetBottom(const nsString& aBottom); \
|
||||
NS_IMETHOD GetCaptionSide(nsString& aCaptionSide); \
|
||||
NS_IMETHOD SetCaptionSide(const nsString& aCaptionSide); \
|
||||
NS_IMETHOD GetClear(nsString& aClear); \
|
||||
NS_IMETHOD SetClear(const nsString& aClear); \
|
||||
NS_IMETHOD GetClip(nsString& aClip); \
|
||||
NS_IMETHOD SetClip(const nsString& aClip); \
|
||||
NS_IMETHOD GetColor(nsString& aColor); \
|
||||
NS_IMETHOD SetColor(const nsString& aColor); \
|
||||
NS_IMETHOD GetContent(nsString& aContent); \
|
||||
NS_IMETHOD SetContent(const nsString& aContent); \
|
||||
NS_IMETHOD GetCounterIncrement(nsString& aCounterIncrement); \
|
||||
NS_IMETHOD SetCounterIncrement(const nsString& aCounterIncrement); \
|
||||
NS_IMETHOD GetCounterReset(nsString& aCounterReset); \
|
||||
NS_IMETHOD SetCounterReset(const nsString& aCounterReset); \
|
||||
NS_IMETHOD GetCue(nsString& aCue); \
|
||||
NS_IMETHOD SetCue(const nsString& aCue); \
|
||||
NS_IMETHOD GetCueAfter(nsString& aCueAfter); \
|
||||
NS_IMETHOD SetCueAfter(const nsString& aCueAfter); \
|
||||
NS_IMETHOD GetCueBefore(nsString& aCueBefore); \
|
||||
NS_IMETHOD SetCueBefore(const nsString& aCueBefore); \
|
||||
NS_IMETHOD GetCursor(nsString& aCursor); \
|
||||
NS_IMETHOD SetCursor(const nsString& aCursor); \
|
||||
NS_IMETHOD GetDirection(nsString& aDirection); \
|
||||
NS_IMETHOD SetDirection(const nsString& aDirection); \
|
||||
NS_IMETHOD GetDisplay(nsString& aDisplay); \
|
||||
NS_IMETHOD SetDisplay(const nsString& aDisplay); \
|
||||
NS_IMETHOD GetElevation(nsString& aElevation); \
|
||||
NS_IMETHOD SetElevation(const nsString& aElevation); \
|
||||
NS_IMETHOD GetEmptyCells(nsString& aEmptyCells); \
|
||||
NS_IMETHOD SetEmptyCells(const nsString& aEmptyCells); \
|
||||
NS_IMETHOD GetCssFloat(nsString& aCssFloat); \
|
||||
NS_IMETHOD SetCssFloat(const nsString& aCssFloat); \
|
||||
NS_IMETHOD GetFont(nsString& aFont); \
|
||||
NS_IMETHOD SetFont(const nsString& aFont); \
|
||||
NS_IMETHOD GetFontFamily(nsString& aFontFamily); \
|
||||
NS_IMETHOD SetFontFamily(const nsString& aFontFamily); \
|
||||
NS_IMETHOD GetFontSize(nsString& aFontSize); \
|
||||
NS_IMETHOD SetFontSize(const nsString& aFontSize); \
|
||||
NS_IMETHOD GetFontSizeAdjust(nsString& aFontSizeAdjust); \
|
||||
NS_IMETHOD SetFontSizeAdjust(const nsString& aFontSizeAdjust); \
|
||||
NS_IMETHOD GetFontStretch(nsString& aFontStretch); \
|
||||
NS_IMETHOD SetFontStretch(const nsString& aFontStretch); \
|
||||
NS_IMETHOD GetFontStyle(nsString& aFontStyle); \
|
||||
NS_IMETHOD SetFontStyle(const nsString& aFontStyle); \
|
||||
NS_IMETHOD GetFontVariant(nsString& aFontVariant); \
|
||||
NS_IMETHOD SetFontVariant(const nsString& aFontVariant); \
|
||||
NS_IMETHOD GetFontWeight(nsString& aFontWeight); \
|
||||
NS_IMETHOD SetFontWeight(const nsString& aFontWeight); \
|
||||
NS_IMETHOD GetHeight(nsString& aHeight); \
|
||||
NS_IMETHOD SetHeight(const nsString& aHeight); \
|
||||
NS_IMETHOD GetLeft(nsString& aLeft); \
|
||||
NS_IMETHOD SetLeft(const nsString& aLeft); \
|
||||
NS_IMETHOD GetLetterSpacing(nsString& aLetterSpacing); \
|
||||
NS_IMETHOD SetLetterSpacing(const nsString& aLetterSpacing); \
|
||||
NS_IMETHOD GetLineHeight(nsString& aLineHeight); \
|
||||
NS_IMETHOD SetLineHeight(const nsString& aLineHeight); \
|
||||
NS_IMETHOD GetListStyle(nsString& aListStyle); \
|
||||
NS_IMETHOD SetListStyle(const nsString& aListStyle); \
|
||||
NS_IMETHOD GetListStyleImage(nsString& aListStyleImage); \
|
||||
NS_IMETHOD SetListStyleImage(const nsString& aListStyleImage); \
|
||||
NS_IMETHOD GetListStylePosition(nsString& aListStylePosition); \
|
||||
NS_IMETHOD SetListStylePosition(const nsString& aListStylePosition); \
|
||||
NS_IMETHOD GetListStyleType(nsString& aListStyleType); \
|
||||
NS_IMETHOD SetListStyleType(const nsString& aListStyleType); \
|
||||
NS_IMETHOD GetMargin(nsString& aMargin); \
|
||||
NS_IMETHOD SetMargin(const nsString& aMargin); \
|
||||
NS_IMETHOD GetMarginTop(nsString& aMarginTop); \
|
||||
NS_IMETHOD SetMarginTop(const nsString& aMarginTop); \
|
||||
NS_IMETHOD GetMarginRight(nsString& aMarginRight); \
|
||||
NS_IMETHOD SetMarginRight(const nsString& aMarginRight); \
|
||||
NS_IMETHOD GetMarginBottom(nsString& aMarginBottom); \
|
||||
NS_IMETHOD SetMarginBottom(const nsString& aMarginBottom); \
|
||||
NS_IMETHOD GetMarginLeft(nsString& aMarginLeft); \
|
||||
NS_IMETHOD SetMarginLeft(const nsString& aMarginLeft); \
|
||||
NS_IMETHOD GetMarkerOffset(nsString& aMarkerOffset); \
|
||||
NS_IMETHOD SetMarkerOffset(const nsString& aMarkerOffset); \
|
||||
NS_IMETHOD GetMarks(nsString& aMarks); \
|
||||
NS_IMETHOD SetMarks(const nsString& aMarks); \
|
||||
NS_IMETHOD GetMaxHeight(nsString& aMaxHeight); \
|
||||
NS_IMETHOD SetMaxHeight(const nsString& aMaxHeight); \
|
||||
NS_IMETHOD GetMaxWidth(nsString& aMaxWidth); \
|
||||
NS_IMETHOD SetMaxWidth(const nsString& aMaxWidth); \
|
||||
NS_IMETHOD GetMinHeight(nsString& aMinHeight); \
|
||||
NS_IMETHOD SetMinHeight(const nsString& aMinHeight); \
|
||||
NS_IMETHOD GetMinWidth(nsString& aMinWidth); \
|
||||
NS_IMETHOD SetMinWidth(const nsString& aMinWidth); \
|
||||
NS_IMETHOD GetOrphans(nsString& aOrphans); \
|
||||
NS_IMETHOD SetOrphans(const nsString& aOrphans); \
|
||||
NS_IMETHOD GetOutline(nsString& aOutline); \
|
||||
NS_IMETHOD SetOutline(const nsString& aOutline); \
|
||||
NS_IMETHOD GetOutlineColor(nsString& aOutlineColor); \
|
||||
NS_IMETHOD SetOutlineColor(const nsString& aOutlineColor); \
|
||||
NS_IMETHOD GetOutlineStyle(nsString& aOutlineStyle); \
|
||||
NS_IMETHOD SetOutlineStyle(const nsString& aOutlineStyle); \
|
||||
NS_IMETHOD GetOutlineWidth(nsString& aOutlineWidth); \
|
||||
NS_IMETHOD SetOutlineWidth(const nsString& aOutlineWidth); \
|
||||
NS_IMETHOD GetOverflow(nsString& aOverflow); \
|
||||
NS_IMETHOD SetOverflow(const nsString& aOverflow); \
|
||||
NS_IMETHOD GetPadding(nsString& aPadding); \
|
||||
NS_IMETHOD SetPadding(const nsString& aPadding); \
|
||||
NS_IMETHOD GetPaddingTop(nsString& aPaddingTop); \
|
||||
NS_IMETHOD SetPaddingTop(const nsString& aPaddingTop); \
|
||||
NS_IMETHOD GetPaddingRight(nsString& aPaddingRight); \
|
||||
NS_IMETHOD SetPaddingRight(const nsString& aPaddingRight); \
|
||||
NS_IMETHOD GetPaddingBottom(nsString& aPaddingBottom); \
|
||||
NS_IMETHOD SetPaddingBottom(const nsString& aPaddingBottom); \
|
||||
NS_IMETHOD GetPaddingLeft(nsString& aPaddingLeft); \
|
||||
NS_IMETHOD SetPaddingLeft(const nsString& aPaddingLeft); \
|
||||
NS_IMETHOD GetPage(nsString& aPage); \
|
||||
NS_IMETHOD SetPage(const nsString& aPage); \
|
||||
NS_IMETHOD GetPageBreakAfter(nsString& aPageBreakAfter); \
|
||||
NS_IMETHOD SetPageBreakAfter(const nsString& aPageBreakAfter); \
|
||||
NS_IMETHOD GetPageBreakBefore(nsString& aPageBreakBefore); \
|
||||
NS_IMETHOD SetPageBreakBefore(const nsString& aPageBreakBefore); \
|
||||
NS_IMETHOD GetPageBreakInside(nsString& aPageBreakInside); \
|
||||
NS_IMETHOD SetPageBreakInside(const nsString& aPageBreakInside); \
|
||||
NS_IMETHOD GetPause(nsString& aPause); \
|
||||
NS_IMETHOD SetPause(const nsString& aPause); \
|
||||
NS_IMETHOD GetPauseAfter(nsString& aPauseAfter); \
|
||||
NS_IMETHOD SetPauseAfter(const nsString& aPauseAfter); \
|
||||
NS_IMETHOD GetPauseBefore(nsString& aPauseBefore); \
|
||||
NS_IMETHOD SetPauseBefore(const nsString& aPauseBefore); \
|
||||
NS_IMETHOD GetPitch(nsString& aPitch); \
|
||||
NS_IMETHOD SetPitch(const nsString& aPitch); \
|
||||
NS_IMETHOD GetPitchRange(nsString& aPitchRange); \
|
||||
NS_IMETHOD SetPitchRange(const nsString& aPitchRange); \
|
||||
NS_IMETHOD GetPlayDuring(nsString& aPlayDuring); \
|
||||
NS_IMETHOD SetPlayDuring(const nsString& aPlayDuring); \
|
||||
NS_IMETHOD GetPosition(nsString& aPosition); \
|
||||
NS_IMETHOD SetPosition(const nsString& aPosition); \
|
||||
NS_IMETHOD GetQuotes(nsString& aQuotes); \
|
||||
NS_IMETHOD SetQuotes(const nsString& aQuotes); \
|
||||
NS_IMETHOD GetRichness(nsString& aRichness); \
|
||||
NS_IMETHOD SetRichness(const nsString& aRichness); \
|
||||
NS_IMETHOD GetRight(nsString& aRight); \
|
||||
NS_IMETHOD SetRight(const nsString& aRight); \
|
||||
NS_IMETHOD GetSize(nsString& aSize); \
|
||||
NS_IMETHOD SetSize(const nsString& aSize); \
|
||||
NS_IMETHOD GetSpeak(nsString& aSpeak); \
|
||||
NS_IMETHOD SetSpeak(const nsString& aSpeak); \
|
||||
NS_IMETHOD GetSpeakHeader(nsString& aSpeakHeader); \
|
||||
NS_IMETHOD SetSpeakHeader(const nsString& aSpeakHeader); \
|
||||
NS_IMETHOD GetSpeakNumeral(nsString& aSpeakNumeral); \
|
||||
NS_IMETHOD SetSpeakNumeral(const nsString& aSpeakNumeral); \
|
||||
NS_IMETHOD GetSpeakPunctuation(nsString& aSpeakPunctuation); \
|
||||
NS_IMETHOD SetSpeakPunctuation(const nsString& aSpeakPunctuation); \
|
||||
NS_IMETHOD GetSpeechRate(nsString& aSpeechRate); \
|
||||
NS_IMETHOD SetSpeechRate(const nsString& aSpeechRate); \
|
||||
NS_IMETHOD GetStress(nsString& aStress); \
|
||||
NS_IMETHOD SetStress(const nsString& aStress); \
|
||||
NS_IMETHOD GetTableLayout(nsString& aTableLayout); \
|
||||
NS_IMETHOD SetTableLayout(const nsString& aTableLayout); \
|
||||
NS_IMETHOD GetTextAlign(nsString& aTextAlign); \
|
||||
NS_IMETHOD SetTextAlign(const nsString& aTextAlign); \
|
||||
NS_IMETHOD GetTextDecoration(nsString& aTextDecoration); \
|
||||
NS_IMETHOD SetTextDecoration(const nsString& aTextDecoration); \
|
||||
NS_IMETHOD GetTextIndent(nsString& aTextIndent); \
|
||||
NS_IMETHOD SetTextIndent(const nsString& aTextIndent); \
|
||||
NS_IMETHOD GetTextShadow(nsString& aTextShadow); \
|
||||
NS_IMETHOD SetTextShadow(const nsString& aTextShadow); \
|
||||
NS_IMETHOD GetTextTransform(nsString& aTextTransform); \
|
||||
NS_IMETHOD SetTextTransform(const nsString& aTextTransform); \
|
||||
NS_IMETHOD GetTop(nsString& aTop); \
|
||||
NS_IMETHOD SetTop(const nsString& aTop); \
|
||||
NS_IMETHOD GetUnicodeBidi(nsString& aUnicodeBidi); \
|
||||
NS_IMETHOD SetUnicodeBidi(const nsString& aUnicodeBidi); \
|
||||
NS_IMETHOD GetVerticalAlign(nsString& aVerticalAlign); \
|
||||
NS_IMETHOD SetVerticalAlign(const nsString& aVerticalAlign); \
|
||||
NS_IMETHOD GetVisibility(nsString& aVisibility); \
|
||||
NS_IMETHOD SetVisibility(const nsString& aVisibility); \
|
||||
NS_IMETHOD GetVoiceFamily(nsString& aVoiceFamily); \
|
||||
NS_IMETHOD SetVoiceFamily(const nsString& aVoiceFamily); \
|
||||
NS_IMETHOD GetVolume(nsString& aVolume); \
|
||||
NS_IMETHOD SetVolume(const nsString& aVolume); \
|
||||
NS_IMETHOD GetWhiteSpace(nsString& aWhiteSpace); \
|
||||
NS_IMETHOD SetWhiteSpace(const nsString& aWhiteSpace); \
|
||||
NS_IMETHOD GetWidows(nsString& aWidows); \
|
||||
NS_IMETHOD SetWidows(const nsString& aWidows); \
|
||||
NS_IMETHOD GetWidth(nsString& aWidth); \
|
||||
NS_IMETHOD SetWidth(const nsString& aWidth); \
|
||||
NS_IMETHOD GetWordSpacing(nsString& aWordSpacing); \
|
||||
NS_IMETHOD SetWordSpacing(const nsString& aWordSpacing); \
|
||||
NS_IMETHOD GetZIndex(nsString& aZIndex); \
|
||||
NS_IMETHOD SetZIndex(const nsString& aZIndex); \
|
||||
NS_IMETHOD GetOpacity(nsString& aOpacity); \
|
||||
NS_IMETHOD SetOpacity(const nsString& aOpacity); \
|
||||
|
||||
|
||||
|
||||
#define NS_FORWARD_IDOMCSS2PROPERTIES(_to) \
|
||||
NS_IMETHOD GetAzimuth(nsString& aAzimuth) { return _to GetAzimuth(aAzimuth); } \
|
||||
NS_IMETHOD SetAzimuth(const nsString& aAzimuth) { return _to SetAzimuth(aAzimuth); } \
|
||||
NS_IMETHOD GetBackground(nsString& aBackground) { return _to GetBackground(aBackground); } \
|
||||
NS_IMETHOD SetBackground(const nsString& aBackground) { return _to SetBackground(aBackground); } \
|
||||
NS_IMETHOD GetBackgroundAttachment(nsString& aBackgroundAttachment) { return _to GetBackgroundAttachment(aBackgroundAttachment); } \
|
||||
NS_IMETHOD SetBackgroundAttachment(const nsString& aBackgroundAttachment) { return _to SetBackgroundAttachment(aBackgroundAttachment); } \
|
||||
NS_IMETHOD GetBackgroundColor(nsString& aBackgroundColor) { return _to GetBackgroundColor(aBackgroundColor); } \
|
||||
NS_IMETHOD SetBackgroundColor(const nsString& aBackgroundColor) { return _to SetBackgroundColor(aBackgroundColor); } \
|
||||
NS_IMETHOD GetBackgroundImage(nsString& aBackgroundImage) { return _to GetBackgroundImage(aBackgroundImage); } \
|
||||
NS_IMETHOD SetBackgroundImage(const nsString& aBackgroundImage) { return _to SetBackgroundImage(aBackgroundImage); } \
|
||||
NS_IMETHOD GetBackgroundPosition(nsString& aBackgroundPosition) { return _to GetBackgroundPosition(aBackgroundPosition); } \
|
||||
NS_IMETHOD SetBackgroundPosition(const nsString& aBackgroundPosition) { return _to SetBackgroundPosition(aBackgroundPosition); } \
|
||||
NS_IMETHOD GetBackgroundRepeat(nsString& aBackgroundRepeat) { return _to GetBackgroundRepeat(aBackgroundRepeat); } \
|
||||
NS_IMETHOD SetBackgroundRepeat(const nsString& aBackgroundRepeat) { return _to SetBackgroundRepeat(aBackgroundRepeat); } \
|
||||
NS_IMETHOD GetBorder(nsString& aBorder) { return _to GetBorder(aBorder); } \
|
||||
NS_IMETHOD SetBorder(const nsString& aBorder) { return _to SetBorder(aBorder); } \
|
||||
NS_IMETHOD GetBorderCollapse(nsString& aBorderCollapse) { return _to GetBorderCollapse(aBorderCollapse); } \
|
||||
NS_IMETHOD SetBorderCollapse(const nsString& aBorderCollapse) { return _to SetBorderCollapse(aBorderCollapse); } \
|
||||
NS_IMETHOD GetBorderColor(nsString& aBorderColor) { return _to GetBorderColor(aBorderColor); } \
|
||||
NS_IMETHOD SetBorderColor(const nsString& aBorderColor) { return _to SetBorderColor(aBorderColor); } \
|
||||
NS_IMETHOD GetBorderSpacing(nsString& aBorderSpacing) { return _to GetBorderSpacing(aBorderSpacing); } \
|
||||
NS_IMETHOD SetBorderSpacing(const nsString& aBorderSpacing) { return _to SetBorderSpacing(aBorderSpacing); } \
|
||||
NS_IMETHOD GetBorderStyle(nsString& aBorderStyle) { return _to GetBorderStyle(aBorderStyle); } \
|
||||
NS_IMETHOD SetBorderStyle(const nsString& aBorderStyle) { return _to SetBorderStyle(aBorderStyle); } \
|
||||
NS_IMETHOD GetBorderTop(nsString& aBorderTop) { return _to GetBorderTop(aBorderTop); } \
|
||||
NS_IMETHOD SetBorderTop(const nsString& aBorderTop) { return _to SetBorderTop(aBorderTop); } \
|
||||
NS_IMETHOD GetBorderRight(nsString& aBorderRight) { return _to GetBorderRight(aBorderRight); } \
|
||||
NS_IMETHOD SetBorderRight(const nsString& aBorderRight) { return _to SetBorderRight(aBorderRight); } \
|
||||
NS_IMETHOD GetBorderBottom(nsString& aBorderBottom) { return _to GetBorderBottom(aBorderBottom); } \
|
||||
NS_IMETHOD SetBorderBottom(const nsString& aBorderBottom) { return _to SetBorderBottom(aBorderBottom); } \
|
||||
NS_IMETHOD GetBorderLeft(nsString& aBorderLeft) { return _to GetBorderLeft(aBorderLeft); } \
|
||||
NS_IMETHOD SetBorderLeft(const nsString& aBorderLeft) { return _to SetBorderLeft(aBorderLeft); } \
|
||||
NS_IMETHOD GetBorderTopColor(nsString& aBorderTopColor) { return _to GetBorderTopColor(aBorderTopColor); } \
|
||||
NS_IMETHOD SetBorderTopColor(const nsString& aBorderTopColor) { return _to SetBorderTopColor(aBorderTopColor); } \
|
||||
NS_IMETHOD GetBorderRightColor(nsString& aBorderRightColor) { return _to GetBorderRightColor(aBorderRightColor); } \
|
||||
NS_IMETHOD SetBorderRightColor(const nsString& aBorderRightColor) { return _to SetBorderRightColor(aBorderRightColor); } \
|
||||
NS_IMETHOD GetBorderBottomColor(nsString& aBorderBottomColor) { return _to GetBorderBottomColor(aBorderBottomColor); } \
|
||||
NS_IMETHOD SetBorderBottomColor(const nsString& aBorderBottomColor) { return _to SetBorderBottomColor(aBorderBottomColor); } \
|
||||
NS_IMETHOD GetBorderLeftColor(nsString& aBorderLeftColor) { return _to GetBorderLeftColor(aBorderLeftColor); } \
|
||||
NS_IMETHOD SetBorderLeftColor(const nsString& aBorderLeftColor) { return _to SetBorderLeftColor(aBorderLeftColor); } \
|
||||
NS_IMETHOD GetBorderTopStyle(nsString& aBorderTopStyle) { return _to GetBorderTopStyle(aBorderTopStyle); } \
|
||||
NS_IMETHOD SetBorderTopStyle(const nsString& aBorderTopStyle) { return _to SetBorderTopStyle(aBorderTopStyle); } \
|
||||
NS_IMETHOD GetBorderRightStyle(nsString& aBorderRightStyle) { return _to GetBorderRightStyle(aBorderRightStyle); } \
|
||||
NS_IMETHOD SetBorderRightStyle(const nsString& aBorderRightStyle) { return _to SetBorderRightStyle(aBorderRightStyle); } \
|
||||
NS_IMETHOD GetBorderBottomStyle(nsString& aBorderBottomStyle) { return _to GetBorderBottomStyle(aBorderBottomStyle); } \
|
||||
NS_IMETHOD SetBorderBottomStyle(const nsString& aBorderBottomStyle) { return _to SetBorderBottomStyle(aBorderBottomStyle); } \
|
||||
NS_IMETHOD GetBorderLeftStyle(nsString& aBorderLeftStyle) { return _to GetBorderLeftStyle(aBorderLeftStyle); } \
|
||||
NS_IMETHOD SetBorderLeftStyle(const nsString& aBorderLeftStyle) { return _to SetBorderLeftStyle(aBorderLeftStyle); } \
|
||||
NS_IMETHOD GetBorderTopWidth(nsString& aBorderTopWidth) { return _to GetBorderTopWidth(aBorderTopWidth); } \
|
||||
NS_IMETHOD SetBorderTopWidth(const nsString& aBorderTopWidth) { return _to SetBorderTopWidth(aBorderTopWidth); } \
|
||||
NS_IMETHOD GetBorderRightWidth(nsString& aBorderRightWidth) { return _to GetBorderRightWidth(aBorderRightWidth); } \
|
||||
NS_IMETHOD SetBorderRightWidth(const nsString& aBorderRightWidth) { return _to SetBorderRightWidth(aBorderRightWidth); } \
|
||||
NS_IMETHOD GetBorderBottomWidth(nsString& aBorderBottomWidth) { return _to GetBorderBottomWidth(aBorderBottomWidth); } \
|
||||
NS_IMETHOD SetBorderBottomWidth(const nsString& aBorderBottomWidth) { return _to SetBorderBottomWidth(aBorderBottomWidth); } \
|
||||
NS_IMETHOD GetBorderLeftWidth(nsString& aBorderLeftWidth) { return _to GetBorderLeftWidth(aBorderLeftWidth); } \
|
||||
NS_IMETHOD SetBorderLeftWidth(const nsString& aBorderLeftWidth) { return _to SetBorderLeftWidth(aBorderLeftWidth); } \
|
||||
NS_IMETHOD GetBorderWidth(nsString& aBorderWidth) { return _to GetBorderWidth(aBorderWidth); } \
|
||||
NS_IMETHOD SetBorderWidth(const nsString& aBorderWidth) { return _to SetBorderWidth(aBorderWidth); } \
|
||||
NS_IMETHOD GetBottom(nsString& aBottom) { return _to GetBottom(aBottom); } \
|
||||
NS_IMETHOD SetBottom(const nsString& aBottom) { return _to SetBottom(aBottom); } \
|
||||
NS_IMETHOD GetCaptionSide(nsString& aCaptionSide) { return _to GetCaptionSide(aCaptionSide); } \
|
||||
NS_IMETHOD SetCaptionSide(const nsString& aCaptionSide) { return _to SetCaptionSide(aCaptionSide); } \
|
||||
NS_IMETHOD GetClear(nsString& aClear) { return _to GetClear(aClear); } \
|
||||
NS_IMETHOD SetClear(const nsString& aClear) { return _to SetClear(aClear); } \
|
||||
NS_IMETHOD GetClip(nsString& aClip) { return _to GetClip(aClip); } \
|
||||
NS_IMETHOD SetClip(const nsString& aClip) { return _to SetClip(aClip); } \
|
||||
NS_IMETHOD GetColor(nsString& aColor) { return _to GetColor(aColor); } \
|
||||
NS_IMETHOD SetColor(const nsString& aColor) { return _to SetColor(aColor); } \
|
||||
NS_IMETHOD GetContent(nsString& aContent) { return _to GetContent(aContent); } \
|
||||
NS_IMETHOD SetContent(const nsString& aContent) { return _to SetContent(aContent); } \
|
||||
NS_IMETHOD GetCounterIncrement(nsString& aCounterIncrement) { return _to GetCounterIncrement(aCounterIncrement); } \
|
||||
NS_IMETHOD SetCounterIncrement(const nsString& aCounterIncrement) { return _to SetCounterIncrement(aCounterIncrement); } \
|
||||
NS_IMETHOD GetCounterReset(nsString& aCounterReset) { return _to GetCounterReset(aCounterReset); } \
|
||||
NS_IMETHOD SetCounterReset(const nsString& aCounterReset) { return _to SetCounterReset(aCounterReset); } \
|
||||
NS_IMETHOD GetCue(nsString& aCue) { return _to GetCue(aCue); } \
|
||||
NS_IMETHOD SetCue(const nsString& aCue) { return _to SetCue(aCue); } \
|
||||
NS_IMETHOD GetCueAfter(nsString& aCueAfter) { return _to GetCueAfter(aCueAfter); } \
|
||||
NS_IMETHOD SetCueAfter(const nsString& aCueAfter) { return _to SetCueAfter(aCueAfter); } \
|
||||
NS_IMETHOD GetCueBefore(nsString& aCueBefore) { return _to GetCueBefore(aCueBefore); } \
|
||||
NS_IMETHOD SetCueBefore(const nsString& aCueBefore) { return _to SetCueBefore(aCueBefore); } \
|
||||
NS_IMETHOD GetCursor(nsString& aCursor) { return _to GetCursor(aCursor); } \
|
||||
NS_IMETHOD SetCursor(const nsString& aCursor) { return _to SetCursor(aCursor); } \
|
||||
NS_IMETHOD GetDirection(nsString& aDirection) { return _to GetDirection(aDirection); } \
|
||||
NS_IMETHOD SetDirection(const nsString& aDirection) { return _to SetDirection(aDirection); } \
|
||||
NS_IMETHOD GetDisplay(nsString& aDisplay) { return _to GetDisplay(aDisplay); } \
|
||||
NS_IMETHOD SetDisplay(const nsString& aDisplay) { return _to SetDisplay(aDisplay); } \
|
||||
NS_IMETHOD GetElevation(nsString& aElevation) { return _to GetElevation(aElevation); } \
|
||||
NS_IMETHOD SetElevation(const nsString& aElevation) { return _to SetElevation(aElevation); } \
|
||||
NS_IMETHOD GetEmptyCells(nsString& aEmptyCells) { return _to GetEmptyCells(aEmptyCells); } \
|
||||
NS_IMETHOD SetEmptyCells(const nsString& aEmptyCells) { return _to SetEmptyCells(aEmptyCells); } \
|
||||
NS_IMETHOD GetCssFloat(nsString& aCssFloat) { return _to GetCssFloat(aCssFloat); } \
|
||||
NS_IMETHOD SetCssFloat(const nsString& aCssFloat) { return _to SetCssFloat(aCssFloat); } \
|
||||
NS_IMETHOD GetFont(nsString& aFont) { return _to GetFont(aFont); } \
|
||||
NS_IMETHOD SetFont(const nsString& aFont) { return _to SetFont(aFont); } \
|
||||
NS_IMETHOD GetFontFamily(nsString& aFontFamily) { return _to GetFontFamily(aFontFamily); } \
|
||||
NS_IMETHOD SetFontFamily(const nsString& aFontFamily) { return _to SetFontFamily(aFontFamily); } \
|
||||
NS_IMETHOD GetFontSize(nsString& aFontSize) { return _to GetFontSize(aFontSize); } \
|
||||
NS_IMETHOD SetFontSize(const nsString& aFontSize) { return _to SetFontSize(aFontSize); } \
|
||||
NS_IMETHOD GetFontSizeAdjust(nsString& aFontSizeAdjust) { return _to GetFontSizeAdjust(aFontSizeAdjust); } \
|
||||
NS_IMETHOD SetFontSizeAdjust(const nsString& aFontSizeAdjust) { return _to SetFontSizeAdjust(aFontSizeAdjust); } \
|
||||
NS_IMETHOD GetFontStretch(nsString& aFontStretch) { return _to GetFontStretch(aFontStretch); } \
|
||||
NS_IMETHOD SetFontStretch(const nsString& aFontStretch) { return _to SetFontStretch(aFontStretch); } \
|
||||
NS_IMETHOD GetFontStyle(nsString& aFontStyle) { return _to GetFontStyle(aFontStyle); } \
|
||||
NS_IMETHOD SetFontStyle(const nsString& aFontStyle) { return _to SetFontStyle(aFontStyle); } \
|
||||
NS_IMETHOD GetFontVariant(nsString& aFontVariant) { return _to GetFontVariant(aFontVariant); } \
|
||||
NS_IMETHOD SetFontVariant(const nsString& aFontVariant) { return _to SetFontVariant(aFontVariant); } \
|
||||
NS_IMETHOD GetFontWeight(nsString& aFontWeight) { return _to GetFontWeight(aFontWeight); } \
|
||||
NS_IMETHOD SetFontWeight(const nsString& aFontWeight) { return _to SetFontWeight(aFontWeight); } \
|
||||
NS_IMETHOD GetHeight(nsString& aHeight) { return _to GetHeight(aHeight); } \
|
||||
NS_IMETHOD SetHeight(const nsString& aHeight) { return _to SetHeight(aHeight); } \
|
||||
NS_IMETHOD GetLeft(nsString& aLeft) { return _to GetLeft(aLeft); } \
|
||||
NS_IMETHOD SetLeft(const nsString& aLeft) { return _to SetLeft(aLeft); } \
|
||||
NS_IMETHOD GetLetterSpacing(nsString& aLetterSpacing) { return _to GetLetterSpacing(aLetterSpacing); } \
|
||||
NS_IMETHOD SetLetterSpacing(const nsString& aLetterSpacing) { return _to SetLetterSpacing(aLetterSpacing); } \
|
||||
NS_IMETHOD GetLineHeight(nsString& aLineHeight) { return _to GetLineHeight(aLineHeight); } \
|
||||
NS_IMETHOD SetLineHeight(const nsString& aLineHeight) { return _to SetLineHeight(aLineHeight); } \
|
||||
NS_IMETHOD GetListStyle(nsString& aListStyle) { return _to GetListStyle(aListStyle); } \
|
||||
NS_IMETHOD SetListStyle(const nsString& aListStyle) { return _to SetListStyle(aListStyle); } \
|
||||
NS_IMETHOD GetListStyleImage(nsString& aListStyleImage) { return _to GetListStyleImage(aListStyleImage); } \
|
||||
NS_IMETHOD SetListStyleImage(const nsString& aListStyleImage) { return _to SetListStyleImage(aListStyleImage); } \
|
||||
NS_IMETHOD GetListStylePosition(nsString& aListStylePosition) { return _to GetListStylePosition(aListStylePosition); } \
|
||||
NS_IMETHOD SetListStylePosition(const nsString& aListStylePosition) { return _to SetListStylePosition(aListStylePosition); } \
|
||||
NS_IMETHOD GetListStyleType(nsString& aListStyleType) { return _to GetListStyleType(aListStyleType); } \
|
||||
NS_IMETHOD SetListStyleType(const nsString& aListStyleType) { return _to SetListStyleType(aListStyleType); } \
|
||||
NS_IMETHOD GetMargin(nsString& aMargin) { return _to GetMargin(aMargin); } \
|
||||
NS_IMETHOD SetMargin(const nsString& aMargin) { return _to SetMargin(aMargin); } \
|
||||
NS_IMETHOD GetMarginTop(nsString& aMarginTop) { return _to GetMarginTop(aMarginTop); } \
|
||||
NS_IMETHOD SetMarginTop(const nsString& aMarginTop) { return _to SetMarginTop(aMarginTop); } \
|
||||
NS_IMETHOD GetMarginRight(nsString& aMarginRight) { return _to GetMarginRight(aMarginRight); } \
|
||||
NS_IMETHOD SetMarginRight(const nsString& aMarginRight) { return _to SetMarginRight(aMarginRight); } \
|
||||
NS_IMETHOD GetMarginBottom(nsString& aMarginBottom) { return _to GetMarginBottom(aMarginBottom); } \
|
||||
NS_IMETHOD SetMarginBottom(const nsString& aMarginBottom) { return _to SetMarginBottom(aMarginBottom); } \
|
||||
NS_IMETHOD GetMarginLeft(nsString& aMarginLeft) { return _to GetMarginLeft(aMarginLeft); } \
|
||||
NS_IMETHOD SetMarginLeft(const nsString& aMarginLeft) { return _to SetMarginLeft(aMarginLeft); } \
|
||||
NS_IMETHOD GetMarkerOffset(nsString& aMarkerOffset) { return _to GetMarkerOffset(aMarkerOffset); } \
|
||||
NS_IMETHOD SetMarkerOffset(const nsString& aMarkerOffset) { return _to SetMarkerOffset(aMarkerOffset); } \
|
||||
NS_IMETHOD GetMarks(nsString& aMarks) { return _to GetMarks(aMarks); } \
|
||||
NS_IMETHOD SetMarks(const nsString& aMarks) { return _to SetMarks(aMarks); } \
|
||||
NS_IMETHOD GetMaxHeight(nsString& aMaxHeight) { return _to GetMaxHeight(aMaxHeight); } \
|
||||
NS_IMETHOD SetMaxHeight(const nsString& aMaxHeight) { return _to SetMaxHeight(aMaxHeight); } \
|
||||
NS_IMETHOD GetMaxWidth(nsString& aMaxWidth) { return _to GetMaxWidth(aMaxWidth); } \
|
||||
NS_IMETHOD SetMaxWidth(const nsString& aMaxWidth) { return _to SetMaxWidth(aMaxWidth); } \
|
||||
NS_IMETHOD GetMinHeight(nsString& aMinHeight) { return _to GetMinHeight(aMinHeight); } \
|
||||
NS_IMETHOD SetMinHeight(const nsString& aMinHeight) { return _to SetMinHeight(aMinHeight); } \
|
||||
NS_IMETHOD GetMinWidth(nsString& aMinWidth) { return _to GetMinWidth(aMinWidth); } \
|
||||
NS_IMETHOD SetMinWidth(const nsString& aMinWidth) { return _to SetMinWidth(aMinWidth); } \
|
||||
NS_IMETHOD GetOrphans(nsString& aOrphans) { return _to GetOrphans(aOrphans); } \
|
||||
NS_IMETHOD SetOrphans(const nsString& aOrphans) { return _to SetOrphans(aOrphans); } \
|
||||
NS_IMETHOD GetOutline(nsString& aOutline) { return _to GetOutline(aOutline); } \
|
||||
NS_IMETHOD SetOutline(const nsString& aOutline) { return _to SetOutline(aOutline); } \
|
||||
NS_IMETHOD GetOutlineColor(nsString& aOutlineColor) { return _to GetOutlineColor(aOutlineColor); } \
|
||||
NS_IMETHOD SetOutlineColor(const nsString& aOutlineColor) { return _to SetOutlineColor(aOutlineColor); } \
|
||||
NS_IMETHOD GetOutlineStyle(nsString& aOutlineStyle) { return _to GetOutlineStyle(aOutlineStyle); } \
|
||||
NS_IMETHOD SetOutlineStyle(const nsString& aOutlineStyle) { return _to SetOutlineStyle(aOutlineStyle); } \
|
||||
NS_IMETHOD GetOutlineWidth(nsString& aOutlineWidth) { return _to GetOutlineWidth(aOutlineWidth); } \
|
||||
NS_IMETHOD SetOutlineWidth(const nsString& aOutlineWidth) { return _to SetOutlineWidth(aOutlineWidth); } \
|
||||
NS_IMETHOD GetOverflow(nsString& aOverflow) { return _to GetOverflow(aOverflow); } \
|
||||
NS_IMETHOD SetOverflow(const nsString& aOverflow) { return _to SetOverflow(aOverflow); } \
|
||||
NS_IMETHOD GetPadding(nsString& aPadding) { return _to GetPadding(aPadding); } \
|
||||
NS_IMETHOD SetPadding(const nsString& aPadding) { return _to SetPadding(aPadding); } \
|
||||
NS_IMETHOD GetPaddingTop(nsString& aPaddingTop) { return _to GetPaddingTop(aPaddingTop); } \
|
||||
NS_IMETHOD SetPaddingTop(const nsString& aPaddingTop) { return _to SetPaddingTop(aPaddingTop); } \
|
||||
NS_IMETHOD GetPaddingRight(nsString& aPaddingRight) { return _to GetPaddingRight(aPaddingRight); } \
|
||||
NS_IMETHOD SetPaddingRight(const nsString& aPaddingRight) { return _to SetPaddingRight(aPaddingRight); } \
|
||||
NS_IMETHOD GetPaddingBottom(nsString& aPaddingBottom) { return _to GetPaddingBottom(aPaddingBottom); } \
|
||||
NS_IMETHOD SetPaddingBottom(const nsString& aPaddingBottom) { return _to SetPaddingBottom(aPaddingBottom); } \
|
||||
NS_IMETHOD GetPaddingLeft(nsString& aPaddingLeft) { return _to GetPaddingLeft(aPaddingLeft); } \
|
||||
NS_IMETHOD SetPaddingLeft(const nsString& aPaddingLeft) { return _to SetPaddingLeft(aPaddingLeft); } \
|
||||
NS_IMETHOD GetPage(nsString& aPage) { return _to GetPage(aPage); } \
|
||||
NS_IMETHOD SetPage(const nsString& aPage) { return _to SetPage(aPage); } \
|
||||
NS_IMETHOD GetPageBreakAfter(nsString& aPageBreakAfter) { return _to GetPageBreakAfter(aPageBreakAfter); } \
|
||||
NS_IMETHOD SetPageBreakAfter(const nsString& aPageBreakAfter) { return _to SetPageBreakAfter(aPageBreakAfter); } \
|
||||
NS_IMETHOD GetPageBreakBefore(nsString& aPageBreakBefore) { return _to GetPageBreakBefore(aPageBreakBefore); } \
|
||||
NS_IMETHOD SetPageBreakBefore(const nsString& aPageBreakBefore) { return _to SetPageBreakBefore(aPageBreakBefore); } \
|
||||
NS_IMETHOD GetPageBreakInside(nsString& aPageBreakInside) { return _to GetPageBreakInside(aPageBreakInside); } \
|
||||
NS_IMETHOD SetPageBreakInside(const nsString& aPageBreakInside) { return _to SetPageBreakInside(aPageBreakInside); } \
|
||||
NS_IMETHOD GetPause(nsString& aPause) { return _to GetPause(aPause); } \
|
||||
NS_IMETHOD SetPause(const nsString& aPause) { return _to SetPause(aPause); } \
|
||||
NS_IMETHOD GetPauseAfter(nsString& aPauseAfter) { return _to GetPauseAfter(aPauseAfter); } \
|
||||
NS_IMETHOD SetPauseAfter(const nsString& aPauseAfter) { return _to SetPauseAfter(aPauseAfter); } \
|
||||
NS_IMETHOD GetPauseBefore(nsString& aPauseBefore) { return _to GetPauseBefore(aPauseBefore); } \
|
||||
NS_IMETHOD SetPauseBefore(const nsString& aPauseBefore) { return _to SetPauseBefore(aPauseBefore); } \
|
||||
NS_IMETHOD GetPitch(nsString& aPitch) { return _to GetPitch(aPitch); } \
|
||||
NS_IMETHOD SetPitch(const nsString& aPitch) { return _to SetPitch(aPitch); } \
|
||||
NS_IMETHOD GetPitchRange(nsString& aPitchRange) { return _to GetPitchRange(aPitchRange); } \
|
||||
NS_IMETHOD SetPitchRange(const nsString& aPitchRange) { return _to SetPitchRange(aPitchRange); } \
|
||||
NS_IMETHOD GetPlayDuring(nsString& aPlayDuring) { return _to GetPlayDuring(aPlayDuring); } \
|
||||
NS_IMETHOD SetPlayDuring(const nsString& aPlayDuring) { return _to SetPlayDuring(aPlayDuring); } \
|
||||
NS_IMETHOD GetPosition(nsString& aPosition) { return _to GetPosition(aPosition); } \
|
||||
NS_IMETHOD SetPosition(const nsString& aPosition) { return _to SetPosition(aPosition); } \
|
||||
NS_IMETHOD GetQuotes(nsString& aQuotes) { return _to GetQuotes(aQuotes); } \
|
||||
NS_IMETHOD SetQuotes(const nsString& aQuotes) { return _to SetQuotes(aQuotes); } \
|
||||
NS_IMETHOD GetRichness(nsString& aRichness) { return _to GetRichness(aRichness); } \
|
||||
NS_IMETHOD SetRichness(const nsString& aRichness) { return _to SetRichness(aRichness); } \
|
||||
NS_IMETHOD GetRight(nsString& aRight) { return _to GetRight(aRight); } \
|
||||
NS_IMETHOD SetRight(const nsString& aRight) { return _to SetRight(aRight); } \
|
||||
NS_IMETHOD GetSize(nsString& aSize) { return _to GetSize(aSize); } \
|
||||
NS_IMETHOD SetSize(const nsString& aSize) { return _to SetSize(aSize); } \
|
||||
NS_IMETHOD GetSpeak(nsString& aSpeak) { return _to GetSpeak(aSpeak); } \
|
||||
NS_IMETHOD SetSpeak(const nsString& aSpeak) { return _to SetSpeak(aSpeak); } \
|
||||
NS_IMETHOD GetSpeakHeader(nsString& aSpeakHeader) { return _to GetSpeakHeader(aSpeakHeader); } \
|
||||
NS_IMETHOD SetSpeakHeader(const nsString& aSpeakHeader) { return _to SetSpeakHeader(aSpeakHeader); } \
|
||||
NS_IMETHOD GetSpeakNumeral(nsString& aSpeakNumeral) { return _to GetSpeakNumeral(aSpeakNumeral); } \
|
||||
NS_IMETHOD SetSpeakNumeral(const nsString& aSpeakNumeral) { return _to SetSpeakNumeral(aSpeakNumeral); } \
|
||||
NS_IMETHOD GetSpeakPunctuation(nsString& aSpeakPunctuation) { return _to GetSpeakPunctuation(aSpeakPunctuation); } \
|
||||
NS_IMETHOD SetSpeakPunctuation(const nsString& aSpeakPunctuation) { return _to SetSpeakPunctuation(aSpeakPunctuation); } \
|
||||
NS_IMETHOD GetSpeechRate(nsString& aSpeechRate) { return _to GetSpeechRate(aSpeechRate); } \
|
||||
NS_IMETHOD SetSpeechRate(const nsString& aSpeechRate) { return _to SetSpeechRate(aSpeechRate); } \
|
||||
NS_IMETHOD GetStress(nsString& aStress) { return _to GetStress(aStress); } \
|
||||
NS_IMETHOD SetStress(const nsString& aStress) { return _to SetStress(aStress); } \
|
||||
NS_IMETHOD GetTableLayout(nsString& aTableLayout) { return _to GetTableLayout(aTableLayout); } \
|
||||
NS_IMETHOD SetTableLayout(const nsString& aTableLayout) { return _to SetTableLayout(aTableLayout); } \
|
||||
NS_IMETHOD GetTextAlign(nsString& aTextAlign) { return _to GetTextAlign(aTextAlign); } \
|
||||
NS_IMETHOD SetTextAlign(const nsString& aTextAlign) { return _to SetTextAlign(aTextAlign); } \
|
||||
NS_IMETHOD GetTextDecoration(nsString& aTextDecoration) { return _to GetTextDecoration(aTextDecoration); } \
|
||||
NS_IMETHOD SetTextDecoration(const nsString& aTextDecoration) { return _to SetTextDecoration(aTextDecoration); } \
|
||||
NS_IMETHOD GetTextIndent(nsString& aTextIndent) { return _to GetTextIndent(aTextIndent); } \
|
||||
NS_IMETHOD SetTextIndent(const nsString& aTextIndent) { return _to SetTextIndent(aTextIndent); } \
|
||||
NS_IMETHOD GetTextShadow(nsString& aTextShadow) { return _to GetTextShadow(aTextShadow); } \
|
||||
NS_IMETHOD SetTextShadow(const nsString& aTextShadow) { return _to SetTextShadow(aTextShadow); } \
|
||||
NS_IMETHOD GetTextTransform(nsString& aTextTransform) { return _to GetTextTransform(aTextTransform); } \
|
||||
NS_IMETHOD SetTextTransform(const nsString& aTextTransform) { return _to SetTextTransform(aTextTransform); } \
|
||||
NS_IMETHOD GetTop(nsString& aTop) { return _to GetTop(aTop); } \
|
||||
NS_IMETHOD SetTop(const nsString& aTop) { return _to SetTop(aTop); } \
|
||||
NS_IMETHOD GetUnicodeBidi(nsString& aUnicodeBidi) { return _to GetUnicodeBidi(aUnicodeBidi); } \
|
||||
NS_IMETHOD SetUnicodeBidi(const nsString& aUnicodeBidi) { return _to SetUnicodeBidi(aUnicodeBidi); } \
|
||||
NS_IMETHOD GetVerticalAlign(nsString& aVerticalAlign) { return _to GetVerticalAlign(aVerticalAlign); } \
|
||||
NS_IMETHOD SetVerticalAlign(const nsString& aVerticalAlign) { return _to SetVerticalAlign(aVerticalAlign); } \
|
||||
NS_IMETHOD GetVisibility(nsString& aVisibility) { return _to GetVisibility(aVisibility); } \
|
||||
NS_IMETHOD SetVisibility(const nsString& aVisibility) { return _to SetVisibility(aVisibility); } \
|
||||
NS_IMETHOD GetVoiceFamily(nsString& aVoiceFamily) { return _to GetVoiceFamily(aVoiceFamily); } \
|
||||
NS_IMETHOD SetVoiceFamily(const nsString& aVoiceFamily) { return _to SetVoiceFamily(aVoiceFamily); } \
|
||||
NS_IMETHOD GetVolume(nsString& aVolume) { return _to GetVolume(aVolume); } \
|
||||
NS_IMETHOD SetVolume(const nsString& aVolume) { return _to SetVolume(aVolume); } \
|
||||
NS_IMETHOD GetWhiteSpace(nsString& aWhiteSpace) { return _to GetWhiteSpace(aWhiteSpace); } \
|
||||
NS_IMETHOD SetWhiteSpace(const nsString& aWhiteSpace) { return _to SetWhiteSpace(aWhiteSpace); } \
|
||||
NS_IMETHOD GetWidows(nsString& aWidows) { return _to GetWidows(aWidows); } \
|
||||
NS_IMETHOD SetWidows(const nsString& aWidows) { return _to SetWidows(aWidows); } \
|
||||
NS_IMETHOD GetWidth(nsString& aWidth) { return _to GetWidth(aWidth); } \
|
||||
NS_IMETHOD SetWidth(const nsString& aWidth) { return _to SetWidth(aWidth); } \
|
||||
NS_IMETHOD GetWordSpacing(nsString& aWordSpacing) { return _to GetWordSpacing(aWordSpacing); } \
|
||||
NS_IMETHOD SetWordSpacing(const nsString& aWordSpacing) { return _to SetWordSpacing(aWordSpacing); } \
|
||||
NS_IMETHOD GetZIndex(nsString& aZIndex) { return _to GetZIndex(aZIndex); } \
|
||||
NS_IMETHOD SetZIndex(const nsString& aZIndex) { return _to SetZIndex(aZIndex); } \
|
||||
NS_IMETHOD GetOpacity(nsString& aOpacity) { return _to GetOpacity(aOpacity); } \
|
||||
NS_IMETHOD SetOpacity(const nsString& aOpacity) { return _to SetOpacity(aOpacity); } \
|
||||
|
||||
|
||||
extern "C" NS_DOM nsresult NS_InitCSS2PropertiesClass(nsIScriptContext *aContext, void **aPrototype);
|
||||
|
||||
extern "C" NS_DOM nsresult NS_NewScriptCSS2Properties(nsIScriptContext *aContext, nsISupports *aSupports, nsISupports *aParent, void **aReturn);
|
||||
|
||||
#endif // nsIDOMCSS2Properties_h__
|
||||
62
mozilla/dom/public/css/nsIDOMCSSFontFaceRule.h
Normal file
62
mozilla/dom/public/css/nsIDOMCSSFontFaceRule.h
Normal file
@@ -0,0 +1,62 @@
|
||||
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
|
||||
*
|
||||
* The contents of this file are subject to the Netscape Public
|
||||
* License Version 1.1 (the "License"); you may not use this file
|
||||
* except in compliance with the License. You may obtain a copy of
|
||||
* the License at http://www.mozilla.org/NPL/
|
||||
*
|
||||
* Software distributed under the License is distributed on an "AS
|
||||
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
||||
* implied. See the License for the specific language governing
|
||||
* rights and limitations under the License.
|
||||
*
|
||||
* The Original Code is mozilla.org code.
|
||||
*
|
||||
* The Initial Developer of the Original Code is Netscape
|
||||
* Communications Corporation. Portions created by Netscape are
|
||||
* Copyright (C) 1998 Netscape Communications Corporation. All
|
||||
* Rights Reserved.
|
||||
*
|
||||
* Contributor(s):
|
||||
*/
|
||||
/* AUTO-GENERATED. DO NOT EDIT!!! */
|
||||
|
||||
#ifndef nsIDOMCSSFontFaceRule_h__
|
||||
#define nsIDOMCSSFontFaceRule_h__
|
||||
|
||||
#include "nsISupports.h"
|
||||
#include "nsString.h"
|
||||
#include "nsIScriptContext.h"
|
||||
#include "nsIDOMCSSRule.h"
|
||||
|
||||
class nsIDOMCSSStyleDeclaration;
|
||||
|
||||
#define NS_IDOMCSSFONTFACERULE_IID \
|
||||
{ 0xa6cf90bb, 0x15b3, 0x11d2, \
|
||||
{ 0x93, 0x2e, 0x00, 0x80, 0x5f, 0x8a, 0xdd, 0x32 } }
|
||||
|
||||
class nsIDOMCSSFontFaceRule : public nsIDOMCSSRule {
|
||||
public:
|
||||
static const nsIID& GetIID() { static nsIID iid = NS_IDOMCSSFONTFACERULE_IID; return iid; }
|
||||
|
||||
NS_IMETHOD GetStyle(nsIDOMCSSStyleDeclaration** aStyle)=0;
|
||||
NS_IMETHOD SetStyle(nsIDOMCSSStyleDeclaration* aStyle)=0;
|
||||
};
|
||||
|
||||
|
||||
#define NS_DECL_IDOMCSSFONTFACERULE \
|
||||
NS_IMETHOD GetStyle(nsIDOMCSSStyleDeclaration** aStyle); \
|
||||
NS_IMETHOD SetStyle(nsIDOMCSSStyleDeclaration* aStyle); \
|
||||
|
||||
|
||||
|
||||
#define NS_FORWARD_IDOMCSSFONTFACERULE(_to) \
|
||||
NS_IMETHOD GetStyle(nsIDOMCSSStyleDeclaration** aStyle) { return _to GetStyle(aStyle); } \
|
||||
NS_IMETHOD SetStyle(nsIDOMCSSStyleDeclaration* aStyle) { return _to SetStyle(aStyle); } \
|
||||
|
||||
|
||||
extern "C" NS_DOM nsresult NS_InitCSSFontFaceRuleClass(nsIScriptContext *aContext, void **aPrototype);
|
||||
|
||||
extern "C" NS_DOM nsresult NS_NewScriptCSSFontFaceRule(nsIScriptContext *aContext, nsISupports *aSupports, nsISupports *aParent, void **aReturn);
|
||||
|
||||
#endif // nsIDOMCSSFontFaceRule_h__
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user