DXR is a code search and navigation tool aimed at making sense of large projects. It supports full-text and regex searches as well as structural queries.

Untracked file

Line Code
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
/*
 * DO NOT EDIT.  THIS FILE IS GENERATED FROM /home/jenkins/src/releases/comm-beta/mozilla/dom/interfaces/base/nsIDOMWindowUtils.idl
 */

#ifndef __gen_nsIDOMWindowUtils_h__
#define __gen_nsIDOMWindowUtils_h__


#ifndef __gen_nsISupports_h__
#include "nsISupports.h"
#endif

#ifndef __gen_domstubs_h__
#include "domstubs.h"
#endif

#include "js/Value.h"

#include "js/GCAnnotations.h"

/* For IDL files that don't want to include root IDL files. */
#ifndef NS_NO_VTABLE
#define NS_NO_VTABLE
#endif
#include "nsColor.h"
class gfxContext;
struct nsRect;
class nsIArray; /* forward declaration */

class nsICycleCollectorListener; /* forward declaration */

class nsIPreloadedStyleSheet; /* forward declaration */

class nsITransferable; /* forward declaration */

class nsIQueryContentEventResult; /* forward declaration */

class nsIDOMWindow; /* forward declaration */

class nsIFile; /* forward declaration */

class nsIURI; /* forward declaration */

class nsIRunnable; /* forward declaration */

class nsITranslationNodeList; /* forward declaration */

class nsIJSRAIIHelper; /* forward declaration */

class nsIContentPermissionRequest; /* forward declaration */

class nsIObserver; /* forward declaration */

class nsIDOMStorage; /* forward declaration */

namespace mozilla {
namespace dom {
class Animation; /* webidl Animation */
} // namespace dom
} // namespace mozilla

namespace mozilla {
namespace dom {
class DOMRect; /* webidl DOMRect */
} // namespace dom
} // namespace mozilla

namespace mozilla {
namespace dom {
class Element; /* webidl Element */
} // namespace dom
} // namespace mozilla

namespace mozilla {
namespace dom {
class EventTarget; /* webidl EventTarget */
} // namespace dom
} // namespace mozilla

namespace mozilla {
namespace dom {
class Event; /* webidl Event */
} // namespace dom
} // namespace mozilla

class nsINode; /* webidl Node */

class nsINodeList; /* webidl NodeList */


/* starting interface:    nsIDOMWindowUtils */
#define NS_IDOMWINDOWUTILS_IID_STR "4d6732ca-9da7-4176-b8a1-8dde15cd0bf9"

#define NS_IDOMWINDOWUTILS_IID \
  {0x4d6732ca, 0x9da7, 0x4176, \
    { 0xb8, 0xa1, 0x8d, 0xde, 0x15, 0xcd, 0x0b, 0xf9 }}

class NS_NO_VTABLE nsIDOMWindowUtils : public nsISupports {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_IDOMWINDOWUTILS_IID)

  /* attribute unsigned short imageAnimationMode; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetImageAnimationMode(uint16_t *aImageAnimationMode) = 0;
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetImageAnimationMode(uint16_t aImageAnimationMode) = 0;

  /* readonly attribute boolean docCharsetIsForced; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetDocCharsetIsForced(bool *aDocCharsetIsForced) = 0;

  /* readonly attribute float physicalMillimeterInCSSPixels; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetPhysicalMillimeterInCSSPixels(float *aPhysicalMillimeterInCSSPixels) = 0;

  /* AString getDocumentMetadata (in AString aName); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetDocumentMetadata(const nsAString& aName, nsAString& _retval) = 0;

  /* unsigned long redraw ([optional] in unsigned long aCount); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD Redraw(uint32_t aCount, uint32_t *_retval) = 0;

  /* void updateLayerTree (); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD UpdateLayerTree(void) = 0;

  /* readonly attribute unsigned long long lastTransactionId; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetLastTransactionId(uint64_t *aLastTransactionId) = 0;

  /* void getViewportInfo (in uint32_t aDisplayWidth, in uint32_t aDisplayHeight, out double aDefaultZoom, out boolean aAllowZoom, out double aMinZoom, out double aMaxZoom, out uint32_t aWidth, out uint32_t aHeight, out boolean aAutoSize); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetViewportInfo(uint32_t aDisplayWidth, uint32_t aDisplayHeight, double *aDefaultZoom, bool *aAllowZoom, double *aMinZoom, double *aMaxZoom, uint32_t *aWidth, uint32_t *aHeight, bool *aAutoSize) = 0;

  /* void getContentViewerSize (out uint32_t aDisplayWidth, out uint32_t aDisplayHeight); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetContentViewerSize(uint32_t *aDisplayWidth, uint32_t *aDisplayHeight) = 0;

  /* void setDisplayPortForElement (in float aXPx, in float aYPx, in float aWidthPx, in float aHeightPx, in Element aElement, in uint32_t aPriority); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetDisplayPortForElement(float aXPx, float aYPx, float aWidthPx, float aHeightPx, mozilla::dom::Element *aElement, uint32_t aPriority) = 0;

  /* void setDisplayPortMarginsForElement (in float aLeftMargin, in float aTopMargin, in float aRightMargin, in float aBottomMargin, in Element aElement, in uint32_t aPriority); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetDisplayPortMarginsForElement(float aLeftMargin, float aTopMargin, float aRightMargin, float aBottomMargin, mozilla::dom::Element *aElement, uint32_t aPriority) = 0;

  /* void setDisplayPortBaseForElement (in int32_t aX, in int32_t aY, in int32_t aWidth, in int32_t aHeight, in Element aElement); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetDisplayPortBaseForElement(int32_t aX, int32_t aY, int32_t aWidth, int32_t aHeight, mozilla::dom::Element *aElement) = 0;

  /* void setResolution (in float aResolution); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetResolution(float aResolution) = 0;

  /* void getResolution (out float aResolution); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetResolution(float *aResolution) = 0;

  /* void setResolutionAndScaleTo (in float aResolution); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetResolutionAndScaleTo(float aResolution) = 0;

  /* void setRestoreResolution (in float aResolution, in uint32_t aDisplayWidth, in uint32_t aDisplayHeight); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetRestoreResolution(float aResolution, uint32_t aDisplayWidth, uint32_t aDisplayHeight) = 0;

  /* readonly attribute boolean isResolutionSet; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetIsResolutionSet(bool *aIsResolutionSet) = 0;

  /* attribute boolean isFirstPaint; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetIsFirstPaint(bool *aIsFirstPaint) = 0;
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetIsFirstPaint(bool aIsFirstPaint) = 0;

  /* uint32_t getPresShellId (); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetPresShellId(uint32_t *_retval) = 0;

  enum {
    MODIFIER_ALT = 1,
    MODIFIER_CONTROL = 2,
    MODIFIER_SHIFT = 4,
    MODIFIER_META = 8,
    MODIFIER_ALTGRAPH = 16,
    MODIFIER_CAPSLOCK = 32,
    MODIFIER_FN = 64,
    MODIFIER_FNLOCK = 128,
    MODIFIER_NUMLOCK = 256,
    MODIFIER_SCROLLLOCK = 512,
    MODIFIER_SYMBOL = 1024,
    MODIFIER_SYMBOLLOCK = 2048,
    MODIFIER_OS = 4096
  };

  /* [optional_argc] boolean sendMouseEvent (in AString aType, in float aX, in float aY, in long aButton, in long aClickCount, in long aModifiers, [optional] in boolean aIgnoreRootScrollFrame, [optional] in float aPressure, [optional] in unsigned short aInputSourceArg, [optional] in boolean aIsDOMEventSynthesized, [optional] in boolean aIsWidgetEventSynthesized, [optional] in long aButtons, [optional] in unsigned long aIdentifier); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SendMouseEvent(const nsAString& aType, float aX, float aY, int32_t aButton, int32_t aClickCount, int32_t aModifiers, bool aIgnoreRootScrollFrame, float aPressure, uint16_t aInputSourceArg, bool aIsDOMEventSynthesized, bool aIsWidgetEventSynthesized, int32_t aButtons, uint32_t aIdentifier, uint8_t _argc, bool *_retval) = 0;

  /* boolean sendTouchEvent (in AString aType, [array, size_is (count)] in uint32_t aIdentifiers, [array, size_is (count)] in int32_t aXs, [array, size_is (count)] in int32_t aYs, [array, size_is (count)] in uint32_t aRxs, [array, size_is (count)] in uint32_t aRys, [array, size_is (count)] in float aRotationAngles, [array, size_is (count)] in float aForces, in uint32_t count, in long aModifiers, [optional] in boolean aIgnoreRootScrollFrame); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SendTouchEvent(const nsAString& aType, uint32_t *aIdentifiers, int32_t *aXs, int32_t *aYs, uint32_t *aRxs, uint32_t *aRys, float *aRotationAngles, float *aForces, uint32_t count, int32_t aModifiers, bool aIgnoreRootScrollFrame, bool *_retval) = 0;

  /* [optional_argc] void sendMouseEventToWindow (in AString aType, in float aX, in float aY, in long aButton, in long aClickCount, in long aModifiers, [optional] in boolean aIgnoreRootScrollFrame, [optional] in float aPressure, [optional] in unsigned short aInputSourceArg, [optional] in boolean aIsDOMEventSynthesized, [optional] in boolean aIsWidgetEventSynthesized, [optional] in long aButtons, [optional] in unsigned long aIdentifier); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SendMouseEventToWindow(const nsAString& aType, float aX, float aY, int32_t aButton, int32_t aClickCount, int32_t aModifiers, bool aIgnoreRootScrollFrame, float aPressure, uint16_t aInputSourceArg, bool aIsDOMEventSynthesized, bool aIsWidgetEventSynthesized, int32_t aButtons, uint32_t aIdentifier, uint8_t _argc) = 0;

  /* boolean sendTouchEventToWindow (in AString aType, [array, size_is (count)] in uint32_t aIdentifiers, [array, size_is (count)] in int32_t aXs, [array, size_is (count)] in int32_t aYs, [array, size_is (count)] in uint32_t aRxs, [array, size_is (count)] in uint32_t aRys, [array, size_is (count)] in float aRotationAngles, [array, size_is (count)] in float aForces, in uint32_t count, in long aModifiers, [optional] in boolean aIgnoreRootScrollFrame); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SendTouchEventToWindow(const nsAString& aType, uint32_t *aIdentifiers, int32_t *aXs, int32_t *aYs, uint32_t *aRxs, uint32_t *aRys, float *aRotationAngles, float *aForces, uint32_t count, int32_t aModifiers, bool aIgnoreRootScrollFrame, bool *_retval) = 0;

  enum {
    WHEEL_EVENT_CAUSED_BY_NO_LINE_OR_PAGE_DELTA_DEVICE = 1U,
    WHEEL_EVENT_CAUSED_BY_MOMENTUM = 2U,
    WHEEL_EVENT_CUSTOMIZED_BY_USER_PREFS = 4U,
    WHEEL_EVENT_EXPECTED_OVERFLOW_DELTA_X_ZERO = 16U,
    WHEEL_EVENT_EXPECTED_OVERFLOW_DELTA_X_POSITIVE = 32U,
    WHEEL_EVENT_EXPECTED_OVERFLOW_DELTA_X_NEGATIVE = 64U,
    WHEEL_EVENT_EXPECTED_OVERFLOW_DELTA_Y_ZERO = 256U,
    WHEEL_EVENT_EXPECTED_OVERFLOW_DELTA_Y_POSITIVE = 512U,
    WHEEL_EVENT_EXPECTED_OVERFLOW_DELTA_Y_NEGATIVE = 1024U
  };

  /* void sendWheelEvent (in float aX, in float aY, in double aDeltaX, in double aDeltaY, in double aDeltaZ, in unsigned long aDeltaMode, in long aModifiers, in long aLineOrPageDeltaX, in long aLineOrPageDeltaY, in unsigned long aOptions); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SendWheelEvent(float aX, float aY, double aDeltaX, double aDeltaY, double aDeltaZ, uint32_t aDeltaMode, int32_t aModifiers, int32_t aLineOrPageDeltaX, int32_t aLineOrPageDeltaY, uint32_t aOptions) = 0;

  /* void sendNativeKeyEvent (in long aNativeKeyboardLayout, in long aNativeKeyCode, in long aModifierFlags, in AString aCharacters, in AString aUnmodifiedCharacters, [optional] in nsIObserver aObserver); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SendNativeKeyEvent(int32_t aNativeKeyboardLayout, int32_t aNativeKeyCode, int32_t aModifierFlags, const nsAString& aCharacters, const nsAString& aUnmodifiedCharacters, nsIObserver *aObserver) = 0;

  /* void sendNativeMouseEvent (in long aScreenX, in long aScreenY, in long aNativeMessage, in long aModifierFlags, in Element aElement, [optional] in nsIObserver aObserver); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SendNativeMouseEvent(int32_t aScreenX, int32_t aScreenY, int32_t aNativeMessage, int32_t aModifierFlags, mozilla::dom::Element *aElement, nsIObserver *aObserver) = 0;

  /* void sendNativeMouseMove (in long aScreenX, in long aScreenY, in Element aElement, [optional] in nsIObserver aObserver); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SendNativeMouseMove(int32_t aScreenX, int32_t aScreenY, mozilla::dom::Element *aElement, nsIObserver *aObserver) = 0;

  /* void suppressAnimation (in boolean aSuppress); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SuppressAnimation(bool aSuppress) = 0;

  enum {
    MOUSESCROLL_PREFER_WIDGET_AT_POINT = 1U,
    MOUSESCROLL_SCROLL_LINES = 2U,
    MOUSESCROLL_WIN_SCROLL_LPARAM_NOT_NULL = 65536U
  };

  /* void sendNativeMouseScrollEvent (in long aScreenX, in long aScreenY, in unsigned long aNativeMessage, in double aDeltaX, in double aDeltaY, in double aDeltaZ, in unsigned long aModifierFlags, in unsigned long aAdditionalFlags, in Element aElement, [optional] in nsIObserver aObserver); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SendNativeMouseScrollEvent(int32_t aScreenX, int32_t aScreenY, uint32_t aNativeMessage, double aDeltaX, double aDeltaY, double aDeltaZ, uint32_t aModifierFlags, uint32_t aAdditionalFlags, mozilla::dom::Element *aElement, nsIObserver *aObserver) = 0;

  enum {
    TOUCH_HOVER = 1,
    TOUCH_CONTACT = 2,
    TOUCH_REMOVE = 4,
    TOUCH_CANCEL = 8
  };

  /* void sendNativeTouchPoint (in unsigned long aPointerId, in unsigned long aTouchState, in long aScreenX, in long aScreenY, in double aPressure, in unsigned long aOrientation, [optional] in nsIObserver aObserver); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SendNativeTouchPoint(uint32_t aPointerId, uint32_t aTouchState, int32_t aScreenX, int32_t aScreenY, double aPressure, uint32_t aOrientation, nsIObserver *aObserver) = 0;

  /* void sendNativeTouchTap (in long aScreenX, in long aScreenY, in boolean aLongTap, [optional] in nsIObserver aObserver); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SendNativeTouchTap(int32_t aScreenX, int32_t aScreenY, bool aLongTap, nsIObserver *aObserver) = 0;

  /* void clearNativeTouchSequence ([optional] in nsIObserver aObserver); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD ClearNativeTouchSequence(nsIObserver *aObserver) = 0;

  /* void activateNativeMenuItemAt (in AString indexString); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD ActivateNativeMenuItemAt(const nsAString& indexString) = 0;

  /* void forceUpdateNativeMenuAt (in AString indexString); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD ForceUpdateNativeMenuAt(const nsAString& indexString) = 0;

  /* AString GetSelectionAsPlaintext (); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetSelectionAsPlaintext(nsAString& _retval) = 0;

  /* void garbageCollect ([optional] in nsICycleCollectorListener aListener); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GarbageCollect(nsICycleCollectorListener *aListener) = 0;

  /* void cycleCollect ([optional] in nsICycleCollectorListener aListener); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD CycleCollect(nsICycleCollectorListener *aListener) = 0;

  /* void runNextCollectorTimer (); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD RunNextCollectorTimer(void) = 0;

  /* void sendSimpleGestureEvent (in AString aType, in float aX, in float aY, in unsigned long aDirection, in double aDelta, in long aModifiers, [optional] in unsigned long aClickCount); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SendSimpleGestureEvent(const nsAString& aType, float aX, float aY, uint32_t aDirection, double aDelta, int32_t aModifiers, uint32_t aClickCount) = 0;

  /* Element elementFromPoint (in float aX, in float aY, in boolean aIgnoreRootScrollFrame, in boolean aFlushLayout); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD ElementFromPoint(float aX, float aY, bool aIgnoreRootScrollFrame, bool aFlushLayout, mozilla::dom::Element **_retval) = 0;

  /* NodeList nodesFromRect (in float aX, in float aY, in float aTopSize, in float aRightSize, in float aBottomSize, in float aLeftSize, in boolean aIgnoreRootScrollFrame, in boolean aFlushLayout); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD NodesFromRect(float aX, float aY, float aTopSize, float aRightSize, float aBottomSize, float aLeftSize, bool aIgnoreRootScrollFrame, bool aFlushLayout, nsINodeList **_retval) = 0;

  /* nsITranslationNodeList getTranslationNodes (in Node aRoot); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetTranslationNodes(nsINode *aRoot, nsITranslationNodeList **_retval) = 0;

  /* uint32_t compareCanvases (in nsISupports aCanvas1, in nsISupports aCanvas2, out unsigned long aMaxDifference); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD CompareCanvases(nsISupports *aCanvas1, nsISupports *aCanvas2, uint32_t *aMaxDifference, uint32_t *_retval) = 0;

  /* readonly attribute boolean isMozAfterPaintPending; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetIsMozAfterPaintPending(bool *aIsMozAfterPaintPending) = 0;

  /* void suppressEventHandling (in boolean aSuppress); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SuppressEventHandling(bool aSuppress) = 0;

  /* void disableNonTestMouseEvents (in boolean aDisable); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD DisableNonTestMouseEvents(bool aDisable) = 0;

  /* void getScrollXY (in boolean aFlushLayout, out long aScrollX, out long aScrollY); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetScrollXY(bool aFlushLayout, int32_t *aScrollX, int32_t *aScrollY) = 0;

  /* void getScrollXYFloat (in boolean aFlushLayout, out float aScrollX, out float aScrollY); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetScrollXYFloat(bool aFlushLayout, float *aScrollX, float *aScrollY) = 0;

  /* void getScrollbarSize (in boolean aFlushLayout, out long aWidth, out long aHeight); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetScrollbarSize(bool aFlushLayout, int32_t *aWidth, int32_t *aHeight) = 0;

  /* DOMRect getBoundsWithoutFlushing (in Element aElement); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetBoundsWithoutFlushing(mozilla::dom::Element *aElement, mozilla::dom::DOMRect **_retval) = 0;

  enum {
    FLUSH_NONE = -1,
    FLUSH_STYLE = 0,
    FLUSH_LAYOUT = 1,
    FLUSH_DISPLAY = 2
  };

  /* bool needsFlush (in long aFlushtype); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD NeedsFlush(int32_t aFlushtype, bool *_retval) = 0;

  /* void flushLayoutWithoutThrottledAnimations (); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD FlushLayoutWithoutThrottledAnimations(void) = 0;

  /* DOMRect getRootBounds (); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetRootBounds(mozilla::dom::DOMRect **_retval) = 0;

  /* readonly attribute boolean IMEIsOpen; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetIMEIsOpen(bool *aIMEIsOpen) = 0;

  enum {
    IME_STATUS_DISABLED = 0U,
    IME_STATUS_ENABLED = 1U,
    IME_STATUS_PASSWORD = 2U,
    IME_STATUS_PLUGIN = 3U
  };

  /* readonly attribute unsigned long IMEStatus; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetIMEStatus(uint32_t *aIMEStatus) = 0;

  /* readonly attribute float screenPixelsPerCSSPixel; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetScreenPixelsPerCSSPixel(float *aScreenPixelsPerCSSPixel) = 0;

  /* readonly attribute float fullZoom; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetFullZoom(float *aFullZoom) = 0;

  /* boolean dispatchDOMEventViaPresShell (in Node aTarget, in Event aEvent, in boolean aTrusted); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD DispatchDOMEventViaPresShell(nsINode *aTarget, mozilla::dom::Event *aEvent, bool aTrusted, bool *_retval) = 0;

  /* boolean dispatchEventToChromeOnly (in EventTarget aTarget, in Event aEvent); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD DispatchEventToChromeOnly(mozilla::dom::EventTarget *aTarget, mozilla::dom::Event *aEvent, bool *_retval) = 0;

  /* [implicit_jscontext] string getClassName (in jsval aObject); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetClassName(JS::HandleValue aObject, JSContext* cx, char * *_retval) = 0;

  /* void sendContentCommandEvent (in AString aType, [optional] in nsITransferable aTransferable); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SendContentCommandEvent(const nsAString& aType, nsITransferable *aTransferable) = 0;

  enum {
    QUERY_CONTENT_FLAG_USE_NATIVE_LINE_BREAK = 0U,
    QUERY_CONTENT_FLAG_USE_XP_LINE_BREAK = 1U,
    QUERY_CONTENT_FLAG_SELECTION_SPELLCHECK = 2U,
    QUERY_CONTENT_FLAG_SELECTION_IME_RAWINPUT = 4U,
    QUERY_CONTENT_FLAG_SELECTION_IME_SELECTEDRAWTEXT = 8U,
    QUERY_CONTENT_FLAG_SELECTION_IME_CONVERTEDTEXT = 16U,
    QUERY_CONTENT_FLAG_SELECTION_IME_SELECTEDCONVERTEDTEXT = 32U,
    QUERY_CONTENT_FLAG_SELECTION_ACCESSIBILITY = 64U,
    QUERY_CONTENT_FLAG_SELECTION_FIND = 128U,
    QUERY_CONTENT_FLAG_SELECTION_URLSECONDARY = 256U,
    QUERY_CONTENT_FLAG_SELECTION_URLSTRIKEOUT = 512U,
    QUERY_CONTENT_FLAG_OFFSET_RELATIVE_TO_INSERTION_POINT = 1024U
  };

  /* nsIQueryContentEventResult sendQueryContentEvent (in unsigned long aType, in long long aOffset, in unsigned long aLength, in long aX, in long aY, [optional] in unsigned long aAdditionalFlags); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SendQueryContentEvent(uint32_t aType, int64_t aOffset, uint32_t aLength, int32_t aX, int32_t aY, uint32_t aAdditionalFlags, nsIQueryContentEventResult **_retval) = 0;

  enum {
    QUERY_SELECTED_TEXT = 3200U,
    QUERY_TEXT_CONTENT = 3201U,
    QUERY_CARET_RECT = 3203U,
    QUERY_TEXT_RECT = 3204U,
    QUERY_EDITOR_RECT = 3205U,
    QUERY_CHARACTER_AT_POINT = 3208U,
    QUERY_TEXT_RECT_ARRAY = 3209U
  };

  /* void remoteFrameFullscreenChanged (in Element aFrameElement); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD RemoteFrameFullscreenChanged(mozilla::dom::Element *aFrameElement) = 0;

  /* void remoteFrameFullscreenReverted (); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD RemoteFrameFullscreenReverted(void) = 0;

  /* boolean handleFullscreenRequests (); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD HandleFullscreenRequests(bool *_retval) = 0;

  /* void exitFullscreen (); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD ExitFullscreen(void) = 0;

  enum {
    SELECTION_SET_FLAG_USE_NATIVE_LINE_BREAK = 0U,
    SELECTION_SET_FLAG_USE_XP_LINE_BREAK = 1U,
    SELECTION_SET_FLAG_REVERSE = 2U
  };

  /* boolean sendSelectionSetEvent (in unsigned long aOffset, in unsigned long aLength, [optional] in unsigned long aAdditionalFlags); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SendSelectionSetEvent(uint32_t aOffset, uint32_t aLength, uint32_t aAdditionalFlags, bool *_retval) = 0;

  enum {
    SELECT_CHARACTER = 0U,
    SELECT_CLUSTER = 1U,
    SELECT_WORD = 2U,
    SELECT_LINE = 3U,
    SELECT_BEGINLINE = 4U,
    SELECT_ENDLINE = 5U,
    SELECT_PARAGRAPH = 6U,
    SELECT_WORDNOSPACE = 7U
  };

  /* boolean selectAtPoint (in float aX, in float aY, in unsigned long aSelectBehavior); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SelectAtPoint(float aX, float aY, uint32_t aSelectBehavior, bool *_retval) = 0;

  /* AString getVisitedDependentComputedStyle (in Element aElement, in AString aPseudoElement, in AString aPropertyName); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetVisitedDependentComputedStyle(mozilla::dom::Element *aElement, const nsAString& aPseudoElement, const nsAString& aPropertyName, nsAString& _retval) = 0;

  /* readonly attribute unsigned long long outerWindowID; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetOuterWindowID(uint64_t *aOuterWindowID) = 0;

  /* readonly attribute unsigned long long currentInnerWindowID; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetCurrentInnerWindowID(uint64_t *aCurrentInnerWindowID) = 0;

  /* void enterModalState (); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD EnterModalState(void) = 0;

  /* void leaveModalState (); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD LeaveModalState(void) = 0;

  /* [noscript] boolean isInModalState (); */
  NS_IMETHOD IsInModalState(bool *_retval) = 0;

  /* void setDesktopModeViewport (in boolean aDesktopModeViewport); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetDesktopModeViewport(bool aDesktopModeViewport) = 0;

  /* void suspendTimeouts (); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SuspendTimeouts(void) = 0;

  /* void resumeTimeouts (); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD ResumeTimeouts(void) = 0;

  /* readonly attribute AString layerManagerType; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetLayerManagerType(nsAString& aLayerManagerType) = 0;

  /* readonly attribute boolean layerManagerRemote; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetLayerManagerRemote(bool *aLayerManagerRemote) = 0;

  /* readonly attribute boolean usingAdvancedLayers; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetUsingAdvancedLayers(bool *aUsingAdvancedLayers) = 0;

  /* readonly attribute boolean isWebRenderBuilt; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetIsWebRenderBuilt(bool *aIsWebRenderBuilt) = 0;

  /* readonly attribute boolean isWebRenderRequested; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetIsWebRenderRequested(bool *aIsWebRenderRequested) = 0;

  /* readonly attribute AString currentAudioBackend; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetCurrentAudioBackend(nsAString& aCurrentAudioBackend) = 0;

  /* readonly attribute unsigned long currentMaxAudioChannels; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetCurrentMaxAudioChannels(uint32_t *aCurrentMaxAudioChannels) = 0;

  /* readonly attribute unsigned long currentPreferredSampleRate; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetCurrentPreferredSampleRate(uint32_t *aCurrentPreferredSampleRate) = 0;

  enum {
    AUDIO_INPUT = 0U,
    AUDIO_OUTPUT = 1U
  };

  /* nsIArray audioDevices (in unsigned short aSide); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD AudioDevices(uint16_t aSide, nsIArray **_retval) = 0;

  /* void startFrameTimeRecording ([retval] out unsigned long startIndex); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD StartFrameTimeRecording(uint32_t *startIndex) = 0;

  /* void stopFrameTimeRecording (in unsigned long startIndex, [optional] out unsigned long frameCount, [array, size_is (frameCount), retval] out float frameIntervals); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD StopFrameTimeRecording(uint32_t startIndex, uint32_t *frameCount, float **frameIntervals) = 0;

  /* readonly attribute float displayDPI; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetDisplayDPI(float *aDisplayDPI) = 0;

  /* readonly attribute Element containerElement; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetContainerElement(mozilla::dom::Element **aContainerElement) = 0;

  /* [noscript] void RenderDocument (in nsConstRect aRect, in uint32_t aFlags, in nscolor aBackgroundColor, in gfxContext aThebesContext); */
  NS_IMETHOD RenderDocument(const nsRect & aRect, uint32_t aFlags, nscolor aBackgroundColor, gfxContext * aThebesContext) = 0;

  /* void advanceTimeAndRefresh (in long long aMilliseconds); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD AdvanceTimeAndRefresh(int64_t aMilliseconds) = 0;

  /* void restoreNormalRefresh (); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD RestoreNormalRefresh(void) = 0;

  /* readonly attribute bool isTestControllingRefreshes; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetIsTestControllingRefreshes(bool *aIsTestControllingRefreshes) = 0;

  /* readonly attribute bool asyncPanZoomEnabled; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetAsyncPanZoomEnabled(bool *aAsyncPanZoomEnabled) = 0;

  /* void setAsyncScrollOffset (in Element aElement, in float aX, in float aY); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetAsyncScrollOffset(mozilla::dom::Element *aElement, float aX, float aY) = 0;

  /* void setAsyncZoom (in Element aRootElement, in float aValue); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetAsyncZoom(mozilla::dom::Element *aRootElement, float aValue) = 0;

  /* bool flushApzRepaints (); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD FlushApzRepaints(bool *_retval) = 0;

  /* void zoomToFocusedInput (); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD ZoomToFocusedInput(void) = 0;

  /* double computeAnimationDistance (in Element element, in AString property, in AString value1, in AString value2); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD ComputeAnimationDistance(mozilla::dom::Element *element, const nsAString& property, const nsAString& value1, const nsAString& value2, double *_retval) = 0;

  /* AString getUnanimatedComputedStyle (in Element aElement, in AString aPseudoElement, in AString aProperty, in long aFlushType); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetUnanimatedComputedStyle(mozilla::dom::Element *aElement, const nsAString& aPseudoElement, const nsAString& aProperty, int32_t aFlushType, nsAString& _retval) = 0;

  /* readonly attribute AString focusedInputType; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetFocusedInputType(nsAString& aFocusedInputType) = 0;

  /* nsViewID getViewId (in Element aElement); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetViewId(mozilla::dom::Element *aElement, nsViewID *_retval) = 0;

  /* boolean leafLayersPartitionWindow (); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD LeafLayersPartitionWindow(bool *_retval) = 0;

  /* boolean checkAndClearPaintedState (in Element aElement); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD CheckAndClearPaintedState(mozilla::dom::Element *aElement, bool *_retval) = 0;

  /* boolean checkAndClearDisplayListState (in Element aElement); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD CheckAndClearDisplayListState(mozilla::dom::Element *aElement, bool *_retval) = 0;

  /* boolean isPartOfOpaqueLayer (in Element aElement); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD IsPartOfOpaqueLayer(mozilla::dom::Element *aElement, bool *_retval) = 0;

  /* unsigned long numberOfAssignedPaintedLayers ([array, size_is (count)] in Element aElements, in uint32_t count); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD NumberOfAssignedPaintedLayers(mozilla::dom::Element **aElements, uint32_t count, uint32_t *_retval) = 0;

  /* [implicit_jscontext] long long getFileId (in jsval aFile); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetFileId(JS::HandleValue aFile, JSContext* cx, int64_t *_retval) = 0;

  /* [implicit_jscontext] AString getFilePath (in jsval aFile); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetFilePath(JS::HandleValue aFile, JSContext* cx, nsAString& _retval) = 0;

  /* [implicit_jscontext] boolean getFileReferences (in AString aDatabaseName, in long long aId, [optional] in jsval aOptions, [optional] out long aRefCnt, [optional] out long aDBRefCnt, [optional] out long aSliceRefCnt); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetFileReferences(const nsAString& aDatabaseName, int64_t aId, JS::HandleValue aOptions, int32_t *aRefCnt, int32_t *aDBRefCnt, int32_t *aSliceRefCnt, JSContext* cx, bool *_retval) = 0;

  /* void flushPendingFileDeletions (); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD FlushPendingFileDeletions(void) = 0;

  /* [implicit_jscontext] boolean isIncrementalGCEnabled (); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD IsIncrementalGCEnabled(JSContext* cx, bool *_retval) = 0;

  /* [implicit_jscontext] void startPCCountProfiling (); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD StartPCCountProfiling(JSContext* cx) = 0;

  /* [implicit_jscontext] void stopPCCountProfiling (); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD StopPCCountProfiling(JSContext* cx) = 0;

  /* [implicit_jscontext] void purgePCCounts (); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD PurgePCCounts(JSContext* cx) = 0;

  /* [implicit_jscontext] long getPCCountScriptCount (); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetPCCountScriptCount(JSContext* cx, int32_t *_retval) = 0;

  /* [implicit_jscontext] AString getPCCountScriptSummary (in long script); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetPCCountScriptSummary(int32_t script, JSContext* cx, nsAString& _retval) = 0;

  /* [implicit_jscontext] AString getPCCountScriptContents (in long script); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetPCCountScriptContents(int32_t script, JSContext* cx, nsAString& _retval) = 0;

  /* readonly attribute boolean paintingSuppressed; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetPaintingSuppressed(bool *aPaintingSuppressed) = 0;

  /* [implicit_jscontext] readonly attribute jsval plugins; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetPlugins(JSContext* cx, JS::MutableHandleValue aPlugins) = 0;

  /* void setVisualViewportSize (in float aWidth, in float aHeight); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetVisualViewportSize(float aWidth, float aHeight) = 0;

  /* void disableDialogs (); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD DisableDialogs(void) = 0;

  /* void enableDialogs (); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD EnableDialogs(void) = 0;

  /* bool areDialogsEnabled (); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD AreDialogsEnabled(bool *_retval) = 0;

  enum {
    AGENT_SHEET = 0U,
    USER_SHEET = 1U,
    AUTHOR_SHEET = 2U
  };

  /* void loadSheet (in nsIURI sheetURI, in unsigned long type); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD LoadSheet(nsIURI *sheetURI, uint32_t type) = 0;

  /* void loadSheetUsingURIString (in ACString sheetURI, in unsigned long type); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD LoadSheetUsingURIString(const nsACString& sheetURI, uint32_t type) = 0;

  /* void addSheet (in nsIPreloadedStyleSheet sheet, in unsigned long type); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD AddSheet(nsIPreloadedStyleSheet *sheet, uint32_t type) = 0;

  /* void removeSheet (in nsIURI sheetURI, in unsigned long type); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD RemoveSheet(nsIURI *sheetURI, uint32_t type) = 0;

  /* void removeSheetUsingURIString (in ACString sheetURI, in unsigned long type); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD RemoveSheetUsingURIString(const nsACString& sheetURI, uint32_t type) = 0;

  /* readonly attribute boolean isHandlingUserInput; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetIsHandlingUserInput(bool *aIsHandlingUserInput) = 0;

  /* readonly attribute double millisSinceLastUserInput; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetMillisSinceLastUserInput(double *aMillisSinceLastUserInput) = 0;

  /* void allowScriptsToClose (); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD AllowScriptsToClose(void) = 0;

  /* readonly attribute boolean isParentWindowMainWidgetVisible; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetIsParentWindowMainWidgetVisible(bool *aIsParentWindowMainWidgetVisible) = 0;

  /* boolean isNodeDisabledForEvents (in Node aNode); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD IsNodeDisabledForEvents(nsINode *aNode, bool *_retval) = 0;

  /* attribute boolean paintFlashing; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetPaintFlashing(bool *aPaintFlashing) = 0;
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetPaintFlashing(bool aPaintFlashing) = 0;

  /* AString getOMTAStyle (in Element aElement, in AString aProperty, [optional] in AString aPseudoElement); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetOMTAStyle(mozilla::dom::Element *aElement, const nsAString& aProperty, const nsAString& aPseudoElement, nsAString& _retval) = 0;

  /* AString getOMTCTransform (in Element aElement, [optional] in AString aPseudoElement); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetOMTCTransform(mozilla::dom::Element *aElement, const nsAString& aPseudoElement, nsAString& _retval) = 0;

  /* bool isAnimationInPendingTracker (in Animation aAnimation); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD IsAnimationInPendingTracker(mozilla::dom::Animation *aAnimation, bool *_retval) = 0;

  /* nsIJSRAIIHelper setHandlingUserInput (in boolean aHandlingInput); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetHandlingUserInput(bool aHandlingInput, nsIJSRAIIHelper **_retval) = 0;

  /* [implicit_jscontext] jsval getContentAPZTestData (); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetContentAPZTestData(JSContext* cx, JS::MutableHandleValue _retval) = 0;

  /* [implicit_jscontext] jsval getCompositorAPZTestData (); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetCompositorAPZTestData(JSContext* cx, JS::MutableHandleValue _retval) = 0;

  /* void postRestyleSelfEvent (in Element aElement); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD PostRestyleSelfEvent(mozilla::dom::Element *aElement) = 0;

  /* attribute uint32_t mediaSuspend; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetMediaSuspend(uint32_t *aMediaSuspend) = 0;
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetMediaSuspend(uint32_t aMediaSuspend) = 0;

  /* attribute boolean audioMuted; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetAudioMuted(bool *aAudioMuted) = 0;
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetAudioMuted(bool aAudioMuted) = 0;

  /* attribute float audioVolume; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetAudioVolume(float *aAudioVolume) = 0;
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetAudioVolume(float aAudioVolume) = 0;

  /* void xpconnectArgument (in nsIDOMWindowUtils aThis); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD XpconnectArgument(nsIDOMWindowUtils *aThis) = 0;

  /* void askPermission (in nsIContentPermissionRequest aRequest); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD AskPermission(nsIContentPermissionRequest *aRequest) = 0;

  /* readonly attribute unsigned long long restyleGeneration; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetRestyleGeneration(uint64_t *aRestyleGeneration) = 0;

  /* readonly attribute unsigned long long framesConstructed; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetFramesConstructed(uint64_t *aFramesConstructed) = 0;

  /* readonly attribute unsigned long long framesReflowed; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetFramesReflowed(uint64_t *aFramesReflowed) = 0;

  /* void setChromeMargin (in int32_t aTop, in int32_t aRight, in int32_t aBottom, in int32_t aLeft); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetChromeMargin(int32_t aTop, int32_t aRight, int32_t aBottom, int32_t aLeft) = 0;

  /* attribute boolean serviceWorkersTestingEnabled; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetServiceWorkersTestingEnabled(bool *aServiceWorkersTestingEnabled) = 0;
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetServiceWorkersTestingEnabled(bool aServiceWorkersTestingEnabled) = 0;

  /* [implicit_jscontext] jsval getFrameUniformityTestData (); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetFrameUniformityTestData(JSContext* cx, JS::MutableHandleValue _retval) = 0;

  /* void enterChaosMode (); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD EnterChaosMode(void) = 0;

  /* void leaveChaosMode (); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD LeaveChaosMode(void) = 0;

  /* void triggerDeviceReset (); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD TriggerDeviceReset(void) = 0;

  /* bool hasRuleProcessorUsedByMultipleStyleSets (in unsigned long aSheetType); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD HasRuleProcessorUsedByMultipleStyleSets(uint32_t aSheetType, bool *_retval) = 0;

  /* void forceUseCounterFlush (in Node aNode); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD ForceUseCounterFlush(nsINode *aNode) = 0;

  /* void respectDisplayPortSuppression (in boolean aEnabled); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD RespectDisplayPortSuppression(bool aEnabled) = 0;

  /* void forceReflowInterrupt (); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD ForceReflowInterrupt(void) = 0;

  /* void terminateGPUProcess (); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD TerminateGPUProcess(void) = 0;

  /* readonly attribute int32_t gpuProcessPid; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetGpuProcessPid(int32_t *aGpuProcessPid) = 0;

  /* boolean isTimeoutTracking (in unsigned long timeoutId); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD IsTimeoutTracking(uint32_t timeoutId, bool *_retval) = 0;

  /* void addManuallyManagedState (in Element element, in AString state); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD AddManuallyManagedState(mozilla::dom::Element *element, const nsAString& state) = 0;

  /* void removeManuallyManagedState (in Element element, in AString state); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD RemoveManuallyManagedState(mozilla::dom::Element *element, const nsAString& state) = 0;

  /* int64_t getStorageUsage (in nsIDOMStorage aStorage); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetStorageUsage(nsIDOMStorage *aStorage, int64_t *_retval) = 0;

  /* long getDirectionFromText (in AString aString); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetDirectionFromText(const nsAString& aString, int32_t *_retval) = 0;

  /* void ensureDirtyRootFrame (); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD EnsureDirtyRootFrame(void) = 0;

  /* void wrCapture (); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD WrCapture(void) = 0;

  /* attribute ACString systemFont; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetSystemFont(nsACString& aSystemFont) = 0;
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetSystemFont(const nsACString& aSystemFont) = 0;

  enum {
    DEFAULT_MOUSE_POINTER_ID = 0,
    DEFAULT_PEN_POINTER_ID = 1,
    DEFAULT_TOUCH_POINTER_ID = 2,
    MOUSE_BUTTON_LEFT_BUTTON = 0,
    MOUSE_BUTTON_MIDDLE_BUTTON = 1,
    MOUSE_BUTTON_RIGHT_BUTTON = 2,
    MOUSE_BUTTONS_NO_BUTTON = 0,
    MOUSE_BUTTONS_LEFT_BUTTON = 1,
    MOUSE_BUTTONS_RIGHT_BUTTON = 2,
    MOUSE_BUTTONS_MIDDLE_BUTTON = 4,
    MOUSE_BUTTONS_4TH_BUTTON = 8,
    MOUSE_BUTTONS_5TH_BUTTON = 16,
    MOUSE_BUTTONS_NOT_SPECIFIED = -1,
    DIRECTION_LTR = 0,
    DIRECTION_RTL = 1,
    DIRECTION_NOT_SET = 2
  };

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsIDOMWindowUtils, NS_IDOMWINDOWUTILS_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIDOMWINDOWUTILS \
  NS_IMETHOD GetImageAnimationMode(uint16_t *aImageAnimationMode) override; \
  NS_IMETHOD SetImageAnimationMode(uint16_t aImageAnimationMode) override; \
  NS_IMETHOD GetDocCharsetIsForced(bool *aDocCharsetIsForced) override; \
  NS_IMETHOD GetPhysicalMillimeterInCSSPixels(float *aPhysicalMillimeterInCSSPixels) override; \
  NS_IMETHOD GetDocumentMetadata(const nsAString& aName, nsAString& _retval) override; \
  NS_IMETHOD Redraw(uint32_t aCount, uint32_t *_retval) override; \
  NS_IMETHOD UpdateLayerTree(void) override; \
  NS_IMETHOD GetLastTransactionId(uint64_t *aLastTransactionId) override; \
  NS_IMETHOD GetViewportInfo(uint32_t aDisplayWidth, uint32_t aDisplayHeight, double *aDefaultZoom, bool *aAllowZoom, double *aMinZoom, double *aMaxZoom, uint32_t *aWidth, uint32_t *aHeight, bool *aAutoSize) override; \
  NS_IMETHOD GetContentViewerSize(uint32_t *aDisplayWidth, uint32_t *aDisplayHeight) override; \
  NS_IMETHOD SetDisplayPortForElement(float aXPx, float aYPx, float aWidthPx, float aHeightPx, mozilla::dom::Element *aElement, uint32_t aPriority) override; \
  NS_IMETHOD SetDisplayPortMarginsForElement(float aLeftMargin, float aTopMargin, float aRightMargin, float aBottomMargin, mozilla::dom::Element *aElement, uint32_t aPriority) override; \
  NS_IMETHOD SetDisplayPortBaseForElement(int32_t aX, int32_t aY, int32_t aWidth, int32_t aHeight, mozilla::dom::Element *aElement) override; \
  NS_IMETHOD SetResolution(float aResolution) override; \
  NS_IMETHOD GetResolution(float *aResolution) override; \
  NS_IMETHOD SetResolutionAndScaleTo(float aResolution) override; \
  NS_IMETHOD SetRestoreResolution(float aResolution, uint32_t aDisplayWidth, uint32_t aDisplayHeight) override; \
  NS_IMETHOD GetIsResolutionSet(bool *aIsResolutionSet) override; \
  NS_IMETHOD GetIsFirstPaint(bool *aIsFirstPaint) override; \
  NS_IMETHOD SetIsFirstPaint(bool aIsFirstPaint) override; \
  NS_IMETHOD GetPresShellId(uint32_t *_retval) override; \
  NS_IMETHOD SendMouseEvent(const nsAString& aType, float aX, float aY, int32_t aButton, int32_t aClickCount, int32_t aModifiers, bool aIgnoreRootScrollFrame, float aPressure, uint16_t aInputSourceArg, bool aIsDOMEventSynthesized, bool aIsWidgetEventSynthesized, int32_t aButtons, uint32_t aIdentifier, uint8_t _argc, bool *_retval) override; \
  NS_IMETHOD SendTouchEvent(const nsAString& aType, uint32_t *aIdentifiers, int32_t *aXs, int32_t *aYs, uint32_t *aRxs, uint32_t *aRys, float *aRotationAngles, float *aForces, uint32_t count, int32_t aModifiers, bool aIgnoreRootScrollFrame, bool *_retval) override; \
  NS_IMETHOD SendMouseEventToWindow(const nsAString& aType, float aX, float aY, int32_t aButton, int32_t aClickCount, int32_t aModifiers, bool aIgnoreRootScrollFrame, float aPressure, uint16_t aInputSourceArg, bool aIsDOMEventSynthesized, bool aIsWidgetEventSynthesized, int32_t aButtons, uint32_t aIdentifier, uint8_t _argc) override; \
  NS_IMETHOD SendTouchEventToWindow(const nsAString& aType, uint32_t *aIdentifiers, int32_t *aXs, int32_t *aYs, uint32_t *aRxs, uint32_t *aRys, float *aRotationAngles, float *aForces, uint32_t count, int32_t aModifiers, bool aIgnoreRootScrollFrame, bool *_retval) override; \
  NS_IMETHOD SendWheelEvent(float aX, float aY, double aDeltaX, double aDeltaY, double aDeltaZ, uint32_t aDeltaMode, int32_t aModifiers, int32_t aLineOrPageDeltaX, int32_t aLineOrPageDeltaY, uint32_t aOptions) override; \
  NS_IMETHOD SendNativeKeyEvent(int32_t aNativeKeyboardLayout, int32_t aNativeKeyCode, int32_t aModifierFlags, const nsAString& aCharacters, const nsAString& aUnmodifiedCharacters, nsIObserver *aObserver) override; \
  NS_IMETHOD SendNativeMouseEvent(int32_t aScreenX, int32_t aScreenY, int32_t aNativeMessage, int32_t aModifierFlags, mozilla::dom::Element *aElement, nsIObserver *aObserver) override; \
  NS_IMETHOD SendNativeMouseMove(int32_t aScreenX, int32_t aScreenY, mozilla::dom::Element *aElement, nsIObserver *aObserver) override; \
  NS_IMETHOD SuppressAnimation(bool aSuppress) override; \
  NS_IMETHOD SendNativeMouseScrollEvent(int32_t aScreenX, int32_t aScreenY, uint32_t aNativeMessage, double aDeltaX, double aDeltaY, double aDeltaZ, uint32_t aModifierFlags, uint32_t aAdditionalFlags, mozilla::dom::Element *aElement, nsIObserver *aObserver) override; \
  NS_IMETHOD SendNativeTouchPoint(uint32_t aPointerId, uint32_t aTouchState, int32_t aScreenX, int32_t aScreenY, double aPressure, uint32_t aOrientation, nsIObserver *aObserver) override; \
  NS_IMETHOD SendNativeTouchTap(int32_t aScreenX, int32_t aScreenY, bool aLongTap, nsIObserver *aObserver) override; \
  NS_IMETHOD ClearNativeTouchSequence(nsIObserver *aObserver) override; \
  NS_IMETHOD ActivateNativeMenuItemAt(const nsAString& indexString) override; \
  NS_IMETHOD ForceUpdateNativeMenuAt(const nsAString& indexString) override; \
  NS_IMETHOD GetSelectionAsPlaintext(nsAString& _retval) override; \
  NS_IMETHOD GarbageCollect(nsICycleCollectorListener *aListener) override; \
  NS_IMETHOD CycleCollect(nsICycleCollectorListener *aListener) override; \
  NS_IMETHOD RunNextCollectorTimer(void) override; \
  NS_IMETHOD SendSimpleGestureEvent(const nsAString& aType, float aX, float aY, uint32_t aDirection, double aDelta, int32_t aModifiers, uint32_t aClickCount) override; \
  NS_IMETHOD ElementFromPoint(float aX, float aY, bool aIgnoreRootScrollFrame, bool aFlushLayout, mozilla::dom::Element **_retval) override; \
  NS_IMETHOD NodesFromRect(float aX, float aY, float aTopSize, float aRightSize, float aBottomSize, float aLeftSize, bool aIgnoreRootScrollFrame, bool aFlushLayout, nsINodeList **_retval) override; \
  NS_IMETHOD GetTranslationNodes(nsINode *aRoot, nsITranslationNodeList **_retval) override; \
  NS_IMETHOD CompareCanvases(nsISupports *aCanvas1, nsISupports *aCanvas2, uint32_t *aMaxDifference, uint32_t *_retval) override; \
  NS_IMETHOD GetIsMozAfterPaintPending(bool *aIsMozAfterPaintPending) override; \
  NS_IMETHOD SuppressEventHandling(bool aSuppress) override; \
  NS_IMETHOD DisableNonTestMouseEvents(bool aDisable) override; \
  NS_IMETHOD GetScrollXY(bool aFlushLayout, int32_t *aScrollX, int32_t *aScrollY) override; \
  NS_IMETHOD GetScrollXYFloat(bool aFlushLayout, float *aScrollX, float *aScrollY) override; \
  NS_IMETHOD GetScrollbarSize(bool aFlushLayout, int32_t *aWidth, int32_t *aHeight) override; \
  NS_IMETHOD GetBoundsWithoutFlushing(mozilla::dom::Element *aElement, mozilla::dom::DOMRect **_retval) override; \
  NS_IMETHOD NeedsFlush(int32_t aFlushtype, bool *_retval) override; \
  NS_IMETHOD FlushLayoutWithoutThrottledAnimations(void) override; \
  NS_IMETHOD GetRootBounds(mozilla::dom::DOMRect **_retval) override; \
  NS_IMETHOD GetIMEIsOpen(bool *aIMEIsOpen) override; \
  NS_IMETHOD GetIMEStatus(uint32_t *aIMEStatus) override; \
  NS_IMETHOD GetScreenPixelsPerCSSPixel(float *aScreenPixelsPerCSSPixel) override; \
  NS_IMETHOD GetFullZoom(float *aFullZoom) override; \
  NS_IMETHOD DispatchDOMEventViaPresShell(nsINode *aTarget, mozilla::dom::Event *aEvent, bool aTrusted, bool *_retval) override; \
  NS_IMETHOD DispatchEventToChromeOnly(mozilla::dom::EventTarget *aTarget, mozilla::dom::Event *aEvent, bool *_retval) override; \
  NS_IMETHOD GetClassName(JS::HandleValue aObject, JSContext* cx, char * *_retval) override; \
  NS_IMETHOD SendContentCommandEvent(const nsAString& aType, nsITransferable *aTransferable) override; \
  NS_IMETHOD SendQueryContentEvent(uint32_t aType, int64_t aOffset, uint32_t aLength, int32_t aX, int32_t aY, uint32_t aAdditionalFlags, nsIQueryContentEventResult **_retval) override; \
  NS_IMETHOD RemoteFrameFullscreenChanged(mozilla::dom::Element *aFrameElement) override; \
  NS_IMETHOD RemoteFrameFullscreenReverted(void) override; \
  NS_IMETHOD HandleFullscreenRequests(bool *_retval) override; \
  NS_IMETHOD ExitFullscreen(void) override; \
  NS_IMETHOD SendSelectionSetEvent(uint32_t aOffset, uint32_t aLength, uint32_t aAdditionalFlags, bool *_retval) override; \
  NS_IMETHOD SelectAtPoint(float aX, float aY, uint32_t aSelectBehavior, bool *_retval) override; \
  NS_IMETHOD GetVisitedDependentComputedStyle(mozilla::dom::Element *aElement, const nsAString& aPseudoElement, const nsAString& aPropertyName, nsAString& _retval) override; \
  NS_IMETHOD GetOuterWindowID(uint64_t *aOuterWindowID) override; \
  NS_IMETHOD GetCurrentInnerWindowID(uint64_t *aCurrentInnerWindowID) override; \
  NS_IMETHOD EnterModalState(void) override; \
  NS_IMETHOD LeaveModalState(void) override; \
  NS_IMETHOD IsInModalState(bool *_retval) override; \
  NS_IMETHOD SetDesktopModeViewport(bool aDesktopModeViewport) override; \
  NS_IMETHOD SuspendTimeouts(void) override; \
  NS_IMETHOD ResumeTimeouts(void) override; \
  NS_IMETHOD GetLayerManagerType(nsAString& aLayerManagerType) override; \
  NS_IMETHOD GetLayerManagerRemote(bool *aLayerManagerRemote) override; \
  NS_IMETHOD GetUsingAdvancedLayers(bool *aUsingAdvancedLayers) override; \
  NS_IMETHOD GetIsWebRenderBuilt(bool *aIsWebRenderBuilt) override; \
  NS_IMETHOD GetIsWebRenderRequested(bool *aIsWebRenderRequested) override; \
  NS_IMETHOD GetCurrentAudioBackend(nsAString& aCurrentAudioBackend) override; \
  NS_IMETHOD GetCurrentMaxAudioChannels(uint32_t *aCurrentMaxAudioChannels) override; \
  NS_IMETHOD GetCurrentPreferredSampleRate(uint32_t *aCurrentPreferredSampleRate) override; \
  NS_IMETHOD AudioDevices(uint16_t aSide, nsIArray **_retval) override; \
  NS_IMETHOD StartFrameTimeRecording(uint32_t *startIndex) override; \
  NS_IMETHOD StopFrameTimeRecording(uint32_t startIndex, uint32_t *frameCount, float **frameIntervals) override; \
  NS_IMETHOD GetDisplayDPI(float *aDisplayDPI) override; \
  NS_IMETHOD GetContainerElement(mozilla::dom::Element **aContainerElement) override; \
  NS_IMETHOD RenderDocument(const nsRect & aRect, uint32_t aFlags, nscolor aBackgroundColor, gfxContext * aThebesContext) override; \
  NS_IMETHOD AdvanceTimeAndRefresh(int64_t aMilliseconds) override; \
  NS_IMETHOD RestoreNormalRefresh(void) override; \
  NS_IMETHOD GetIsTestControllingRefreshes(bool *aIsTestControllingRefreshes) override; \
  NS_IMETHOD GetAsyncPanZoomEnabled(bool *aAsyncPanZoomEnabled) override; \
  NS_IMETHOD SetAsyncScrollOffset(mozilla::dom::Element *aElement, float aX, float aY) override; \
  NS_IMETHOD SetAsyncZoom(mozilla::dom::Element *aRootElement, float aValue) override; \
  NS_IMETHOD FlushApzRepaints(bool *_retval) override; \
  NS_IMETHOD ZoomToFocusedInput(void) override; \
  NS_IMETHOD ComputeAnimationDistance(mozilla::dom::Element *element, const nsAString& property, const nsAString& value1, const nsAString& value2, double *_retval) override; \
  NS_IMETHOD GetUnanimatedComputedStyle(mozilla::dom::Element *aElement, const nsAString& aPseudoElement, const nsAString& aProperty, int32_t aFlushType, nsAString& _retval) override; \
  NS_IMETHOD GetFocusedInputType(nsAString& aFocusedInputType) override; \
  NS_IMETHOD GetViewId(mozilla::dom::Element *aElement, nsViewID *_retval) override; \
  NS_IMETHOD LeafLayersPartitionWindow(bool *_retval) override; \
  NS_IMETHOD CheckAndClearPaintedState(mozilla::dom::Element *aElement, bool *_retval) override; \
  NS_IMETHOD CheckAndClearDisplayListState(mozilla::dom::Element *aElement, bool *_retval) override; \
  NS_IMETHOD IsPartOfOpaqueLayer(mozilla::dom::Element *aElement, bool *_retval) override; \
  NS_IMETHOD NumberOfAssignedPaintedLayers(mozilla::dom::Element **aElements, uint32_t count, uint32_t *_retval) override; \
  NS_IMETHOD GetFileId(JS::HandleValue aFile, JSContext* cx, int64_t *_retval) override; \
  NS_IMETHOD GetFilePath(JS::HandleValue aFile, JSContext* cx, nsAString& _retval) override; \
  NS_IMETHOD GetFileReferences(const nsAString& aDatabaseName, int64_t aId, JS::HandleValue aOptions, int32_t *aRefCnt, int32_t *aDBRefCnt, int32_t *aSliceRefCnt, JSContext* cx, bool *_retval) override; \
  NS_IMETHOD FlushPendingFileDeletions(void) override; \
  NS_IMETHOD IsIncrementalGCEnabled(JSContext* cx, bool *_retval) override; \
  NS_IMETHOD StartPCCountProfiling(JSContext* cx) override; \
  NS_IMETHOD StopPCCountProfiling(JSContext* cx) override; \
  NS_IMETHOD PurgePCCounts(JSContext* cx) override; \
  NS_IMETHOD GetPCCountScriptCount(JSContext* cx, int32_t *_retval) override; \
  NS_IMETHOD GetPCCountScriptSummary(int32_t script, JSContext* cx, nsAString& _retval) override; \
  NS_IMETHOD GetPCCountScriptContents(int32_t script, JSContext* cx, nsAString& _retval) override; \
  NS_IMETHOD GetPaintingSuppressed(bool *aPaintingSuppressed) override; \
  NS_IMETHOD GetPlugins(JSContext* cx, JS::MutableHandleValue aPlugins) override; \
  NS_IMETHOD SetVisualViewportSize(float aWidth, float aHeight) override; \
  NS_IMETHOD DisableDialogs(void) override; \
  NS_IMETHOD EnableDialogs(void) override; \
  NS_IMETHOD AreDialogsEnabled(bool *_retval) override; \
  NS_IMETHOD LoadSheet(nsIURI *sheetURI, uint32_t type) override; \
  NS_IMETHOD LoadSheetUsingURIString(const nsACString& sheetURI, uint32_t type) override; \
  NS_IMETHOD AddSheet(nsIPreloadedStyleSheet *sheet, uint32_t type) override; \
  NS_IMETHOD RemoveSheet(nsIURI *sheetURI, uint32_t type) override; \
  NS_IMETHOD RemoveSheetUsingURIString(const nsACString& sheetURI, uint32_t type) override; \
  NS_IMETHOD GetIsHandlingUserInput(bool *aIsHandlingUserInput) override; \
  NS_IMETHOD GetMillisSinceLastUserInput(double *aMillisSinceLastUserInput) override; \
  NS_IMETHOD AllowScriptsToClose(void) override; \
  NS_IMETHOD GetIsParentWindowMainWidgetVisible(bool *aIsParentWindowMainWidgetVisible) override; \
  NS_IMETHOD IsNodeDisabledForEvents(nsINode *aNode, bool *_retval) override; \
  NS_IMETHOD GetPaintFlashing(bool *aPaintFlashing) override; \
  NS_IMETHOD SetPaintFlashing(bool aPaintFlashing) override; \
  NS_IMETHOD GetOMTAStyle(mozilla::dom::Element *aElement, const nsAString& aProperty, const nsAString& aPseudoElement, nsAString& _retval) override; \
  NS_IMETHOD GetOMTCTransform(mozilla::dom::Element *aElement, const nsAString& aPseudoElement, nsAString& _retval) override; \
  NS_IMETHOD IsAnimationInPendingTracker(mozilla::dom::Animation *aAnimation, bool *_retval) override; \
  NS_IMETHOD SetHandlingUserInput(bool aHandlingInput, nsIJSRAIIHelper **_retval) override; \
  NS_IMETHOD GetContentAPZTestData(JSContext* cx, JS::MutableHandleValue _retval) override; \
  NS_IMETHOD GetCompositorAPZTestData(JSContext* cx, JS::MutableHandleValue _retval) override; \
  NS_IMETHOD PostRestyleSelfEvent(mozilla::dom::Element *aElement) override; \
  NS_IMETHOD GetMediaSuspend(uint32_t *aMediaSuspend) override; \
  NS_IMETHOD SetMediaSuspend(uint32_t aMediaSuspend) override; \
  NS_IMETHOD GetAudioMuted(bool *aAudioMuted) override; \
  NS_IMETHOD SetAudioMuted(bool aAudioMuted) override; \
  NS_IMETHOD GetAudioVolume(float *aAudioVolume) override; \
  NS_IMETHOD SetAudioVolume(float aAudioVolume) override; \
  NS_IMETHOD XpconnectArgument(nsIDOMWindowUtils *aThis) override; \
  NS_IMETHOD AskPermission(nsIContentPermissionRequest *aRequest) override; \
  NS_IMETHOD GetRestyleGeneration(uint64_t *aRestyleGeneration) override; \
  NS_IMETHOD GetFramesConstructed(uint64_t *aFramesConstructed) override; \
  NS_IMETHOD GetFramesReflowed(uint64_t *aFramesReflowed) override; \
  NS_IMETHOD SetChromeMargin(int32_t aTop, int32_t aRight, int32_t aBottom, int32_t aLeft) override; \
  NS_IMETHOD GetServiceWorkersTestingEnabled(bool *aServiceWorkersTestingEnabled) override; \
  NS_IMETHOD SetServiceWorkersTestingEnabled(bool aServiceWorkersTestingEnabled) override; \
  NS_IMETHOD GetFrameUniformityTestData(JSContext* cx, JS::MutableHandleValue _retval) override; \
  NS_IMETHOD EnterChaosMode(void) override; \
  NS_IMETHOD LeaveChaosMode(void) override; \
  NS_IMETHOD TriggerDeviceReset(void) override; \
  NS_IMETHOD HasRuleProcessorUsedByMultipleStyleSets(uint32_t aSheetType, bool *_retval) override; \
  NS_IMETHOD ForceUseCounterFlush(nsINode *aNode) override; \
  NS_IMETHOD RespectDisplayPortSuppression(bool aEnabled) override; \
  NS_IMETHOD ForceReflowInterrupt(void) override; \
  NS_IMETHOD TerminateGPUProcess(void) override; \
  NS_IMETHOD GetGpuProcessPid(int32_t *aGpuProcessPid) override; \
  NS_IMETHOD IsTimeoutTracking(uint32_t timeoutId, bool *_retval) override; \
  NS_IMETHOD AddManuallyManagedState(mozilla::dom::Element *element, const nsAString& state) override; \
  NS_IMETHOD RemoveManuallyManagedState(mozilla::dom::Element *element, const nsAString& state) override; \
  NS_IMETHOD GetStorageUsage(nsIDOMStorage *aStorage, int64_t *_retval) override; \
  NS_IMETHOD GetDirectionFromText(const nsAString& aString, int32_t *_retval) override; \
  NS_IMETHOD EnsureDirtyRootFrame(void) override; \
  NS_IMETHOD WrCapture(void) override; \
  NS_IMETHOD GetSystemFont(nsACString& aSystemFont) override; \
  NS_IMETHOD SetSystemFont(const nsACString& aSystemFont) override; \

/* Use this macro when declaring the members of this interface when the
   class doesn't implement the interface. This is useful for forwarding. */
#define NS_DECL_NON_VIRTUAL_NSIDOMWINDOWUTILS \
  nsresult GetImageAnimationMode(uint16_t *aImageAnimationMode); \
  nsresult SetImageAnimationMode(uint16_t aImageAnimationMode); \
  nsresult GetDocCharsetIsForced(bool *aDocCharsetIsForced); \
  nsresult GetPhysicalMillimeterInCSSPixels(float *aPhysicalMillimeterInCSSPixels); \
  nsresult GetDocumentMetadata(const nsAString& aName, nsAString& _retval); \
  nsresult Redraw(uint32_t aCount, uint32_t *_retval); \
  nsresult UpdateLayerTree(void); \
  nsresult GetLastTransactionId(uint64_t *aLastTransactionId); \
  nsresult GetViewportInfo(uint32_t aDisplayWidth, uint32_t aDisplayHeight, double *aDefaultZoom, bool *aAllowZoom, double *aMinZoom, double *aMaxZoom, uint32_t *aWidth, uint32_t *aHeight, bool *aAutoSize); \
  nsresult GetContentViewerSize(uint32_t *aDisplayWidth, uint32_t *aDisplayHeight); \
  nsresult SetDisplayPortForElement(float aXPx, float aYPx, float aWidthPx, float aHeightPx, mozilla::dom::Element *aElement, uint32_t aPriority); \
  nsresult SetDisplayPortMarginsForElement(float aLeftMargin, float aTopMargin, float aRightMargin, float aBottomMargin, mozilla::dom::Element *aElement, uint32_t aPriority); \
  nsresult SetDisplayPortBaseForElement(int32_t aX, int32_t aY, int32_t aWidth, int32_t aHeight, mozilla::dom::Element *aElement); \
  nsresult SetResolution(float aResolution); \
  nsresult GetResolution(float *aResolution); \
  nsresult SetResolutionAndScaleTo(float aResolution); \
  nsresult SetRestoreResolution(float aResolution, uint32_t aDisplayWidth, uint32_t aDisplayHeight); \
  nsresult GetIsResolutionSet(bool *aIsResolutionSet); \
  nsresult GetIsFirstPaint(bool *aIsFirstPaint); \
  nsresult SetIsFirstPaint(bool aIsFirstPaint); \
  nsresult GetPresShellId(uint32_t *_retval); \
  nsresult SendMouseEvent(const nsAString& aType, float aX, float aY, int32_t aButton, int32_t aClickCount, int32_t aModifiers, bool aIgnoreRootScrollFrame, float aPressure, uint16_t aInputSourceArg, bool aIsDOMEventSynthesized, bool aIsWidgetEventSynthesized, int32_t aButtons, uint32_t aIdentifier, uint8_t _argc, bool *_retval); \
  nsresult SendTouchEvent(const nsAString& aType, uint32_t *aIdentifiers, int32_t *aXs, int32_t *aYs, uint32_t *aRxs, uint32_t *aRys, float *aRotationAngles, float *aForces, uint32_t count, int32_t aModifiers, bool aIgnoreRootScrollFrame, bool *_retval); \
  nsresult SendMouseEventToWindow(const nsAString& aType, float aX, float aY, int32_t aButton, int32_t aClickCount, int32_t aModifiers, bool aIgnoreRootScrollFrame, float aPressure, uint16_t aInputSourceArg, bool aIsDOMEventSynthesized, bool aIsWidgetEventSynthesized, int32_t aButtons, uint32_t aIdentifier, uint8_t _argc); \
  nsresult SendTouchEventToWindow(const nsAString& aType, uint32_t *aIdentifiers, int32_t *aXs, int32_t *aYs, uint32_t *aRxs, uint32_t *aRys, float *aRotationAngles, float *aForces, uint32_t count, int32_t aModifiers, bool aIgnoreRootScrollFrame, bool *_retval); \
  nsresult SendWheelEvent(float aX, float aY, double aDeltaX, double aDeltaY, double aDeltaZ, uint32_t aDeltaMode, int32_t aModifiers, int32_t aLineOrPageDeltaX, int32_t aLineOrPageDeltaY, uint32_t aOptions); \
  nsresult SendNativeKeyEvent(int32_t aNativeKeyboardLayout, int32_t aNativeKeyCode, int32_t aModifierFlags, const nsAString& aCharacters, const nsAString& aUnmodifiedCharacters, nsIObserver *aObserver); \
  nsresult SendNativeMouseEvent(int32_t aScreenX, int32_t aScreenY, int32_t aNativeMessage, int32_t aModifierFlags, mozilla::dom::Element *aElement, nsIObserver *aObserver); \
  nsresult SendNativeMouseMove(int32_t aScreenX, int32_t aScreenY, mozilla::dom::Element *aElement, nsIObserver *aObserver); \
  nsresult SuppressAnimation(bool aSuppress); \
  nsresult SendNativeMouseScrollEvent(int32_t aScreenX, int32_t aScreenY, uint32_t aNativeMessage, double aDeltaX, double aDeltaY, double aDeltaZ, uint32_t aModifierFlags, uint32_t aAdditionalFlags, mozilla::dom::Element *aElement, nsIObserver *aObserver); \
  nsresult SendNativeTouchPoint(uint32_t aPointerId, uint32_t aTouchState, int32_t aScreenX, int32_t aScreenY, double aPressure, uint32_t aOrientation, nsIObserver *aObserver); \
  nsresult SendNativeTouchTap(int32_t aScreenX, int32_t aScreenY, bool aLongTap, nsIObserver *aObserver); \
  nsresult ClearNativeTouchSequence(nsIObserver *aObserver); \
  nsresult ActivateNativeMenuItemAt(const nsAString& indexString); \
  nsresult ForceUpdateNativeMenuAt(const nsAString& indexString); \
  nsresult GetSelectionAsPlaintext(nsAString& _retval); \
  nsresult GarbageCollect(nsICycleCollectorListener *aListener); \
  nsresult CycleCollect(nsICycleCollectorListener *aListener); \
  nsresult RunNextCollectorTimer(void); \
  nsresult SendSimpleGestureEvent(const nsAString& aType, float aX, float aY, uint32_t aDirection, double aDelta, int32_t aModifiers, uint32_t aClickCount); \
  nsresult ElementFromPoint(float aX, float aY, bool aIgnoreRootScrollFrame, bool aFlushLayout, mozilla::dom::Element **_retval); \
  nsresult NodesFromRect(float aX, float aY, float aTopSize, float aRightSize, float aBottomSize, float aLeftSize, bool aIgnoreRootScrollFrame, bool aFlushLayout, nsINodeList **_retval); \
  nsresult GetTranslationNodes(nsINode *aRoot, nsITranslationNodeList **_retval); \
  nsresult CompareCanvases(nsISupports *aCanvas1, nsISupports *aCanvas2, uint32_t *aMaxDifference, uint32_t *_retval); \
  nsresult GetIsMozAfterPaintPending(bool *aIsMozAfterPaintPending); \
  nsresult SuppressEventHandling(bool aSuppress); \
  nsresult DisableNonTestMouseEvents(bool aDisable); \
  nsresult GetScrollXY(bool aFlushLayout, int32_t *aScrollX, int32_t *aScrollY); \
  nsresult GetScrollXYFloat(bool aFlushLayout, float *aScrollX, float *aScrollY); \
  nsresult GetScrollbarSize(bool aFlushLayout, int32_t *aWidth, int32_t *aHeight); \
  nsresult GetBoundsWithoutFlushing(mozilla::dom::Element *aElement, mozilla::dom::DOMRect **_retval); \
  nsresult NeedsFlush(int32_t aFlushtype, bool *_retval); \
  nsresult FlushLayoutWithoutThrottledAnimations(void); \
  nsresult GetRootBounds(mozilla::dom::DOMRect **_retval); \
  nsresult GetIMEIsOpen(bool *aIMEIsOpen); \
  nsresult GetIMEStatus(uint32_t *aIMEStatus); \
  nsresult GetScreenPixelsPerCSSPixel(float *aScreenPixelsPerCSSPixel); \
  nsresult GetFullZoom(float *aFullZoom); \
  nsresult DispatchDOMEventViaPresShell(nsINode *aTarget, mozilla::dom::Event *aEvent, bool aTrusted, bool *_retval); \
  nsresult DispatchEventToChromeOnly(mozilla::dom::EventTarget *aTarget, mozilla::dom::Event *aEvent, bool *_retval); \
  nsresult GetClassName(JS::HandleValue aObject, JSContext* cx, char * *_retval); \
  nsresult SendContentCommandEvent(const nsAString& aType, nsITransferable *aTransferable); \
  nsresult SendQueryContentEvent(uint32_t aType, int64_t aOffset, uint32_t aLength, int32_t aX, int32_t aY, uint32_t aAdditionalFlags, nsIQueryContentEventResult **_retval); \
  nsresult RemoteFrameFullscreenChanged(mozilla::dom::Element *aFrameElement); \
  nsresult RemoteFrameFullscreenReverted(void); \
  nsresult HandleFullscreenRequests(bool *_retval); \
  nsresult ExitFullscreen(void); \
  nsresult SendSelectionSetEvent(uint32_t aOffset, uint32_t aLength, uint32_t aAdditionalFlags, bool *_retval); \
  nsresult SelectAtPoint(float aX, float aY, uint32_t aSelectBehavior, bool *_retval); \
  nsresult GetVisitedDependentComputedStyle(mozilla::dom::Element *aElement, const nsAString& aPseudoElement, const nsAString& aPropertyName, nsAString& _retval); \
  nsresult GetOuterWindowID(uint64_t *aOuterWindowID); \
  nsresult GetCurrentInnerWindowID(uint64_t *aCurrentInnerWindowID); \
  nsresult EnterModalState(void); \
  nsresult LeaveModalState(void); \
  nsresult IsInModalState(bool *_retval); \
  nsresult SetDesktopModeViewport(bool aDesktopModeViewport); \
  nsresult SuspendTimeouts(void); \
  nsresult ResumeTimeouts(void); \
  nsresult GetLayerManagerType(nsAString& aLayerManagerType); \
  nsresult GetLayerManagerRemote(bool *aLayerManagerRemote); \
  nsresult GetUsingAdvancedLayers(bool *aUsingAdvancedLayers); \
  nsresult GetIsWebRenderBuilt(bool *aIsWebRenderBuilt); \
  nsresult GetIsWebRenderRequested(bool *aIsWebRenderRequested); \
  nsresult GetCurrentAudioBackend(nsAString& aCurrentAudioBackend); \
  nsresult GetCurrentMaxAudioChannels(uint32_t *aCurrentMaxAudioChannels); \
  nsresult GetCurrentPreferredSampleRate(uint32_t *aCurrentPreferredSampleRate); \
  nsresult AudioDevices(uint16_t aSide, nsIArray **_retval); \
  nsresult StartFrameTimeRecording(uint32_t *startIndex); \
  nsresult StopFrameTimeRecording(uint32_t startIndex, uint32_t *frameCount, float **frameIntervals); \
  nsresult GetDisplayDPI(float *aDisplayDPI); \
  nsresult GetContainerElement(mozilla::dom::Element **aContainerElement); \
  nsresult RenderDocument(const nsRect & aRect, uint32_t aFlags, nscolor aBackgroundColor, gfxContext * aThebesContext); \
  nsresult AdvanceTimeAndRefresh(int64_t aMilliseconds); \
  nsresult RestoreNormalRefresh(void); \
  nsresult GetIsTestControllingRefreshes(bool *aIsTestControllingRefreshes); \
  nsresult GetAsyncPanZoomEnabled(bool *aAsyncPanZoomEnabled); \
  nsresult SetAsyncScrollOffset(mozilla::dom::Element *aElement, float aX, float aY); \
  nsresult SetAsyncZoom(mozilla::dom::Element *aRootElement, float aValue); \
  nsresult FlushApzRepaints(bool *_retval); \
  nsresult ZoomToFocusedInput(void); \
  nsresult ComputeAnimationDistance(mozilla::dom::Element *element, const nsAString& property, const nsAString& value1, const nsAString& value2, double *_retval); \
  nsresult GetUnanimatedComputedStyle(mozilla::dom::Element *aElement, const nsAString& aPseudoElement, const nsAString& aProperty, int32_t aFlushType, nsAString& _retval); \
  nsresult GetFocusedInputType(nsAString& aFocusedInputType); \
  nsresult GetViewId(mozilla::dom::Element *aElement, nsViewID *_retval); \
  nsresult LeafLayersPartitionWindow(bool *_retval); \
  nsresult CheckAndClearPaintedState(mozilla::dom::Element *aElement, bool *_retval); \
  nsresult CheckAndClearDisplayListState(mozilla::dom::Element *aElement, bool *_retval); \
  nsresult IsPartOfOpaqueLayer(mozilla::dom::Element *aElement, bool *_retval); \
  nsresult NumberOfAssignedPaintedLayers(mozilla::dom::Element **aElements, uint32_t count, uint32_t *_retval); \
  nsresult GetFileId(JS::HandleValue aFile, JSContext* cx, int64_t *_retval); \
  nsresult GetFilePath(JS::HandleValue aFile, JSContext* cx, nsAString& _retval); \
  nsresult GetFileReferences(const nsAString& aDatabaseName, int64_t aId, JS::HandleValue aOptions, int32_t *aRefCnt, int32_t *aDBRefCnt, int32_t *aSliceRefCnt, JSContext* cx, bool *_retval); \
  nsresult FlushPendingFileDeletions(void); \
  nsresult IsIncrementalGCEnabled(JSContext* cx, bool *_retval); \
  nsresult StartPCCountProfiling(JSContext* cx); \
  nsresult StopPCCountProfiling(JSContext* cx); \
  nsresult PurgePCCounts(JSContext* cx); \
  nsresult GetPCCountScriptCount(JSContext* cx, int32_t *_retval); \
  nsresult GetPCCountScriptSummary(int32_t script, JSContext* cx, nsAString& _retval); \
  nsresult GetPCCountScriptContents(int32_t script, JSContext* cx, nsAString& _retval); \
  nsresult GetPaintingSuppressed(bool *aPaintingSuppressed); \
  nsresult GetPlugins(JSContext* cx, JS::MutableHandleValue aPlugins); \
  nsresult SetVisualViewportSize(float aWidth, float aHeight); \
  nsresult DisableDialogs(void); \
  nsresult EnableDialogs(void); \
  nsresult AreDialogsEnabled(bool *_retval); \
  nsresult LoadSheet(nsIURI *sheetURI, uint32_t type); \
  nsresult LoadSheetUsingURIString(const nsACString& sheetURI, uint32_t type); \
  nsresult AddSheet(nsIPreloadedStyleSheet *sheet, uint32_t type); \
  nsresult RemoveSheet(nsIURI *sheetURI, uint32_t type); \
  nsresult RemoveSheetUsingURIString(const nsACString& sheetURI, uint32_t type); \
  nsresult GetIsHandlingUserInput(bool *aIsHandlingUserInput); \
  nsresult GetMillisSinceLastUserInput(double *aMillisSinceLastUserInput); \
  nsresult AllowScriptsToClose(void); \
  nsresult GetIsParentWindowMainWidgetVisible(bool *aIsParentWindowMainWidgetVisible); \
  nsresult IsNodeDisabledForEvents(nsINode *aNode, bool *_retval); \
  nsresult GetPaintFlashing(bool *aPaintFlashing); \
  nsresult SetPaintFlashing(bool aPaintFlashing); \
  nsresult GetOMTAStyle(mozilla::dom::Element *aElement, const nsAString& aProperty, const nsAString& aPseudoElement, nsAString& _retval); \
  nsresult GetOMTCTransform(mozilla::dom::Element *aElement, const nsAString& aPseudoElement, nsAString& _retval); \
  nsresult IsAnimationInPendingTracker(mozilla::dom::Animation *aAnimation, bool *_retval); \
  nsresult SetHandlingUserInput(bool aHandlingInput, nsIJSRAIIHelper **_retval); \
  nsresult GetContentAPZTestData(JSContext* cx, JS::MutableHandleValue _retval); \
  nsresult GetCompositorAPZTestData(JSContext* cx, JS::MutableHandleValue _retval); \
  nsresult PostRestyleSelfEvent(mozilla::dom::Element *aElement); \
  nsresult GetMediaSuspend(uint32_t *aMediaSuspend); \
  nsresult SetMediaSuspend(uint32_t aMediaSuspend); \
  nsresult GetAudioMuted(bool *aAudioMuted); \
  nsresult SetAudioMuted(bool aAudioMuted); \
  nsresult GetAudioVolume(float *aAudioVolume); \
  nsresult SetAudioVolume(float aAudioVolume); \
  nsresult XpconnectArgument(nsIDOMWindowUtils *aThis); \
  nsresult AskPermission(nsIContentPermissionRequest *aRequest); \
  nsresult GetRestyleGeneration(uint64_t *aRestyleGeneration); \
  nsresult GetFramesConstructed(uint64_t *aFramesConstructed); \
  nsresult GetFramesReflowed(uint64_t *aFramesReflowed); \
  nsresult SetChromeMargin(int32_t aTop, int32_t aRight, int32_t aBottom, int32_t aLeft); \
  nsresult GetServiceWorkersTestingEnabled(bool *aServiceWorkersTestingEnabled); \
  nsresult SetServiceWorkersTestingEnabled(bool aServiceWorkersTestingEnabled); \
  nsresult GetFrameUniformityTestData(JSContext* cx, JS::MutableHandleValue _retval); \
  nsresult EnterChaosMode(void); \
  nsresult LeaveChaosMode(void); \
  nsresult TriggerDeviceReset(void); \
  nsresult HasRuleProcessorUsedByMultipleStyleSets(uint32_t aSheetType, bool *_retval); \
  nsresult ForceUseCounterFlush(nsINode *aNode); \
  nsresult RespectDisplayPortSuppression(bool aEnabled); \
  nsresult ForceReflowInterrupt(void); \
  nsresult TerminateGPUProcess(void); \
  nsresult GetGpuProcessPid(int32_t *aGpuProcessPid); \
  nsresult IsTimeoutTracking(uint32_t timeoutId, bool *_retval); \
  nsresult AddManuallyManagedState(mozilla::dom::Element *element, const nsAString& state); \
  nsresult RemoveManuallyManagedState(mozilla::dom::Element *element, const nsAString& state); \
  nsresult GetStorageUsage(nsIDOMStorage *aStorage, int64_t *_retval); \
  nsresult GetDirectionFromText(const nsAString& aString, int32_t *_retval); \
  nsresult EnsureDirtyRootFrame(void); \
  nsresult WrCapture(void); \
  nsresult GetSystemFont(nsACString& aSystemFont); \
  nsresult SetSystemFont(const nsACString& aSystemFont); \

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIDOMWINDOWUTILS(_to) \
  NS_IMETHOD GetImageAnimationMode(uint16_t *aImageAnimationMode) override { return _to GetImageAnimationMode(aImageAnimationMode); } \
  NS_IMETHOD SetImageAnimationMode(uint16_t aImageAnimationMode) override { return _to SetImageAnimationMode(aImageAnimationMode); } \
  NS_IMETHOD GetDocCharsetIsForced(bool *aDocCharsetIsForced) override { return _to GetDocCharsetIsForced(aDocCharsetIsForced); } \
  NS_IMETHOD GetPhysicalMillimeterInCSSPixels(float *aPhysicalMillimeterInCSSPixels) override { return _to GetPhysicalMillimeterInCSSPixels(aPhysicalMillimeterInCSSPixels); } \
  NS_IMETHOD GetDocumentMetadata(const nsAString& aName, nsAString& _retval) override { return _to GetDocumentMetadata(aName, _retval); } \
  NS_IMETHOD Redraw(uint32_t aCount, uint32_t *_retval) override { return _to Redraw(aCount, _retval); } \
  NS_IMETHOD UpdateLayerTree(void) override { return _to UpdateLayerTree(); } \
  NS_IMETHOD GetLastTransactionId(uint64_t *aLastTransactionId) override { return _to GetLastTransactionId(aLastTransactionId); } \
  NS_IMETHOD GetViewportInfo(uint32_t aDisplayWidth, uint32_t aDisplayHeight, double *aDefaultZoom, bool *aAllowZoom, double *aMinZoom, double *aMaxZoom, uint32_t *aWidth, uint32_t *aHeight, bool *aAutoSize) override { return _to GetViewportInfo(aDisplayWidth, aDisplayHeight, aDefaultZoom, aAllowZoom, aMinZoom, aMaxZoom, aWidth, aHeight, aAutoSize); } \
  NS_IMETHOD GetContentViewerSize(uint32_t *aDisplayWidth, uint32_t *aDisplayHeight) override { return _to GetContentViewerSize(aDisplayWidth, aDisplayHeight); } \
  NS_IMETHOD SetDisplayPortForElement(float aXPx, float aYPx, float aWidthPx, float aHeightPx, mozilla::dom::Element *aElement, uint32_t aPriority) override { return _to SetDisplayPortForElement(aXPx, aYPx, aWidthPx, aHeightPx, aElement, aPriority); } \
  NS_IMETHOD SetDisplayPortMarginsForElement(float aLeftMargin, float aTopMargin, float aRightMargin, float aBottomMargin, mozilla::dom::Element *aElement, uint32_t aPriority) override { return _to SetDisplayPortMarginsForElement(aLeftMargin, aTopMargin, aRightMargin, aBottomMargin, aElement, aPriority); } \
  NS_IMETHOD SetDisplayPortBaseForElement(int32_t aX, int32_t aY, int32_t aWidth, int32_t aHeight, mozilla::dom::Element *aElement) override { return _to SetDisplayPortBaseForElement(aX, aY, aWidth, aHeight, aElement); } \
  NS_IMETHOD SetResolution(float aResolution) override { return _to SetResolution(aResolution); } \
  NS_IMETHOD GetResolution(float *aResolution) override { return _to GetResolution(aResolution); } \
  NS_IMETHOD SetResolutionAndScaleTo(float aResolution) override { return _to SetResolutionAndScaleTo(aResolution); } \
  NS_IMETHOD SetRestoreResolution(float aResolution, uint32_t aDisplayWidth, uint32_t aDisplayHeight) override { return _to SetRestoreResolution(aResolution, aDisplayWidth, aDisplayHeight); } \
  NS_IMETHOD GetIsResolutionSet(bool *aIsResolutionSet) override { return _to GetIsResolutionSet(aIsResolutionSet); } \
  NS_IMETHOD GetIsFirstPaint(bool *aIsFirstPaint) override { return _to GetIsFirstPaint(aIsFirstPaint); } \
  NS_IMETHOD SetIsFirstPaint(bool aIsFirstPaint) override { return _to SetIsFirstPaint(aIsFirstPaint); } \
  NS_IMETHOD GetPresShellId(uint32_t *_retval) override { return _to GetPresShellId(_retval); } \
  NS_IMETHOD SendMouseEvent(const nsAString& aType, float aX, float aY, int32_t aButton, int32_t aClickCount, int32_t aModifiers, bool aIgnoreRootScrollFrame, float aPressure, uint16_t aInputSourceArg, bool aIsDOMEventSynthesized, bool aIsWidgetEventSynthesized, int32_t aButtons, uint32_t aIdentifier, uint8_t _argc, bool *_retval) override { return _to SendMouseEvent(aType, aX, aY, aButton, aClickCount, aModifiers, aIgnoreRootScrollFrame, aPressure, aInputSourceArg, aIsDOMEventSynthesized, aIsWidgetEventSynthesized, aButtons, aIdentifier, _argc, _retval); } \
  NS_IMETHOD SendTouchEvent(const nsAString& aType, uint32_t *aIdentifiers, int32_t *aXs, int32_t *aYs, uint32_t *aRxs, uint32_t *aRys, float *aRotationAngles, float *aForces, uint32_t count, int32_t aModifiers, bool aIgnoreRootScrollFrame, bool *_retval) override { return _to SendTouchEvent(aType, aIdentifiers, aXs, aYs, aRxs, aRys, aRotationAngles, aForces, count, aModifiers, aIgnoreRootScrollFrame, _retval); } \
  NS_IMETHOD SendMouseEventToWindow(const nsAString& aType, float aX, float aY, int32_t aButton, int32_t aClickCount, int32_t aModifiers, bool aIgnoreRootScrollFrame, float aPressure, uint16_t aInputSourceArg, bool aIsDOMEventSynthesized, bool aIsWidgetEventSynthesized, int32_t aButtons, uint32_t aIdentifier, uint8_t _argc) override { return _to SendMouseEventToWindow(aType, aX, aY, aButton, aClickCount, aModifiers, aIgnoreRootScrollFrame, aPressure, aInputSourceArg, aIsDOMEventSynthesized, aIsWidgetEventSynthesized, aButtons, aIdentifier, _argc); } \
  NS_IMETHOD SendTouchEventToWindow(const nsAString& aType, uint32_t *aIdentifiers, int32_t *aXs, int32_t *aYs, uint32_t *aRxs, uint32_t *aRys, float *aRotationAngles, float *aForces, uint32_t count, int32_t aModifiers, bool aIgnoreRootScrollFrame, bool *_retval) override { return _to SendTouchEventToWindow(aType, aIdentifiers, aXs, aYs, aRxs, aRys, aRotationAngles, aForces, count, aModifiers, aIgnoreRootScrollFrame, _retval); } \
  NS_IMETHOD SendWheelEvent(float aX, float aY, double aDeltaX, double aDeltaY, double aDeltaZ, uint32_t aDeltaMode, int32_t aModifiers, int32_t aLineOrPageDeltaX, int32_t aLineOrPageDeltaY, uint32_t aOptions) override { return _to SendWheelEvent(aX, aY, aDeltaX, aDeltaY, aDeltaZ, aDeltaMode, aModifiers, aLineOrPageDeltaX, aLineOrPageDeltaY, aOptions); } \
  NS_IMETHOD SendNativeKeyEvent(int32_t aNativeKeyboardLayout, int32_t aNativeKeyCode, int32_t aModifierFlags, const nsAString& aCharacters, const nsAString& aUnmodifiedCharacters, nsIObserver *aObserver) override { return _to SendNativeKeyEvent(aNativeKeyboardLayout, aNativeKeyCode, aModifierFlags, aCharacters, aUnmodifiedCharacters, aObserver); } \
  NS_IMETHOD SendNativeMouseEvent(int32_t aScreenX, int32_t aScreenY, int32_t aNativeMessage, int32_t aModifierFlags, mozilla::dom::Element *aElement, nsIObserver *aObserver) override { return _to SendNativeMouseEvent(aScreenX, aScreenY, aNativeMessage, aModifierFlags, aElement, aObserver); } \
  NS_IMETHOD SendNativeMouseMove(int32_t aScreenX, int32_t aScreenY, mozilla::dom::Element *aElement, nsIObserver *aObserver) override { return _to SendNativeMouseMove(aScreenX, aScreenY, aElement, aObserver); } \
  NS_IMETHOD SuppressAnimation(bool aSuppress) override { return _to SuppressAnimation(aSuppress); } \
  NS_IMETHOD SendNativeMouseScrollEvent(int32_t aScreenX, int32_t aScreenY, uint32_t aNativeMessage, double aDeltaX, double aDeltaY, double aDeltaZ, uint32_t aModifierFlags, uint32_t aAdditionalFlags, mozilla::dom::Element *aElement, nsIObserver *aObserver) override { return _to SendNativeMouseScrollEvent(aScreenX, aScreenY, aNativeMessage, aDeltaX, aDeltaY, aDeltaZ, aModifierFlags, aAdditionalFlags, aElement, aObserver); } \
  NS_IMETHOD SendNativeTouchPoint(uint32_t aPointerId, uint32_t aTouchState, int32_t aScreenX, int32_t aScreenY, double aPressure, uint32_t aOrientation, nsIObserver *aObserver) override { return _to SendNativeTouchPoint(aPointerId, aTouchState, aScreenX, aScreenY, aPressure, aOrientation, aObserver); } \
  NS_IMETHOD SendNativeTouchTap(int32_t aScreenX, int32_t aScreenY, bool aLongTap, nsIObserver *aObserver) override { return _to SendNativeTouchTap(aScreenX, aScreenY, aLongTap, aObserver); } \
  NS_IMETHOD ClearNativeTouchSequence(nsIObserver *aObserver) override { return _to ClearNativeTouchSequence(aObserver); } \
  NS_IMETHOD ActivateNativeMenuItemAt(const nsAString& indexString) override { return _to ActivateNativeMenuItemAt(indexString); } \
  NS_IMETHOD ForceUpdateNativeMenuAt(const nsAString& indexString) override { return _to ForceUpdateNativeMenuAt(indexString); } \
  NS_IMETHOD GetSelectionAsPlaintext(nsAString& _retval) override { return _to GetSelectionAsPlaintext(_retval); } \
  NS_IMETHOD GarbageCollect(nsICycleCollectorListener *aListener) override { return _to GarbageCollect(aListener); } \
  NS_IMETHOD CycleCollect(nsICycleCollectorListener *aListener) override { return _to CycleCollect(aListener); } \
  NS_IMETHOD RunNextCollectorTimer(void) override { return _to RunNextCollectorTimer(); } \
  NS_IMETHOD SendSimpleGestureEvent(const nsAString& aType, float aX, float aY, uint32_t aDirection, double aDelta, int32_t aModifiers, uint32_t aClickCount) override { return _to SendSimpleGestureEvent(aType, aX, aY, aDirection, aDelta, aModifiers, aClickCount); } \
  NS_IMETHOD ElementFromPoint(float aX, float aY, bool aIgnoreRootScrollFrame, bool aFlushLayout, mozilla::dom::Element **_retval) override { return _to ElementFromPoint(aX, aY, aIgnoreRootScrollFrame, aFlushLayout, _retval); } \
  NS_IMETHOD NodesFromRect(float aX, float aY, float aTopSize, float aRightSize, float aBottomSize, float aLeftSize, bool aIgnoreRootScrollFrame, bool aFlushLayout, nsINodeList **_retval) override { return _to NodesFromRect(aX, aY, aTopSize, aRightSize, aBottomSize, aLeftSize, aIgnoreRootScrollFrame, aFlushLayout, _retval); } \
  NS_IMETHOD GetTranslationNodes(nsINode *aRoot, nsITranslationNodeList **_retval) override { return _to GetTranslationNodes(aRoot, _retval); } \
  NS_IMETHOD CompareCanvases(nsISupports *aCanvas1, nsISupports *aCanvas2, uint32_t *aMaxDifference, uint32_t *_retval) override { return _to CompareCanvases(aCanvas1, aCanvas2, aMaxDifference, _retval); } \
  NS_IMETHOD GetIsMozAfterPaintPending(bool *aIsMozAfterPaintPending) override { return _to GetIsMozAfterPaintPending(aIsMozAfterPaintPending); } \
  NS_IMETHOD SuppressEventHandling(bool aSuppress) override { return _to SuppressEventHandling(aSuppress); } \
  NS_IMETHOD DisableNonTestMouseEvents(bool aDisable) override { return _to DisableNonTestMouseEvents(aDisable); } \
  NS_IMETHOD GetScrollXY(bool aFlushLayout, int32_t *aScrollX, int32_t *aScrollY) override { return _to GetScrollXY(aFlushLayout, aScrollX, aScrollY); } \
  NS_IMETHOD GetScrollXYFloat(bool aFlushLayout, float *aScrollX, float *aScrollY) override { return _to GetScrollXYFloat(aFlushLayout, aScrollX, aScrollY); } \
  NS_IMETHOD GetScrollbarSize(bool aFlushLayout, int32_t *aWidth, int32_t *aHeight) override { return _to GetScrollbarSize(aFlushLayout, aWidth, aHeight); } \
  NS_IMETHOD GetBoundsWithoutFlushing(mozilla::dom::Element *aElement, mozilla::dom::DOMRect **_retval) override { return _to GetBoundsWithoutFlushing(aElement, _retval); } \
  NS_IMETHOD NeedsFlush(int32_t aFlushtype, bool *_retval) override { return _to NeedsFlush(aFlushtype, _retval); } \
  NS_IMETHOD FlushLayoutWithoutThrottledAnimations(void) override { return _to FlushLayoutWithoutThrottledAnimations(); } \
  NS_IMETHOD GetRootBounds(mozilla::dom::DOMRect **_retval) override { return _to GetRootBounds(_retval); } \
  NS_IMETHOD GetIMEIsOpen(bool *aIMEIsOpen) override { return _to GetIMEIsOpen(aIMEIsOpen); } \
  NS_IMETHOD GetIMEStatus(uint32_t *aIMEStatus) override { return _to GetIMEStatus(aIMEStatus); } \
  NS_IMETHOD GetScreenPixelsPerCSSPixel(float *aScreenPixelsPerCSSPixel) override { return _to GetScreenPixelsPerCSSPixel(aScreenPixelsPerCSSPixel); } \
  NS_IMETHOD GetFullZoom(float *aFullZoom) override { return _to GetFullZoom(aFullZoom); } \
  NS_IMETHOD DispatchDOMEventViaPresShell(nsINode *aTarget, mozilla::dom::Event *aEvent, bool aTrusted, bool *_retval) override { return _to DispatchDOMEventViaPresShell(aTarget, aEvent, aTrusted, _retval); } \
  NS_IMETHOD DispatchEventToChromeOnly(mozilla::dom::EventTarget *aTarget, mozilla::dom::Event *aEvent, bool *_retval) override { return _to DispatchEventToChromeOnly(aTarget, aEvent, _retval); } \
  NS_IMETHOD GetClassName(JS::HandleValue aObject, JSContext* cx, char * *_retval) override { return _to GetClassName(aObject, cx, _retval); } \
  NS_IMETHOD SendContentCommandEvent(const nsAString& aType, nsITransferable *aTransferable) override { return _to SendContentCommandEvent(aType, aTransferable); } \
  NS_IMETHOD SendQueryContentEvent(uint32_t aType, int64_t aOffset, uint32_t aLength, int32_t aX, int32_t aY, uint32_t aAdditionalFlags, nsIQueryContentEventResult **_retval) override { return _to SendQueryContentEvent(aType, aOffset, aLength, aX, aY, aAdditionalFlags, _retval); } \
  NS_IMETHOD RemoteFrameFullscreenChanged(mozilla::dom::Element *aFrameElement) override { return _to RemoteFrameFullscreenChanged(aFrameElement); } \
  NS_IMETHOD RemoteFrameFullscreenReverted(void) override { return _to RemoteFrameFullscreenReverted(); } \
  NS_IMETHOD HandleFullscreenRequests(bool *_retval) override { return _to HandleFullscreenRequests(_retval); } \
  NS_IMETHOD ExitFullscreen(void) override { return _to ExitFullscreen(); } \
  NS_IMETHOD SendSelectionSetEvent(uint32_t aOffset, uint32_t aLength, uint32_t aAdditionalFlags, bool *_retval) override { return _to SendSelectionSetEvent(aOffset, aLength, aAdditionalFlags, _retval); } \
  NS_IMETHOD SelectAtPoint(float aX, float aY, uint32_t aSelectBehavior, bool *_retval) override { return _to SelectAtPoint(aX, aY, aSelectBehavior, _retval); } \
  NS_IMETHOD GetVisitedDependentComputedStyle(mozilla::dom::Element *aElement, const nsAString& aPseudoElement, const nsAString& aPropertyName, nsAString& _retval) override { return _to GetVisitedDependentComputedStyle(aElement, aPseudoElement, aPropertyName, _retval); } \
  NS_IMETHOD GetOuterWindowID(uint64_t *aOuterWindowID) override { return _to GetOuterWindowID(aOuterWindowID); } \
  NS_IMETHOD GetCurrentInnerWindowID(uint64_t *aCurrentInnerWindowID) override { return _to GetCurrentInnerWindowID(aCurrentInnerWindowID); } \
  NS_IMETHOD EnterModalState(void) override { return _to EnterModalState(); } \
  NS_IMETHOD LeaveModalState(void) override { return _to LeaveModalState(); } \
  NS_IMETHOD IsInModalState(bool *_retval) override { return _to IsInModalState(_retval); } \
  NS_IMETHOD SetDesktopModeViewport(bool aDesktopModeViewport) override { return _to SetDesktopModeViewport(aDesktopModeViewport); } \
  NS_IMETHOD SuspendTimeouts(void) override { return _to SuspendTimeouts(); } \
  NS_IMETHOD ResumeTimeouts(void) override { return _to ResumeTimeouts(); } \
  NS_IMETHOD GetLayerManagerType(nsAString& aLayerManagerType) override { return _to GetLayerManagerType(aLayerManagerType); } \
  NS_IMETHOD GetLayerManagerRemote(bool *aLayerManagerRemote) override { return _to GetLayerManagerRemote(aLayerManagerRemote); } \
  NS_IMETHOD GetUsingAdvancedLayers(bool *aUsingAdvancedLayers) override { return _to GetUsingAdvancedLayers(aUsingAdvancedLayers); } \
  NS_IMETHOD GetIsWebRenderBuilt(bool *aIsWebRenderBuilt) override { return _to GetIsWebRenderBuilt(aIsWebRenderBuilt); } \
  NS_IMETHOD GetIsWebRenderRequested(bool *aIsWebRenderRequested) override { return _to GetIsWebRenderRequested(aIsWebRenderRequested); } \
  NS_IMETHOD GetCurrentAudioBackend(nsAString& aCurrentAudioBackend) override { return _to GetCurrentAudioBackend(aCurrentAudioBackend); } \
  NS_IMETHOD GetCurrentMaxAudioChannels(uint32_t *aCurrentMaxAudioChannels) override { return _to GetCurrentMaxAudioChannels(aCurrentMaxAudioChannels); } \
  NS_IMETHOD GetCurrentPreferredSampleRate(uint32_t *aCurrentPreferredSampleRate) override { return _to GetCurrentPreferredSampleRate(aCurrentPreferredSampleRate); } \
  NS_IMETHOD AudioDevices(uint16_t aSide, nsIArray **_retval) override { return _to AudioDevices(aSide, _retval); } \
  NS_IMETHOD StartFrameTimeRecording(uint32_t *startIndex) override { return _to StartFrameTimeRecording(startIndex); } \
  NS_IMETHOD StopFrameTimeRecording(uint32_t startIndex, uint32_t *frameCount, float **frameIntervals) override { return _to StopFrameTimeRecording(startIndex, frameCount, frameIntervals); } \
  NS_IMETHOD GetDisplayDPI(float *aDisplayDPI) override { return _to GetDisplayDPI(aDisplayDPI); } \
  NS_IMETHOD GetContainerElement(mozilla::dom::Element **aContainerElement) override { return _to GetContainerElement(aContainerElement); } \
  NS_IMETHOD RenderDocument(const nsRect & aRect, uint32_t aFlags, nscolor aBackgroundColor, gfxContext * aThebesContext) override { return _to RenderDocument(aRect, aFlags, aBackgroundColor, aThebesContext); } \
  NS_IMETHOD AdvanceTimeAndRefresh(int64_t aMilliseconds) override { return _to AdvanceTimeAndRefresh(aMilliseconds); } \
  NS_IMETHOD RestoreNormalRefresh(void) override { return _to RestoreNormalRefresh(); } \
  NS_IMETHOD GetIsTestControllingRefreshes(bool *aIsTestControllingRefreshes) override { return _to GetIsTestControllingRefreshes(aIsTestControllingRefreshes); } \
  NS_IMETHOD GetAsyncPanZoomEnabled(bool *aAsyncPanZoomEnabled) override { return _to GetAsyncPanZoomEnabled(aAsyncPanZoomEnabled); } \
  NS_IMETHOD SetAsyncScrollOffset(mozilla::dom::Element *aElement, float aX, float aY) override { return _to SetAsyncScrollOffset(aElement, aX, aY); } \
  NS_IMETHOD SetAsyncZoom(mozilla::dom::Element *aRootElement, float aValue) override { return _to SetAsyncZoom(aRootElement, aValue); } \
  NS_IMETHOD FlushApzRepaints(bool *_retval) override { return _to FlushApzRepaints(_retval); } \
  NS_IMETHOD ZoomToFocusedInput(void) override { return _to ZoomToFocusedInput(); } \
  NS_IMETHOD ComputeAnimationDistance(mozilla::dom::Element *element, const nsAString& property, const nsAString& value1, const nsAString& value2, double *_retval) override { return _to ComputeAnimationDistance(element, property, value1, value2, _retval); } \
  NS_IMETHOD GetUnanimatedComputedStyle(mozilla::dom::Element *aElement, const nsAString& aPseudoElement, const nsAString& aProperty, int32_t aFlushType, nsAString& _retval) override { return _to GetUnanimatedComputedStyle(aElement, aPseudoElement, aProperty, aFlushType, _retval); } \
  NS_IMETHOD GetFocusedInputType(nsAString& aFocusedInputType) override { return _to GetFocusedInputType(aFocusedInputType); } \
  NS_IMETHOD GetViewId(mozilla::dom::Element *aElement, nsViewID *_retval) override { return _to GetViewId(aElement, _retval); } \
  NS_IMETHOD LeafLayersPartitionWindow(bool *_retval) override { return _to LeafLayersPartitionWindow(_retval); } \
  NS_IMETHOD CheckAndClearPaintedState(mozilla::dom::Element *aElement, bool *_retval) override { return _to CheckAndClearPaintedState(aElement, _retval); } \
  NS_IMETHOD CheckAndClearDisplayListState(mozilla::dom::Element *aElement, bool *_retval) override { return _to CheckAndClearDisplayListState(aElement, _retval); } \
  NS_IMETHOD IsPartOfOpaqueLayer(mozilla::dom::Element *aElement, bool *_retval) override { return _to IsPartOfOpaqueLayer(aElement, _retval); } \
  NS_IMETHOD NumberOfAssignedPaintedLayers(mozilla::dom::Element **aElements, uint32_t count, uint32_t *_retval) override { return _to NumberOfAssignedPaintedLayers(aElements, count, _retval); } \
  NS_IMETHOD GetFileId(JS::HandleValue aFile, JSContext* cx, int64_t *_retval) override { return _to GetFileId(aFile, cx, _retval); } \
  NS_IMETHOD GetFilePath(JS::HandleValue aFile, JSContext* cx, nsAString& _retval) override { return _to GetFilePath(aFile, cx, _retval); } \
  NS_IMETHOD GetFileReferences(const nsAString& aDatabaseName, int64_t aId, JS::HandleValue aOptions, int32_t *aRefCnt, int32_t *aDBRefCnt, int32_t *aSliceRefCnt, JSContext* cx, bool *_retval) override { return _to GetFileReferences(aDatabaseName, aId, aOptions, aRefCnt, aDBRefCnt, aSliceRefCnt, cx, _retval); } \
  NS_IMETHOD FlushPendingFileDeletions(void) override { return _to FlushPendingFileDeletions(); } \
  NS_IMETHOD IsIncrementalGCEnabled(JSContext* cx, bool *_retval) override { return _to IsIncrementalGCEnabled(cx, _retval); } \
  NS_IMETHOD StartPCCountProfiling(JSContext* cx) override { return _to StartPCCountProfiling(cx); } \
  NS_IMETHOD StopPCCountProfiling(JSContext* cx) override { return _to StopPCCountProfiling(cx); } \
  NS_IMETHOD PurgePCCounts(JSContext* cx) override { return _to PurgePCCounts(cx); } \
  NS_IMETHOD GetPCCountScriptCount(JSContext* cx, int32_t *_retval) override { return _to GetPCCountScriptCount(cx, _retval); } \
  NS_IMETHOD GetPCCountScriptSummary(int32_t script, JSContext* cx, nsAString& _retval) override { return _to GetPCCountScriptSummary(script, cx, _retval); } \
  NS_IMETHOD GetPCCountScriptContents(int32_t script, JSContext* cx, nsAString& _retval) override { return _to GetPCCountScriptContents(script, cx, _retval); } \
  NS_IMETHOD GetPaintingSuppressed(bool *aPaintingSuppressed) override { return _to GetPaintingSuppressed(aPaintingSuppressed); } \
  NS_IMETHOD GetPlugins(JSContext* cx, JS::MutableHandleValue aPlugins) override { return _to GetPlugins(cx, aPlugins); } \
  NS_IMETHOD SetVisualViewportSize(float aWidth, float aHeight) override { return _to SetVisualViewportSize(aWidth, aHeight); } \
  NS_IMETHOD DisableDialogs(void) override { return _to DisableDialogs(); } \
  NS_IMETHOD EnableDialogs(void) override { return _to EnableDialogs(); } \
  NS_IMETHOD AreDialogsEnabled(bool *_retval) override { return _to AreDialogsEnabled(_retval); } \
  NS_IMETHOD LoadSheet(nsIURI *sheetURI, uint32_t type) override { return _to LoadSheet(sheetURI, type); } \
  NS_IMETHOD LoadSheetUsingURIString(const nsACString& sheetURI, uint32_t type) override { return _to LoadSheetUsingURIString(sheetURI, type); } \
  NS_IMETHOD AddSheet(nsIPreloadedStyleSheet *sheet, uint32_t type) override { return _to AddSheet(sheet, type); } \
  NS_IMETHOD RemoveSheet(nsIURI *sheetURI, uint32_t type) override { return _to RemoveSheet(sheetURI, type); } \
  NS_IMETHOD RemoveSheetUsingURIString(const nsACString& sheetURI, uint32_t type) override { return _to RemoveSheetUsingURIString(sheetURI, type); } \
  NS_IMETHOD GetIsHandlingUserInput(bool *aIsHandlingUserInput) override { return _to GetIsHandlingUserInput(aIsHandlingUserInput); } \
  NS_IMETHOD GetMillisSinceLastUserInput(double *aMillisSinceLastUserInput) override { return _to GetMillisSinceLastUserInput(aMillisSinceLastUserInput); } \
  NS_IMETHOD AllowScriptsToClose(void) override { return _to AllowScriptsToClose(); } \
  NS_IMETHOD GetIsParentWindowMainWidgetVisible(bool *aIsParentWindowMainWidgetVisible) override { return _to GetIsParentWindowMainWidgetVisible(aIsParentWindowMainWidgetVisible); } \
  NS_IMETHOD IsNodeDisabledForEvents(nsINode *aNode, bool *_retval) override { return _to IsNodeDisabledForEvents(aNode, _retval); } \
  NS_IMETHOD GetPaintFlashing(bool *aPaintFlashing) override { return _to GetPaintFlashing(aPaintFlashing); } \
  NS_IMETHOD SetPaintFlashing(bool aPaintFlashing) override { return _to SetPaintFlashing(aPaintFlashing); } \
  NS_IMETHOD GetOMTAStyle(mozilla::dom::Element *aElement, const nsAString& aProperty, const nsAString& aPseudoElement, nsAString& _retval) override { return _to GetOMTAStyle(aElement, aProperty, aPseudoElement, _retval); } \
  NS_IMETHOD GetOMTCTransform(mozilla::dom::Element *aElement, const nsAString& aPseudoElement, nsAString& _retval) override { return _to GetOMTCTransform(aElement, aPseudoElement, _retval); } \
  NS_IMETHOD IsAnimationInPendingTracker(mozilla::dom::Animation *aAnimation, bool *_retval) override { return _to IsAnimationInPendingTracker(aAnimation, _retval); } \
  NS_IMETHOD SetHandlingUserInput(bool aHandlingInput, nsIJSRAIIHelper **_retval) override { return _to SetHandlingUserInput(aHandlingInput, _retval); } \
  NS_IMETHOD GetContentAPZTestData(JSContext* cx, JS::MutableHandleValue _retval) override { return _to GetContentAPZTestData(cx, _retval); } \
  NS_IMETHOD GetCompositorAPZTestData(JSContext* cx, JS::MutableHandleValue _retval) override { return _to GetCompositorAPZTestData(cx, _retval); } \
  NS_IMETHOD PostRestyleSelfEvent(mozilla::dom::Element *aElement) override { return _to PostRestyleSelfEvent(aElement); } \
  NS_IMETHOD GetMediaSuspend(uint32_t *aMediaSuspend) override { return _to GetMediaSuspend(aMediaSuspend); } \
  NS_IMETHOD SetMediaSuspend(uint32_t aMediaSuspend) override { return _to SetMediaSuspend(aMediaSuspend); } \
  NS_IMETHOD GetAudioMuted(bool *aAudioMuted) override { return _to GetAudioMuted(aAudioMuted); } \
  NS_IMETHOD SetAudioMuted(bool aAudioMuted) override { return _to SetAudioMuted(aAudioMuted); } \
  NS_IMETHOD GetAudioVolume(float *aAudioVolume) override { return _to GetAudioVolume(aAudioVolume); } \
  NS_IMETHOD SetAudioVolume(float aAudioVolume) override { return _to SetAudioVolume(aAudioVolume); } \
  NS_IMETHOD XpconnectArgument(nsIDOMWindowUtils *aThis) override { return _to XpconnectArgument(aThis); } \
  NS_IMETHOD AskPermission(nsIContentPermissionRequest *aRequest) override { return _to AskPermission(aRequest); } \
  NS_IMETHOD GetRestyleGeneration(uint64_t *aRestyleGeneration) override { return _to GetRestyleGeneration(aRestyleGeneration); } \
  NS_IMETHOD GetFramesConstructed(uint64_t *aFramesConstructed) override { return _to GetFramesConstructed(aFramesConstructed); } \
  NS_IMETHOD GetFramesReflowed(uint64_t *aFramesReflowed) override { return _to GetFramesReflowed(aFramesReflowed); } \
  NS_IMETHOD SetChromeMargin(int32_t aTop, int32_t aRight, int32_t aBottom, int32_t aLeft) override { return _to SetChromeMargin(aTop, aRight, aBottom, aLeft); } \
  NS_IMETHOD GetServiceWorkersTestingEnabled(bool *aServiceWorkersTestingEnabled) override { return _to GetServiceWorkersTestingEnabled(aServiceWorkersTestingEnabled); } \
  NS_IMETHOD SetServiceWorkersTestingEnabled(bool aServiceWorkersTestingEnabled) override { return _to SetServiceWorkersTestingEnabled(aServiceWorkersTestingEnabled); } \
  NS_IMETHOD GetFrameUniformityTestData(JSContext* cx, JS::MutableHandleValue _retval) override { return _to GetFrameUniformityTestData(cx, _retval); } \
  NS_IMETHOD EnterChaosMode(void) override { return _to EnterChaosMode(); } \
  NS_IMETHOD LeaveChaosMode(void) override { return _to LeaveChaosMode(); } \
  NS_IMETHOD TriggerDeviceReset(void) override { return _to TriggerDeviceReset(); } \
  NS_IMETHOD HasRuleProcessorUsedByMultipleStyleSets(uint32_t aSheetType, bool *_retval) override { return _to HasRuleProcessorUsedByMultipleStyleSets(aSheetType, _retval); } \
  NS_IMETHOD ForceUseCounterFlush(nsINode *aNode) override { return _to ForceUseCounterFlush(aNode); } \
  NS_IMETHOD RespectDisplayPortSuppression(bool aEnabled) override { return _to RespectDisplayPortSuppression(aEnabled); } \
  NS_IMETHOD ForceReflowInterrupt(void) override { return _to ForceReflowInterrupt(); } \
  NS_IMETHOD TerminateGPUProcess(void) override { return _to TerminateGPUProcess(); } \
  NS_IMETHOD GetGpuProcessPid(int32_t *aGpuProcessPid) override { return _to GetGpuProcessPid(aGpuProcessPid); } \
  NS_IMETHOD IsTimeoutTracking(uint32_t timeoutId, bool *_retval) override { return _to IsTimeoutTracking(timeoutId, _retval); } \
  NS_IMETHOD AddManuallyManagedState(mozilla::dom::Element *element, const nsAString& state) override { return _to AddManuallyManagedState(element, state); } \
  NS_IMETHOD RemoveManuallyManagedState(mozilla::dom::Element *element, const nsAString& state) override { return _to RemoveManuallyManagedState(element, state); } \
  NS_IMETHOD GetStorageUsage(nsIDOMStorage *aStorage, int64_t *_retval) override { return _to GetStorageUsage(aStorage, _retval); } \
  NS_IMETHOD GetDirectionFromText(const nsAString& aString, int32_t *_retval) override { return _to GetDirectionFromText(aString, _retval); } \
  NS_IMETHOD EnsureDirtyRootFrame(void) override { return _to EnsureDirtyRootFrame(); } \
  NS_IMETHOD WrCapture(void) override { return _to WrCapture(); } \
  NS_IMETHOD GetSystemFont(nsACString& aSystemFont) override { return _to GetSystemFont(aSystemFont); } \
  NS_IMETHOD SetSystemFont(const nsACString& aSystemFont) override { return _to SetSystemFont(aSystemFont); } \

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIDOMWINDOWUTILS(_to) \
  NS_IMETHOD GetImageAnimationMode(uint16_t *aImageAnimationMode) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetImageAnimationMode(aImageAnimationMode); } \
  NS_IMETHOD SetImageAnimationMode(uint16_t aImageAnimationMode) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetImageAnimationMode(aImageAnimationMode); } \
  NS_IMETHOD GetDocCharsetIsForced(bool *aDocCharsetIsForced) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDocCharsetIsForced(aDocCharsetIsForced); } \
  NS_IMETHOD GetPhysicalMillimeterInCSSPixels(float *aPhysicalMillimeterInCSSPixels) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPhysicalMillimeterInCSSPixels(aPhysicalMillimeterInCSSPixels); } \
  NS_IMETHOD GetDocumentMetadata(const nsAString& aName, nsAString& _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDocumentMetadata(aName, _retval); } \
  NS_IMETHOD Redraw(uint32_t aCount, uint32_t *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Redraw(aCount, _retval); } \
  NS_IMETHOD UpdateLayerTree(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->UpdateLayerTree(); } \
  NS_IMETHOD GetLastTransactionId(uint64_t *aLastTransactionId) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLastTransactionId(aLastTransactionId); } \
  NS_IMETHOD GetViewportInfo(uint32_t aDisplayWidth, uint32_t aDisplayHeight, double *aDefaultZoom, bool *aAllowZoom, double *aMinZoom, double *aMaxZoom, uint32_t *aWidth, uint32_t *aHeight, bool *aAutoSize) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetViewportInfo(aDisplayWidth, aDisplayHeight, aDefaultZoom, aAllowZoom, aMinZoom, aMaxZoom, aWidth, aHeight, aAutoSize); } \
  NS_IMETHOD GetContentViewerSize(uint32_t *aDisplayWidth, uint32_t *aDisplayHeight) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetContentViewerSize(aDisplayWidth, aDisplayHeight); } \
  NS_IMETHOD SetDisplayPortForElement(float aXPx, float aYPx, float aWidthPx, float aHeightPx, mozilla::dom::Element *aElement, uint32_t aPriority) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetDisplayPortForElement(aXPx, aYPx, aWidthPx, aHeightPx, aElement, aPriority); } \
  NS_IMETHOD SetDisplayPortMarginsForElement(float aLeftMargin, float aTopMargin, float aRightMargin, float aBottomMargin, mozilla::dom::Element *aElement, uint32_t aPriority) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetDisplayPortMarginsForElement(aLeftMargin, aTopMargin, aRightMargin, aBottomMargin, aElement, aPriority); } \
  NS_IMETHOD SetDisplayPortBaseForElement(int32_t aX, int32_t aY, int32_t aWidth, int32_t aHeight, mozilla::dom::Element *aElement) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetDisplayPortBaseForElement(aX, aY, aWidth, aHeight, aElement); } \
  NS_IMETHOD SetResolution(float aResolution) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetResolution(aResolution); } \
  NS_IMETHOD GetResolution(float *aResolution) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetResolution(aResolution); } \
  NS_IMETHOD SetResolutionAndScaleTo(float aResolution) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetResolutionAndScaleTo(aResolution); } \
  NS_IMETHOD SetRestoreResolution(float aResolution, uint32_t aDisplayWidth, uint32_t aDisplayHeight) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetRestoreResolution(aResolution, aDisplayWidth, aDisplayHeight); } \
  NS_IMETHOD GetIsResolutionSet(bool *aIsResolutionSet) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIsResolutionSet(aIsResolutionSet); } \
  NS_IMETHOD GetIsFirstPaint(bool *aIsFirstPaint) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIsFirstPaint(aIsFirstPaint); } \
  NS_IMETHOD SetIsFirstPaint(bool aIsFirstPaint) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetIsFirstPaint(aIsFirstPaint); } \
  NS_IMETHOD GetPresShellId(uint32_t *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPresShellId(_retval); } \
  NS_IMETHOD SendMouseEvent(const nsAString& aType, float aX, float aY, int32_t aButton, int32_t aClickCount, int32_t aModifiers, bool aIgnoreRootScrollFrame, float aPressure, uint16_t aInputSourceArg, bool aIsDOMEventSynthesized, bool aIsWidgetEventSynthesized, int32_t aButtons, uint32_t aIdentifier, uint8_t _argc, bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SendMouseEvent(aType, aX, aY, aButton, aClickCount, aModifiers, aIgnoreRootScrollFrame, aPressure, aInputSourceArg, aIsDOMEventSynthesized, aIsWidgetEventSynthesized, aButtons, aIdentifier, _argc, _retval); } \
  NS_IMETHOD SendTouchEvent(const nsAString& aType, uint32_t *aIdentifiers, int32_t *aXs, int32_t *aYs, uint32_t *aRxs, uint32_t *aRys, float *aRotationAngles, float *aForces, uint32_t count, int32_t aModifiers, bool aIgnoreRootScrollFrame, bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SendTouchEvent(aType, aIdentifiers, aXs, aYs, aRxs, aRys, aRotationAngles, aForces, count, aModifiers, aIgnoreRootScrollFrame, _retval); } \
  NS_IMETHOD SendMouseEventToWindow(const nsAString& aType, float aX, float aY, int32_t aButton, int32_t aClickCount, int32_t aModifiers, bool aIgnoreRootScrollFrame, float aPressure, uint16_t aInputSourceArg, bool aIsDOMEventSynthesized, bool aIsWidgetEventSynthesized, int32_t aButtons, uint32_t aIdentifier, uint8_t _argc) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SendMouseEventToWindow(aType, aX, aY, aButton, aClickCount, aModifiers, aIgnoreRootScrollFrame, aPressure, aInputSourceArg, aIsDOMEventSynthesized, aIsWidgetEventSynthesized, aButtons, aIdentifier, _argc); } \
  NS_IMETHOD SendTouchEventToWindow(const nsAString& aType, uint32_t *aIdentifiers, int32_t *aXs, int32_t *aYs, uint32_t *aRxs, uint32_t *aRys, float *aRotationAngles, float *aForces, uint32_t count, int32_t aModifiers, bool aIgnoreRootScrollFrame, bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SendTouchEventToWindow(aType, aIdentifiers, aXs, aYs, aRxs, aRys, aRotationAngles, aForces, count, aModifiers, aIgnoreRootScrollFrame, _retval); } \
  NS_IMETHOD SendWheelEvent(float aX, float aY, double aDeltaX, double aDeltaY, double aDeltaZ, uint32_t aDeltaMode, int32_t aModifiers, int32_t aLineOrPageDeltaX, int32_t aLineOrPageDeltaY, uint32_t aOptions) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SendWheelEvent(aX, aY, aDeltaX, aDeltaY, aDeltaZ, aDeltaMode, aModifiers, aLineOrPageDeltaX, aLineOrPageDeltaY, aOptions); } \
  NS_IMETHOD SendNativeKeyEvent(int32_t aNativeKeyboardLayout, int32_t aNativeKeyCode, int32_t aModifierFlags, const nsAString& aCharacters, const nsAString& aUnmodifiedCharacters, nsIObserver *aObserver) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SendNativeKeyEvent(aNativeKeyboardLayout, aNativeKeyCode, aModifierFlags, aCharacters, aUnmodifiedCharacters, aObserver); } \
  NS_IMETHOD SendNativeMouseEvent(int32_t aScreenX, int32_t aScreenY, int32_t aNativeMessage, int32_t aModifierFlags, mozilla::dom::Element *aElement, nsIObserver *aObserver) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SendNativeMouseEvent(aScreenX, aScreenY, aNativeMessage, aModifierFlags, aElement, aObserver); } \
  NS_IMETHOD SendNativeMouseMove(int32_t aScreenX, int32_t aScreenY, mozilla::dom::Element *aElement, nsIObserver *aObserver) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SendNativeMouseMove(aScreenX, aScreenY, aElement, aObserver); } \
  NS_IMETHOD SuppressAnimation(bool aSuppress) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SuppressAnimation(aSuppress); } \
  NS_IMETHOD SendNativeMouseScrollEvent(int32_t aScreenX, int32_t aScreenY, uint32_t aNativeMessage, double aDeltaX, double aDeltaY, double aDeltaZ, uint32_t aModifierFlags, uint32_t aAdditionalFlags, mozilla::dom::Element *aElement, nsIObserver *aObserver) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SendNativeMouseScrollEvent(aScreenX, aScreenY, aNativeMessage, aDeltaX, aDeltaY, aDeltaZ, aModifierFlags, aAdditionalFlags, aElement, aObserver); } \
  NS_IMETHOD SendNativeTouchPoint(uint32_t aPointerId, uint32_t aTouchState, int32_t aScreenX, int32_t aScreenY, double aPressure, uint32_t aOrientation, nsIObserver *aObserver) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SendNativeTouchPoint(aPointerId, aTouchState, aScreenX, aScreenY, aPressure, aOrientation, aObserver); } \
  NS_IMETHOD SendNativeTouchTap(int32_t aScreenX, int32_t aScreenY, bool aLongTap, nsIObserver *aObserver) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SendNativeTouchTap(aScreenX, aScreenY, aLongTap, aObserver); } \
  NS_IMETHOD ClearNativeTouchSequence(nsIObserver *aObserver) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ClearNativeTouchSequence(aObserver); } \
  NS_IMETHOD ActivateNativeMenuItemAt(const nsAString& indexString) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ActivateNativeMenuItemAt(indexString); } \
  NS_IMETHOD ForceUpdateNativeMenuAt(const nsAString& indexString) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ForceUpdateNativeMenuAt(indexString); } \
  NS_IMETHOD GetSelectionAsPlaintext(nsAString& _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSelectionAsPlaintext(_retval); } \
  NS_IMETHOD GarbageCollect(nsICycleCollectorListener *aListener) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GarbageCollect(aListener); } \
  NS_IMETHOD CycleCollect(nsICycleCollectorListener *aListener) override { return !_to ? NS_ERROR_NULL_POINTER : _to->CycleCollect(aListener); } \
  NS_IMETHOD RunNextCollectorTimer(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->RunNextCollectorTimer(); } \
  NS_IMETHOD SendSimpleGestureEvent(const nsAString& aType, float aX, float aY, uint32_t aDirection, double aDelta, int32_t aModifiers, uint32_t aClickCount) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SendSimpleGestureEvent(aType, aX, aY, aDirection, aDelta, aModifiers, aClickCount); } \
  NS_IMETHOD ElementFromPoint(float aX, float aY, bool aIgnoreRootScrollFrame, bool aFlushLayout, mozilla::dom::Element **_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ElementFromPoint(aX, aY, aIgnoreRootScrollFrame, aFlushLayout, _retval); } \
  NS_IMETHOD NodesFromRect(float aX, float aY, float aTopSize, float aRightSize, float aBottomSize, float aLeftSize, bool aIgnoreRootScrollFrame, bool aFlushLayout, nsINodeList **_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->NodesFromRect(aX, aY, aTopSize, aRightSize, aBottomSize, aLeftSize, aIgnoreRootScrollFrame, aFlushLayout, _retval); } \
  NS_IMETHOD GetTranslationNodes(nsINode *aRoot, nsITranslationNodeList **_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTranslationNodes(aRoot, _retval); } \
  NS_IMETHOD CompareCanvases(nsISupports *aCanvas1, nsISupports *aCanvas2, uint32_t *aMaxDifference, uint32_t *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->CompareCanvases(aCanvas1, aCanvas2, aMaxDifference, _retval); } \
  NS_IMETHOD GetIsMozAfterPaintPending(bool *aIsMozAfterPaintPending) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIsMozAfterPaintPending(aIsMozAfterPaintPending); } \
  NS_IMETHOD SuppressEventHandling(bool aSuppress) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SuppressEventHandling(aSuppress); } \
  NS_IMETHOD DisableNonTestMouseEvents(bool aDisable) override { return !_to ? NS_ERROR_NULL_POINTER : _to->DisableNonTestMouseEvents(aDisable); } \
  NS_IMETHOD GetScrollXY(bool aFlushLayout, int32_t *aScrollX, int32_t *aScrollY) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetScrollXY(aFlushLayout, aScrollX, aScrollY); } \
  NS_IMETHOD GetScrollXYFloat(bool aFlushLayout, float *aScrollX, float *aScrollY) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetScrollXYFloat(aFlushLayout, aScrollX, aScrollY); } \
  NS_IMETHOD GetScrollbarSize(bool aFlushLayout, int32_t *aWidth, int32_t *aHeight) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetScrollbarSize(aFlushLayout, aWidth, aHeight); } \
  NS_IMETHOD GetBoundsWithoutFlushing(mozilla::dom::Element *aElement, mozilla::dom::DOMRect **_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetBoundsWithoutFlushing(aElement, _retval); } \
  NS_IMETHOD NeedsFlush(int32_t aFlushtype, bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->NeedsFlush(aFlushtype, _retval); } \
  NS_IMETHOD FlushLayoutWithoutThrottledAnimations(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->FlushLayoutWithoutThrottledAnimations(); } \
  NS_IMETHOD GetRootBounds(mozilla::dom::DOMRect **_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetRootBounds(_retval); } \
  NS_IMETHOD GetIMEIsOpen(bool *aIMEIsOpen) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIMEIsOpen(aIMEIsOpen); } \
  NS_IMETHOD GetIMEStatus(uint32_t *aIMEStatus) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIMEStatus(aIMEStatus); } \
  NS_IMETHOD GetScreenPixelsPerCSSPixel(float *aScreenPixelsPerCSSPixel) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetScreenPixelsPerCSSPixel(aScreenPixelsPerCSSPixel); } \
  NS_IMETHOD GetFullZoom(float *aFullZoom) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFullZoom(aFullZoom); } \
  NS_IMETHOD DispatchDOMEventViaPresShell(nsINode *aTarget, mozilla::dom::Event *aEvent, bool aTrusted, bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->DispatchDOMEventViaPresShell(aTarget, aEvent, aTrusted, _retval); } \
  NS_IMETHOD DispatchEventToChromeOnly(mozilla::dom::EventTarget *aTarget, mozilla::dom::Event *aEvent, bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->DispatchEventToChromeOnly(aTarget, aEvent, _retval); } \
  NS_IMETHOD GetClassName(JS::HandleValue aObject, JSContext* cx, char * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetClassName(aObject, cx, _retval); } \
  NS_IMETHOD SendContentCommandEvent(const nsAString& aType, nsITransferable *aTransferable) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SendContentCommandEvent(aType, aTransferable); } \
  NS_IMETHOD SendQueryContentEvent(uint32_t aType, int64_t aOffset, uint32_t aLength, int32_t aX, int32_t aY, uint32_t aAdditionalFlags, nsIQueryContentEventResult **_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SendQueryContentEvent(aType, aOffset, aLength, aX, aY, aAdditionalFlags, _retval); } \
  NS_IMETHOD RemoteFrameFullscreenChanged(mozilla::dom::Element *aFrameElement) override { return !_to ? NS_ERROR_NULL_POINTER : _to->RemoteFrameFullscreenChanged(aFrameElement); } \
  NS_IMETHOD RemoteFrameFullscreenReverted(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->RemoteFrameFullscreenReverted(); } \
  NS_IMETHOD HandleFullscreenRequests(bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->HandleFullscreenRequests(_retval); } \
  NS_IMETHOD ExitFullscreen(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ExitFullscreen(); } \
  NS_IMETHOD SendSelectionSetEvent(uint32_t aOffset, uint32_t aLength, uint32_t aAdditionalFlags, bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SendSelectionSetEvent(aOffset, aLength, aAdditionalFlags, _retval); } \
  NS_IMETHOD SelectAtPoint(float aX, float aY, uint32_t aSelectBehavior, bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SelectAtPoint(aX, aY, aSelectBehavior, _retval); } \
  NS_IMETHOD GetVisitedDependentComputedStyle(mozilla::dom::Element *aElement, const nsAString& aPseudoElement, const nsAString& aPropertyName, nsAString& _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetVisitedDependentComputedStyle(aElement, aPseudoElement, aPropertyName, _retval); } \
  NS_IMETHOD GetOuterWindowID(uint64_t *aOuterWindowID) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetOuterWindowID(aOuterWindowID); } \
  NS_IMETHOD GetCurrentInnerWindowID(uint64_t *aCurrentInnerWindowID) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCurrentInnerWindowID(aCurrentInnerWindowID); } \
  NS_IMETHOD EnterModalState(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->EnterModalState(); } \
  NS_IMETHOD LeaveModalState(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->LeaveModalState(); } \
  NS_IMETHOD IsInModalState(bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->IsInModalState(_retval); } \
  NS_IMETHOD SetDesktopModeViewport(bool aDesktopModeViewport) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetDesktopModeViewport(aDesktopModeViewport); } \
  NS_IMETHOD SuspendTimeouts(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SuspendTimeouts(); } \
  NS_IMETHOD ResumeTimeouts(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ResumeTimeouts(); } \
  NS_IMETHOD GetLayerManagerType(nsAString& aLayerManagerType) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLayerManagerType(aLayerManagerType); } \
  NS_IMETHOD GetLayerManagerRemote(bool *aLayerManagerRemote) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLayerManagerRemote(aLayerManagerRemote); } \
  NS_IMETHOD GetUsingAdvancedLayers(bool *aUsingAdvancedLayers) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetUsingAdvancedLayers(aUsingAdvancedLayers); } \
  NS_IMETHOD GetIsWebRenderBuilt(bool *aIsWebRenderBuilt) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIsWebRenderBuilt(aIsWebRenderBuilt); } \
  NS_IMETHOD GetIsWebRenderRequested(bool *aIsWebRenderRequested) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIsWebRenderRequested(aIsWebRenderRequested); } \
  NS_IMETHOD GetCurrentAudioBackend(nsAString& aCurrentAudioBackend) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCurrentAudioBackend(aCurrentAudioBackend); } \
  NS_IMETHOD GetCurrentMaxAudioChannels(uint32_t *aCurrentMaxAudioChannels) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCurrentMaxAudioChannels(aCurrentMaxAudioChannels); } \
  NS_IMETHOD GetCurrentPreferredSampleRate(uint32_t *aCurrentPreferredSampleRate) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCurrentPreferredSampleRate(aCurrentPreferredSampleRate); } \
  NS_IMETHOD AudioDevices(uint16_t aSide, nsIArray **_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AudioDevices(aSide, _retval); } \
  NS_IMETHOD StartFrameTimeRecording(uint32_t *startIndex) override { return !_to ? NS_ERROR_NULL_POINTER : _to->StartFrameTimeRecording(startIndex); } \
  NS_IMETHOD StopFrameTimeRecording(uint32_t startIndex, uint32_t *frameCount, float **frameIntervals) override { return !_to ? NS_ERROR_NULL_POINTER : _to->StopFrameTimeRecording(startIndex, frameCount, frameIntervals); } \
  NS_IMETHOD GetDisplayDPI(float *aDisplayDPI) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDisplayDPI(aDisplayDPI); } \
  NS_IMETHOD GetContainerElement(mozilla::dom::Element **aContainerElement) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetContainerElement(aContainerElement); } \
  NS_IMETHOD RenderDocument(const nsRect & aRect, uint32_t aFlags, nscolor aBackgroundColor, gfxContext * aThebesContext) override { return !_to ? NS_ERROR_NULL_POINTER : _to->RenderDocument(aRect, aFlags, aBackgroundColor, aThebesContext); } \
  NS_IMETHOD AdvanceTimeAndRefresh(int64_t aMilliseconds) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AdvanceTimeAndRefresh(aMilliseconds); } \
  NS_IMETHOD RestoreNormalRefresh(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->RestoreNormalRefresh(); } \
  NS_IMETHOD GetIsTestControllingRefreshes(bool *aIsTestControllingRefreshes) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIsTestControllingRefreshes(aIsTestControllingRefreshes); } \
  NS_IMETHOD GetAsyncPanZoomEnabled(bool *aAsyncPanZoomEnabled) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAsyncPanZoomEnabled(aAsyncPanZoomEnabled); } \
  NS_IMETHOD SetAsyncScrollOffset(mozilla::dom::Element *aElement, float aX, float aY) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetAsyncScrollOffset(aElement, aX, aY); } \
  NS_IMETHOD SetAsyncZoom(mozilla::dom::Element *aRootElement, float aValue) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetAsyncZoom(aRootElement, aValue); } \
  NS_IMETHOD FlushApzRepaints(bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->FlushApzRepaints(_retval); } \
  NS_IMETHOD ZoomToFocusedInput(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ZoomToFocusedInput(); } \
  NS_IMETHOD ComputeAnimationDistance(mozilla::dom::Element *element, const nsAString& property, const nsAString& value1, const nsAString& value2, double *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ComputeAnimationDistance(element, property, value1, value2, _retval); } \
  NS_IMETHOD GetUnanimatedComputedStyle(mozilla::dom::Element *aElement, const nsAString& aPseudoElement, const nsAString& aProperty, int32_t aFlushType, nsAString& _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetUnanimatedComputedStyle(aElement, aPseudoElement, aProperty, aFlushType, _retval); } \
  NS_IMETHOD GetFocusedInputType(nsAString& aFocusedInputType) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFocusedInputType(aFocusedInputType); } \
  NS_IMETHOD GetViewId(mozilla::dom::Element *aElement, nsViewID *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetViewId(aElement, _retval); } \
  NS_IMETHOD LeafLayersPartitionWindow(bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->LeafLayersPartitionWindow(_retval); } \
  NS_IMETHOD CheckAndClearPaintedState(mozilla::dom::Element *aElement, bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->CheckAndClearPaintedState(aElement, _retval); } \
  NS_IMETHOD CheckAndClearDisplayListState(mozilla::dom::Element *aElement, bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->CheckAndClearDisplayListState(aElement, _retval); } \
  NS_IMETHOD IsPartOfOpaqueLayer(mozilla::dom::Element *aElement, bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->IsPartOfOpaqueLayer(aElement, _retval); } \
  NS_IMETHOD NumberOfAssignedPaintedLayers(mozilla::dom::Element **aElements, uint32_t count, uint32_t *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->NumberOfAssignedPaintedLayers(aElements, count, _retval); } \
  NS_IMETHOD GetFileId(JS::HandleValue aFile, JSContext* cx, int64_t *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFileId(aFile, cx, _retval); } \
  NS_IMETHOD GetFilePath(JS::HandleValue aFile, JSContext* cx, nsAString& _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFilePath(aFile, cx, _retval); } \
  NS_IMETHOD GetFileReferences(const nsAString& aDatabaseName, int64_t aId, JS::HandleValue aOptions, int32_t *aRefCnt, int32_t *aDBRefCnt, int32_t *aSliceRefCnt, JSContext* cx, bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFileReferences(aDatabaseName, aId, aOptions, aRefCnt, aDBRefCnt, aSliceRefCnt, cx, _retval); } \
  NS_IMETHOD FlushPendingFileDeletions(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->FlushPendingFileDeletions(); } \
  NS_IMETHOD IsIncrementalGCEnabled(JSContext* cx, bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->IsIncrementalGCEnabled(cx, _retval); } \
  NS_IMETHOD StartPCCountProfiling(JSContext* cx) override { return !_to ? NS_ERROR_NULL_POINTER : _to->StartPCCountProfiling(cx); } \
  NS_IMETHOD StopPCCountProfiling(JSContext* cx) override { return !_to ? NS_ERROR_NULL_POINTER : _to->StopPCCountProfiling(cx); } \
  NS_IMETHOD PurgePCCounts(JSContext* cx) override { return !_to ? NS_ERROR_NULL_POINTER : _to->PurgePCCounts(cx); } \
  NS_IMETHOD GetPCCountScriptCount(JSContext* cx, int32_t *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPCCountScriptCount(cx, _retval); } \
  NS_IMETHOD GetPCCountScriptSummary(int32_t script, JSContext* cx, nsAString& _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPCCountScriptSummary(script, cx, _retval); } \
  NS_IMETHOD GetPCCountScriptContents(int32_t script, JSContext* cx, nsAString& _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPCCountScriptContents(script, cx, _retval); } \
  NS_IMETHOD GetPaintingSuppressed(bool *aPaintingSuppressed) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPaintingSuppressed(aPaintingSuppressed); } \
  NS_IMETHOD GetPlugins(JSContext* cx, JS::MutableHandleValue aPlugins) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPlugins(cx, aPlugins); } \
  NS_IMETHOD SetVisualViewportSize(float aWidth, float aHeight) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetVisualViewportSize(aWidth, aHeight); } \
  NS_IMETHOD DisableDialogs(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->DisableDialogs(); } \
  NS_IMETHOD EnableDialogs(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->EnableDialogs(); } \
  NS_IMETHOD AreDialogsEnabled(bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AreDialogsEnabled(_retval); } \
  NS_IMETHOD LoadSheet(nsIURI *sheetURI, uint32_t type) override { return !_to ? NS_ERROR_NULL_POINTER : _to->LoadSheet(sheetURI, type); } \
  NS_IMETHOD LoadSheetUsingURIString(const nsACString& sheetURI, uint32_t type) override { return !_to ? NS_ERROR_NULL_POINTER : _to->LoadSheetUsingURIString(sheetURI, type); } \
  NS_IMETHOD AddSheet(nsIPreloadedStyleSheet *sheet, uint32_t type) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AddSheet(sheet, type); } \
  NS_IMETHOD RemoveSheet(nsIURI *sheetURI, uint32_t type) override { return !_to ? NS_ERROR_NULL_POINTER : _to->RemoveSheet(sheetURI, type); } \
  NS_IMETHOD RemoveSheetUsingURIString(const nsACString& sheetURI, uint32_t type) override { return !_to ? NS_ERROR_NULL_POINTER : _to->RemoveSheetUsingURIString(sheetURI, type); } \
  NS_IMETHOD GetIsHandlingUserInput(bool *aIsHandlingUserInput) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIsHandlingUserInput(aIsHandlingUserInput); } \
  NS_IMETHOD GetMillisSinceLastUserInput(double *aMillisSinceLastUserInput) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMillisSinceLastUserInput(aMillisSinceLastUserInput); } \
  NS_IMETHOD AllowScriptsToClose(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AllowScriptsToClose(); } \
  NS_IMETHOD GetIsParentWindowMainWidgetVisible(bool *aIsParentWindowMainWidgetVisible) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIsParentWindowMainWidgetVisible(aIsParentWindowMainWidgetVisible); } \
  NS_IMETHOD IsNodeDisabledForEvents(nsINode *aNode, bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->IsNodeDisabledForEvents(aNode, _retval); } \
  NS_IMETHOD GetPaintFlashing(bool *aPaintFlashing) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPaintFlashing(aPaintFlashing); } \
  NS_IMETHOD SetPaintFlashing(bool aPaintFlashing) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetPaintFlashing(aPaintFlashing); } \
  NS_IMETHOD GetOMTAStyle(mozilla::dom::Element *aElement, const nsAString& aProperty, const nsAString& aPseudoElement, nsAString& _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetOMTAStyle(aElement, aProperty, aPseudoElement, _retval); } \
  NS_IMETHOD GetOMTCTransform(mozilla::dom::Element *aElement, const nsAString& aPseudoElement, nsAString& _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetOMTCTransform(aElement, aPseudoElement, _retval); } \
  NS_IMETHOD IsAnimationInPendingTracker(mozilla::dom::Animation *aAnimation, bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->IsAnimationInPendingTracker(aAnimation, _retval); } \
  NS_IMETHOD SetHandlingUserInput(bool aHandlingInput, nsIJSRAIIHelper **_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetHandlingUserInput(aHandlingInput, _retval); } \
  NS_IMETHOD GetContentAPZTestData(JSContext* cx, JS::MutableHandleValue _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetContentAPZTestData(cx, _retval); } \
  NS_IMETHOD GetCompositorAPZTestData(JSContext* cx, JS::MutableHandleValue _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCompositorAPZTestData(cx, _retval); } \
  NS_IMETHOD PostRestyleSelfEvent(mozilla::dom::Element *aElement) override { return !_to ? NS_ERROR_NULL_POINTER : _to->PostRestyleSelfEvent(aElement); } \
  NS_IMETHOD GetMediaSuspend(uint32_t *aMediaSuspend) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMediaSuspend(aMediaSuspend); } \
  NS_IMETHOD SetMediaSuspend(uint32_t aMediaSuspend) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetMediaSuspend(aMediaSuspend); } \
  NS_IMETHOD GetAudioMuted(bool *aAudioMuted) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAudioMuted(aAudioMuted); } \
  NS_IMETHOD SetAudioMuted(bool aAudioMuted) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetAudioMuted(aAudioMuted); } \
  NS_IMETHOD GetAudioVolume(float *aAudioVolume) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAudioVolume(aAudioVolume); } \
  NS_IMETHOD SetAudioVolume(float aAudioVolume) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetAudioVolume(aAudioVolume); } \
  NS_IMETHOD XpconnectArgument(nsIDOMWindowUtils *aThis) override { return !_to ? NS_ERROR_NULL_POINTER : _to->XpconnectArgument(aThis); } \
  NS_IMETHOD AskPermission(nsIContentPermissionRequest *aRequest) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AskPermission(aRequest); } \
  NS_IMETHOD GetRestyleGeneration(uint64_t *aRestyleGeneration) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetRestyleGeneration(aRestyleGeneration); } \
  NS_IMETHOD GetFramesConstructed(uint64_t *aFramesConstructed) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFramesConstructed(aFramesConstructed); } \
  NS_IMETHOD GetFramesReflowed(uint64_t *aFramesReflowed) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFramesReflowed(aFramesReflowed); } \
  NS_IMETHOD SetChromeMargin(int32_t aTop, int32_t aRight, int32_t aBottom, int32_t aLeft) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetChromeMargin(aTop, aRight, aBottom, aLeft); } \
  NS_IMETHOD GetServiceWorkersTestingEnabled(bool *aServiceWorkersTestingEnabled) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetServiceWorkersTestingEnabled(aServiceWorkersTestingEnabled); } \
  NS_IMETHOD SetServiceWorkersTestingEnabled(bool aServiceWorkersTestingEnabled) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetServiceWorkersTestingEnabled(aServiceWorkersTestingEnabled); } \
  NS_IMETHOD GetFrameUniformityTestData(JSContext* cx, JS::MutableHandleValue _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFrameUniformityTestData(cx, _retval); } \
  NS_IMETHOD EnterChaosMode(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->EnterChaosMode(); } \
  NS_IMETHOD LeaveChaosMode(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->LeaveChaosMode(); } \
  NS_IMETHOD TriggerDeviceReset(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->TriggerDeviceReset(); } \
  NS_IMETHOD HasRuleProcessorUsedByMultipleStyleSets(uint32_t aSheetType, bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->HasRuleProcessorUsedByMultipleStyleSets(aSheetType, _retval); } \
  NS_IMETHOD ForceUseCounterFlush(nsINode *aNode) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ForceUseCounterFlush(aNode); } \
  NS_IMETHOD RespectDisplayPortSuppression(bool aEnabled) override { return !_to ? NS_ERROR_NULL_POINTER : _to->RespectDisplayPortSuppression(aEnabled); } \
  NS_IMETHOD ForceReflowInterrupt(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ForceReflowInterrupt(); } \
  NS_IMETHOD TerminateGPUProcess(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->TerminateGPUProcess(); } \
  NS_IMETHOD GetGpuProcessPid(int32_t *aGpuProcessPid) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetGpuProcessPid(aGpuProcessPid); } \
  NS_IMETHOD IsTimeoutTracking(uint32_t timeoutId, bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->IsTimeoutTracking(timeoutId, _retval); } \
  NS_IMETHOD AddManuallyManagedState(mozilla::dom::Element *element, const nsAString& state) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AddManuallyManagedState(element, state); } \
  NS_IMETHOD RemoveManuallyManagedState(mozilla::dom::Element *element, const nsAString& state) override { return !_to ? NS_ERROR_NULL_POINTER : _to->RemoveManuallyManagedState(element, state); } \
  NS_IMETHOD GetStorageUsage(nsIDOMStorage *aStorage, int64_t *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetStorageUsage(aStorage, _retval); } \
  NS_IMETHOD GetDirectionFromText(const nsAString& aString, int32_t *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDirectionFromText(aString, _retval); } \
  NS_IMETHOD EnsureDirtyRootFrame(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->EnsureDirtyRootFrame(); } \
  NS_IMETHOD WrCapture(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->WrCapture(); } \
  NS_IMETHOD GetSystemFont(nsACString& aSystemFont) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSystemFont(aSystemFont); } \
  NS_IMETHOD SetSystemFont(const nsACString& aSystemFont) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetSystemFont(aSystemFont); } \


/* starting interface:    nsITranslationNodeList */
#define NS_ITRANSLATIONNODELIST_IID_STR "c694e359-7227-4392-a138-33c0cc1f15a6"

#define NS_ITRANSLATIONNODELIST_IID \
  {0xc694e359, 0x7227, 0x4392, \
    { 0xa1, 0x38, 0x33, 0xc0, 0xcc, 0x1f, 0x15, 0xa6 }}

class NS_NO_VTABLE nsITranslationNodeList : public nsISupports {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_ITRANSLATIONNODELIST_IID)

  /* readonly attribute unsigned long length; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetLength(uint32_t *aLength) = 0;

  /* Node item (in unsigned long index); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD Item(uint32_t index, nsINode **_retval) = 0;

  /* boolean isTranslationRootAtIndex (in unsigned long index); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD IsTranslationRootAtIndex(uint32_t index, bool *_retval) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsITranslationNodeList, NS_ITRANSLATIONNODELIST_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSITRANSLATIONNODELIST \
  NS_IMETHOD GetLength(uint32_t *aLength) override; \
  NS_IMETHOD Item(uint32_t index, nsINode **_retval) override; \
  NS_IMETHOD IsTranslationRootAtIndex(uint32_t index, bool *_retval) override; 

/* Use this macro when declaring the members of this interface when the
   class doesn't implement the interface. This is useful for forwarding. */
#define NS_DECL_NON_VIRTUAL_NSITRANSLATIONNODELIST \
  nsresult GetLength(uint32_t *aLength); \
  nsresult Item(uint32_t index, nsINode **_retval); \
  nsresult IsTranslationRootAtIndex(uint32_t index, bool *_retval); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSITRANSLATIONNODELIST(_to) \
  NS_IMETHOD GetLength(uint32_t *aLength) override { return _to GetLength(aLength); } \
  NS_IMETHOD Item(uint32_t index, nsINode **_retval) override { return _to Item(index, _retval); } \
  NS_IMETHOD IsTranslationRootAtIndex(uint32_t index, bool *_retval) override { return _to IsTranslationRootAtIndex(index, _retval); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSITRANSLATIONNODELIST(_to) \
  NS_IMETHOD GetLength(uint32_t *aLength) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLength(aLength); } \
  NS_IMETHOD Item(uint32_t index, nsINode **_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Item(index, _retval); } \
  NS_IMETHOD IsTranslationRootAtIndex(uint32_t index, bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->IsTranslationRootAtIndex(index, _retval); } 


/* starting interface:    nsIJSRAIIHelper */
#define NS_IJSRAIIHELPER_IID_STR "52e5a996-d0a9-4efc-a6fa-24489c532b19"

#define NS_IJSRAIIHELPER_IID \
  {0x52e5a996, 0xd0a9, 0x4efc, \
    { 0xa6, 0xfa, 0x24, 0x48, 0x9c, 0x53, 0x2b, 0x19 }}

class NS_NO_VTABLE nsIJSRAIIHelper : public nsISupports {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_IJSRAIIHELPER_IID)

  /* void destruct (); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD Destruct(void) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsIJSRAIIHelper, NS_IJSRAIIHELPER_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIJSRAIIHELPER \
  NS_IMETHOD Destruct(void) override; 

/* Use this macro when declaring the members of this interface when the
   class doesn't implement the interface. This is useful for forwarding. */
#define NS_DECL_NON_VIRTUAL_NSIJSRAIIHELPER \
  nsresult Destruct(void); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIJSRAIIHELPER(_to) \
  NS_IMETHOD Destruct(void) override { return _to Destruct(); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIJSRAIIHELPER(_to) \
  NS_IMETHOD Destruct(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Destruct(); } 


#endif /* __gen_nsIDOMWindowUtils_h__ */