/usr/include/thunderbird-11.0.1/nsIDOMWindow.h is in thunderbird-dev 11.0.1+build1-0ubuntu2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 | /*
* DO NOT EDIT. THIS FILE IS GENERATED FROM /build/buildd/thunderbird-11.0.1+build1/build-tree/mozilla/mozilla/dom/interfaces/base/nsIDOMWindow.idl
*/
#ifndef __gen_nsIDOMWindow_h__
#define __gen_nsIDOMWindow_h__
#ifndef __gen_domstubs_h__
#include "domstubs.h"
#endif
#include "jspubtd.h"
/* For IDL files that don't want to include root IDL files. */
#ifndef NS_NO_VTABLE
#define NS_NO_VTABLE
#endif
class nsIFrameRequestCallback; /* forward declaration */
class nsIControllers; /* forward declaration */
class nsIDOMBlob; /* forward declaration */
class nsIDOMLocation; /* forward declaration */
class nsIDOMMediaQueryList; /* forward declaration */
class nsIDOMOfflineResourceList; /* forward declaration */
class nsIDOMPerformance; /* forward declaration */
class nsIDOMStorage; /* forward declaration */
class nsIDOMStorageList; /* forward declaration */
class nsIPrompt; /* forward declaration */
class nsISelection; /* forward declaration */
class nsIVariant; /* forward declaration */
/* starting interface: nsIDOMMozURLProperty */
#define NS_IDOMMOZURLPROPERTY_IID_STR "8fc58f56-f769-4368-a098-edd08550cf1a"
#define NS_IDOMMOZURLPROPERTY_IID \
{0x8fc58f56, 0xf769, 0x4368, \
{ 0xa0, 0x98, 0xed, 0xd0, 0x85, 0x50, 0xcf, 0x1a }}
class NS_NO_VTABLE NS_SCRIPTABLE nsIDOMMozURLProperty : public nsISupports {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_IDOMMOZURLPROPERTY_IID)
/* DOMString createObjectURL (in nsIDOMBlob blob); */
NS_SCRIPTABLE NS_IMETHOD CreateObjectURL(nsIDOMBlob *blob, nsAString & _retval NS_OUTPARAM) = 0;
/* void revokeObjectURL (in DOMString URL); */
NS_SCRIPTABLE NS_IMETHOD RevokeObjectURL(const nsAString & URL) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsIDOMMozURLProperty, NS_IDOMMOZURLPROPERTY_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIDOMMOZURLPROPERTY \
NS_SCRIPTABLE NS_IMETHOD CreateObjectURL(nsIDOMBlob *blob, nsAString & _retval NS_OUTPARAM); \
NS_SCRIPTABLE NS_IMETHOD RevokeObjectURL(const nsAString & URL);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIDOMMOZURLPROPERTY(_to) \
NS_SCRIPTABLE NS_IMETHOD CreateObjectURL(nsIDOMBlob *blob, nsAString & _retval NS_OUTPARAM) { return _to CreateObjectURL(blob, _retval); } \
NS_SCRIPTABLE NS_IMETHOD RevokeObjectURL(const nsAString & URL) { return _to RevokeObjectURL(URL); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIDOMMOZURLPROPERTY(_to) \
NS_SCRIPTABLE NS_IMETHOD CreateObjectURL(nsIDOMBlob *blob, nsAString & _retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->CreateObjectURL(blob, _retval); } \
NS_SCRIPTABLE NS_IMETHOD RevokeObjectURL(const nsAString & URL) { return !_to ? NS_ERROR_NULL_POINTER : _to->RevokeObjectURL(URL); }
#if 0
/* Use the code below as a template for the implementation class for this interface. */
/* Header file */
class nsDOMMozURLProperty : public nsIDOMMozURLProperty
{
public:
NS_DECL_ISUPPORTS
NS_DECL_NSIDOMMOZURLPROPERTY
nsDOMMozURLProperty();
private:
~nsDOMMozURLProperty();
protected:
/* additional members */
};
/* Implementation file */
NS_IMPL_ISUPPORTS1(nsDOMMozURLProperty, nsIDOMMozURLProperty)
nsDOMMozURLProperty::nsDOMMozURLProperty()
{
/* member initializers and constructor code */
}
nsDOMMozURLProperty::~nsDOMMozURLProperty()
{
/* destructor code */
}
/* DOMString createObjectURL (in nsIDOMBlob blob); */
NS_IMETHODIMP nsDOMMozURLProperty::CreateObjectURL(nsIDOMBlob *blob, nsAString & _retval NS_OUTPARAM)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void revokeObjectURL (in DOMString URL); */
NS_IMETHODIMP nsDOMMozURLProperty::RevokeObjectURL(const nsAString & URL)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* End of implementation class template. */
#endif
/* starting interface: nsIDOMWindow */
#define NS_IDOMWINDOW_IID_STR "f6e3b10d-d5f4-4fcd-aa4c-5f98626d428a"
#define NS_IDOMWINDOW_IID \
{0xf6e3b10d, 0xd5f4, 0x4fcd, \
{ 0xaa, 0x4c, 0x5f, 0x98, 0x62, 0x6d, 0x42, 0x8a }}
class NS_NO_VTABLE NS_SCRIPTABLE nsIDOMWindow : public nsISupports {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_IDOMWINDOW_IID)
/* readonly attribute nsIDOMWindow window; */
NS_SCRIPTABLE NS_IMETHOD GetWindow(nsIDOMWindow * *aWindow) = 0;
/* readonly attribute nsIDOMWindow self; */
NS_SCRIPTABLE NS_IMETHOD GetSelf(nsIDOMWindow * *aSelf) = 0;
/* readonly attribute nsIDOMDocument document; */
NS_SCRIPTABLE NS_IMETHOD GetDocument(nsIDOMDocument * *aDocument) = 0;
/* attribute DOMString name; */
NS_SCRIPTABLE NS_IMETHOD GetName(nsAString & aName) = 0;
NS_SCRIPTABLE NS_IMETHOD SetName(const nsAString & aName) = 0;
/* readonly attribute nsIDOMLocation location; */
NS_SCRIPTABLE NS_IMETHOD GetLocation(nsIDOMLocation * *aLocation) = 0;
/* readonly attribute nsIDOMHistory history; */
NS_SCRIPTABLE NS_IMETHOD GetHistory(nsIDOMHistory * *aHistory) = 0;
/* readonly attribute nsIDOMBarProp locationbar; */
NS_SCRIPTABLE NS_IMETHOD GetLocationbar(nsIDOMBarProp * *aLocationbar) = 0;
/* readonly attribute nsIDOMBarProp menubar; */
NS_SCRIPTABLE NS_IMETHOD GetMenubar(nsIDOMBarProp * *aMenubar) = 0;
/* readonly attribute nsIDOMBarProp personalbar; */
NS_SCRIPTABLE NS_IMETHOD GetPersonalbar(nsIDOMBarProp * *aPersonalbar) = 0;
/* readonly attribute nsIDOMBarProp scrollbars; */
NS_SCRIPTABLE NS_IMETHOD GetScrollbars(nsIDOMBarProp * *aScrollbars) = 0;
/* readonly attribute nsIDOMBarProp statusbar; */
NS_SCRIPTABLE NS_IMETHOD GetStatusbar(nsIDOMBarProp * *aStatusbar) = 0;
/* readonly attribute nsIDOMBarProp toolbar; */
NS_SCRIPTABLE NS_IMETHOD GetToolbar(nsIDOMBarProp * *aToolbar) = 0;
/* attribute DOMString status; */
NS_SCRIPTABLE NS_IMETHOD GetStatus(nsAString & aStatus) = 0;
NS_SCRIPTABLE NS_IMETHOD SetStatus(const nsAString & aStatus) = 0;
/* void close (); */
NS_SCRIPTABLE NS_IMETHOD Close(void) = 0;
/* void stop (); */
NS_SCRIPTABLE NS_IMETHOD Stop(void) = 0;
/* void focus (); */
NS_SCRIPTABLE NS_IMETHOD Focus(void) = 0;
/* void blur (); */
NS_SCRIPTABLE NS_IMETHOD Blur(void) = 0;
/* readonly attribute unsigned long length; */
NS_SCRIPTABLE NS_IMETHOD GetLength(PRUint32 *aLength) = 0;
/* readonly attribute nsIDOMWindow top; */
NS_SCRIPTABLE NS_IMETHOD GetTop(nsIDOMWindow * *aTop) = 0;
/* attribute nsIDOMWindow opener; */
NS_SCRIPTABLE NS_IMETHOD GetOpener(nsIDOMWindow * *aOpener) = 0;
NS_SCRIPTABLE NS_IMETHOD SetOpener(nsIDOMWindow *aOpener) = 0;
/* readonly attribute nsIDOMWindow parent; */
NS_SCRIPTABLE NS_IMETHOD GetParent(nsIDOMWindow * *aParent) = 0;
/* readonly attribute nsIDOMElement frameElement; */
NS_SCRIPTABLE NS_IMETHOD GetFrameElement(nsIDOMElement * *aFrameElement) = 0;
/* readonly attribute nsIDOMNavigator navigator; */
NS_SCRIPTABLE NS_IMETHOD GetNavigator(nsIDOMNavigator * *aNavigator) = 0;
/* readonly attribute nsIDOMOfflineResourceList applicationCache; */
NS_SCRIPTABLE NS_IMETHOD GetApplicationCache(nsIDOMOfflineResourceList * *aApplicationCache) = 0;
/* void alert (in DOMString text); */
NS_SCRIPTABLE NS_IMETHOD Alert(const nsAString & text) = 0;
/* boolean confirm (in DOMString text); */
NS_SCRIPTABLE NS_IMETHOD Confirm(const nsAString & text, bool *_retval NS_OUTPARAM) = 0;
/* DOMString prompt ([optional] in DOMString aMessage, [optional] in DOMString aInitial); */
NS_SCRIPTABLE NS_IMETHOD Prompt(const nsAString & aMessage, const nsAString & aInitial, nsAString & _retval NS_OUTPARAM) = 0;
/* void print (); */
NS_SCRIPTABLE NS_IMETHOD Print(void) = 0;
/* nsIVariant showModalDialog (in DOMString aURI, [optional] in nsIVariant aArgs, [optional] in DOMString aOptions); */
NS_SCRIPTABLE NS_IMETHOD ShowModalDialog(const nsAString & aURI, nsIVariant *aArgs, const nsAString & aOptions, nsIVariant * *_retval NS_OUTPARAM) = 0;
/* [binaryname(PostMessageMoz),implicit_jscontext] void postMessage (in jsval message, in DOMString targetOrigin); */
NS_SCRIPTABLE NS_IMETHOD PostMessageMoz(const JS::Value & message, const nsAString & targetOrigin, JSContext* cx) = 0;
/* DOMString atob (in DOMString aAsciiString); */
NS_SCRIPTABLE NS_IMETHOD Atob(const nsAString & aAsciiString, nsAString & _retval NS_OUTPARAM) = 0;
/* DOMString btoa (in DOMString aBase64Data); */
NS_SCRIPTABLE NS_IMETHOD Btoa(const nsAString & aBase64Data, nsAString & _retval NS_OUTPARAM) = 0;
/* readonly attribute nsIDOMStorage sessionStorage; */
NS_SCRIPTABLE NS_IMETHOD GetSessionStorage(nsIDOMStorage * *aSessionStorage) = 0;
/* readonly attribute nsIDOMStorage localStorage; */
NS_SCRIPTABLE NS_IMETHOD GetLocalStorage(nsIDOMStorage * *aLocalStorage) = 0;
/* nsISelection getSelection (); */
NS_SCRIPTABLE NS_IMETHOD GetSelection(nsISelection * *_retval NS_OUTPARAM) = 0;
/* nsIDOMMediaQueryList matchMedia (in DOMString media_query_list); */
NS_SCRIPTABLE NS_IMETHOD MatchMedia(const nsAString & media_query_list, nsIDOMMediaQueryList * *_retval NS_OUTPARAM) = 0;
/* readonly attribute nsIDOMScreen screen; */
NS_SCRIPTABLE NS_IMETHOD GetScreen(nsIDOMScreen * *aScreen) = 0;
/* attribute long innerWidth; */
NS_SCRIPTABLE NS_IMETHOD GetInnerWidth(PRInt32 *aInnerWidth) = 0;
NS_SCRIPTABLE NS_IMETHOD SetInnerWidth(PRInt32 aInnerWidth) = 0;
/* attribute long innerHeight; */
NS_SCRIPTABLE NS_IMETHOD GetInnerHeight(PRInt32 *aInnerHeight) = 0;
NS_SCRIPTABLE NS_IMETHOD SetInnerHeight(PRInt32 aInnerHeight) = 0;
/* readonly attribute long scrollX; */
NS_SCRIPTABLE NS_IMETHOD GetScrollX(PRInt32 *aScrollX) = 0;
/* readonly attribute long pageXOffset; */
NS_SCRIPTABLE NS_IMETHOD GetPageXOffset(PRInt32 *aPageXOffset) = 0;
/* readonly attribute long scrollY; */
NS_SCRIPTABLE NS_IMETHOD GetScrollY(PRInt32 *aScrollY) = 0;
/* readonly attribute long pageYOffset; */
NS_SCRIPTABLE NS_IMETHOD GetPageYOffset(PRInt32 *aPageYOffset) = 0;
/* void scroll (in long xScroll, in long yScroll); */
NS_SCRIPTABLE NS_IMETHOD Scroll(PRInt32 xScroll, PRInt32 yScroll) = 0;
/* void scrollTo (in long xScroll, in long yScroll); */
NS_SCRIPTABLE NS_IMETHOD ScrollTo(PRInt32 xScroll, PRInt32 yScroll) = 0;
/* void scrollBy (in long xScrollDif, in long yScrollDif); */
NS_SCRIPTABLE NS_IMETHOD ScrollBy(PRInt32 xScrollDif, PRInt32 yScrollDif) = 0;
/* attribute long screenX; */
NS_SCRIPTABLE NS_IMETHOD GetScreenX(PRInt32 *aScreenX) = 0;
NS_SCRIPTABLE NS_IMETHOD SetScreenX(PRInt32 aScreenX) = 0;
/* attribute long screenY; */
NS_SCRIPTABLE NS_IMETHOD GetScreenY(PRInt32 *aScreenY) = 0;
NS_SCRIPTABLE NS_IMETHOD SetScreenY(PRInt32 aScreenY) = 0;
/* attribute long outerWidth; */
NS_SCRIPTABLE NS_IMETHOD GetOuterWidth(PRInt32 *aOuterWidth) = 0;
NS_SCRIPTABLE NS_IMETHOD SetOuterWidth(PRInt32 aOuterWidth) = 0;
/* attribute long outerHeight; */
NS_SCRIPTABLE NS_IMETHOD GetOuterHeight(PRInt32 *aOuterHeight) = 0;
NS_SCRIPTABLE NS_IMETHOD SetOuterHeight(PRInt32 aOuterHeight) = 0;
/* nsIDOMCSSStyleDeclaration getComputedStyle (in nsIDOMElement elt, [optional] in DOMString pseudoElt); */
NS_SCRIPTABLE NS_IMETHOD GetComputedStyle(nsIDOMElement *elt, const nsAString & pseudoElt, nsIDOMCSSStyleDeclaration * *_retval NS_OUTPARAM) = 0;
/* [noscript] readonly attribute nsIDOMEventTarget windowRoot; */
NS_IMETHOD GetWindowRoot(nsIDOMEventTarget * *aWindowRoot) = 0;
/* [noscript] readonly attribute nsIDOMWindowCollection frames; */
NS_IMETHOD GetFrames(nsIDOMWindowCollection * *aFrames) = 0;
/* [noscript] attribute float textZoom; */
NS_IMETHOD GetTextZoom(float *aTextZoom) = 0;
NS_IMETHOD SetTextZoom(float aTextZoom) = 0;
/* void scrollByLines (in long numLines); */
NS_SCRIPTABLE NS_IMETHOD ScrollByLines(PRInt32 numLines) = 0;
/* void scrollByPages (in long numPages); */
NS_SCRIPTABLE NS_IMETHOD ScrollByPages(PRInt32 numPages) = 0;
/* void sizeToContent (); */
NS_SCRIPTABLE NS_IMETHOD SizeToContent(void) = 0;
/* readonly attribute nsIDOMWindow content; */
NS_SCRIPTABLE NS_IMETHOD GetContent(nsIDOMWindow * *aContent) = 0;
/* [noscript] readonly attribute nsIPrompt prompter; */
NS_IMETHOD GetPrompter(nsIPrompt * *aPrompter) = 0;
/* readonly attribute boolean closed; */
NS_SCRIPTABLE NS_IMETHOD GetClosed(bool *aClosed) = 0;
/* readonly attribute nsIDOMCrypto crypto; */
NS_SCRIPTABLE NS_IMETHOD GetCrypto(nsIDOMCrypto * *aCrypto) = 0;
/* readonly attribute nsIDOMPkcs11 pkcs11; */
NS_SCRIPTABLE NS_IMETHOD GetPkcs11(nsIDOMPkcs11 * *aPkcs11) = 0;
/* readonly attribute nsIControllers controllers; */
NS_SCRIPTABLE NS_IMETHOD GetControllers(nsIControllers * *aControllers) = 0;
/* attribute DOMString defaultStatus; */
NS_SCRIPTABLE NS_IMETHOD GetDefaultStatus(nsAString & aDefaultStatus) = 0;
NS_SCRIPTABLE NS_IMETHOD SetDefaultStatus(const nsAString & aDefaultStatus) = 0;
/* readonly attribute float mozInnerScreenX; */
NS_SCRIPTABLE NS_IMETHOD GetMozInnerScreenX(float *aMozInnerScreenX) = 0;
/* readonly attribute float mozInnerScreenY; */
NS_SCRIPTABLE NS_IMETHOD GetMozInnerScreenY(float *aMozInnerScreenY) = 0;
/* readonly attribute long scrollMaxX; */
NS_SCRIPTABLE NS_IMETHOD GetScrollMaxX(PRInt32 *aScrollMaxX) = 0;
/* readonly attribute long scrollMaxY; */
NS_SCRIPTABLE NS_IMETHOD GetScrollMaxY(PRInt32 *aScrollMaxY) = 0;
/* attribute boolean fullScreen; */
NS_SCRIPTABLE NS_IMETHOD GetFullScreen(bool *aFullScreen) = 0;
NS_SCRIPTABLE NS_IMETHOD SetFullScreen(bool aFullScreen) = 0;
/* void back (); */
NS_SCRIPTABLE NS_IMETHOD Back(void) = 0;
/* void forward (); */
NS_SCRIPTABLE NS_IMETHOD Forward(void) = 0;
/* void home (); */
NS_SCRIPTABLE NS_IMETHOD Home(void) = 0;
/* void moveTo (in long xPos, in long yPos); */
NS_SCRIPTABLE NS_IMETHOD MoveTo(PRInt32 xPos, PRInt32 yPos) = 0;
/* void moveBy (in long xDif, in long yDif); */
NS_SCRIPTABLE NS_IMETHOD MoveBy(PRInt32 xDif, PRInt32 yDif) = 0;
/* void resizeTo (in long width, in long height); */
NS_SCRIPTABLE NS_IMETHOD ResizeTo(PRInt32 width, PRInt32 height) = 0;
/* void resizeBy (in long widthDif, in long heightDif); */
NS_SCRIPTABLE NS_IMETHOD ResizeBy(PRInt32 widthDif, PRInt32 heightDif) = 0;
/* [noscript] nsIDOMWindow open (in DOMString url, in DOMString name, in DOMString options); */
NS_IMETHOD Open(const nsAString & url, const nsAString & name, const nsAString & options, nsIDOMWindow * *_retval NS_OUTPARAM) = 0;
/* [noscript] nsIDOMWindow openDialog (in DOMString url, in DOMString name, in DOMString options, in nsISupports aExtraArgument); */
NS_IMETHOD OpenDialog(const nsAString & url, const nsAString & name, const nsAString & options, nsISupports *aExtraArgument, nsIDOMWindow * *_retval NS_OUTPARAM) = 0;
/* void updateCommands (in DOMString action); */
NS_SCRIPTABLE NS_IMETHOD UpdateCommands(const nsAString & action) = 0;
/* boolean find ([optional] in DOMString str, [optional] in boolean caseSensitive, [optional] in boolean backwards, [optional] in boolean wrapAround, [optional] in boolean wholeWord, [optional] in boolean searchInFrames, [optional] in boolean showDialog); */
NS_SCRIPTABLE NS_IMETHOD Find(const nsAString & str, bool caseSensitive, bool backwards, bool wrapAround, bool wholeWord, bool searchInFrames, bool showDialog, bool *_retval NS_OUTPARAM) = 0;
/* readonly attribute unsigned long long mozPaintCount; */
NS_SCRIPTABLE NS_IMETHOD GetMozPaintCount(PRUint64 *aMozPaintCount) = 0;
/* long mozRequestAnimationFrame ([optional] in nsIFrameRequestCallback aCallback); */
NS_SCRIPTABLE NS_IMETHOD MozRequestAnimationFrame(nsIFrameRequestCallback *aCallback, PRInt32 *_retval NS_OUTPARAM) = 0;
/* void mozCancelAnimationFrame (in long aHandle); */
NS_SCRIPTABLE NS_IMETHOD MozCancelAnimationFrame(PRInt32 aHandle) = 0;
/* void mozCancelRequestAnimationFrame (in long aHandle); */
NS_SCRIPTABLE NS_IMETHOD MozCancelRequestAnimationFrame(PRInt32 aHandle) = 0;
/* readonly attribute long long mozAnimationStartTime; */
NS_SCRIPTABLE NS_IMETHOD GetMozAnimationStartTime(PRInt64 *aMozAnimationStartTime) = 0;
/* readonly attribute nsIDOMMozURLProperty URL; */
NS_SCRIPTABLE NS_IMETHOD GetURL(nsIDOMMozURLProperty * *aURL) = 0;
/* readonly attribute nsIDOMStorageList globalStorage; */
NS_SCRIPTABLE NS_IMETHOD GetGlobalStorage(nsIDOMStorageList * *aGlobalStorage) = 0;
/* [implicit_jscontext] attribute jsval onafterprint; */
NS_SCRIPTABLE NS_IMETHOD GetOnafterprint(JSContext* cx, JS::Value *aOnafterprint) = 0;
NS_SCRIPTABLE NS_IMETHOD SetOnafterprint(JSContext* cx, const JS::Value & aOnafterprint) = 0;
/* [implicit_jscontext] attribute jsval onbeforeprint; */
NS_SCRIPTABLE NS_IMETHOD GetOnbeforeprint(JSContext* cx, JS::Value *aOnbeforeprint) = 0;
NS_SCRIPTABLE NS_IMETHOD SetOnbeforeprint(JSContext* cx, const JS::Value & aOnbeforeprint) = 0;
/* [implicit_jscontext] attribute jsval onbeforeunload; */
NS_SCRIPTABLE NS_IMETHOD GetOnbeforeunload(JSContext* cx, JS::Value *aOnbeforeunload) = 0;
NS_SCRIPTABLE NS_IMETHOD SetOnbeforeunload(JSContext* cx, const JS::Value & aOnbeforeunload) = 0;
/* [implicit_jscontext] attribute jsval onhashchange; */
NS_SCRIPTABLE NS_IMETHOD GetOnhashchange(JSContext* cx, JS::Value *aOnhashchange) = 0;
NS_SCRIPTABLE NS_IMETHOD SetOnhashchange(JSContext* cx, const JS::Value & aOnhashchange) = 0;
/* [implicit_jscontext] attribute jsval onmessage; */
NS_SCRIPTABLE NS_IMETHOD GetOnmessage(JSContext* cx, JS::Value *aOnmessage) = 0;
NS_SCRIPTABLE NS_IMETHOD SetOnmessage(JSContext* cx, const JS::Value & aOnmessage) = 0;
/* [implicit_jscontext] attribute jsval onoffline; */
NS_SCRIPTABLE NS_IMETHOD GetOnoffline(JSContext* cx, JS::Value *aOnoffline) = 0;
NS_SCRIPTABLE NS_IMETHOD SetOnoffline(JSContext* cx, const JS::Value & aOnoffline) = 0;
/* [implicit_jscontext] attribute jsval ononline; */
NS_SCRIPTABLE NS_IMETHOD GetOnonline(JSContext* cx, JS::Value *aOnonline) = 0;
NS_SCRIPTABLE NS_IMETHOD SetOnonline(JSContext* cx, const JS::Value & aOnonline) = 0;
/* [implicit_jscontext] attribute jsval onpopstate; */
NS_SCRIPTABLE NS_IMETHOD GetOnpopstate(JSContext* cx, JS::Value *aOnpopstate) = 0;
NS_SCRIPTABLE NS_IMETHOD SetOnpopstate(JSContext* cx, const JS::Value & aOnpopstate) = 0;
/* [implicit_jscontext] attribute jsval onpagehide; */
NS_SCRIPTABLE NS_IMETHOD GetOnpagehide(JSContext* cx, JS::Value *aOnpagehide) = 0;
NS_SCRIPTABLE NS_IMETHOD SetOnpagehide(JSContext* cx, const JS::Value & aOnpagehide) = 0;
/* [implicit_jscontext] attribute jsval onpageshow; */
NS_SCRIPTABLE NS_IMETHOD GetOnpageshow(JSContext* cx, JS::Value *aOnpageshow) = 0;
NS_SCRIPTABLE NS_IMETHOD SetOnpageshow(JSContext* cx, const JS::Value & aOnpageshow) = 0;
/* [implicit_jscontext] attribute jsval onresize; */
NS_SCRIPTABLE NS_IMETHOD GetOnresize(JSContext* cx, JS::Value *aOnresize) = 0;
NS_SCRIPTABLE NS_IMETHOD SetOnresize(JSContext* cx, const JS::Value & aOnresize) = 0;
/* [implicit_jscontext] attribute jsval onunload; */
NS_SCRIPTABLE NS_IMETHOD GetOnunload(JSContext* cx, JS::Value *aOnunload) = 0;
NS_SCRIPTABLE NS_IMETHOD SetOnunload(JSContext* cx, const JS::Value & aOnunload) = 0;
/* [implicit_jscontext] attribute jsval ondevicemotion; */
NS_SCRIPTABLE NS_IMETHOD GetOndevicemotion(JSContext* cx, JS::Value *aOndevicemotion) = 0;
NS_SCRIPTABLE NS_IMETHOD SetOndevicemotion(JSContext* cx, const JS::Value & aOndevicemotion) = 0;
/* [implicit_jscontext] attribute jsval ondeviceorientation; */
NS_SCRIPTABLE NS_IMETHOD GetOndeviceorientation(JSContext* cx, JS::Value *aOndeviceorientation) = 0;
NS_SCRIPTABLE NS_IMETHOD SetOndeviceorientation(JSContext* cx, const JS::Value & aOndeviceorientation) = 0;
/* [implicit_jscontext] attribute jsval onmouseenter; */
NS_SCRIPTABLE NS_IMETHOD GetOnmouseenter(JSContext* cx, JS::Value *aOnmouseenter) = 0;
NS_SCRIPTABLE NS_IMETHOD SetOnmouseenter(JSContext* cx, const JS::Value & aOnmouseenter) = 0;
/* [implicit_jscontext] attribute jsval onmouseleave; */
NS_SCRIPTABLE NS_IMETHOD GetOnmouseleave(JSContext* cx, JS::Value *aOnmouseleave) = 0;
NS_SCRIPTABLE NS_IMETHOD SetOnmouseleave(JSContext* cx, const JS::Value & aOnmouseleave) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsIDOMWindow, NS_IDOMWINDOW_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIDOMWINDOW \
NS_SCRIPTABLE NS_IMETHOD GetWindow(nsIDOMWindow * *aWindow); \
NS_SCRIPTABLE NS_IMETHOD GetSelf(nsIDOMWindow * *aSelf); \
NS_SCRIPTABLE NS_IMETHOD GetDocument(nsIDOMDocument * *aDocument); \
NS_SCRIPTABLE NS_IMETHOD GetName(nsAString & aName); \
NS_SCRIPTABLE NS_IMETHOD SetName(const nsAString & aName); \
NS_SCRIPTABLE NS_IMETHOD GetLocation(nsIDOMLocation * *aLocation); \
NS_SCRIPTABLE NS_IMETHOD GetHistory(nsIDOMHistory * *aHistory); \
NS_SCRIPTABLE NS_IMETHOD GetLocationbar(nsIDOMBarProp * *aLocationbar); \
NS_SCRIPTABLE NS_IMETHOD GetMenubar(nsIDOMBarProp * *aMenubar); \
NS_SCRIPTABLE NS_IMETHOD GetPersonalbar(nsIDOMBarProp * *aPersonalbar); \
NS_SCRIPTABLE NS_IMETHOD GetScrollbars(nsIDOMBarProp * *aScrollbars); \
NS_SCRIPTABLE NS_IMETHOD GetStatusbar(nsIDOMBarProp * *aStatusbar); \
NS_SCRIPTABLE NS_IMETHOD GetToolbar(nsIDOMBarProp * *aToolbar); \
NS_SCRIPTABLE NS_IMETHOD GetStatus(nsAString & aStatus); \
NS_SCRIPTABLE NS_IMETHOD SetStatus(const nsAString & aStatus); \
NS_SCRIPTABLE NS_IMETHOD Close(void); \
NS_SCRIPTABLE NS_IMETHOD Stop(void); \
NS_SCRIPTABLE NS_IMETHOD Focus(void); \
NS_SCRIPTABLE NS_IMETHOD Blur(void); \
NS_SCRIPTABLE NS_IMETHOD GetLength(PRUint32 *aLength); \
NS_SCRIPTABLE NS_IMETHOD GetTop(nsIDOMWindow * *aTop); \
NS_SCRIPTABLE NS_IMETHOD GetOpener(nsIDOMWindow * *aOpener); \
NS_SCRIPTABLE NS_IMETHOD SetOpener(nsIDOMWindow *aOpener); \
NS_SCRIPTABLE NS_IMETHOD GetParent(nsIDOMWindow * *aParent); \
NS_SCRIPTABLE NS_IMETHOD GetFrameElement(nsIDOMElement * *aFrameElement); \
NS_SCRIPTABLE NS_IMETHOD GetNavigator(nsIDOMNavigator * *aNavigator); \
NS_SCRIPTABLE NS_IMETHOD GetApplicationCache(nsIDOMOfflineResourceList * *aApplicationCache); \
NS_SCRIPTABLE NS_IMETHOD Alert(const nsAString & text); \
NS_SCRIPTABLE NS_IMETHOD Confirm(const nsAString & text, bool *_retval NS_OUTPARAM); \
NS_SCRIPTABLE NS_IMETHOD Prompt(const nsAString & aMessage, const nsAString & aInitial, nsAString & _retval NS_OUTPARAM); \
NS_SCRIPTABLE NS_IMETHOD Print(void); \
NS_SCRIPTABLE NS_IMETHOD ShowModalDialog(const nsAString & aURI, nsIVariant *aArgs, const nsAString & aOptions, nsIVariant * *_retval NS_OUTPARAM); \
NS_SCRIPTABLE NS_IMETHOD PostMessageMoz(const JS::Value & message, const nsAString & targetOrigin, JSContext* cx); \
NS_SCRIPTABLE NS_IMETHOD Atob(const nsAString & aAsciiString, nsAString & _retval NS_OUTPARAM); \
NS_SCRIPTABLE NS_IMETHOD Btoa(const nsAString & aBase64Data, nsAString & _retval NS_OUTPARAM); \
NS_SCRIPTABLE NS_IMETHOD GetSessionStorage(nsIDOMStorage * *aSessionStorage); \
NS_SCRIPTABLE NS_IMETHOD GetLocalStorage(nsIDOMStorage * *aLocalStorage); \
NS_SCRIPTABLE NS_IMETHOD GetSelection(nsISelection * *_retval NS_OUTPARAM); \
NS_SCRIPTABLE NS_IMETHOD MatchMedia(const nsAString & media_query_list, nsIDOMMediaQueryList * *_retval NS_OUTPARAM); \
NS_SCRIPTABLE NS_IMETHOD GetScreen(nsIDOMScreen * *aScreen); \
NS_SCRIPTABLE NS_IMETHOD GetInnerWidth(PRInt32 *aInnerWidth); \
NS_SCRIPTABLE NS_IMETHOD SetInnerWidth(PRInt32 aInnerWidth); \
NS_SCRIPTABLE NS_IMETHOD GetInnerHeight(PRInt32 *aInnerHeight); \
NS_SCRIPTABLE NS_IMETHOD SetInnerHeight(PRInt32 aInnerHeight); \
NS_SCRIPTABLE NS_IMETHOD GetScrollX(PRInt32 *aScrollX); \
NS_SCRIPTABLE NS_IMETHOD GetPageXOffset(PRInt32 *aPageXOffset); \
NS_SCRIPTABLE NS_IMETHOD GetScrollY(PRInt32 *aScrollY); \
NS_SCRIPTABLE NS_IMETHOD GetPageYOffset(PRInt32 *aPageYOffset); \
NS_SCRIPTABLE NS_IMETHOD Scroll(PRInt32 xScroll, PRInt32 yScroll); \
NS_SCRIPTABLE NS_IMETHOD ScrollTo(PRInt32 xScroll, PRInt32 yScroll); \
NS_SCRIPTABLE NS_IMETHOD ScrollBy(PRInt32 xScrollDif, PRInt32 yScrollDif); \
NS_SCRIPTABLE NS_IMETHOD GetScreenX(PRInt32 *aScreenX); \
NS_SCRIPTABLE NS_IMETHOD SetScreenX(PRInt32 aScreenX); \
NS_SCRIPTABLE NS_IMETHOD GetScreenY(PRInt32 *aScreenY); \
NS_SCRIPTABLE NS_IMETHOD SetScreenY(PRInt32 aScreenY); \
NS_SCRIPTABLE NS_IMETHOD GetOuterWidth(PRInt32 *aOuterWidth); \
NS_SCRIPTABLE NS_IMETHOD SetOuterWidth(PRInt32 aOuterWidth); \
NS_SCRIPTABLE NS_IMETHOD GetOuterHeight(PRInt32 *aOuterHeight); \
NS_SCRIPTABLE NS_IMETHOD SetOuterHeight(PRInt32 aOuterHeight); \
NS_SCRIPTABLE NS_IMETHOD GetComputedStyle(nsIDOMElement *elt, const nsAString & pseudoElt, nsIDOMCSSStyleDeclaration * *_retval NS_OUTPARAM); \
NS_IMETHOD GetWindowRoot(nsIDOMEventTarget * *aWindowRoot); \
NS_IMETHOD GetFrames(nsIDOMWindowCollection * *aFrames); \
NS_IMETHOD GetTextZoom(float *aTextZoom); \
NS_IMETHOD SetTextZoom(float aTextZoom); \
NS_SCRIPTABLE NS_IMETHOD ScrollByLines(PRInt32 numLines); \
NS_SCRIPTABLE NS_IMETHOD ScrollByPages(PRInt32 numPages); \
NS_SCRIPTABLE NS_IMETHOD SizeToContent(void); \
NS_SCRIPTABLE NS_IMETHOD GetContent(nsIDOMWindow * *aContent); \
NS_IMETHOD GetPrompter(nsIPrompt * *aPrompter); \
NS_SCRIPTABLE NS_IMETHOD GetClosed(bool *aClosed); \
NS_SCRIPTABLE NS_IMETHOD GetCrypto(nsIDOMCrypto * *aCrypto); \
NS_SCRIPTABLE NS_IMETHOD GetPkcs11(nsIDOMPkcs11 * *aPkcs11); \
NS_SCRIPTABLE NS_IMETHOD GetControllers(nsIControllers * *aControllers); \
NS_SCRIPTABLE NS_IMETHOD GetDefaultStatus(nsAString & aDefaultStatus); \
NS_SCRIPTABLE NS_IMETHOD SetDefaultStatus(const nsAString & aDefaultStatus); \
NS_SCRIPTABLE NS_IMETHOD GetMozInnerScreenX(float *aMozInnerScreenX); \
NS_SCRIPTABLE NS_IMETHOD GetMozInnerScreenY(float *aMozInnerScreenY); \
NS_SCRIPTABLE NS_IMETHOD GetScrollMaxX(PRInt32 *aScrollMaxX); \
NS_SCRIPTABLE NS_IMETHOD GetScrollMaxY(PRInt32 *aScrollMaxY); \
NS_SCRIPTABLE NS_IMETHOD GetFullScreen(bool *aFullScreen); \
NS_SCRIPTABLE NS_IMETHOD SetFullScreen(bool aFullScreen); \
NS_SCRIPTABLE NS_IMETHOD Back(void); \
NS_SCRIPTABLE NS_IMETHOD Forward(void); \
NS_SCRIPTABLE NS_IMETHOD Home(void); \
NS_SCRIPTABLE NS_IMETHOD MoveTo(PRInt32 xPos, PRInt32 yPos); \
NS_SCRIPTABLE NS_IMETHOD MoveBy(PRInt32 xDif, PRInt32 yDif); \
NS_SCRIPTABLE NS_IMETHOD ResizeTo(PRInt32 width, PRInt32 height); \
NS_SCRIPTABLE NS_IMETHOD ResizeBy(PRInt32 widthDif, PRInt32 heightDif); \
NS_IMETHOD Open(const nsAString & url, const nsAString & name, const nsAString & options, nsIDOMWindow * *_retval NS_OUTPARAM); \
NS_IMETHOD OpenDialog(const nsAString & url, const nsAString & name, const nsAString & options, nsISupports *aExtraArgument, nsIDOMWindow * *_retval NS_OUTPARAM); \
NS_SCRIPTABLE NS_IMETHOD UpdateCommands(const nsAString & action); \
NS_SCRIPTABLE NS_IMETHOD Find(const nsAString & str, bool caseSensitive, bool backwards, bool wrapAround, bool wholeWord, bool searchInFrames, bool showDialog, bool *_retval NS_OUTPARAM); \
NS_SCRIPTABLE NS_IMETHOD GetMozPaintCount(PRUint64 *aMozPaintCount); \
NS_SCRIPTABLE NS_IMETHOD MozRequestAnimationFrame(nsIFrameRequestCallback *aCallback, PRInt32 *_retval NS_OUTPARAM); \
NS_SCRIPTABLE NS_IMETHOD MozCancelAnimationFrame(PRInt32 aHandle); \
NS_SCRIPTABLE NS_IMETHOD MozCancelRequestAnimationFrame(PRInt32 aHandle); \
NS_SCRIPTABLE NS_IMETHOD GetMozAnimationStartTime(PRInt64 *aMozAnimationStartTime); \
NS_SCRIPTABLE NS_IMETHOD GetURL(nsIDOMMozURLProperty * *aURL); \
NS_SCRIPTABLE NS_IMETHOD GetGlobalStorage(nsIDOMStorageList * *aGlobalStorage); \
NS_SCRIPTABLE NS_IMETHOD GetOnafterprint(JSContext* cx, JS::Value *aOnafterprint); \
NS_SCRIPTABLE NS_IMETHOD SetOnafterprint(JSContext* cx, const JS::Value & aOnafterprint); \
NS_SCRIPTABLE NS_IMETHOD GetOnbeforeprint(JSContext* cx, JS::Value *aOnbeforeprint); \
NS_SCRIPTABLE NS_IMETHOD SetOnbeforeprint(JSContext* cx, const JS::Value & aOnbeforeprint); \
NS_SCRIPTABLE NS_IMETHOD GetOnbeforeunload(JSContext* cx, JS::Value *aOnbeforeunload); \
NS_SCRIPTABLE NS_IMETHOD SetOnbeforeunload(JSContext* cx, const JS::Value & aOnbeforeunload); \
NS_SCRIPTABLE NS_IMETHOD GetOnhashchange(JSContext* cx, JS::Value *aOnhashchange); \
NS_SCRIPTABLE NS_IMETHOD SetOnhashchange(JSContext* cx, const JS::Value & aOnhashchange); \
NS_SCRIPTABLE NS_IMETHOD GetOnmessage(JSContext* cx, JS::Value *aOnmessage); \
NS_SCRIPTABLE NS_IMETHOD SetOnmessage(JSContext* cx, const JS::Value & aOnmessage); \
NS_SCRIPTABLE NS_IMETHOD GetOnoffline(JSContext* cx, JS::Value *aOnoffline); \
NS_SCRIPTABLE NS_IMETHOD SetOnoffline(JSContext* cx, const JS::Value & aOnoffline); \
NS_SCRIPTABLE NS_IMETHOD GetOnonline(JSContext* cx, JS::Value *aOnonline); \
NS_SCRIPTABLE NS_IMETHOD SetOnonline(JSContext* cx, const JS::Value & aOnonline); \
NS_SCRIPTABLE NS_IMETHOD GetOnpopstate(JSContext* cx, JS::Value *aOnpopstate); \
NS_SCRIPTABLE NS_IMETHOD SetOnpopstate(JSContext* cx, const JS::Value & aOnpopstate); \
NS_SCRIPTABLE NS_IMETHOD GetOnpagehide(JSContext* cx, JS::Value *aOnpagehide); \
NS_SCRIPTABLE NS_IMETHOD SetOnpagehide(JSContext* cx, const JS::Value & aOnpagehide); \
NS_SCRIPTABLE NS_IMETHOD GetOnpageshow(JSContext* cx, JS::Value *aOnpageshow); \
NS_SCRIPTABLE NS_IMETHOD SetOnpageshow(JSContext* cx, const JS::Value & aOnpageshow); \
NS_SCRIPTABLE NS_IMETHOD GetOnresize(JSContext* cx, JS::Value *aOnresize); \
NS_SCRIPTABLE NS_IMETHOD SetOnresize(JSContext* cx, const JS::Value & aOnresize); \
NS_SCRIPTABLE NS_IMETHOD GetOnunload(JSContext* cx, JS::Value *aOnunload); \
NS_SCRIPTABLE NS_IMETHOD SetOnunload(JSContext* cx, const JS::Value & aOnunload); \
NS_SCRIPTABLE NS_IMETHOD GetOndevicemotion(JSContext* cx, JS::Value *aOndevicemotion); \
NS_SCRIPTABLE NS_IMETHOD SetOndevicemotion(JSContext* cx, const JS::Value & aOndevicemotion); \
NS_SCRIPTABLE NS_IMETHOD GetOndeviceorientation(JSContext* cx, JS::Value *aOndeviceorientation); \
NS_SCRIPTABLE NS_IMETHOD SetOndeviceorientation(JSContext* cx, const JS::Value & aOndeviceorientation); \
NS_SCRIPTABLE NS_IMETHOD GetOnmouseenter(JSContext* cx, JS::Value *aOnmouseenter); \
NS_SCRIPTABLE NS_IMETHOD SetOnmouseenter(JSContext* cx, const JS::Value & aOnmouseenter); \
NS_SCRIPTABLE NS_IMETHOD GetOnmouseleave(JSContext* cx, JS::Value *aOnmouseleave); \
NS_SCRIPTABLE NS_IMETHOD SetOnmouseleave(JSContext* cx, const JS::Value & aOnmouseleave);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIDOMWINDOW(_to) \
NS_SCRIPTABLE NS_IMETHOD GetWindow(nsIDOMWindow * *aWindow) { return _to GetWindow(aWindow); } \
NS_SCRIPTABLE NS_IMETHOD GetSelf(nsIDOMWindow * *aSelf) { return _to GetSelf(aSelf); } \
NS_SCRIPTABLE NS_IMETHOD GetDocument(nsIDOMDocument * *aDocument) { return _to GetDocument(aDocument); } \
NS_SCRIPTABLE NS_IMETHOD GetName(nsAString & aName) { return _to GetName(aName); } \
NS_SCRIPTABLE NS_IMETHOD SetName(const nsAString & aName) { return _to SetName(aName); } \
NS_SCRIPTABLE NS_IMETHOD GetLocation(nsIDOMLocation * *aLocation) { return _to GetLocation(aLocation); } \
NS_SCRIPTABLE NS_IMETHOD GetHistory(nsIDOMHistory * *aHistory) { return _to GetHistory(aHistory); } \
NS_SCRIPTABLE NS_IMETHOD GetLocationbar(nsIDOMBarProp * *aLocationbar) { return _to GetLocationbar(aLocationbar); } \
NS_SCRIPTABLE NS_IMETHOD GetMenubar(nsIDOMBarProp * *aMenubar) { return _to GetMenubar(aMenubar); } \
NS_SCRIPTABLE NS_IMETHOD GetPersonalbar(nsIDOMBarProp * *aPersonalbar) { return _to GetPersonalbar(aPersonalbar); } \
NS_SCRIPTABLE NS_IMETHOD GetScrollbars(nsIDOMBarProp * *aScrollbars) { return _to GetScrollbars(aScrollbars); } \
NS_SCRIPTABLE NS_IMETHOD GetStatusbar(nsIDOMBarProp * *aStatusbar) { return _to GetStatusbar(aStatusbar); } \
NS_SCRIPTABLE NS_IMETHOD GetToolbar(nsIDOMBarProp * *aToolbar) { return _to GetToolbar(aToolbar); } \
NS_SCRIPTABLE NS_IMETHOD GetStatus(nsAString & aStatus) { return _to GetStatus(aStatus); } \
NS_SCRIPTABLE NS_IMETHOD SetStatus(const nsAString & aStatus) { return _to SetStatus(aStatus); } \
NS_SCRIPTABLE NS_IMETHOD Close(void) { return _to Close(); } \
NS_SCRIPTABLE NS_IMETHOD Stop(void) { return _to Stop(); } \
NS_SCRIPTABLE NS_IMETHOD Focus(void) { return _to Focus(); } \
NS_SCRIPTABLE NS_IMETHOD Blur(void) { return _to Blur(); } \
NS_SCRIPTABLE NS_IMETHOD GetLength(PRUint32 *aLength) { return _to GetLength(aLength); } \
NS_SCRIPTABLE NS_IMETHOD GetTop(nsIDOMWindow * *aTop) { return _to GetTop(aTop); } \
NS_SCRIPTABLE NS_IMETHOD GetOpener(nsIDOMWindow * *aOpener) { return _to GetOpener(aOpener); } \
NS_SCRIPTABLE NS_IMETHOD SetOpener(nsIDOMWindow *aOpener) { return _to SetOpener(aOpener); } \
NS_SCRIPTABLE NS_IMETHOD GetParent(nsIDOMWindow * *aParent) { return _to GetParent(aParent); } \
NS_SCRIPTABLE NS_IMETHOD GetFrameElement(nsIDOMElement * *aFrameElement) { return _to GetFrameElement(aFrameElement); } \
NS_SCRIPTABLE NS_IMETHOD GetNavigator(nsIDOMNavigator * *aNavigator) { return _to GetNavigator(aNavigator); } \
NS_SCRIPTABLE NS_IMETHOD GetApplicationCache(nsIDOMOfflineResourceList * *aApplicationCache) { return _to GetApplicationCache(aApplicationCache); } \
NS_SCRIPTABLE NS_IMETHOD Alert(const nsAString & text) { return _to Alert(text); } \
NS_SCRIPTABLE NS_IMETHOD Confirm(const nsAString & text, bool *_retval NS_OUTPARAM) { return _to Confirm(text, _retval); } \
NS_SCRIPTABLE NS_IMETHOD Prompt(const nsAString & aMessage, const nsAString & aInitial, nsAString & _retval NS_OUTPARAM) { return _to Prompt(aMessage, aInitial, _retval); } \
NS_SCRIPTABLE NS_IMETHOD Print(void) { return _to Print(); } \
NS_SCRIPTABLE NS_IMETHOD ShowModalDialog(const nsAString & aURI, nsIVariant *aArgs, const nsAString & aOptions, nsIVariant * *_retval NS_OUTPARAM) { return _to ShowModalDialog(aURI, aArgs, aOptions, _retval); } \
NS_SCRIPTABLE NS_IMETHOD PostMessageMoz(const JS::Value & message, const nsAString & targetOrigin, JSContext* cx) { return _to PostMessageMoz(message, targetOrigin, cx); } \
NS_SCRIPTABLE NS_IMETHOD Atob(const nsAString & aAsciiString, nsAString & _retval NS_OUTPARAM) { return _to Atob(aAsciiString, _retval); } \
NS_SCRIPTABLE NS_IMETHOD Btoa(const nsAString & aBase64Data, nsAString & _retval NS_OUTPARAM) { return _to Btoa(aBase64Data, _retval); } \
NS_SCRIPTABLE NS_IMETHOD GetSessionStorage(nsIDOMStorage * *aSessionStorage) { return _to GetSessionStorage(aSessionStorage); } \
NS_SCRIPTABLE NS_IMETHOD GetLocalStorage(nsIDOMStorage * *aLocalStorage) { return _to GetLocalStorage(aLocalStorage); } \
NS_SCRIPTABLE NS_IMETHOD GetSelection(nsISelection * *_retval NS_OUTPARAM) { return _to GetSelection(_retval); } \
NS_SCRIPTABLE NS_IMETHOD MatchMedia(const nsAString & media_query_list, nsIDOMMediaQueryList * *_retval NS_OUTPARAM) { return _to MatchMedia(media_query_list, _retval); } \
NS_SCRIPTABLE NS_IMETHOD GetScreen(nsIDOMScreen * *aScreen) { return _to GetScreen(aScreen); } \
NS_SCRIPTABLE NS_IMETHOD GetInnerWidth(PRInt32 *aInnerWidth) { return _to GetInnerWidth(aInnerWidth); } \
NS_SCRIPTABLE NS_IMETHOD SetInnerWidth(PRInt32 aInnerWidth) { return _to SetInnerWidth(aInnerWidth); } \
NS_SCRIPTABLE NS_IMETHOD GetInnerHeight(PRInt32 *aInnerHeight) { return _to GetInnerHeight(aInnerHeight); } \
NS_SCRIPTABLE NS_IMETHOD SetInnerHeight(PRInt32 aInnerHeight) { return _to SetInnerHeight(aInnerHeight); } \
NS_SCRIPTABLE NS_IMETHOD GetScrollX(PRInt32 *aScrollX) { return _to GetScrollX(aScrollX); } \
NS_SCRIPTABLE NS_IMETHOD GetPageXOffset(PRInt32 *aPageXOffset) { return _to GetPageXOffset(aPageXOffset); } \
NS_SCRIPTABLE NS_IMETHOD GetScrollY(PRInt32 *aScrollY) { return _to GetScrollY(aScrollY); } \
NS_SCRIPTABLE NS_IMETHOD GetPageYOffset(PRInt32 *aPageYOffset) { return _to GetPageYOffset(aPageYOffset); } \
NS_SCRIPTABLE NS_IMETHOD Scroll(PRInt32 xScroll, PRInt32 yScroll) { return _to Scroll(xScroll, yScroll); } \
NS_SCRIPTABLE NS_IMETHOD ScrollTo(PRInt32 xScroll, PRInt32 yScroll) { return _to ScrollTo(xScroll, yScroll); } \
NS_SCRIPTABLE NS_IMETHOD ScrollBy(PRInt32 xScrollDif, PRInt32 yScrollDif) { return _to ScrollBy(xScrollDif, yScrollDif); } \
NS_SCRIPTABLE NS_IMETHOD GetScreenX(PRInt32 *aScreenX) { return _to GetScreenX(aScreenX); } \
NS_SCRIPTABLE NS_IMETHOD SetScreenX(PRInt32 aScreenX) { return _to SetScreenX(aScreenX); } \
NS_SCRIPTABLE NS_IMETHOD GetScreenY(PRInt32 *aScreenY) { return _to GetScreenY(aScreenY); } \
NS_SCRIPTABLE NS_IMETHOD SetScreenY(PRInt32 aScreenY) { return _to SetScreenY(aScreenY); } \
NS_SCRIPTABLE NS_IMETHOD GetOuterWidth(PRInt32 *aOuterWidth) { return _to GetOuterWidth(aOuterWidth); } \
NS_SCRIPTABLE NS_IMETHOD SetOuterWidth(PRInt32 aOuterWidth) { return _to SetOuterWidth(aOuterWidth); } \
NS_SCRIPTABLE NS_IMETHOD GetOuterHeight(PRInt32 *aOuterHeight) { return _to GetOuterHeight(aOuterHeight); } \
NS_SCRIPTABLE NS_IMETHOD SetOuterHeight(PRInt32 aOuterHeight) { return _to SetOuterHeight(aOuterHeight); } \
NS_SCRIPTABLE NS_IMETHOD GetComputedStyle(nsIDOMElement *elt, const nsAString & pseudoElt, nsIDOMCSSStyleDeclaration * *_retval NS_OUTPARAM) { return _to GetComputedStyle(elt, pseudoElt, _retval); } \
NS_IMETHOD GetWindowRoot(nsIDOMEventTarget * *aWindowRoot) { return _to GetWindowRoot(aWindowRoot); } \
NS_IMETHOD GetFrames(nsIDOMWindowCollection * *aFrames) { return _to GetFrames(aFrames); } \
NS_IMETHOD GetTextZoom(float *aTextZoom) { return _to GetTextZoom(aTextZoom); } \
NS_IMETHOD SetTextZoom(float aTextZoom) { return _to SetTextZoom(aTextZoom); } \
NS_SCRIPTABLE NS_IMETHOD ScrollByLines(PRInt32 numLines) { return _to ScrollByLines(numLines); } \
NS_SCRIPTABLE NS_IMETHOD ScrollByPages(PRInt32 numPages) { return _to ScrollByPages(numPages); } \
NS_SCRIPTABLE NS_IMETHOD SizeToContent(void) { return _to SizeToContent(); } \
NS_SCRIPTABLE NS_IMETHOD GetContent(nsIDOMWindow * *aContent) { return _to GetContent(aContent); } \
NS_IMETHOD GetPrompter(nsIPrompt * *aPrompter) { return _to GetPrompter(aPrompter); } \
NS_SCRIPTABLE NS_IMETHOD GetClosed(bool *aClosed) { return _to GetClosed(aClosed); } \
NS_SCRIPTABLE NS_IMETHOD GetCrypto(nsIDOMCrypto * *aCrypto) { return _to GetCrypto(aCrypto); } \
NS_SCRIPTABLE NS_IMETHOD GetPkcs11(nsIDOMPkcs11 * *aPkcs11) { return _to GetPkcs11(aPkcs11); } \
NS_SCRIPTABLE NS_IMETHOD GetControllers(nsIControllers * *aControllers) { return _to GetControllers(aControllers); } \
NS_SCRIPTABLE NS_IMETHOD GetDefaultStatus(nsAString & aDefaultStatus) { return _to GetDefaultStatus(aDefaultStatus); } \
NS_SCRIPTABLE NS_IMETHOD SetDefaultStatus(const nsAString & aDefaultStatus) { return _to SetDefaultStatus(aDefaultStatus); } \
NS_SCRIPTABLE NS_IMETHOD GetMozInnerScreenX(float *aMozInnerScreenX) { return _to GetMozInnerScreenX(aMozInnerScreenX); } \
NS_SCRIPTABLE NS_IMETHOD GetMozInnerScreenY(float *aMozInnerScreenY) { return _to GetMozInnerScreenY(aMozInnerScreenY); } \
NS_SCRIPTABLE NS_IMETHOD GetScrollMaxX(PRInt32 *aScrollMaxX) { return _to GetScrollMaxX(aScrollMaxX); } \
NS_SCRIPTABLE NS_IMETHOD GetScrollMaxY(PRInt32 *aScrollMaxY) { return _to GetScrollMaxY(aScrollMaxY); } \
NS_SCRIPTABLE NS_IMETHOD GetFullScreen(bool *aFullScreen) { return _to GetFullScreen(aFullScreen); } \
NS_SCRIPTABLE NS_IMETHOD SetFullScreen(bool aFullScreen) { return _to SetFullScreen(aFullScreen); } \
NS_SCRIPTABLE NS_IMETHOD Back(void) { return _to Back(); } \
NS_SCRIPTABLE NS_IMETHOD Forward(void) { return _to Forward(); } \
NS_SCRIPTABLE NS_IMETHOD Home(void) { return _to Home(); } \
NS_SCRIPTABLE NS_IMETHOD MoveTo(PRInt32 xPos, PRInt32 yPos) { return _to MoveTo(xPos, yPos); } \
NS_SCRIPTABLE NS_IMETHOD MoveBy(PRInt32 xDif, PRInt32 yDif) { return _to MoveBy(xDif, yDif); } \
NS_SCRIPTABLE NS_IMETHOD ResizeTo(PRInt32 width, PRInt32 height) { return _to ResizeTo(width, height); } \
NS_SCRIPTABLE NS_IMETHOD ResizeBy(PRInt32 widthDif, PRInt32 heightDif) { return _to ResizeBy(widthDif, heightDif); } \
NS_IMETHOD Open(const nsAString & url, const nsAString & name, const nsAString & options, nsIDOMWindow * *_retval NS_OUTPARAM) { return _to Open(url, name, options, _retval); } \
NS_IMETHOD OpenDialog(const nsAString & url, const nsAString & name, const nsAString & options, nsISupports *aExtraArgument, nsIDOMWindow * *_retval NS_OUTPARAM) { return _to OpenDialog(url, name, options, aExtraArgument, _retval); } \
NS_SCRIPTABLE NS_IMETHOD UpdateCommands(const nsAString & action) { return _to UpdateCommands(action); } \
NS_SCRIPTABLE NS_IMETHOD Find(const nsAString & str, bool caseSensitive, bool backwards, bool wrapAround, bool wholeWord, bool searchInFrames, bool showDialog, bool *_retval NS_OUTPARAM) { return _to Find(str, caseSensitive, backwards, wrapAround, wholeWord, searchInFrames, showDialog, _retval); } \
NS_SCRIPTABLE NS_IMETHOD GetMozPaintCount(PRUint64 *aMozPaintCount) { return _to GetMozPaintCount(aMozPaintCount); } \
NS_SCRIPTABLE NS_IMETHOD MozRequestAnimationFrame(nsIFrameRequestCallback *aCallback, PRInt32 *_retval NS_OUTPARAM) { return _to MozRequestAnimationFrame(aCallback, _retval); } \
NS_SCRIPTABLE NS_IMETHOD MozCancelAnimationFrame(PRInt32 aHandle) { return _to MozCancelAnimationFrame(aHandle); } \
NS_SCRIPTABLE NS_IMETHOD MozCancelRequestAnimationFrame(PRInt32 aHandle) { return _to MozCancelRequestAnimationFrame(aHandle); } \
NS_SCRIPTABLE NS_IMETHOD GetMozAnimationStartTime(PRInt64 *aMozAnimationStartTime) { return _to GetMozAnimationStartTime(aMozAnimationStartTime); } \
NS_SCRIPTABLE NS_IMETHOD GetURL(nsIDOMMozURLProperty * *aURL) { return _to GetURL(aURL); } \
NS_SCRIPTABLE NS_IMETHOD GetGlobalStorage(nsIDOMStorageList * *aGlobalStorage) { return _to GetGlobalStorage(aGlobalStorage); } \
NS_SCRIPTABLE NS_IMETHOD GetOnafterprint(JSContext* cx, JS::Value *aOnafterprint) { return _to GetOnafterprint(cx, aOnafterprint); } \
NS_SCRIPTABLE NS_IMETHOD SetOnafterprint(JSContext* cx, const JS::Value & aOnafterprint) { return _to SetOnafterprint(cx, aOnafterprint); } \
NS_SCRIPTABLE NS_IMETHOD GetOnbeforeprint(JSContext* cx, JS::Value *aOnbeforeprint) { return _to GetOnbeforeprint(cx, aOnbeforeprint); } \
NS_SCRIPTABLE NS_IMETHOD SetOnbeforeprint(JSContext* cx, const JS::Value & aOnbeforeprint) { return _to SetOnbeforeprint(cx, aOnbeforeprint); } \
NS_SCRIPTABLE NS_IMETHOD GetOnbeforeunload(JSContext* cx, JS::Value *aOnbeforeunload) { return _to GetOnbeforeunload(cx, aOnbeforeunload); } \
NS_SCRIPTABLE NS_IMETHOD SetOnbeforeunload(JSContext* cx, const JS::Value & aOnbeforeunload) { return _to SetOnbeforeunload(cx, aOnbeforeunload); } \
NS_SCRIPTABLE NS_IMETHOD GetOnhashchange(JSContext* cx, JS::Value *aOnhashchange) { return _to GetOnhashchange(cx, aOnhashchange); } \
NS_SCRIPTABLE NS_IMETHOD SetOnhashchange(JSContext* cx, const JS::Value & aOnhashchange) { return _to SetOnhashchange(cx, aOnhashchange); } \
NS_SCRIPTABLE NS_IMETHOD GetOnmessage(JSContext* cx, JS::Value *aOnmessage) { return _to GetOnmessage(cx, aOnmessage); } \
NS_SCRIPTABLE NS_IMETHOD SetOnmessage(JSContext* cx, const JS::Value & aOnmessage) { return _to SetOnmessage(cx, aOnmessage); } \
NS_SCRIPTABLE NS_IMETHOD GetOnoffline(JSContext* cx, JS::Value *aOnoffline) { return _to GetOnoffline(cx, aOnoffline); } \
NS_SCRIPTABLE NS_IMETHOD SetOnoffline(JSContext* cx, const JS::Value & aOnoffline) { return _to SetOnoffline(cx, aOnoffline); } \
NS_SCRIPTABLE NS_IMETHOD GetOnonline(JSContext* cx, JS::Value *aOnonline) { return _to GetOnonline(cx, aOnonline); } \
NS_SCRIPTABLE NS_IMETHOD SetOnonline(JSContext* cx, const JS::Value & aOnonline) { return _to SetOnonline(cx, aOnonline); } \
NS_SCRIPTABLE NS_IMETHOD GetOnpopstate(JSContext* cx, JS::Value *aOnpopstate) { return _to GetOnpopstate(cx, aOnpopstate); } \
NS_SCRIPTABLE NS_IMETHOD SetOnpopstate(JSContext* cx, const JS::Value & aOnpopstate) { return _to SetOnpopstate(cx, aOnpopstate); } \
NS_SCRIPTABLE NS_IMETHOD GetOnpagehide(JSContext* cx, JS::Value *aOnpagehide) { return _to GetOnpagehide(cx, aOnpagehide); } \
NS_SCRIPTABLE NS_IMETHOD SetOnpagehide(JSContext* cx, const JS::Value & aOnpagehide) { return _to SetOnpagehide(cx, aOnpagehide); } \
NS_SCRIPTABLE NS_IMETHOD GetOnpageshow(JSContext* cx, JS::Value *aOnpageshow) { return _to GetOnpageshow(cx, aOnpageshow); } \
NS_SCRIPTABLE NS_IMETHOD SetOnpageshow(JSContext* cx, const JS::Value & aOnpageshow) { return _to SetOnpageshow(cx, aOnpageshow); } \
NS_SCRIPTABLE NS_IMETHOD GetOnresize(JSContext* cx, JS::Value *aOnresize) { return _to GetOnresize(cx, aOnresize); } \
NS_SCRIPTABLE NS_IMETHOD SetOnresize(JSContext* cx, const JS::Value & aOnresize) { return _to SetOnresize(cx, aOnresize); } \
NS_SCRIPTABLE NS_IMETHOD GetOnunload(JSContext* cx, JS::Value *aOnunload) { return _to GetOnunload(cx, aOnunload); } \
NS_SCRIPTABLE NS_IMETHOD SetOnunload(JSContext* cx, const JS::Value & aOnunload) { return _to SetOnunload(cx, aOnunload); } \
NS_SCRIPTABLE NS_IMETHOD GetOndevicemotion(JSContext* cx, JS::Value *aOndevicemotion) { return _to GetOndevicemotion(cx, aOndevicemotion); } \
NS_SCRIPTABLE NS_IMETHOD SetOndevicemotion(JSContext* cx, const JS::Value & aOndevicemotion) { return _to SetOndevicemotion(cx, aOndevicemotion); } \
NS_SCRIPTABLE NS_IMETHOD GetOndeviceorientation(JSContext* cx, JS::Value *aOndeviceorientation) { return _to GetOndeviceorientation(cx, aOndeviceorientation); } \
NS_SCRIPTABLE NS_IMETHOD SetOndeviceorientation(JSContext* cx, const JS::Value & aOndeviceorientation) { return _to SetOndeviceorientation(cx, aOndeviceorientation); } \
NS_SCRIPTABLE NS_IMETHOD GetOnmouseenter(JSContext* cx, JS::Value *aOnmouseenter) { return _to GetOnmouseenter(cx, aOnmouseenter); } \
NS_SCRIPTABLE NS_IMETHOD SetOnmouseenter(JSContext* cx, const JS::Value & aOnmouseenter) { return _to SetOnmouseenter(cx, aOnmouseenter); } \
NS_SCRIPTABLE NS_IMETHOD GetOnmouseleave(JSContext* cx, JS::Value *aOnmouseleave) { return _to GetOnmouseleave(cx, aOnmouseleave); } \
NS_SCRIPTABLE NS_IMETHOD SetOnmouseleave(JSContext* cx, const JS::Value & aOnmouseleave) { return _to SetOnmouseleave(cx, aOnmouseleave); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIDOMWINDOW(_to) \
NS_SCRIPTABLE NS_IMETHOD GetWindow(nsIDOMWindow * *aWindow) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetWindow(aWindow); } \
NS_SCRIPTABLE NS_IMETHOD GetSelf(nsIDOMWindow * *aSelf) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSelf(aSelf); } \
NS_SCRIPTABLE NS_IMETHOD GetDocument(nsIDOMDocument * *aDocument) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDocument(aDocument); } \
NS_SCRIPTABLE NS_IMETHOD GetName(nsAString & aName) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetName(aName); } \
NS_SCRIPTABLE NS_IMETHOD SetName(const nsAString & aName) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetName(aName); } \
NS_SCRIPTABLE NS_IMETHOD GetLocation(nsIDOMLocation * *aLocation) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLocation(aLocation); } \
NS_SCRIPTABLE NS_IMETHOD GetHistory(nsIDOMHistory * *aHistory) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetHistory(aHistory); } \
NS_SCRIPTABLE NS_IMETHOD GetLocationbar(nsIDOMBarProp * *aLocationbar) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLocationbar(aLocationbar); } \
NS_SCRIPTABLE NS_IMETHOD GetMenubar(nsIDOMBarProp * *aMenubar) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMenubar(aMenubar); } \
NS_SCRIPTABLE NS_IMETHOD GetPersonalbar(nsIDOMBarProp * *aPersonalbar) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPersonalbar(aPersonalbar); } \
NS_SCRIPTABLE NS_IMETHOD GetScrollbars(nsIDOMBarProp * *aScrollbars) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetScrollbars(aScrollbars); } \
NS_SCRIPTABLE NS_IMETHOD GetStatusbar(nsIDOMBarProp * *aStatusbar) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetStatusbar(aStatusbar); } \
NS_SCRIPTABLE NS_IMETHOD GetToolbar(nsIDOMBarProp * *aToolbar) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetToolbar(aToolbar); } \
NS_SCRIPTABLE NS_IMETHOD GetStatus(nsAString & aStatus) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetStatus(aStatus); } \
NS_SCRIPTABLE NS_IMETHOD SetStatus(const nsAString & aStatus) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetStatus(aStatus); } \
NS_SCRIPTABLE NS_IMETHOD Close(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->Close(); } \
NS_SCRIPTABLE NS_IMETHOD Stop(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->Stop(); } \
NS_SCRIPTABLE NS_IMETHOD Focus(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->Focus(); } \
NS_SCRIPTABLE NS_IMETHOD Blur(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->Blur(); } \
NS_SCRIPTABLE NS_IMETHOD GetLength(PRUint32 *aLength) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLength(aLength); } \
NS_SCRIPTABLE NS_IMETHOD GetTop(nsIDOMWindow * *aTop) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTop(aTop); } \
NS_SCRIPTABLE NS_IMETHOD GetOpener(nsIDOMWindow * *aOpener) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetOpener(aOpener); } \
NS_SCRIPTABLE NS_IMETHOD SetOpener(nsIDOMWindow *aOpener) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetOpener(aOpener); } \
NS_SCRIPTABLE NS_IMETHOD GetParent(nsIDOMWindow * *aParent) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetParent(aParent); } \
NS_SCRIPTABLE NS_IMETHOD GetFrameElement(nsIDOMElement * *aFrameElement) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFrameElement(aFrameElement); } \
NS_SCRIPTABLE NS_IMETHOD GetNavigator(nsIDOMNavigator * *aNavigator) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetNavigator(aNavigator); } \
NS_SCRIPTABLE NS_IMETHOD GetApplicationCache(nsIDOMOfflineResourceList * *aApplicationCache) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetApplicationCache(aApplicationCache); } \
NS_SCRIPTABLE NS_IMETHOD Alert(const nsAString & text) { return !_to ? NS_ERROR_NULL_POINTER : _to->Alert(text); } \
NS_SCRIPTABLE NS_IMETHOD Confirm(const nsAString & text, bool *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->Confirm(text, _retval); } \
NS_SCRIPTABLE NS_IMETHOD Prompt(const nsAString & aMessage, const nsAString & aInitial, nsAString & _retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->Prompt(aMessage, aInitial, _retval); } \
NS_SCRIPTABLE NS_IMETHOD Print(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->Print(); } \
NS_SCRIPTABLE NS_IMETHOD ShowModalDialog(const nsAString & aURI, nsIVariant *aArgs, const nsAString & aOptions, nsIVariant * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->ShowModalDialog(aURI, aArgs, aOptions, _retval); } \
NS_SCRIPTABLE NS_IMETHOD PostMessageMoz(const JS::Value & message, const nsAString & targetOrigin, JSContext* cx) { return !_to ? NS_ERROR_NULL_POINTER : _to->PostMessageMoz(message, targetOrigin, cx); } \
NS_SCRIPTABLE NS_IMETHOD Atob(const nsAString & aAsciiString, nsAString & _retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->Atob(aAsciiString, _retval); } \
NS_SCRIPTABLE NS_IMETHOD Btoa(const nsAString & aBase64Data, nsAString & _retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->Btoa(aBase64Data, _retval); } \
NS_SCRIPTABLE NS_IMETHOD GetSessionStorage(nsIDOMStorage * *aSessionStorage) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSessionStorage(aSessionStorage); } \
NS_SCRIPTABLE NS_IMETHOD GetLocalStorage(nsIDOMStorage * *aLocalStorage) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLocalStorage(aLocalStorage); } \
NS_SCRIPTABLE NS_IMETHOD GetSelection(nsISelection * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSelection(_retval); } \
NS_SCRIPTABLE NS_IMETHOD MatchMedia(const nsAString & media_query_list, nsIDOMMediaQueryList * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->MatchMedia(media_query_list, _retval); } \
NS_SCRIPTABLE NS_IMETHOD GetScreen(nsIDOMScreen * *aScreen) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetScreen(aScreen); } \
NS_SCRIPTABLE NS_IMETHOD GetInnerWidth(PRInt32 *aInnerWidth) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetInnerWidth(aInnerWidth); } \
NS_SCRIPTABLE NS_IMETHOD SetInnerWidth(PRInt32 aInnerWidth) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetInnerWidth(aInnerWidth); } \
NS_SCRIPTABLE NS_IMETHOD GetInnerHeight(PRInt32 *aInnerHeight) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetInnerHeight(aInnerHeight); } \
NS_SCRIPTABLE NS_IMETHOD SetInnerHeight(PRInt32 aInnerHeight) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetInnerHeight(aInnerHeight); } \
NS_SCRIPTABLE NS_IMETHOD GetScrollX(PRInt32 *aScrollX) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetScrollX(aScrollX); } \
NS_SCRIPTABLE NS_IMETHOD GetPageXOffset(PRInt32 *aPageXOffset) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPageXOffset(aPageXOffset); } \
NS_SCRIPTABLE NS_IMETHOD GetScrollY(PRInt32 *aScrollY) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetScrollY(aScrollY); } \
NS_SCRIPTABLE NS_IMETHOD GetPageYOffset(PRInt32 *aPageYOffset) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPageYOffset(aPageYOffset); } \
NS_SCRIPTABLE NS_IMETHOD Scroll(PRInt32 xScroll, PRInt32 yScroll) { return !_to ? NS_ERROR_NULL_POINTER : _to->Scroll(xScroll, yScroll); } \
NS_SCRIPTABLE NS_IMETHOD ScrollTo(PRInt32 xScroll, PRInt32 yScroll) { return !_to ? NS_ERROR_NULL_POINTER : _to->ScrollTo(xScroll, yScroll); } \
NS_SCRIPTABLE NS_IMETHOD ScrollBy(PRInt32 xScrollDif, PRInt32 yScrollDif) { return !_to ? NS_ERROR_NULL_POINTER : _to->ScrollBy(xScrollDif, yScrollDif); } \
NS_SCRIPTABLE NS_IMETHOD GetScreenX(PRInt32 *aScreenX) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetScreenX(aScreenX); } \
NS_SCRIPTABLE NS_IMETHOD SetScreenX(PRInt32 aScreenX) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetScreenX(aScreenX); } \
NS_SCRIPTABLE NS_IMETHOD GetScreenY(PRInt32 *aScreenY) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetScreenY(aScreenY); } \
NS_SCRIPTABLE NS_IMETHOD SetScreenY(PRInt32 aScreenY) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetScreenY(aScreenY); } \
NS_SCRIPTABLE NS_IMETHOD GetOuterWidth(PRInt32 *aOuterWidth) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetOuterWidth(aOuterWidth); } \
NS_SCRIPTABLE NS_IMETHOD SetOuterWidth(PRInt32 aOuterWidth) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetOuterWidth(aOuterWidth); } \
NS_SCRIPTABLE NS_IMETHOD GetOuterHeight(PRInt32 *aOuterHeight) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetOuterHeight(aOuterHeight); } \
NS_SCRIPTABLE NS_IMETHOD SetOuterHeight(PRInt32 aOuterHeight) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetOuterHeight(aOuterHeight); } \
NS_SCRIPTABLE NS_IMETHOD GetComputedStyle(nsIDOMElement *elt, const nsAString & pseudoElt, nsIDOMCSSStyleDeclaration * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetComputedStyle(elt, pseudoElt, _retval); } \
NS_IMETHOD GetWindowRoot(nsIDOMEventTarget * *aWindowRoot) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetWindowRoot(aWindowRoot); } \
NS_IMETHOD GetFrames(nsIDOMWindowCollection * *aFrames) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFrames(aFrames); } \
NS_IMETHOD GetTextZoom(float *aTextZoom) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTextZoom(aTextZoom); } \
NS_IMETHOD SetTextZoom(float aTextZoom) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetTextZoom(aTextZoom); } \
NS_SCRIPTABLE NS_IMETHOD ScrollByLines(PRInt32 numLines) { return !_to ? NS_ERROR_NULL_POINTER : _to->ScrollByLines(numLines); } \
NS_SCRIPTABLE NS_IMETHOD ScrollByPages(PRInt32 numPages) { return !_to ? NS_ERROR_NULL_POINTER : _to->ScrollByPages(numPages); } \
NS_SCRIPTABLE NS_IMETHOD SizeToContent(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->SizeToContent(); } \
NS_SCRIPTABLE NS_IMETHOD GetContent(nsIDOMWindow * *aContent) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetContent(aContent); } \
NS_IMETHOD GetPrompter(nsIPrompt * *aPrompter) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPrompter(aPrompter); } \
NS_SCRIPTABLE NS_IMETHOD GetClosed(bool *aClosed) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetClosed(aClosed); } \
NS_SCRIPTABLE NS_IMETHOD GetCrypto(nsIDOMCrypto * *aCrypto) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCrypto(aCrypto); } \
NS_SCRIPTABLE NS_IMETHOD GetPkcs11(nsIDOMPkcs11 * *aPkcs11) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPkcs11(aPkcs11); } \
NS_SCRIPTABLE NS_IMETHOD GetControllers(nsIControllers * *aControllers) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetControllers(aControllers); } \
NS_SCRIPTABLE NS_IMETHOD GetDefaultStatus(nsAString & aDefaultStatus) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDefaultStatus(aDefaultStatus); } \
NS_SCRIPTABLE NS_IMETHOD SetDefaultStatus(const nsAString & aDefaultStatus) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetDefaultStatus(aDefaultStatus); } \
NS_SCRIPTABLE NS_IMETHOD GetMozInnerScreenX(float *aMozInnerScreenX) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMozInnerScreenX(aMozInnerScreenX); } \
NS_SCRIPTABLE NS_IMETHOD GetMozInnerScreenY(float *aMozInnerScreenY) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMozInnerScreenY(aMozInnerScreenY); } \
NS_SCRIPTABLE NS_IMETHOD GetScrollMaxX(PRInt32 *aScrollMaxX) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetScrollMaxX(aScrollMaxX); } \
NS_SCRIPTABLE NS_IMETHOD GetScrollMaxY(PRInt32 *aScrollMaxY) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetScrollMaxY(aScrollMaxY); } \
NS_SCRIPTABLE NS_IMETHOD GetFullScreen(bool *aFullScreen) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFullScreen(aFullScreen); } \
NS_SCRIPTABLE NS_IMETHOD SetFullScreen(bool aFullScreen) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetFullScreen(aFullScreen); } \
NS_SCRIPTABLE NS_IMETHOD Back(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->Back(); } \
NS_SCRIPTABLE NS_IMETHOD Forward(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->Forward(); } \
NS_SCRIPTABLE NS_IMETHOD Home(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->Home(); } \
NS_SCRIPTABLE NS_IMETHOD MoveTo(PRInt32 xPos, PRInt32 yPos) { return !_to ? NS_ERROR_NULL_POINTER : _to->MoveTo(xPos, yPos); } \
NS_SCRIPTABLE NS_IMETHOD MoveBy(PRInt32 xDif, PRInt32 yDif) { return !_to ? NS_ERROR_NULL_POINTER : _to->MoveBy(xDif, yDif); } \
NS_SCRIPTABLE NS_IMETHOD ResizeTo(PRInt32 width, PRInt32 height) { return !_to ? NS_ERROR_NULL_POINTER : _to->ResizeTo(width, height); } \
NS_SCRIPTABLE NS_IMETHOD ResizeBy(PRInt32 widthDif, PRInt32 heightDif) { return !_to ? NS_ERROR_NULL_POINTER : _to->ResizeBy(widthDif, heightDif); } \
NS_IMETHOD Open(const nsAString & url, const nsAString & name, const nsAString & options, nsIDOMWindow * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->Open(url, name, options, _retval); } \
NS_IMETHOD OpenDialog(const nsAString & url, const nsAString & name, const nsAString & options, nsISupports *aExtraArgument, nsIDOMWindow * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->OpenDialog(url, name, options, aExtraArgument, _retval); } \
NS_SCRIPTABLE NS_IMETHOD UpdateCommands(const nsAString & action) { return !_to ? NS_ERROR_NULL_POINTER : _to->UpdateCommands(action); } \
NS_SCRIPTABLE NS_IMETHOD Find(const nsAString & str, bool caseSensitive, bool backwards, bool wrapAround, bool wholeWord, bool searchInFrames, bool showDialog, bool *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->Find(str, caseSensitive, backwards, wrapAround, wholeWord, searchInFrames, showDialog, _retval); } \
NS_SCRIPTABLE NS_IMETHOD GetMozPaintCount(PRUint64 *aMozPaintCount) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMozPaintCount(aMozPaintCount); } \
NS_SCRIPTABLE NS_IMETHOD MozRequestAnimationFrame(nsIFrameRequestCallback *aCallback, PRInt32 *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->MozRequestAnimationFrame(aCallback, _retval); } \
NS_SCRIPTABLE NS_IMETHOD MozCancelAnimationFrame(PRInt32 aHandle) { return !_to ? NS_ERROR_NULL_POINTER : _to->MozCancelAnimationFrame(aHandle); } \
NS_SCRIPTABLE NS_IMETHOD MozCancelRequestAnimationFrame(PRInt32 aHandle) { return !_to ? NS_ERROR_NULL_POINTER : _to->MozCancelRequestAnimationFrame(aHandle); } \
NS_SCRIPTABLE NS_IMETHOD GetMozAnimationStartTime(PRInt64 *aMozAnimationStartTime) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMozAnimationStartTime(aMozAnimationStartTime); } \
NS_SCRIPTABLE NS_IMETHOD GetURL(nsIDOMMozURLProperty * *aURL) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetURL(aURL); } \
NS_SCRIPTABLE NS_IMETHOD GetGlobalStorage(nsIDOMStorageList * *aGlobalStorage) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetGlobalStorage(aGlobalStorage); } \
NS_SCRIPTABLE NS_IMETHOD GetOnafterprint(JSContext* cx, JS::Value *aOnafterprint) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetOnafterprint(cx, aOnafterprint); } \
NS_SCRIPTABLE NS_IMETHOD SetOnafterprint(JSContext* cx, const JS::Value & aOnafterprint) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetOnafterprint(cx, aOnafterprint); } \
NS_SCRIPTABLE NS_IMETHOD GetOnbeforeprint(JSContext* cx, JS::Value *aOnbeforeprint) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetOnbeforeprint(cx, aOnbeforeprint); } \
NS_SCRIPTABLE NS_IMETHOD SetOnbeforeprint(JSContext* cx, const JS::Value & aOnbeforeprint) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetOnbeforeprint(cx, aOnbeforeprint); } \
NS_SCRIPTABLE NS_IMETHOD GetOnbeforeunload(JSContext* cx, JS::Value *aOnbeforeunload) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetOnbeforeunload(cx, aOnbeforeunload); } \
NS_SCRIPTABLE NS_IMETHOD SetOnbeforeunload(JSContext* cx, const JS::Value & aOnbeforeunload) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetOnbeforeunload(cx, aOnbeforeunload); } \
NS_SCRIPTABLE NS_IMETHOD GetOnhashchange(JSContext* cx, JS::Value *aOnhashchange) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetOnhashchange(cx, aOnhashchange); } \
NS_SCRIPTABLE NS_IMETHOD SetOnhashchange(JSContext* cx, const JS::Value & aOnhashchange) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetOnhashchange(cx, aOnhashchange); } \
NS_SCRIPTABLE NS_IMETHOD GetOnmessage(JSContext* cx, JS::Value *aOnmessage) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetOnmessage(cx, aOnmessage); } \
NS_SCRIPTABLE NS_IMETHOD SetOnmessage(JSContext* cx, const JS::Value & aOnmessage) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetOnmessage(cx, aOnmessage); } \
NS_SCRIPTABLE NS_IMETHOD GetOnoffline(JSContext* cx, JS::Value *aOnoffline) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetOnoffline(cx, aOnoffline); } \
NS_SCRIPTABLE NS_IMETHOD SetOnoffline(JSContext* cx, const JS::Value & aOnoffline) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetOnoffline(cx, aOnoffline); } \
NS_SCRIPTABLE NS_IMETHOD GetOnonline(JSContext* cx, JS::Value *aOnonline) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetOnonline(cx, aOnonline); } \
NS_SCRIPTABLE NS_IMETHOD SetOnonline(JSContext* cx, const JS::Value & aOnonline) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetOnonline(cx, aOnonline); } \
NS_SCRIPTABLE NS_IMETHOD GetOnpopstate(JSContext* cx, JS::Value *aOnpopstate) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetOnpopstate(cx, aOnpopstate); } \
NS_SCRIPTABLE NS_IMETHOD SetOnpopstate(JSContext* cx, const JS::Value & aOnpopstate) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetOnpopstate(cx, aOnpopstate); } \
NS_SCRIPTABLE NS_IMETHOD GetOnpagehide(JSContext* cx, JS::Value *aOnpagehide) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetOnpagehide(cx, aOnpagehide); } \
NS_SCRIPTABLE NS_IMETHOD SetOnpagehide(JSContext* cx, const JS::Value & aOnpagehide) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetOnpagehide(cx, aOnpagehide); } \
NS_SCRIPTABLE NS_IMETHOD GetOnpageshow(JSContext* cx, JS::Value *aOnpageshow) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetOnpageshow(cx, aOnpageshow); } \
NS_SCRIPTABLE NS_IMETHOD SetOnpageshow(JSContext* cx, const JS::Value & aOnpageshow) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetOnpageshow(cx, aOnpageshow); } \
NS_SCRIPTABLE NS_IMETHOD GetOnresize(JSContext* cx, JS::Value *aOnresize) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetOnresize(cx, aOnresize); } \
NS_SCRIPTABLE NS_IMETHOD SetOnresize(JSContext* cx, const JS::Value & aOnresize) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetOnresize(cx, aOnresize); } \
NS_SCRIPTABLE NS_IMETHOD GetOnunload(JSContext* cx, JS::Value *aOnunload) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetOnunload(cx, aOnunload); } \
NS_SCRIPTABLE NS_IMETHOD SetOnunload(JSContext* cx, const JS::Value & aOnunload) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetOnunload(cx, aOnunload); } \
NS_SCRIPTABLE NS_IMETHOD GetOndevicemotion(JSContext* cx, JS::Value *aOndevicemotion) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetOndevicemotion(cx, aOndevicemotion); } \
NS_SCRIPTABLE NS_IMETHOD SetOndevicemotion(JSContext* cx, const JS::Value & aOndevicemotion) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetOndevicemotion(cx, aOndevicemotion); } \
NS_SCRIPTABLE NS_IMETHOD GetOndeviceorientation(JSContext* cx, JS::Value *aOndeviceorientation) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetOndeviceorientation(cx, aOndeviceorientation); } \
NS_SCRIPTABLE NS_IMETHOD SetOndeviceorientation(JSContext* cx, const JS::Value & aOndeviceorientation) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetOndeviceorientation(cx, aOndeviceorientation); } \
NS_SCRIPTABLE NS_IMETHOD GetOnmouseenter(JSContext* cx, JS::Value *aOnmouseenter) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetOnmouseenter(cx, aOnmouseenter); } \
NS_SCRIPTABLE NS_IMETHOD SetOnmouseenter(JSContext* cx, const JS::Value & aOnmouseenter) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetOnmouseenter(cx, aOnmouseenter); } \
NS_SCRIPTABLE NS_IMETHOD GetOnmouseleave(JSContext* cx, JS::Value *aOnmouseleave) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetOnmouseleave(cx, aOnmouseleave); } \
NS_SCRIPTABLE NS_IMETHOD SetOnmouseleave(JSContext* cx, const JS::Value & aOnmouseleave) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetOnmouseleave(cx, aOnmouseleave); }
#if 0
/* Use the code below as a template for the implementation class for this interface. */
/* Header file */
class nsDOMWindow : public nsIDOMWindow
{
public:
NS_DECL_ISUPPORTS
NS_DECL_NSIDOMWINDOW
nsDOMWindow();
private:
~nsDOMWindow();
protected:
/* additional members */
};
/* Implementation file */
NS_IMPL_ISUPPORTS1(nsDOMWindow, nsIDOMWindow)
nsDOMWindow::nsDOMWindow()
{
/* member initializers and constructor code */
}
nsDOMWindow::~nsDOMWindow()
{
/* destructor code */
}
/* readonly attribute nsIDOMWindow window; */
NS_IMETHODIMP nsDOMWindow::GetWindow(nsIDOMWindow * *aWindow)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute nsIDOMWindow self; */
NS_IMETHODIMP nsDOMWindow::GetSelf(nsIDOMWindow * *aSelf)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute nsIDOMDocument document; */
NS_IMETHODIMP nsDOMWindow::GetDocument(nsIDOMDocument * *aDocument)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* attribute DOMString name; */
NS_IMETHODIMP nsDOMWindow::GetName(nsAString & aName)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsDOMWindow::SetName(const nsAString & aName)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute nsIDOMLocation location; */
NS_IMETHODIMP nsDOMWindow::GetLocation(nsIDOMLocation * *aLocation)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute nsIDOMHistory history; */
NS_IMETHODIMP nsDOMWindow::GetHistory(nsIDOMHistory * *aHistory)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute nsIDOMBarProp locationbar; */
NS_IMETHODIMP nsDOMWindow::GetLocationbar(nsIDOMBarProp * *aLocationbar)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute nsIDOMBarProp menubar; */
NS_IMETHODIMP nsDOMWindow::GetMenubar(nsIDOMBarProp * *aMenubar)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute nsIDOMBarProp personalbar; */
NS_IMETHODIMP nsDOMWindow::GetPersonalbar(nsIDOMBarProp * *aPersonalbar)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute nsIDOMBarProp scrollbars; */
NS_IMETHODIMP nsDOMWindow::GetScrollbars(nsIDOMBarProp * *aScrollbars)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute nsIDOMBarProp statusbar; */
NS_IMETHODIMP nsDOMWindow::GetStatusbar(nsIDOMBarProp * *aStatusbar)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute nsIDOMBarProp toolbar; */
NS_IMETHODIMP nsDOMWindow::GetToolbar(nsIDOMBarProp * *aToolbar)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* attribute DOMString status; */
NS_IMETHODIMP nsDOMWindow::GetStatus(nsAString & aStatus)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsDOMWindow::SetStatus(const nsAString & aStatus)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void close (); */
NS_IMETHODIMP nsDOMWindow::Close()
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void stop (); */
NS_IMETHODIMP nsDOMWindow::Stop()
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void focus (); */
NS_IMETHODIMP nsDOMWindow::Focus()
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void blur (); */
NS_IMETHODIMP nsDOMWindow::Blur()
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute unsigned long length; */
NS_IMETHODIMP nsDOMWindow::GetLength(PRUint32 *aLength)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute nsIDOMWindow top; */
NS_IMETHODIMP nsDOMWindow::GetTop(nsIDOMWindow * *aTop)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* attribute nsIDOMWindow opener; */
NS_IMETHODIMP nsDOMWindow::GetOpener(nsIDOMWindow * *aOpener)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsDOMWindow::SetOpener(nsIDOMWindow *aOpener)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute nsIDOMWindow parent; */
NS_IMETHODIMP nsDOMWindow::GetParent(nsIDOMWindow * *aParent)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute nsIDOMElement frameElement; */
NS_IMETHODIMP nsDOMWindow::GetFrameElement(nsIDOMElement * *aFrameElement)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute nsIDOMNavigator navigator; */
NS_IMETHODIMP nsDOMWindow::GetNavigator(nsIDOMNavigator * *aNavigator)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute nsIDOMOfflineResourceList applicationCache; */
NS_IMETHODIMP nsDOMWindow::GetApplicationCache(nsIDOMOfflineResourceList * *aApplicationCache)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void alert (in DOMString text); */
NS_IMETHODIMP nsDOMWindow::Alert(const nsAString & text)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* boolean confirm (in DOMString text); */
NS_IMETHODIMP nsDOMWindow::Confirm(const nsAString & text, bool *_retval NS_OUTPARAM)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* DOMString prompt ([optional] in DOMString aMessage, [optional] in DOMString aInitial); */
NS_IMETHODIMP nsDOMWindow::Prompt(const nsAString & aMessage, const nsAString & aInitial, nsAString & _retval NS_OUTPARAM)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void print (); */
NS_IMETHODIMP nsDOMWindow::Print()
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* nsIVariant showModalDialog (in DOMString aURI, [optional] in nsIVariant aArgs, [optional] in DOMString aOptions); */
NS_IMETHODIMP nsDOMWindow::ShowModalDialog(const nsAString & aURI, nsIVariant *aArgs, const nsAString & aOptions, nsIVariant * *_retval NS_OUTPARAM)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* [binaryname(PostMessageMoz),implicit_jscontext] void postMessage (in jsval message, in DOMString targetOrigin); */
NS_IMETHODIMP nsDOMWindow::PostMessageMoz(const JS::Value & message, const nsAString & targetOrigin, JSContext* cx)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* DOMString atob (in DOMString aAsciiString); */
NS_IMETHODIMP nsDOMWindow::Atob(const nsAString & aAsciiString, nsAString & _retval NS_OUTPARAM)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* DOMString btoa (in DOMString aBase64Data); */
NS_IMETHODIMP nsDOMWindow::Btoa(const nsAString & aBase64Data, nsAString & _retval NS_OUTPARAM)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute nsIDOMStorage sessionStorage; */
NS_IMETHODIMP nsDOMWindow::GetSessionStorage(nsIDOMStorage * *aSessionStorage)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute nsIDOMStorage localStorage; */
NS_IMETHODIMP nsDOMWindow::GetLocalStorage(nsIDOMStorage * *aLocalStorage)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* nsISelection getSelection (); */
NS_IMETHODIMP nsDOMWindow::GetSelection(nsISelection * *_retval NS_OUTPARAM)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* nsIDOMMediaQueryList matchMedia (in DOMString media_query_list); */
NS_IMETHODIMP nsDOMWindow::MatchMedia(const nsAString & media_query_list, nsIDOMMediaQueryList * *_retval NS_OUTPARAM)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute nsIDOMScreen screen; */
NS_IMETHODIMP nsDOMWindow::GetScreen(nsIDOMScreen * *aScreen)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* attribute long innerWidth; */
NS_IMETHODIMP nsDOMWindow::GetInnerWidth(PRInt32 *aInnerWidth)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsDOMWindow::SetInnerWidth(PRInt32 aInnerWidth)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* attribute long innerHeight; */
NS_IMETHODIMP nsDOMWindow::GetInnerHeight(PRInt32 *aInnerHeight)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsDOMWindow::SetInnerHeight(PRInt32 aInnerHeight)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute long scrollX; */
NS_IMETHODIMP nsDOMWindow::GetScrollX(PRInt32 *aScrollX)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute long pageXOffset; */
NS_IMETHODIMP nsDOMWindow::GetPageXOffset(PRInt32 *aPageXOffset)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute long scrollY; */
NS_IMETHODIMP nsDOMWindow::GetScrollY(PRInt32 *aScrollY)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute long pageYOffset; */
NS_IMETHODIMP nsDOMWindow::GetPageYOffset(PRInt32 *aPageYOffset)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void scroll (in long xScroll, in long yScroll); */
NS_IMETHODIMP nsDOMWindow::Scroll(PRInt32 xScroll, PRInt32 yScroll)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void scrollTo (in long xScroll, in long yScroll); */
NS_IMETHODIMP nsDOMWindow::ScrollTo(PRInt32 xScroll, PRInt32 yScroll)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void scrollBy (in long xScrollDif, in long yScrollDif); */
NS_IMETHODIMP nsDOMWindow::ScrollBy(PRInt32 xScrollDif, PRInt32 yScrollDif)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* attribute long screenX; */
NS_IMETHODIMP nsDOMWindow::GetScreenX(PRInt32 *aScreenX)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsDOMWindow::SetScreenX(PRInt32 aScreenX)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* attribute long screenY; */
NS_IMETHODIMP nsDOMWindow::GetScreenY(PRInt32 *aScreenY)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsDOMWindow::SetScreenY(PRInt32 aScreenY)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* attribute long outerWidth; */
NS_IMETHODIMP nsDOMWindow::GetOuterWidth(PRInt32 *aOuterWidth)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsDOMWindow::SetOuterWidth(PRInt32 aOuterWidth)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* attribute long outerHeight; */
NS_IMETHODIMP nsDOMWindow::GetOuterHeight(PRInt32 *aOuterHeight)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsDOMWindow::SetOuterHeight(PRInt32 aOuterHeight)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* nsIDOMCSSStyleDeclaration getComputedStyle (in nsIDOMElement elt, [optional] in DOMString pseudoElt); */
NS_IMETHODIMP nsDOMWindow::GetComputedStyle(nsIDOMElement *elt, const nsAString & pseudoElt, nsIDOMCSSStyleDeclaration * *_retval NS_OUTPARAM)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* [noscript] readonly attribute nsIDOMEventTarget windowRoot; */
NS_IMETHODIMP nsDOMWindow::GetWindowRoot(nsIDOMEventTarget * *aWindowRoot)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* [noscript] readonly attribute nsIDOMWindowCollection frames; */
NS_IMETHODIMP nsDOMWindow::GetFrames(nsIDOMWindowCollection * *aFrames)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* [noscript] attribute float textZoom; */
NS_IMETHODIMP nsDOMWindow::GetTextZoom(float *aTextZoom)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsDOMWindow::SetTextZoom(float aTextZoom)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void scrollByLines (in long numLines); */
NS_IMETHODIMP nsDOMWindow::ScrollByLines(PRInt32 numLines)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void scrollByPages (in long numPages); */
NS_IMETHODIMP nsDOMWindow::ScrollByPages(PRInt32 numPages)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void sizeToContent (); */
NS_IMETHODIMP nsDOMWindow::SizeToContent()
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute nsIDOMWindow content; */
NS_IMETHODIMP nsDOMWindow::GetContent(nsIDOMWindow * *aContent)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* [noscript] readonly attribute nsIPrompt prompter; */
NS_IMETHODIMP nsDOMWindow::GetPrompter(nsIPrompt * *aPrompter)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute boolean closed; */
NS_IMETHODIMP nsDOMWindow::GetClosed(bool *aClosed)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute nsIDOMCrypto crypto; */
NS_IMETHODIMP nsDOMWindow::GetCrypto(nsIDOMCrypto * *aCrypto)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute nsIDOMPkcs11 pkcs11; */
NS_IMETHODIMP nsDOMWindow::GetPkcs11(nsIDOMPkcs11 * *aPkcs11)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute nsIControllers controllers; */
NS_IMETHODIMP nsDOMWindow::GetControllers(nsIControllers * *aControllers)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* attribute DOMString defaultStatus; */
NS_IMETHODIMP nsDOMWindow::GetDefaultStatus(nsAString & aDefaultStatus)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsDOMWindow::SetDefaultStatus(const nsAString & aDefaultStatus)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute float mozInnerScreenX; */
NS_IMETHODIMP nsDOMWindow::GetMozInnerScreenX(float *aMozInnerScreenX)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute float mozInnerScreenY; */
NS_IMETHODIMP nsDOMWindow::GetMozInnerScreenY(float *aMozInnerScreenY)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute long scrollMaxX; */
NS_IMETHODIMP nsDOMWindow::GetScrollMaxX(PRInt32 *aScrollMaxX)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute long scrollMaxY; */
NS_IMETHODIMP nsDOMWindow::GetScrollMaxY(PRInt32 *aScrollMaxY)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* attribute boolean fullScreen; */
NS_IMETHODIMP nsDOMWindow::GetFullScreen(bool *aFullScreen)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsDOMWindow::SetFullScreen(bool aFullScreen)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void back (); */
NS_IMETHODIMP nsDOMWindow::Back()
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void forward (); */
NS_IMETHODIMP nsDOMWindow::Forward()
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void home (); */
NS_IMETHODIMP nsDOMWindow::Home()
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void moveTo (in long xPos, in long yPos); */
NS_IMETHODIMP nsDOMWindow::MoveTo(PRInt32 xPos, PRInt32 yPos)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void moveBy (in long xDif, in long yDif); */
NS_IMETHODIMP nsDOMWindow::MoveBy(PRInt32 xDif, PRInt32 yDif)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void resizeTo (in long width, in long height); */
NS_IMETHODIMP nsDOMWindow::ResizeTo(PRInt32 width, PRInt32 height)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void resizeBy (in long widthDif, in long heightDif); */
NS_IMETHODIMP nsDOMWindow::ResizeBy(PRInt32 widthDif, PRInt32 heightDif)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* [noscript] nsIDOMWindow open (in DOMString url, in DOMString name, in DOMString options); */
NS_IMETHODIMP nsDOMWindow::Open(const nsAString & url, const nsAString & name, const nsAString & options, nsIDOMWindow * *_retval NS_OUTPARAM)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* [noscript] nsIDOMWindow openDialog (in DOMString url, in DOMString name, in DOMString options, in nsISupports aExtraArgument); */
NS_IMETHODIMP nsDOMWindow::OpenDialog(const nsAString & url, const nsAString & name, const nsAString & options, nsISupports *aExtraArgument, nsIDOMWindow * *_retval NS_OUTPARAM)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void updateCommands (in DOMString action); */
NS_IMETHODIMP nsDOMWindow::UpdateCommands(const nsAString & action)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* boolean find ([optional] in DOMString str, [optional] in boolean caseSensitive, [optional] in boolean backwards, [optional] in boolean wrapAround, [optional] in boolean wholeWord, [optional] in boolean searchInFrames, [optional] in boolean showDialog); */
NS_IMETHODIMP nsDOMWindow::Find(const nsAString & str, bool caseSensitive, bool backwards, bool wrapAround, bool wholeWord, bool searchInFrames, bool showDialog, bool *_retval NS_OUTPARAM)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute unsigned long long mozPaintCount; */
NS_IMETHODIMP nsDOMWindow::GetMozPaintCount(PRUint64 *aMozPaintCount)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* long mozRequestAnimationFrame ([optional] in nsIFrameRequestCallback aCallback); */
NS_IMETHODIMP nsDOMWindow::MozRequestAnimationFrame(nsIFrameRequestCallback *aCallback, PRInt32 *_retval NS_OUTPARAM)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void mozCancelAnimationFrame (in long aHandle); */
NS_IMETHODIMP nsDOMWindow::MozCancelAnimationFrame(PRInt32 aHandle)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void mozCancelRequestAnimationFrame (in long aHandle); */
NS_IMETHODIMP nsDOMWindow::MozCancelRequestAnimationFrame(PRInt32 aHandle)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute long long mozAnimationStartTime; */
NS_IMETHODIMP nsDOMWindow::GetMozAnimationStartTime(PRInt64 *aMozAnimationStartTime)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute nsIDOMMozURLProperty URL; */
NS_IMETHODIMP nsDOMWindow::GetURL(nsIDOMMozURLProperty * *aURL)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* readonly attribute nsIDOMStorageList globalStorage; */
NS_IMETHODIMP nsDOMWindow::GetGlobalStorage(nsIDOMStorageList * *aGlobalStorage)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* [implicit_jscontext] attribute jsval onafterprint; */
NS_IMETHODIMP nsDOMWindow::GetOnafterprint(JSContext* cx, JS::Value *aOnafterprint)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsDOMWindow::SetOnafterprint(JSContext* cx, const JS::Value & aOnafterprint)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* [implicit_jscontext] attribute jsval onbeforeprint; */
NS_IMETHODIMP nsDOMWindow::GetOnbeforeprint(JSContext* cx, JS::Value *aOnbeforeprint)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsDOMWindow::SetOnbeforeprint(JSContext* cx, const JS::Value & aOnbeforeprint)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* [implicit_jscontext] attribute jsval onbeforeunload; */
NS_IMETHODIMP nsDOMWindow::GetOnbeforeunload(JSContext* cx, JS::Value *aOnbeforeunload)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsDOMWindow::SetOnbeforeunload(JSContext* cx, const JS::Value & aOnbeforeunload)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* [implicit_jscontext] attribute jsval onhashchange; */
NS_IMETHODIMP nsDOMWindow::GetOnhashchange(JSContext* cx, JS::Value *aOnhashchange)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsDOMWindow::SetOnhashchange(JSContext* cx, const JS::Value & aOnhashchange)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* [implicit_jscontext] attribute jsval onmessage; */
NS_IMETHODIMP nsDOMWindow::GetOnmessage(JSContext* cx, JS::Value *aOnmessage)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsDOMWindow::SetOnmessage(JSContext* cx, const JS::Value & aOnmessage)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* [implicit_jscontext] attribute jsval onoffline; */
NS_IMETHODIMP nsDOMWindow::GetOnoffline(JSContext* cx, JS::Value *aOnoffline)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsDOMWindow::SetOnoffline(JSContext* cx, const JS::Value & aOnoffline)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* [implicit_jscontext] attribute jsval ononline; */
NS_IMETHODIMP nsDOMWindow::GetOnonline(JSContext* cx, JS::Value *aOnonline)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsDOMWindow::SetOnonline(JSContext* cx, const JS::Value & aOnonline)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* [implicit_jscontext] attribute jsval onpopstate; */
NS_IMETHODIMP nsDOMWindow::GetOnpopstate(JSContext* cx, JS::Value *aOnpopstate)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsDOMWindow::SetOnpopstate(JSContext* cx, const JS::Value & aOnpopstate)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* [implicit_jscontext] attribute jsval onpagehide; */
NS_IMETHODIMP nsDOMWindow::GetOnpagehide(JSContext* cx, JS::Value *aOnpagehide)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsDOMWindow::SetOnpagehide(JSContext* cx, const JS::Value & aOnpagehide)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* [implicit_jscontext] attribute jsval onpageshow; */
NS_IMETHODIMP nsDOMWindow::GetOnpageshow(JSContext* cx, JS::Value *aOnpageshow)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsDOMWindow::SetOnpageshow(JSContext* cx, const JS::Value & aOnpageshow)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* [implicit_jscontext] attribute jsval onresize; */
NS_IMETHODIMP nsDOMWindow::GetOnresize(JSContext* cx, JS::Value *aOnresize)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsDOMWindow::SetOnresize(JSContext* cx, const JS::Value & aOnresize)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* [implicit_jscontext] attribute jsval onunload; */
NS_IMETHODIMP nsDOMWindow::GetOnunload(JSContext* cx, JS::Value *aOnunload)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsDOMWindow::SetOnunload(JSContext* cx, const JS::Value & aOnunload)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* [implicit_jscontext] attribute jsval ondevicemotion; */
NS_IMETHODIMP nsDOMWindow::GetOndevicemotion(JSContext* cx, JS::Value *aOndevicemotion)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsDOMWindow::SetOndevicemotion(JSContext* cx, const JS::Value & aOndevicemotion)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* [implicit_jscontext] attribute jsval ondeviceorientation; */
NS_IMETHODIMP nsDOMWindow::GetOndeviceorientation(JSContext* cx, JS::Value *aOndeviceorientation)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsDOMWindow::SetOndeviceorientation(JSContext* cx, const JS::Value & aOndeviceorientation)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* [implicit_jscontext] attribute jsval onmouseenter; */
NS_IMETHODIMP nsDOMWindow::GetOnmouseenter(JSContext* cx, JS::Value *aOnmouseenter)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsDOMWindow::SetOnmouseenter(JSContext* cx, const JS::Value & aOnmouseenter)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* [implicit_jscontext] attribute jsval onmouseleave; */
NS_IMETHODIMP nsDOMWindow::GetOnmouseleave(JSContext* cx, JS::Value *aOnmouseleave)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsDOMWindow::SetOnmouseleave(JSContext* cx, const JS::Value & aOnmouseleave)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* End of implementation class template. */
#endif
/* starting interface: nsIDOMWindowPerformance */
#define NS_IDOMWINDOWPERFORMANCE_IID_STR "2146c906-57f7-486c-a1b4-8cdb57ef577f"
#define NS_IDOMWINDOWPERFORMANCE_IID \
{0x2146c906, 0x57f7, 0x486c, \
{ 0xa1, 0xb4, 0x8c, 0xdb, 0x57, 0xef, 0x57, 0x7f }}
class NS_NO_VTABLE NS_SCRIPTABLE nsIDOMWindowPerformance : public nsISupports {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_IDOMWINDOWPERFORMANCE_IID)
/* readonly attribute nsIDOMPerformance performance; */
NS_SCRIPTABLE NS_IMETHOD GetPerformance(nsIDOMPerformance * *aPerformance) = 0;
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsIDOMWindowPerformance, NS_IDOMWINDOWPERFORMANCE_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIDOMWINDOWPERFORMANCE \
NS_SCRIPTABLE NS_IMETHOD GetPerformance(nsIDOMPerformance * *aPerformance);
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIDOMWINDOWPERFORMANCE(_to) \
NS_SCRIPTABLE NS_IMETHOD GetPerformance(nsIDOMPerformance * *aPerformance) { return _to GetPerformance(aPerformance); }
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIDOMWINDOWPERFORMANCE(_to) \
NS_SCRIPTABLE NS_IMETHOD GetPerformance(nsIDOMPerformance * *aPerformance) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPerformance(aPerformance); }
#if 0
/* Use the code below as a template for the implementation class for this interface. */
/* Header file */
class nsDOMWindowPerformance : public nsIDOMWindowPerformance
{
public:
NS_DECL_ISUPPORTS
NS_DECL_NSIDOMWINDOWPERFORMANCE
nsDOMWindowPerformance();
private:
~nsDOMWindowPerformance();
protected:
/* additional members */
};
/* Implementation file */
NS_IMPL_ISUPPORTS1(nsDOMWindowPerformance, nsIDOMWindowPerformance)
nsDOMWindowPerformance::nsDOMWindowPerformance()
{
/* member initializers and constructor code */
}
nsDOMWindowPerformance::~nsDOMWindowPerformance()
{
/* destructor code */
}
/* readonly attribute nsIDOMPerformance performance; */
NS_IMETHODIMP nsDOMWindowPerformance::GetPerformance(nsIDOMPerformance * *aPerformance)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* End of implementation class template. */
#endif
/* starting interface: nsIDOMWindowInternal */
#define NS_IDOMWINDOWINTERNAL_IID_STR "8da641ab-906a-456e-97f2-b77df4ca2d95"
#define NS_IDOMWINDOWINTERNAL_IID \
{0x8da641ab, 0x906a, 0x456e, \
{ 0x97, 0xf2, 0xb7, 0x7d, 0xf4, 0xca, 0x2d, 0x95 }}
class NS_NO_VTABLE NS_SCRIPTABLE nsIDOMWindowInternal : public nsIDOMWindow {
public:
NS_DECLARE_STATIC_IID_ACCESSOR(NS_IDOMWINDOWINTERNAL_IID)
};
NS_DEFINE_STATIC_IID_ACCESSOR(nsIDOMWindowInternal, NS_IDOMWINDOWINTERNAL_IID)
/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIDOMWINDOWINTERNAL \
/* no methods! */
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIDOMWINDOWINTERNAL(_to) \
/* no methods! */
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIDOMWINDOWINTERNAL(_to) \
/* no methods! */
#if 0
/* Use the code below as a template for the implementation class for this interface. */
/* Header file */
class nsDOMWindowInternal : public nsIDOMWindowInternal
{
public:
NS_DECL_ISUPPORTS
NS_DECL_NSIDOMWINDOWINTERNAL
nsDOMWindowInternal();
private:
~nsDOMWindowInternal();
protected:
/* additional members */
};
/* Implementation file */
NS_IMPL_ISUPPORTS1(nsDOMWindowInternal, nsIDOMWindowInternal)
nsDOMWindowInternal::nsDOMWindowInternal()
{
/* member initializers and constructor code */
}
nsDOMWindowInternal::~nsDOMWindowInternal()
{
/* destructor code */
}
/* End of implementation class template. */
#endif
#endif /* __gen_nsIDOMWindow_h__ */
|