1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 1978 1979 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 2040 2041 2042 2043 2044 2045 2046 2047 2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 2070 2071 2072 2073 2074 2075 2076 2077 2078 2079 2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095 2096 2097 2098 2099 2100 2101 2102 2103 2104 2105 2106 2107 2108 2109 2110 2111 2112 2113 2114 2115 2116 2117 2118 2119 2120 2121 2122 2123 2124 2125 2126 2127 2128 2129 2130 2131 2132 2133 2134 2135 2136 2137 2138 2139 2140 2141 2142 2143 2144 2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 2155 2156 2157 2158 2159 2160 2161 2162 2163 2164 2165 2166 2167 2168 2169 2170 2171 2172 2173 2174 2175 2176 2177 2178 2179 2180 2181 2182 2183 2184 2185 2186 2187 2188 2189 2190 2191 2192 2193 2194 2195 2196 2197 2198 2199 2200 2201 2202 2203 2204 2205 2206 2207 2208 2209 2210 2211 2212 2213 2214 2215 2216 2217 2218 2219 2220 2221 2222 2223 2224 2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 2235 2236 2237 2238 2239 2240 2241 2242 2243 2244 2245 2246 2247 2248 2249 2250 2251 2252 2253 2254 2255 2256 2257 2258 2259 2260 2261 2262 2263 2264 2265 2266 2267 2268 2269 2270 2271 2272 2273 2274 2275 2276 2277 2278 2279 2280 2281 2282 2283 2284 2285 2286 2287 2288 2289 2290 2291 2292 2293 2294 2295 2296 2297 2298 2299 2300 2301 2302 2303 2304 2305 2306 2307 2308 2309 2310 2311 2312 2313 2314 2315 2316 2317 2318 2319 2320 2321 2322 2323 2324 2325 2326 2327 2328 2329 2330 2331 2332 2333 2334 2335 2336 2337 2338 2339 2340 2341 2342 2343 2344 2345 2346 2347 2348 2349 2350 2351 2352 2353 2354 2355 2356 2357 2358 2359 2360 2361 2362 2363 2364 2365 2366 2367 2368 2369 2370 2371 2372 2373 2374 2375 2376 2377 2378 2379 2380 2381 2382 2383 2384 2385 2386 2387 2388 2389 2390 2391 2392 2393 2394 2395 2396 2397 2398 2399 2400 2401 2402 2403 2404 2405 2406 2407 2408 2409 2410 2411 2412 2413 2414 2415 2416 2417 2418 2419 2420 2421 2422 2423 2424 2425 2426 2427 2428 2429 2430 2431 2432 2433 2434 2435 2436 2437 2438 2439 2440 2441 2442 2443 2444 2445 2446 2447 2448 2449 2450 2451 2452 2453 2454 2455 2456 2457 2458 2459 2460 2461 2462 2463 2464 2465 2466 2467 2468 2469 2470 2471 2472 2473 2474 2475 2476 2477 2478 2479 2480 2481 2482 2483 2484 2485 2486 2487 2488 2489 2490 2491 2492 2493 2494 2495 2496 2497 2498 2499 2500 2501 2502 2503 2504 2505 2506 2507 2508 2509 2510 2511 2512 2513 2514 2515 2516 2517 2518 2519 2520 2521 2522 2523 2524 2525 2526 2527 2528 2529 2530 2531 2532 2533 2534 2535 2536 2537 2538 2539 2540 2541 2542 2543 2544 2545 2546 2547 2548 2549 2550 2551 2552 2553 2554 2555 2556 2557 2558 2559 2560 2561 2562 2563 2564 2565 2566 2567 2568 2569 2570 2571 2572 2573 2574 2575 2576 2577 2578 2579 2580 2581 2582 2583 2584 2585 2586 2587 2588 2589 2590 2591 2592 2593 2594 2595 2596 2597 2598 2599 2600 2601 2602 2603 2604 2605 2606 2607 2608 2609 2610 2611 2612 2613 2614 2615 2616 2617 2618 2619 2620 2621 2622 2623 2624 2625 2626 2627 2628 2629 2630 2631 2632 2633 2634 2635 2636 2637 2638 2639 2640 2641 2642 2643 2644 2645 2646 2647 2648 2649 2650 2651 2652 2653 2654 2655 2656 2657 2658 2659 2660 2661 2662 2663 2664 2665 2666 2667 2668 2669 2670 2671 2672 2673 2674 2675 2676 2677 2678 2679 2680 2681 2682 2683 2684 2685 2686 2687 2688 2689 2690 2691 2692 2693 2694 2695 2696 2697 2698 2699 2700 2701 2702 2703 2704 2705 2706 2707 2708 2709 2710 2711 2712 2713 2714 2715 2716 2717 2718 2719 2720 2721 2722 2723 2724 2725 2726 2727 2728 2729 2730 2731 2732 2733 2734 2735 2736 2737 2738 2739 2740 2741 2742 2743 2744 2745 2746 2747 2748 2749 2750 2751 2752 2753 2754 2755 2756 2757 2758 2759 2760 2761 2762 2763 2764 2765 2766 2767 2768 2769 2770 2771 2772 2773 2774 2775 2776 2777 2778 2779 2780 2781 2782 2783 2784 2785 2786 2787 2788 2789 2790 2791 2792 2793 2794 2795 2796 2797 2798 2799 2800 2801 2802 2803 2804 2805 2806 2807 2808 2809 2810 2811 2812 2813 2814 2815 2816 2817 2818 2819 2820 2821 2822 2823 2824 2825 2826 2827 2828 2829 2830 2831 2832 2833 2834 2835 2836 2837 2838 2839 2840 2841 2842 2843 2844 2845 2846 2847 2848 2849 2850 2851 2852 2853 2854 2855 2856 2857 2858 2859 2860 2861 2862 2863 2864 2865 2866 2867 2868 2869 2870 2871 2872 2873 2874 2875 2876 2877 2878 2879 2880 2881 2882 2883 2884 2885 2886 2887 2888 2889 2890 2891 2892 2893 2894 2895 2896 2897 2898 2899 2900 2901 2902 2903 2904 2905 2906 2907 2908 2909 2910 2911 2912 2913 2914 2915 2916 2917 2918 2919 2920 2921 2922 2923 2924 2925 2926 2927 2928 2929 2930 2931 2932 2933 2934 2935 2936 2937 2938 2939 2940 2941 2942 2943 2944 2945 2946 2947 2948 2949 2950 2951 2952 2953 2954 2955 2956 2957 2958 2959 2960 2961 2962 2963 2964 2965 2966 2967 2968 2969 2970 2971 2972 2973 2974 2975 2976 2977 2978 2979 2980 2981 2982 2983 2984 2985 2986 2987 2988 2989 2990 2991 2992 2993 2994 2995 2996 2997 2998 2999 3000 3001 3002 3003 3004 3005 3006 3007 3008 3009 3010 3011 3012 3013 3014 3015 3016 3017 3018 3019 3020 3021 3022 3023 3024 3025 3026 3027 3028 3029 3030 3031 3032 3033 3034 3035 3036 3037 3038 3039 3040 3041 3042 3043 3044 3045 3046 3047 3048 3049 3050 3051 3052 3053 3054 3055 3056 3057 3058 3059 3060 3061 3062 3063 3064 3065 3066 3067 3068 3069 3070 3071 3072 3073 3074 3075 3076 3077 3078 3079 3080 3081 3082 3083 3084 3085 3086 3087 3088 3089 3090 3091 3092 3093 3094 3095 3096 3097 3098 3099 3100 3101 3102 3103 3104 3105 3106 3107 3108 3109 3110 3111 3112 3113 3114 3115 3116 3117 3118 3119 3120 3121 3122 3123 3124 3125 3126 3127 3128 3129 3130 3131 3132 3133 3134 3135 3136 3137 3138 3139 3140 3141 3142 3143 3144 3145 3146 3147 3148 3149 3150 3151 3152 3153 3154 3155 3156 3157 3158 3159 3160 3161 3162 3163 3164 3165 3166 3167 3168 3169 3170 3171 3172 3173 3174 3175 3176 3177 3178 3179 3180 3181 3182 3183 3184 3185 3186 3187 3188 3189 3190 3191 3192 3193 3194 3195 3196 3197 3198 3199 3200 3201 3202 3203 3204 3205 3206 3207 3208 3209 3210 3211 3212 3213 3214 3215 3216 3217 3218 3219 3220 3221 3222 3223 3224 3225 3226 3227 3228 3229 3230 3231 3232 3233 3234 3235 3236 3237 3238 3239 3240 3241 3242 3243 3244 3245 3246 3247 3248 3249 3250 3251 3252 3253 3254 3255 3256 3257 3258 3259 3260 3261 3262 3263 3264 3265 3266 3267 3268 3269 3270 3271 3272 3273 3274 3275 3276 3277 3278 3279 3280 3281 3282 3283 3284 3285 3286 3287 3288 3289 3290 3291 3292 3293 3294 3295 3296 3297 3298 3299 3300 3301 3302 3303 3304 3305 3306 3307 3308 3309 3310 3311 3312 3313 3314 3315 3316 3317 3318 3319 3320 3321 3322 3323 3324 3325 3326 3327 3328 3329 3330 3331 3332 3333 3334 3335 3336 3337 3338 3339 3340 3341 3342 3343 3344 3345 3346 3347 3348 3349 3350 3351 3352 3353 3354 3355 3356 3357 3358 3359 3360 3361 3362 3363 3364 3365 3366 3367 3368 3369 3370 3371 3372 3373 3374 3375 3376 3377 3378 3379 3380 3381 3382 3383 3384 3385 3386 3387 3388 3389 3390 3391 3392 3393 3394 3395 3396 3397 3398 3399 3400 3401 3402 3403 3404 3405 3406 3407 3408 3409 3410 3411 3412 3413 3414 3415 3416 3417 3418 3419 3420 3421 3422 3423 3424 3425 3426 3427 3428 3429 3430 3431 3432 3433 3434 3435 3436 3437 3438 3439 3440 3441 3442 3443 3444 3445 3446 3447 3448 3449 3450 3451 3452 3453 3454 3455 3456 3457 3458 3459 3460 3461 3462 3463 3464 3465 3466 3467 3468 3469 3470 3471 3472 3473 3474 3475 3476 3477 3478 3479 3480 3481 3482 3483 3484 3485 3486 3487 3488 3489 3490 3491 3492 3493 3494 3495 3496 3497 3498 3499 3500 3501 3502 3503 3504 3505 3506 3507 3508 3509 3510 3511 3512 3513 3514 3515 3516 3517 3518 3519 3520 3521 3522 3523 3524 3525 3526 3527 3528 3529 3530 3531 3532 3533 3534 3535 3536 3537 3538 3539 3540 3541 3542 3543 3544 3545 3546 3547 3548 3549 3550 3551 3552 3553 3554 3555 3556 3557 3558 3559 3560 3561 3562 3563 3564 3565 3566 3567 3568 3569 3570 3571 3572 3573 3574 3575 3576 3577 3578 3579 3580 3581 3582 3583 3584 3585 3586 3587 3588 3589 3590 3591 3592 3593 3594 3595 3596 3597 3598 3599 3600 3601 3602 3603 3604 3605 3606 3607 3608 3609 3610 3611 3612 3613 3614 3615 3616 3617 3618 3619 3620 3621 3622 3623 3624 3625 3626 3627 3628 3629 3630 3631 3632 3633 3634 3635 3636 3637 3638 3639 3640 3641 3642 3643 3644 3645 3646 3647 3648 3649 3650 3651 3652 3653 3654 3655 3656 3657 3658 3659 3660 3661 3662 3663 3664 3665 3666 3667 3668 3669 3670 3671 3672 3673 3674 3675 3676 3677 3678 3679 3680 3681 3682 3683 3684 3685 3686 3687 3688 3689 3690 3691 3692 3693 3694 3695 3696 3697 3698 3699 3700 3701 3702 3703 3704 3705 3706 3707 3708 3709 3710 3711 3712 3713 3714 3715 3716 3717 3718 3719 3720 3721 3722 3723 3724 3725 3726 3727 3728 3729 3730 3731 3732 3733 3734 3735 3736 3737 3738 3739 3740 3741 3742 3743 3744 3745 3746 3747 3748 3749 3750 3751 3752 3753 3754 3755 3756 3757 3758 3759 3760 3761 3762 3763 3764 3765 3766 3767 3768 3769 3770 3771 3772 3773 3774 3775 3776 3777 3778 3779 3780 3781 3782 3783 3784 3785 3786 3787 3788 3789 3790 3791 3792 3793 3794 3795 3796 3797 3798 3799 3800 3801 3802 3803 3804 3805 3806 3807 3808 3809 3810 3811 3812 3813 3814 3815 3816 3817 3818 3819 3820 3821 3822 3823 3824 3825 3826 3827 3828 3829 3830 3831 3832 3833 3834 3835 3836 3837 3838 3839 3840 3841 3842 3843 3844 3845 3846 3847 3848 3849 3850 3851 3852 3853 3854 3855 3856 3857 3858 3859 3860 3861 3862 3863 3864 3865 3866 3867 3868 3869 3870 3871 3872 3873 3874 3875 3876 3877 3878 3879 3880 3881 3882 3883 3884 3885 3886 3887 3888 3889 3890 3891 3892 3893 3894 3895 3896 3897 3898 3899 3900 3901 3902 3903 3904 3905 3906 3907 3908 3909 3910 3911 3912 3913 3914 3915 3916 3917 3918 3919 3920 3921 3922 3923 3924 3925 3926 3927 3928 3929 3930 3931 3932 3933 3934 3935 3936 3937 3938 3939 3940 3941 3942 3943 3944 3945 3946 3947 3948 3949 3950 3951 3952 3953 3954 3955 3956 3957 3958 3959 3960 3961 3962 3963 3964 3965 3966 3967 3968 3969 3970 3971 3972 3973 3974 3975 3976 3977 3978 3979 3980 3981 3982 3983 3984 3985 3986 3987 3988 3989 3990 3991 3992 3993 3994 3995 3996 3997 3998 3999 4000 4001 4002 4003 4004 4005 4006 4007 4008 4009 4010 4011 4012 4013 4014 4015 4016 4017 4018 4019 4020 4021 4022 4023 4024 4025 4026 4027 4028 4029 4030 4031 4032 4033 4034 4035 4036 4037 4038 4039 4040 4041 4042 4043 4044 4045 4046 4047 4048 4049 4050 4051 4052 4053 4054 4055 4056 4057 4058 4059 4060 4061 4062 4063 4064 4065 4066 4067 4068 4069 4070 4071 4072 4073 4074 4075 4076 4077 4078 4079 4080 4081 4082 4083 4084 4085 4086 4087 4088 4089 4090 4091 4092 4093 4094 4095 4096 4097 4098 4099 4100 4101 4102 4103 4104 4105 4106 4107 4108 4109 4110 4111 4112 4113 4114 4115 4116 4117 4118 4119 4120 4121 4122 4123 4124 4125 4126 4127 4128 4129 4130 4131 4132 4133 4134 4135 4136 4137 4138 4139 4140 4141 4142 4143 4144 4145 4146 4147 4148 4149 4150 4151 4152 4153 4154 4155 4156 4157 4158 4159 4160 4161 4162 4163 4164 4165 4166 4167 4168 4169 4170 4171 4172 4173 4174 4175 4176 4177 4178 4179 4180 4181 4182 4183 4184 4185 4186 4187 4188 4189 4190 4191 4192 4193 4194 4195 4196 4197 4198 4199 4200 4201 4202 4203 4204 4205 4206 4207 4208 4209 4210 4211 4212 4213 4214 4215 4216 4217 4218 4219 4220 4221 4222 4223 4224 4225 4226 4227 4228 4229 4230 4231 4232 4233 4234 4235 4236 4237 4238 4239 4240 4241 4242 4243 4244 4245 4246 4247 4248 4249 4250 4251 4252 4253 4254 4255 4256 4257 4258 4259 4260 4261 4262 4263 4264 4265 4266 4267 4268 4269 4270 4271 4272 4273 4274 4275 4276 4277 4278 4279 4280 4281 4282 4283 4284 4285 4286 4287 4288 4289 4290 4291 4292 4293 4294 4295 4296 4297 4298 4299 4300 4301 4302 4303 4304 4305 4306 4307 4308 4309 4310 4311 4312 4313 4314 4315 4316 4317 4318 4319 4320 4321 4322 4323 4324 4325 4326 4327 4328 4329 4330 4331 4332 4333 4334 4335 4336 4337 4338 4339 4340 4341 4342 4343 4344 4345 4346 4347 4348 4349 4350 4351 4352 4353 4354 4355 4356 4357 4358 4359 4360 4361 4362 4363 4364 4365 4366 4367 4368 4369 4370 4371 4372 4373 4374 4375 4376 4377 4378 4379 4380 4381 4382 4383 4384 4385 4386 4387 4388 4389 4390 4391 4392 4393 4394 4395 4396 4397 4398 4399 4400 4401 4402 4403 4404 4405 4406 4407 4408 4409 4410 4411 4412 4413 4414 4415 4416 4417 4418 4419 4420 4421 4422 4423 4424 4425 4426 4427 4428 4429 4430 4431 4432 4433 4434 4435 4436 4437 4438 4439 4440 4441 4442 4443 4444 4445 4446 4447 4448 4449 4450 4451 4452 4453 4454 4455 4456 4457 4458 4459 4460 4461 4462 4463 4464 4465 4466 4467 4468 4469 4470 4471 4472 4473 4474 4475 4476 4477 4478 4479 4480 4481 4482 4483
// // DO NOT EDIT. THIS FILE IS GENERATED FROM ../../../dist/idl/nsIDOMWindowUtils.idl // /// `interface nsIDOMWindowUtils : nsISupports` /// // The actual type definition for the interface. This struct has methods // declared on it which will call through its vtable. You never want to pass // this type around by value, always pass it behind a reference. #[repr(C)] pub struct nsIDOMWindowUtils { vtable: *const nsIDOMWindowUtilsVTable, /// This field is a phantomdata to ensure that the VTable type and any /// struct containing it is not safe to send across threads, as XPCOM is /// generally not threadsafe. /// /// XPCOM interfaces in general are not safe to send across threads. __nosync: ::std::marker::PhantomData<::std::rc::Rc<u8>>, } // Implementing XpCom for an interface exposes its IID, which allows for easy // use of the `.query_interface<T>` helper method. This also defines that // method for nsIDOMWindowUtils. unsafe impl XpCom for nsIDOMWindowUtils { const IID: nsIID = nsID(0x4d6732ca, 0x9da7, 0x4176, [0xb8, 0xa1, 0x8d, 0xde, 0x15, 0xcd, 0x0b, 0xf9]); } // We need to implement the RefCounted trait so we can be used with `RefPtr`. // This trait teaches `RefPtr` how to manage our memory. unsafe impl RefCounted for nsIDOMWindowUtils { #[inline] unsafe fn addref(&self) { self.AddRef(); } #[inline] unsafe fn release(&self) { self.Release(); } } // This trait is implemented on all types which can be coerced to from nsIDOMWindowUtils. // It is used in the implementation of `fn coerce<T>`. We hide it from the // documentation, because it clutters it up a lot. #[doc(hidden)] pub trait nsIDOMWindowUtilsCoerce { /// Cheaply cast a value of this type from a `nsIDOMWindowUtils`. fn coerce_from(v: &nsIDOMWindowUtils) -> &Self; } // The trivial implementation: We can obviously coerce ourselves to ourselves. impl nsIDOMWindowUtilsCoerce for nsIDOMWindowUtils { #[inline] fn coerce_from(v: &nsIDOMWindowUtils) -> &Self { v } } impl nsIDOMWindowUtils { /// Cast this `nsIDOMWindowUtils` to one of its base interfaces. #[inline] pub fn coerce<T: nsIDOMWindowUtilsCoerce>(&self) -> &T { T::coerce_from(self) } } // Every interface struct type implements `Deref` to its base interface. This // causes methods on the base interfaces to be directly avaliable on the // object. For example, you can call `.AddRef` or `.QueryInterface` directly // on any interface which inherits from `nsISupports`. impl ::std::ops::Deref for nsIDOMWindowUtils { type Target = nsISupports; #[inline] fn deref(&self) -> &nsISupports { unsafe { ::std::mem::transmute(self) } } } // Ensure we can use .coerce() to cast to our base types as well. Any type which // our base interface can coerce from should be coercable from us as well. impl<T: nsISupportsCoerce> nsIDOMWindowUtilsCoerce for T { #[inline] fn coerce_from(v: &nsIDOMWindowUtils) -> &Self { T::coerce_from(v) } } // This struct represents the interface's VTable. A pointer to a statically // allocated version of this struct is at the beginning of every nsIDOMWindowUtils // object. It contains one pointer field for each method in the interface. In // the case where we can't generate a binding for a method, we include a void // pointer. #[doc(hidden)] #[repr(C)] pub struct nsIDOMWindowUtilsVTable { /// We need to include the members from the base interface's vtable at the start /// of the VTable definition. pub __base: nsISupportsVTable, /* attribute unsigned short imageAnimationMode; */ pub GetImageAnimationMode: unsafe extern "system" fn (this: *const nsIDOMWindowUtils, aImageAnimationMode: *mut libc::uint16_t) -> nsresult, /* attribute unsigned short imageAnimationMode; */ pub SetImageAnimationMode: unsafe extern "system" fn (this: *const nsIDOMWindowUtils, aImageAnimationMode: libc::uint16_t) -> nsresult, /* readonly attribute boolean docCharsetIsForced; */ pub GetDocCharsetIsForced: unsafe extern "system" fn (this: *const nsIDOMWindowUtils, aDocCharsetIsForced: *mut bool) -> nsresult, /* readonly attribute float physicalMillimeterInCSSPixels; */ pub GetPhysicalMillimeterInCSSPixels: unsafe extern "system" fn (this: *const nsIDOMWindowUtils, aPhysicalMillimeterInCSSPixels: *mut libc::c_float) -> nsresult, /* AString getDocumentMetadata (in AString aName); */ pub GetDocumentMetadata: unsafe extern "system" fn (this: *const nsIDOMWindowUtils, aName: &::nsstring::nsAString, _retval: &mut ::nsstring::nsAString) -> nsresult, /* unsigned long redraw ([optional] in unsigned long aCount); */ pub Redraw: unsafe extern "system" fn (this: *const nsIDOMWindowUtils, aCount: libc::uint32_t, _retval: *mut libc::uint32_t) -> nsresult, /* void updateLayerTree (); */ pub UpdateLayerTree: unsafe extern "system" fn (this: *const nsIDOMWindowUtils) -> nsresult, /* readonly attribute unsigned long long lastTransactionId; */ pub GetLastTransactionId: unsafe extern "system" fn (this: *const nsIDOMWindowUtils, aLastTransactionId: *mut libc::uint64_t) -> nsresult, /* 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); */ pub GetViewportInfo: unsafe extern "system" fn (this: *const nsIDOMWindowUtils, aDisplayWidth: uint32_t, aDisplayHeight: uint32_t, aDefaultZoom: *mut libc::c_double, aAllowZoom: *mut bool, aMinZoom: *mut libc::c_double, aMaxZoom: *mut libc::c_double, aWidth: *mut uint32_t, aHeight: *mut uint32_t, aAutoSize: *mut bool) -> nsresult, /* void getContentViewerSize (out uint32_t aDisplayWidth, out uint32_t aDisplayHeight); */ pub GetContentViewerSize: unsafe extern "system" fn (this: *const nsIDOMWindowUtils, aDisplayWidth: *mut uint32_t, aDisplayHeight: *mut uint32_t) -> nsresult, /* void setDisplayPortForElement (in float aXPx, in float aYPx, in float aWidthPx, in float aHeightPx, in nsIDOMElement aElement, in uint32_t aPriority); */ pub SetDisplayPortForElement: unsafe extern "system" fn (this: *const nsIDOMWindowUtils, aXPx: libc::c_float, aYPx: libc::c_float, aWidthPx: libc::c_float, aHeightPx: libc::c_float, aElement: *const nsIDOMElement, aPriority: uint32_t) -> nsresult, /* void setDisplayPortMarginsForElement (in float aLeftMargin, in float aTopMargin, in float aRightMargin, in float aBottomMargin, in nsIDOMElement aElement, in uint32_t aPriority); */ pub SetDisplayPortMarginsForElement: unsafe extern "system" fn (this: *const nsIDOMWindowUtils, aLeftMargin: libc::c_float, aTopMargin: libc::c_float, aRightMargin: libc::c_float, aBottomMargin: libc::c_float, aElement: *const nsIDOMElement, aPriority: uint32_t) -> nsresult, /* void setDisplayPortBaseForElement (in int32_t aX, in int32_t aY, in int32_t aWidth, in int32_t aHeight, in nsIDOMElement aElement); */ pub SetDisplayPortBaseForElement: unsafe extern "system" fn (this: *const nsIDOMWindowUtils, aX: int32_t, aY: int32_t, aWidth: int32_t, aHeight: int32_t, aElement: *const nsIDOMElement) -> nsresult, /* void setResolution (in float aResolution); */ pub SetResolution: unsafe extern "system" fn (this: *const nsIDOMWindowUtils, aResolution: libc::c_float) -> nsresult, /* void getResolution (out float aResolution); */ pub GetResolution: unsafe extern "system" fn (this: *const nsIDOMWindowUtils, aResolution: *mut libc::c_float) -> nsresult, /* void setResolutionAndScaleTo (in float aResolution); */ pub SetResolutionAndScaleTo: unsafe extern "system" fn (this: *const nsIDOMWindowUtils, aResolution: libc::c_float) -> nsresult, /* void setRestoreResolution (in float aResolution, in uint32_t aDisplayWidth, in uint32_t aDisplayHeight); */ pub SetRestoreResolution: unsafe extern "system" fn (this: *const nsIDOMWindowUtils, aResolution: libc::c_float, aDisplayWidth: uint32_t, aDisplayHeight: uint32_t) -> nsresult, /* readonly attribute boolean isResolutionSet; */ pub GetIsResolutionSet: unsafe extern "system" fn (this: *const nsIDOMWindowUtils, aIsResolutionSet: *mut bool) -> nsresult, /* attribute boolean isFirstPaint; */ pub GetIsFirstPaint: unsafe extern "system" fn (this: *const nsIDOMWindowUtils, aIsFirstPaint: *mut bool) -> nsresult, /* attribute boolean isFirstPaint; */ pub SetIsFirstPaint: unsafe extern "system" fn (this: *const nsIDOMWindowUtils, aIsFirstPaint: bool) -> nsresult, /* uint32_t getPresShellId (); */ pub GetPresShellId: unsafe extern "system" fn (this: *const nsIDOMWindowUtils, _retval: *mut uint32_t) -> nsresult, /* [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); */ /// Unable to generate binding because `optional_argc is unsupported` pub SendMouseEvent: *const ::libc::c_void, /* 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); */ pub SendTouchEvent: unsafe extern "system" fn (this: *const nsIDOMWindowUtils, aType: &::nsstring::nsAString, aIdentifiers: *mut uint32_t, aXs: *mut int32_t, aYs: *mut int32_t, aRxs: *mut uint32_t, aRys: *mut uint32_t, aRotationAngles: *mut libc::c_float, aForces: *mut libc::c_float, count: uint32_t, aModifiers: libc::int32_t, aIgnoreRootScrollFrame: bool, _retval: *mut bool) -> nsresult, /* [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); */ /// Unable to generate binding because `optional_argc is unsupported` pub SendMouseEventToWindow: *const ::libc::c_void, /* 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); */ pub SendTouchEventToWindow: unsafe extern "system" fn (this: *const nsIDOMWindowUtils, aType: &::nsstring::nsAString, aIdentifiers: *mut uint32_t, aXs: *mut int32_t, aYs: *mut int32_t, aRxs: *mut uint32_t, aRys: *mut uint32_t, aRotationAngles: *mut libc::c_float, aForces: *mut libc::c_float, count: uint32_t, aModifiers: libc::int32_t, aIgnoreRootScrollFrame: bool, _retval: *mut bool) -> nsresult, /* 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); */ pub SendWheelEvent: unsafe extern "system" fn (this: *const nsIDOMWindowUtils, aX: libc::c_float, aY: libc::c_float, aDeltaX: libc::c_double, aDeltaY: libc::c_double, aDeltaZ: libc::c_double, aDeltaMode: libc::uint32_t, aModifiers: libc::int32_t, aLineOrPageDeltaX: libc::int32_t, aLineOrPageDeltaY: libc::int32_t, aOptions: libc::uint32_t) -> nsresult, /* boolean sendKeyEvent (in AString aType, in long aKeyCode, in long aCharCode, in long aModifiers, [optional] in unsigned long aAdditionalFlags); */ pub SendKeyEvent: unsafe extern "system" fn (this: *const nsIDOMWindowUtils, aType: &::nsstring::nsAString, aKeyCode: libc::int32_t, aCharCode: libc::int32_t, aModifiers: libc::int32_t, aAdditionalFlags: libc::uint32_t, _retval: *mut bool) -> nsresult, /* void sendNativeKeyEvent (in long aNativeKeyboardLayout, in long aNativeKeyCode, in long aModifierFlags, in AString aCharacters, in AString aUnmodifiedCharacters, [optional] in nsIObserver aObserver); */ pub SendNativeKeyEvent: unsafe extern "system" fn (this: *const nsIDOMWindowUtils, aNativeKeyboardLayout: libc::int32_t, aNativeKeyCode: libc::int32_t, aModifierFlags: libc::int32_t, aCharacters: &::nsstring::nsAString, aUnmodifiedCharacters: &::nsstring::nsAString, aObserver: *const nsIObserver) -> nsresult, /* void sendNativeMouseEvent (in long aScreenX, in long aScreenY, in long aNativeMessage, in long aModifierFlags, in nsIDOMElement aElement, [optional] in nsIObserver aObserver); */ pub SendNativeMouseEvent: unsafe extern "system" fn (this: *const nsIDOMWindowUtils, aScreenX: libc::int32_t, aScreenY: libc::int32_t, aNativeMessage: libc::int32_t, aModifierFlags: libc::int32_t, aElement: *const nsIDOMElement, aObserver: *const nsIObserver) -> nsresult, /* void sendNativeMouseMove (in long aScreenX, in long aScreenY, in nsIDOMElement aElement, [optional] in nsIObserver aObserver); */ pub SendNativeMouseMove: unsafe extern "system" fn (this: *const nsIDOMWindowUtils, aScreenX: libc::int32_t, aScreenY: libc::int32_t, aElement: *const nsIDOMElement, aObserver: *const nsIObserver) -> nsresult, /* void suppressAnimation (in boolean aSuppress); */ pub SuppressAnimation: unsafe extern "system" fn (this: *const nsIDOMWindowUtils, aSuppress: bool) -> nsresult, /* 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 nsIDOMElement aElement, [optional] in nsIObserver aObserver); */ pub SendNativeMouseScrollEvent: unsafe extern "system" fn (this: *const nsIDOMWindowUtils, aScreenX: libc::int32_t, aScreenY: libc::int32_t, aNativeMessage: libc::uint32_t, aDeltaX: libc::c_double, aDeltaY: libc::c_double, aDeltaZ: libc::c_double, aModifierFlags: libc::uint32_t, aAdditionalFlags: libc::uint32_t, aElement: *const nsIDOMElement, aObserver: *const nsIObserver) -> nsresult, /* 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); */ pub SendNativeTouchPoint: unsafe extern "system" fn (this: *const nsIDOMWindowUtils, aPointerId: libc::uint32_t, aTouchState: libc::uint32_t, aScreenX: libc::int32_t, aScreenY: libc::int32_t, aPressure: libc::c_double, aOrientation: libc::uint32_t, aObserver: *const nsIObserver) -> nsresult, /* void sendNativeTouchTap (in long aScreenX, in long aScreenY, in boolean aLongTap, [optional] in nsIObserver aObserver); */ pub SendNativeTouchTap: unsafe extern "system" fn (this: *const nsIDOMWindowUtils, aScreenX: libc::int32_t, aScreenY: libc::int32_t, aLongTap: bool, aObserver: *const nsIObserver) -> nsresult, /* void clearNativeTouchSequence ([optional] in nsIObserver aObserver); */ pub ClearNativeTouchSequence: unsafe extern "system" fn (this: *const nsIDOMWindowUtils, aObserver: *const nsIObserver) -> nsresult, /* void activateNativeMenuItemAt (in AString indexString); */ pub ActivateNativeMenuItemAt: unsafe extern "system" fn (this: *const nsIDOMWindowUtils, indexString: &::nsstring::nsAString) -> nsresult, /* void forceUpdateNativeMenuAt (in AString indexString); */ pub ForceUpdateNativeMenuAt: unsafe extern "system" fn (this: *const nsIDOMWindowUtils, indexString: &::nsstring::nsAString) -> nsresult, /* AString GetSelectionAsPlaintext (); */ pub GetSelectionAsPlaintext: unsafe extern "system" fn (this: *const nsIDOMWindowUtils, _retval: &mut ::nsstring::nsAString) -> nsresult, /* void focus (in nsIDOMElement aElement); */ pub Focus: unsafe extern "system" fn (this: *const nsIDOMWindowUtils, aElement: *const nsIDOMElement) -> nsresult, /* void garbageCollect ([optional] in nsICycleCollectorListener aListener); */ pub GarbageCollect: unsafe extern "system" fn (this: *const nsIDOMWindowUtils, aListener: *const nsICycleCollectorListener) -> nsresult, /* void cycleCollect ([optional] in nsICycleCollectorListener aListener); */ pub CycleCollect: unsafe extern "system" fn (this: *const nsIDOMWindowUtils, aListener: *const nsICycleCollectorListener) -> nsresult, /* void runNextCollectorTimer (); */ pub RunNextCollectorTimer: unsafe extern "system" fn (this: *const nsIDOMWindowUtils) -> nsresult, /* 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); */ pub SendSimpleGestureEvent: unsafe extern "system" fn (this: *const nsIDOMWindowUtils, aType: &::nsstring::nsAString, aX: libc::c_float, aY: libc::c_float, aDirection: libc::uint32_t, aDelta: libc::c_double, aModifiers: libc::int32_t, aClickCount: libc::uint32_t) -> nsresult, /* nsIDOMElement elementFromPoint (in float aX, in float aY, in boolean aIgnoreRootScrollFrame, in boolean aFlushLayout); */ pub ElementFromPoint: unsafe extern "system" fn (this: *const nsIDOMWindowUtils, aX: libc::c_float, aY: libc::c_float, aIgnoreRootScrollFrame: bool, aFlushLayout: bool, _retval: *mut *const nsIDOMElement) -> nsresult, /* nsIDOMNodeList 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); */ pub NodesFromRect: unsafe extern "system" fn (this: *const nsIDOMWindowUtils, aX: libc::c_float, aY: libc::c_float, aTopSize: libc::c_float, aRightSize: libc::c_float, aBottomSize: libc::c_float, aLeftSize: libc::c_float, aIgnoreRootScrollFrame: bool, aFlushLayout: bool, _retval: *mut *const nsIDOMNodeList) -> nsresult, /* nsITranslationNodeList getTranslationNodes (in nsIDOMNode aRoot); */ pub GetTranslationNodes: unsafe extern "system" fn (this: *const nsIDOMWindowUtils, aRoot: *const nsIDOMNode, _retval: *mut *const nsITranslationNodeList) -> nsresult, /* uint32_t compareCanvases (in nsISupports aCanvas1, in nsISupports aCanvas2, out unsigned long aMaxDifference); */ pub CompareCanvases: unsafe extern "system" fn (this: *const nsIDOMWindowUtils, aCanvas1: *const nsISupports, aCanvas2: *const nsISupports, aMaxDifference: *mut libc::uint32_t, _retval: *mut uint32_t) -> nsresult, /* readonly attribute boolean isMozAfterPaintPending; */ pub GetIsMozAfterPaintPending: unsafe extern "system" fn (this: *const nsIDOMWindowUtils, aIsMozAfterPaintPending: *mut bool) -> nsresult, /* void suppressEventHandling (in boolean aSuppress); */ pub SuppressEventHandling: unsafe extern "system" fn (this: *const nsIDOMWindowUtils, aSuppress: bool) -> nsresult, /* void disableNonTestMouseEvents (in boolean aDisable); */ pub DisableNonTestMouseEvents: unsafe extern "system" fn (this: *const nsIDOMWindowUtils, aDisable: bool) -> nsresult, /* void getScrollXY (in boolean aFlushLayout, out long aScrollX, out long aScrollY); */ pub GetScrollXY: unsafe extern "system" fn (this: *const nsIDOMWindowUtils, aFlushLayout: bool, aScrollX: *mut libc::int32_t, aScrollY: *mut libc::int32_t) -> nsresult, /* void getScrollXYFloat (in boolean aFlushLayout, out float aScrollX, out float aScrollY); */ pub GetScrollXYFloat: unsafe extern "system" fn (this: *const nsIDOMWindowUtils, aFlushLayout: bool, aScrollX: *mut libc::c_float, aScrollY: *mut libc::c_float) -> nsresult, /* void getScrollbarSize (in boolean aFlushLayout, out long aWidth, out long aHeight); */ pub GetScrollbarSize: unsafe extern "system" fn (this: *const nsIDOMWindowUtils, aFlushLayout: bool, aWidth: *mut libc::int32_t, aHeight: *mut libc::int32_t) -> nsresult, /* nsIDOMClientRect getBoundsWithoutFlushing (in nsIDOMElement aElement); */ pub GetBoundsWithoutFlushing: unsafe extern "system" fn (this: *const nsIDOMWindowUtils, aElement: *const nsIDOMElement, _retval: *mut *const nsIDOMClientRect) -> nsresult, /* bool needsFlush (in long aFlushtype); */ pub NeedsFlush: unsafe extern "system" fn (this: *const nsIDOMWindowUtils, aFlushtype: libc::int32_t, _retval: *mut bool) -> nsresult, /* nsIDOMClientRect getRootBounds (); */ pub GetRootBounds: unsafe extern "system" fn (this: *const nsIDOMWindowUtils, _retval: *mut *const nsIDOMClientRect) -> nsresult, /* readonly attribute boolean IMEIsOpen; */ pub GetIMEIsOpen: unsafe extern "system" fn (this: *const nsIDOMWindowUtils, aIMEIsOpen: *mut bool) -> nsresult, /* readonly attribute unsigned long IMEStatus; */ pub GetIMEStatus: unsafe extern "system" fn (this: *const nsIDOMWindowUtils, aIMEStatus: *mut libc::uint32_t) -> nsresult, /* readonly attribute float screenPixelsPerCSSPixel; */ pub GetScreenPixelsPerCSSPixel: unsafe extern "system" fn (this: *const nsIDOMWindowUtils, aScreenPixelsPerCSSPixel: *mut libc::c_float) -> nsresult, /* readonly attribute float fullZoom; */ pub GetFullZoom: unsafe extern "system" fn (this: *const nsIDOMWindowUtils, aFullZoom: *mut libc::c_float) -> nsresult, /* boolean dispatchDOMEventViaPresShell (in nsIDOMNode aTarget, in nsIDOMEvent aEvent, in boolean aTrusted); */ pub DispatchDOMEventViaPresShell: unsafe extern "system" fn (this: *const nsIDOMWindowUtils, aTarget: *const nsIDOMNode, aEvent: *const nsIDOMEvent, aTrusted: bool, _retval: *mut bool) -> nsresult, /* boolean dispatchEventToChromeOnly (in nsIDOMEventTarget aTarget, in nsIDOMEvent aEvent); */ pub DispatchEventToChromeOnly: unsafe extern "system" fn (this: *const nsIDOMWindowUtils, aTarget: *const nsIDOMEventTarget, aEvent: *const nsIDOMEvent, _retval: *mut bool) -> nsresult, /* [implicit_jscontext] string getClassName (in jsval aObject); */ /// Unable to generate binding because `native type JS::Value is unsupported` pub GetClassName: *const ::libc::c_void, /* void sendContentCommandEvent (in AString aType, [optional] in nsITransferable aTransferable); */ pub SendContentCommandEvent: unsafe extern "system" fn (this: *const nsIDOMWindowUtils, aType: &::nsstring::nsAString, aTransferable: *const nsITransferable) -> nsresult, /* 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); */ pub SendQueryContentEvent: unsafe extern "system" fn (this: *const nsIDOMWindowUtils, aType: libc::uint32_t, aOffset: libc::int64_t, aLength: libc::uint32_t, aX: libc::int32_t, aY: libc::int32_t, aAdditionalFlags: libc::uint32_t, _retval: *mut *const nsIQueryContentEventResult) -> nsresult, /* void remoteFrameFullscreenChanged (in nsIDOMElement aFrameElement); */ pub RemoteFrameFullscreenChanged: unsafe extern "system" fn (this: *const nsIDOMWindowUtils, aFrameElement: *const nsIDOMElement) -> nsresult, /* void remoteFrameFullscreenReverted (); */ pub RemoteFrameFullscreenReverted: unsafe extern "system" fn (this: *const nsIDOMWindowUtils) -> nsresult, /* boolean handleFullscreenRequests (); */ pub HandleFullscreenRequests: unsafe extern "system" fn (this: *const nsIDOMWindowUtils, _retval: *mut bool) -> nsresult, /* void exitFullscreen (); */ pub ExitFullscreen: unsafe extern "system" fn (this: *const nsIDOMWindowUtils) -> nsresult, /* boolean sendSelectionSetEvent (in unsigned long aOffset, in unsigned long aLength, [optional] in unsigned long aAdditionalFlags); */ pub SendSelectionSetEvent: unsafe extern "system" fn (this: *const nsIDOMWindowUtils, aOffset: libc::uint32_t, aLength: libc::uint32_t, aAdditionalFlags: libc::uint32_t, _retval: *mut bool) -> nsresult, /* boolean selectAtPoint (in float aX, in float aY, in unsigned long aSelectBehavior); */ pub SelectAtPoint: unsafe extern "system" fn (this: *const nsIDOMWindowUtils, aX: libc::c_float, aY: libc::c_float, aSelectBehavior: libc::uint32_t, _retval: *mut bool) -> nsresult, /* AString getVisitedDependentComputedStyle (in nsIDOMElement aElement, in AString aPseudoElement, in AString aPropertyName); */ pub GetVisitedDependentComputedStyle: unsafe extern "system" fn (this: *const nsIDOMWindowUtils, aElement: *const nsIDOMElement, aPseudoElement: &::nsstring::nsAString, aPropertyName: &::nsstring::nsAString, _retval: &mut ::nsstring::nsAString) -> nsresult, /* readonly attribute unsigned long long outerWindowID; */ pub GetOuterWindowID: unsafe extern "system" fn (this: *const nsIDOMWindowUtils, aOuterWindowID: *mut libc::uint64_t) -> nsresult, /* readonly attribute unsigned long long currentInnerWindowID; */ pub GetCurrentInnerWindowID: unsafe extern "system" fn (this: *const nsIDOMWindowUtils, aCurrentInnerWindowID: *mut libc::uint64_t) -> nsresult, /* void enterModalState (); */ pub EnterModalState: unsafe extern "system" fn (this: *const nsIDOMWindowUtils) -> nsresult, /* void leaveModalState (); */ pub LeaveModalState: unsafe extern "system" fn (this: *const nsIDOMWindowUtils) -> nsresult, /* [noscript] boolean isInModalState (); */ pub IsInModalState: unsafe extern "system" fn (this: *const nsIDOMWindowUtils, _retval: *mut bool) -> nsresult, /* void setDesktopModeViewport (in boolean aDesktopModeViewport); */ pub SetDesktopModeViewport: unsafe extern "system" fn (this: *const nsIDOMWindowUtils, aDesktopModeViewport: bool) -> nsresult, /* void suspendTimeouts (); */ pub SuspendTimeouts: unsafe extern "system" fn (this: *const nsIDOMWindowUtils) -> nsresult, /* void resumeTimeouts (); */ pub ResumeTimeouts: unsafe extern "system" fn (this: *const nsIDOMWindowUtils) -> nsresult, /* readonly attribute AString layerManagerType; */ pub GetLayerManagerType: unsafe extern "system" fn (this: *const nsIDOMWindowUtils, aLayerManagerType: &mut ::nsstring::nsAString) -> nsresult, /* readonly attribute boolean layerManagerRemote; */ pub GetLayerManagerRemote: unsafe extern "system" fn (this: *const nsIDOMWindowUtils, aLayerManagerRemote: *mut bool) -> nsresult, /* readonly attribute boolean usingAdvancedLayers; */ pub GetUsingAdvancedLayers: unsafe extern "system" fn (this: *const nsIDOMWindowUtils, aUsingAdvancedLayers: *mut bool) -> nsresult, /* readonly attribute boolean isWebRenderRequested; */ pub GetIsWebRenderRequested: unsafe extern "system" fn (this: *const nsIDOMWindowUtils, aIsWebRenderRequested: *mut bool) -> nsresult, /* readonly attribute AString currentAudioBackend; */ pub GetCurrentAudioBackend: unsafe extern "system" fn (this: *const nsIDOMWindowUtils, aCurrentAudioBackend: &mut ::nsstring::nsAString) -> nsresult, /* readonly attribute unsigned long currentMaxAudioChannels; */ pub GetCurrentMaxAudioChannels: unsafe extern "system" fn (this: *const nsIDOMWindowUtils, aCurrentMaxAudioChannels: *mut libc::uint32_t) -> nsresult, /* readonly attribute AString currentPreferredChannelLayout; */ pub GetCurrentPreferredChannelLayout: unsafe extern "system" fn (this: *const nsIDOMWindowUtils, aCurrentPreferredChannelLayout: &mut ::nsstring::nsAString) -> nsresult, /* readonly attribute unsigned long currentPreferredSampleRate; */ pub GetCurrentPreferredSampleRate: unsafe extern "system" fn (this: *const nsIDOMWindowUtils, aCurrentPreferredSampleRate: *mut libc::uint32_t) -> nsresult, /* nsIArray audioDevices (in unsigned short aSide); */ pub AudioDevices: unsafe extern "system" fn (this: *const nsIDOMWindowUtils, aSide: libc::uint16_t, _retval: *mut *const nsIArray) -> nsresult, /* void startFrameTimeRecording ([retval] out unsigned long startIndex); */ pub StartFrameTimeRecording: unsafe extern "system" fn (this: *const nsIDOMWindowUtils, startIndex: *mut libc::uint32_t) -> nsresult, /* void stopFrameTimeRecording (in unsigned long startIndex, [optional] out unsigned long frameCount, [array, size_is (frameCount), retval] out float frameIntervals); */ pub StopFrameTimeRecording: unsafe extern "system" fn (this: *const nsIDOMWindowUtils, startIndex: libc::uint32_t, frameCount: *mut libc::uint32_t, frameIntervals: *mut *mut libc::c_float) -> nsresult, /* readonly attribute float displayDPI; */ pub GetDisplayDPI: unsafe extern "system" fn (this: *const nsIDOMWindowUtils, aDisplayDPI: *mut libc::c_float) -> nsresult, /* readonly attribute nsIDOMElement containerElement; */ pub GetContainerElement: unsafe extern "system" fn (this: *const nsIDOMWindowUtils, aContainerElement: *mut *const nsIDOMElement) -> nsresult, /* [noscript] void RenderDocument (in nsConstRect aRect, in uint32_t aFlags, in nscolor aBackgroundColor, in gfxContext aThebesContext); */ /// Unable to generate binding because `native type const nsRect is unsupported` pub RenderDocument: *const ::libc::c_void, /* void advanceTimeAndRefresh (in long long aMilliseconds); */ pub AdvanceTimeAndRefresh: unsafe extern "system" fn (this: *const nsIDOMWindowUtils, aMilliseconds: libc::int64_t) -> nsresult, /* void restoreNormalRefresh (); */ pub RestoreNormalRefresh: unsafe extern "system" fn (this: *const nsIDOMWindowUtils) -> nsresult, /* readonly attribute bool isTestControllingRefreshes; */ pub GetIsTestControllingRefreshes: unsafe extern "system" fn (this: *const nsIDOMWindowUtils, aIsTestControllingRefreshes: *mut bool) -> nsresult, /* readonly attribute bool asyncPanZoomEnabled; */ pub GetAsyncPanZoomEnabled: unsafe extern "system" fn (this: *const nsIDOMWindowUtils, aAsyncPanZoomEnabled: *mut bool) -> nsresult, /* void setAsyncScrollOffset (in nsIDOMNode aNode, in float aX, in float aY); */ pub SetAsyncScrollOffset: unsafe extern "system" fn (this: *const nsIDOMWindowUtils, aNode: *const nsIDOMNode, aX: libc::c_float, aY: libc::c_float) -> nsresult, /* void setAsyncZoom (in nsIDOMNode aRootElement, in float aValue); */ pub SetAsyncZoom: unsafe extern "system" fn (this: *const nsIDOMWindowUtils, aRootElement: *const nsIDOMNode, aValue: libc::c_float) -> nsresult, /* bool flushApzRepaints (); */ pub FlushApzRepaints: unsafe extern "system" fn (this: *const nsIDOMWindowUtils, _retval: *mut bool) -> nsresult, /* void zoomToFocusedInput (); */ pub ZoomToFocusedInput: unsafe extern "system" fn (this: *const nsIDOMWindowUtils) -> nsresult, /* double computeAnimationDistance (in nsIDOMElement element, in AString property, in AString value1, in AString value2); */ pub ComputeAnimationDistance: unsafe extern "system" fn (this: *const nsIDOMWindowUtils, element: *const nsIDOMElement, property: &::nsstring::nsAString, value1: &::nsstring::nsAString, value2: &::nsstring::nsAString, _retval: *mut libc::c_double) -> nsresult, /* AString getAnimationTypeForLonghand (in AString aProperty); */ pub GetAnimationTypeForLonghand: unsafe extern "system" fn (this: *const nsIDOMWindowUtils, aProperty: &::nsstring::nsAString, _retval: &mut ::nsstring::nsAString) -> nsresult, /* AString getUnanimatedComputedStyle (in nsIDOMElement aElement, in AString aPseudoElement, in AString aProperty, in long aFlushType); */ pub GetUnanimatedComputedStyle: unsafe extern "system" fn (this: *const nsIDOMWindowUtils, aElement: *const nsIDOMElement, aPseudoElement: &::nsstring::nsAString, aProperty: &::nsstring::nsAString, aFlushType: libc::int32_t, _retval: &mut ::nsstring::nsAString) -> nsresult, /* readonly attribute string focusedInputType; */ pub GetFocusedInputType: unsafe extern "system" fn (this: *const nsIDOMWindowUtils, aFocusedInputType: *mut *const libc::c_char) -> nsresult, /* nsViewID getViewId (in nsIDOMElement aElement); */ pub GetViewId: unsafe extern "system" fn (this: *const nsIDOMWindowUtils, aElement: *const nsIDOMElement, _retval: *mut nsViewID) -> nsresult, /* boolean leafLayersPartitionWindow (); */ pub LeafLayersPartitionWindow: unsafe extern "system" fn (this: *const nsIDOMWindowUtils, _retval: *mut bool) -> nsresult, /* boolean checkAndClearPaintedState (in nsIDOMElement aElement); */ pub CheckAndClearPaintedState: unsafe extern "system" fn (this: *const nsIDOMWindowUtils, aElement: *const nsIDOMElement, _retval: *mut bool) -> nsresult, /* boolean checkAndClearDisplayListState (in nsIDOMElement aElement); */ pub CheckAndClearDisplayListState: unsafe extern "system" fn (this: *const nsIDOMWindowUtils, aElement: *const nsIDOMElement, _retval: *mut bool) -> nsresult, /* boolean isPartOfOpaqueLayer (in nsIDOMElement aElement); */ pub IsPartOfOpaqueLayer: unsafe extern "system" fn (this: *const nsIDOMWindowUtils, aElement: *const nsIDOMElement, _retval: *mut bool) -> nsresult, /* unsigned long numberOfAssignedPaintedLayers ([array, size_is (count)] in nsIDOMElement aElements, in uint32_t count); */ pub NumberOfAssignedPaintedLayers: unsafe extern "system" fn (this: *const nsIDOMWindowUtils, aElements: *mut *const nsIDOMElement, count: uint32_t, _retval: *mut libc::uint32_t) -> nsresult, /* [implicit_jscontext] long long getFileId (in jsval aFile); */ /// Unable to generate binding because `native type JS::Value is unsupported` pub GetFileId: *const ::libc::c_void, /* [implicit_jscontext] AString getFilePath (in jsval aFile); */ /// Unable to generate binding because `native type JS::Value is unsupported` pub GetFilePath: *const ::libc::c_void, /* [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); */ /// Unable to generate binding because `native type JS::Value is unsupported` pub GetFileReferences: *const ::libc::c_void, /* void flushPendingFileDeletions (); */ pub FlushPendingFileDeletions: unsafe extern "system" fn (this: *const nsIDOMWindowUtils) -> nsresult, /* [implicit_jscontext] boolean isIncrementalGCEnabled (); */ /// Unable to generate binding because `jscontext is unsupported` pub IsIncrementalGCEnabled: *const ::libc::c_void, /* [implicit_jscontext] void startPCCountProfiling (); */ /// Unable to generate binding because `jscontext is unsupported` pub StartPCCountProfiling: *const ::libc::c_void, /* [implicit_jscontext] void stopPCCountProfiling (); */ /// Unable to generate binding because `jscontext is unsupported` pub StopPCCountProfiling: *const ::libc::c_void, /* [implicit_jscontext] void purgePCCounts (); */ /// Unable to generate binding because `jscontext is unsupported` pub PurgePCCounts: *const ::libc::c_void, /* [implicit_jscontext] long getPCCountScriptCount (); */ /// Unable to generate binding because `jscontext is unsupported` pub GetPCCountScriptCount: *const ::libc::c_void, /* [implicit_jscontext] AString getPCCountScriptSummary (in long script); */ /// Unable to generate binding because `jscontext is unsupported` pub GetPCCountScriptSummary: *const ::libc::c_void, /* [implicit_jscontext] AString getPCCountScriptContents (in long script); */ /// Unable to generate binding because `jscontext is unsupported` pub GetPCCountScriptContents: *const ::libc::c_void, /* readonly attribute boolean paintingSuppressed; */ pub GetPaintingSuppressed: unsafe extern "system" fn (this: *const nsIDOMWindowUtils, aPaintingSuppressed: *mut bool) -> nsresult, /* [implicit_jscontext] readonly attribute jsval plugins; */ /// Unable to generate binding because `native type JS::Value is unsupported` pub GetPlugins: *const ::libc::c_void, /* void setScrollPositionClampingScrollPortSize (in float aWidth, in float aHeight); */ pub SetScrollPositionClampingScrollPortSize: unsafe extern "system" fn (this: *const nsIDOMWindowUtils, aWidth: libc::c_float, aHeight: libc::c_float) -> nsresult, /* void disableDialogs (); */ pub DisableDialogs: unsafe extern "system" fn (this: *const nsIDOMWindowUtils) -> nsresult, /* void enableDialogs (); */ pub EnableDialogs: unsafe extern "system" fn (this: *const nsIDOMWindowUtils) -> nsresult, /* bool areDialogsEnabled (); */ pub AreDialogsEnabled: unsafe extern "system" fn (this: *const nsIDOMWindowUtils, _retval: *mut bool) -> nsresult, /* void loadSheet (in nsIURI sheetURI, in unsigned long type); */ pub LoadSheet: unsafe extern "system" fn (this: *const nsIDOMWindowUtils, sheetURI: *const nsIURI, type_: libc::uint32_t) -> nsresult, /* void loadSheetUsingURIString (in ACString sheetURI, in unsigned long type); */ pub LoadSheetUsingURIString: unsafe extern "system" fn (this: *const nsIDOMWindowUtils, sheetURI: &::nsstring::nsACString, type_: libc::uint32_t) -> nsresult, /* void addSheet (in nsIPreloadedStyleSheet sheet, in unsigned long type); */ pub AddSheet: unsafe extern "system" fn (this: *const nsIDOMWindowUtils, sheet: *const nsIPreloadedStyleSheet, type_: libc::uint32_t) -> nsresult, /* void removeSheet (in nsIURI sheetURI, in unsigned long type); */ pub RemoveSheet: unsafe extern "system" fn (this: *const nsIDOMWindowUtils, sheetURI: *const nsIURI, type_: libc::uint32_t) -> nsresult, /* void removeSheetUsingURIString (in ACString sheetURI, in unsigned long type); */ pub RemoveSheetUsingURIString: unsafe extern "system" fn (this: *const nsIDOMWindowUtils, sheetURI: &::nsstring::nsACString, type_: libc::uint32_t) -> nsresult, /* readonly attribute boolean isHandlingUserInput; */ pub GetIsHandlingUserInput: unsafe extern "system" fn (this: *const nsIDOMWindowUtils, aIsHandlingUserInput: *mut bool) -> nsresult, /* readonly attribute double millisSinceLastUserInput; */ pub GetMillisSinceLastUserInput: unsafe extern "system" fn (this: *const nsIDOMWindowUtils, aMillisSinceLastUserInput: *mut libc::c_double) -> nsresult, /* void allowScriptsToClose (); */ pub AllowScriptsToClose: unsafe extern "system" fn (this: *const nsIDOMWindowUtils) -> nsresult, /* readonly attribute boolean isParentWindowMainWidgetVisible; */ pub GetIsParentWindowMainWidgetVisible: unsafe extern "system" fn (this: *const nsIDOMWindowUtils, aIsParentWindowMainWidgetVisible: *mut bool) -> nsresult, /* boolean isNodeDisabledForEvents (in nsIDOMNode aNode); */ pub IsNodeDisabledForEvents: unsafe extern "system" fn (this: *const nsIDOMWindowUtils, aNode: *const nsIDOMNode, _retval: *mut bool) -> nsresult, /* attribute boolean paintFlashing; */ pub GetPaintFlashing: unsafe extern "system" fn (this: *const nsIDOMWindowUtils, aPaintFlashing: *mut bool) -> nsresult, /* attribute boolean paintFlashing; */ pub SetPaintFlashing: unsafe extern "system" fn (this: *const nsIDOMWindowUtils, aPaintFlashing: bool) -> nsresult, /* AString getOMTAStyle (in nsIDOMElement aElement, in AString aProperty, [optional] in AString aPseudoElement); */ pub GetOMTAStyle: unsafe extern "system" fn (this: *const nsIDOMWindowUtils, aElement: *const nsIDOMElement, aProperty: &::nsstring::nsAString, aPseudoElement: &::nsstring::nsAString, _retval: &mut ::nsstring::nsAString) -> nsresult, /* float requestCompositorProperty (in AString aProperty); */ pub RequestCompositorProperty: unsafe extern "system" fn (this: *const nsIDOMWindowUtils, aProperty: &::nsstring::nsAString, _retval: *mut libc::c_float) -> nsresult, /* nsIJSRAIIHelper setHandlingUserInput (in boolean aHandlingInput); */ pub SetHandlingUserInput: unsafe extern "system" fn (this: *const nsIDOMWindowUtils, aHandlingInput: bool, _retval: *mut *const nsIJSRAIIHelper) -> nsresult, /* [implicit_jscontext] jsval getContentAPZTestData (); */ /// Unable to generate binding because `jscontext is unsupported` pub GetContentAPZTestData: *const ::libc::c_void, /* [implicit_jscontext] jsval getCompositorAPZTestData (); */ /// Unable to generate binding because `jscontext is unsupported` pub GetCompositorAPZTestData: *const ::libc::c_void, /* void postRestyleSelfEvent (in nsIDOMElement aElement); */ pub PostRestyleSelfEvent: unsafe extern "system" fn (this: *const nsIDOMWindowUtils, aElement: *const nsIDOMElement) -> nsresult, /* attribute uint32_t mediaSuspend; */ pub GetMediaSuspend: unsafe extern "system" fn (this: *const nsIDOMWindowUtils, aMediaSuspend: *mut uint32_t) -> nsresult, /* attribute uint32_t mediaSuspend; */ pub SetMediaSuspend: unsafe extern "system" fn (this: *const nsIDOMWindowUtils, aMediaSuspend: uint32_t) -> nsresult, /* attribute boolean audioMuted; */ pub GetAudioMuted: unsafe extern "system" fn (this: *const nsIDOMWindowUtils, aAudioMuted: *mut bool) -> nsresult, /* attribute boolean audioMuted; */ pub SetAudioMuted: unsafe extern "system" fn (this: *const nsIDOMWindowUtils, aAudioMuted: bool) -> nsresult, /* attribute float audioVolume; */ pub GetAudioVolume: unsafe extern "system" fn (this: *const nsIDOMWindowUtils, aAudioVolume: *mut libc::c_float) -> nsresult, /* attribute float audioVolume; */ pub SetAudioVolume: unsafe extern "system" fn (this: *const nsIDOMWindowUtils, aAudioVolume: libc::c_float) -> nsresult, /* void xpconnectArgument (in nsIDOMWindowUtils aThis); */ pub XpconnectArgument: unsafe extern "system" fn (this: *const nsIDOMWindowUtils, aThis: *const nsIDOMWindowUtils) -> nsresult, /* void askPermission (in nsIContentPermissionRequest aRequest); */ pub AskPermission: unsafe extern "system" fn (this: *const nsIDOMWindowUtils, aRequest: *const nsIContentPermissionRequest) -> nsresult, /* readonly attribute unsigned long long restyleGeneration; */ pub GetRestyleGeneration: unsafe extern "system" fn (this: *const nsIDOMWindowUtils, aRestyleGeneration: *mut libc::uint64_t) -> nsresult, /* readonly attribute unsigned long long framesConstructed; */ pub GetFramesConstructed: unsafe extern "system" fn (this: *const nsIDOMWindowUtils, aFramesConstructed: *mut libc::uint64_t) -> nsresult, /* readonly attribute unsigned long long framesReflowed; */ pub GetFramesReflowed: unsafe extern "system" fn (this: *const nsIDOMWindowUtils, aFramesReflowed: *mut libc::uint64_t) -> nsresult, /* void setChromeMargin (in int32_t aTop, in int32_t aRight, in int32_t aBottom, in int32_t aLeft); */ pub SetChromeMargin: unsafe extern "system" fn (this: *const nsIDOMWindowUtils, aTop: int32_t, aRight: int32_t, aBottom: int32_t, aLeft: int32_t) -> nsresult, /* attribute boolean serviceWorkersTestingEnabled; */ pub GetServiceWorkersTestingEnabled: unsafe extern "system" fn (this: *const nsIDOMWindowUtils, aServiceWorkersTestingEnabled: *mut bool) -> nsresult, /* attribute boolean serviceWorkersTestingEnabled; */ pub SetServiceWorkersTestingEnabled: unsafe extern "system" fn (this: *const nsIDOMWindowUtils, aServiceWorkersTestingEnabled: bool) -> nsresult, /* [implicit_jscontext] jsval getFrameUniformityTestData (); */ /// Unable to generate binding because `jscontext is unsupported` pub GetFrameUniformityTestData: *const ::libc::c_void, /* void enterChaosMode (); */ pub EnterChaosMode: unsafe extern "system" fn (this: *const nsIDOMWindowUtils) -> nsresult, /* void leaveChaosMode (); */ pub LeaveChaosMode: unsafe extern "system" fn (this: *const nsIDOMWindowUtils) -> nsresult, /* void triggerDeviceReset (); */ pub TriggerDeviceReset: unsafe extern "system" fn (this: *const nsIDOMWindowUtils) -> nsresult, /* bool hasRuleProcessorUsedByMultipleStyleSets (in unsigned long aSheetType); */ pub HasRuleProcessorUsedByMultipleStyleSets: unsafe extern "system" fn (this: *const nsIDOMWindowUtils, aSheetType: libc::uint32_t, _retval: *mut bool) -> nsresult, /* void forceUseCounterFlush (in nsIDOMNode aNode); */ pub ForceUseCounterFlush: unsafe extern "system" fn (this: *const nsIDOMWindowUtils, aNode: *const nsIDOMNode) -> nsresult, /* void respectDisplayPortSuppression (in boolean aEnabled); */ pub RespectDisplayPortSuppression: unsafe extern "system" fn (this: *const nsIDOMWindowUtils, aEnabled: bool) -> nsresult, /* void forceReflowInterrupt (); */ pub ForceReflowInterrupt: unsafe extern "system" fn (this: *const nsIDOMWindowUtils) -> nsresult, /* void terminateGPUProcess (); */ pub TerminateGPUProcess: unsafe extern "system" fn (this: *const nsIDOMWindowUtils) -> nsresult, /* readonly attribute int32_t gpuProcessPid; */ pub GetGpuProcessPid: unsafe extern "system" fn (this: *const nsIDOMWindowUtils, aGpuProcessPid: *mut int32_t) -> nsresult, /* boolean isTimeoutTracking (in unsigned long timeoutId); */ pub IsTimeoutTracking: unsafe extern "system" fn (this: *const nsIDOMWindowUtils, timeoutId: libc::uint32_t, _retval: *mut bool) -> nsresult, /* void addManuallyManagedState (in nsIDOMElement element, in AString state); */ pub AddManuallyManagedState: unsafe extern "system" fn (this: *const nsIDOMWindowUtils, element: *const nsIDOMElement, state: &::nsstring::nsAString) -> nsresult, /* void removeManuallyManagedState (in nsIDOMElement element, in AString state); */ pub RemoveManuallyManagedState: unsafe extern "system" fn (this: *const nsIDOMWindowUtils, element: *const nsIDOMElement, state: &::nsstring::nsAString) -> nsresult, /* int64_t getStorageUsage (in nsIDOMStorage aStorage); */ pub GetStorageUsage: unsafe extern "system" fn (this: *const nsIDOMWindowUtils, aStorage: *const nsIDOMStorage, _retval: *mut int64_t) -> nsresult, /* long getDirectionFromText (in AString aString); */ pub GetDirectionFromText: unsafe extern "system" fn (this: *const nsIDOMWindowUtils, aString: &::nsstring::nsAString, _retval: *mut libc::int32_t) -> nsresult, /* void ensureDirtyRootFrame (); */ pub EnsureDirtyRootFrame: unsafe extern "system" fn (this: *const nsIDOMWindowUtils) -> nsresult, /* readonly attribute boolean isStyledByServo; */ pub GetIsStyledByServo: unsafe extern "system" fn (this: *const nsIDOMWindowUtils, aIsStyledByServo: *mut bool) -> nsresult, /* void addToStyloBlocklist (in ACString aBlockedDomain); */ pub AddToStyloBlocklist: unsafe extern "system" fn (this: *const nsIDOMWindowUtils, aBlockedDomain: &::nsstring::nsACString) -> nsresult, /* void removeFromStyloBlocklist (in ACString aBlockedDomain); */ pub RemoveFromStyloBlocklist: unsafe extern "system" fn (this: *const nsIDOMWindowUtils, aBlockedDomain: &::nsstring::nsACString) -> nsresult, } // The implementations of the function wrappers which are exposed to rust code. // Call these methods rather than manually calling through the VTable struct. impl nsIDOMWindowUtils { /// ```text /// /** /// * Following modifiers are for sent*Event() except sendNative*Event(). /// * NOTE: MODIFIER_ALT, MODIFIER_CONTROL, MODIFIER_SHIFT and MODIFIER_META /// * are must be same values as nsIDOMNSEvent::*_MASK for backward /// * compatibility. /// */ /// ``` /// pub const MODIFIER_ALT: i64 = 1; pub const MODIFIER_CONTROL: i64 = 2; pub const MODIFIER_SHIFT: i64 = 4; pub const MODIFIER_META: i64 = 8; pub const MODIFIER_ALTGRAPH: i64 = 16; pub const MODIFIER_CAPSLOCK: i64 = 32; pub const MODIFIER_FN: i64 = 64; pub const MODIFIER_FNLOCK: i64 = 128; pub const MODIFIER_NUMLOCK: i64 = 256; pub const MODIFIER_SCROLLLOCK: i64 = 512; pub const MODIFIER_SYMBOL: i64 = 1024; pub const MODIFIER_SYMBOLLOCK: i64 = 2048; pub const MODIFIER_OS: i64 = 4096; /// ```text /// /** Synthesize a wheel event for a window. The event types supported is only /// * wheel. /// * /// * Events are sent in coordinates offset by aX and aY from the window. /// * /// * Cannot be accessed from unprivileged context (not content-accessible) /// * Will throw a DOM security error if called without chrome privileges. /// * /// * @param aX x offset in CSS pixels /// * @param aY y offset in CSS pixels /// * @param aDeltaX deltaX value. /// * @param aDeltaY deltaY value. /// * @param aDeltaZ deltaZ value. /// * @param aDeltaMode deltaMode value which must be one of /// * nsIDOMWheelEvent::DOM_DELTA_*. /// * @param aModifiers modifiers pressed, using constants defined as /// * MODIFIER_* /// * @param aLineOrPageDeltaX If you set this value non-zero for /// * DOM_DELTA_PIXEL event, EventStateManager will /// * dispatch NS_MOUSE_SCROLL event for horizontal /// * scroll. /// * @param aLineOrPageDeltaY If you set this value non-zero for /// * DOM_DELTA_PIXEL event, EventStateManager will /// * dispatch NS_MOUSE_SCROLL event for vertical /// * scroll. /// * @param aOptions Set following flags. /// */ /// ``` /// pub const WHEEL_EVENT_CAUSED_BY_NO_LINE_OR_PAGE_DELTA_DEVICE: i64 = 1; pub const WHEEL_EVENT_CAUSED_BY_MOMENTUM: i64 = 2; pub const WHEEL_EVENT_CUSTOMIZED_BY_USER_PREFS: i64 = 4; pub const WHEEL_EVENT_EXPECTED_OVERFLOW_DELTA_X_ZERO: i64 = 16; pub const WHEEL_EVENT_EXPECTED_OVERFLOW_DELTA_X_POSITIVE: i64 = 32; pub const WHEEL_EVENT_EXPECTED_OVERFLOW_DELTA_X_NEGATIVE: i64 = 64; pub const WHEEL_EVENT_EXPECTED_OVERFLOW_DELTA_Y_ZERO: i64 = 256; pub const WHEEL_EVENT_EXPECTED_OVERFLOW_DELTA_Y_POSITIVE: i64 = 512; pub const WHEEL_EVENT_EXPECTED_OVERFLOW_DELTA_Y_NEGATIVE: i64 = 1024; /// ```text /// /** /// * Synthesize a key event to the window. The event types supported are: /// * keydown, keyup, keypress /// * /// * Key events generally end up being sent to the focused node. /// * /// * Cannot be accessed from unprivileged context (not content-accessible) /// * Will throw a DOM security error if called without chrome privileges. /// * /// * @param aType event type /// * @param aKeyCode key code /// * @param aCharCode character code /// * @param aModifiers modifiers pressed, using constants defined as MODIFIER_* /// * @param aAdditionalFlags special flags for the key event, see KEY_FLAG_*. /// * /// * @return false if the event had preventDefault() called on it, /// * true otherwise. In other words, true if and only if the /// * default action was taken. /// */ /// ``` /// pub const KEY_FLAG_PREVENT_DEFAULT: i64 = 1; pub const KEY_FLAG_NOT_SYNTHESIZED_FOR_TESTS: i64 = 2; pub const KEY_FLAG_LOCATION_STANDARD: i64 = 16; pub const KEY_FLAG_LOCATION_LEFT: i64 = 32; pub const KEY_FLAG_LOCATION_RIGHT: i64 = 64; pub const KEY_FLAG_LOCATION_NUMPAD: i64 = 128; /// ```text /// /** /// * The values for sendNativeMouseScrollEvent's aAdditionalFlags. /// */ /// /** /// * If MOUSESCROLL_PREFER_WIDGET_AT_POINT is set, widget will dispatch /// * the event to a widget which is under the cursor. Otherwise, dispatch to /// * a default target on the platform. E.g., on Windows, it's focused window. /// */ /// ``` /// pub const MOUSESCROLL_PREFER_WIDGET_AT_POINT: i64 = 1; /// ```text /// /** /// * Interpret the scroll delta values as lines rather than pixels. /// */ /// ``` /// pub const MOUSESCROLL_SCROLL_LINES: i64 = 2; /// ```text /// /** /// * The platform specific values of aAdditionalFlags. Must be over 0x00010000. /// */ /// /** /// * If MOUSESCROLL_WIN_SCROLL_LPARAM_NOT_NULL is set and aNativeMessage is /// * WM_VSCROLL or WM_HSCROLL, widget will set the window handle to the lParam /// * instead of NULL. /// */ /// ``` /// pub const MOUSESCROLL_WIN_SCROLL_LPARAM_NOT_NULL: i64 = 65536; /// ```text /// /** /// * Touch states for sendNativeTouchPoint. These values match /// * nsIWidget's TouchPointerState. /// */ /// ``` /// pub const TOUCH_HOVER: i64 = 1; pub const TOUCH_CONTACT: i64 = 2; pub const TOUCH_REMOVE: i64 = 4; pub const TOUCH_CANCEL: i64 = 8; pub const FLUSH_NONE: i64 = -1; pub const FLUSH_STYLE: i64 = 0; pub const FLUSH_LAYOUT: i64 = 1; pub const FLUSH_DISPLAY: i64 = 2; /// ```text /// /** /// * WARNING: These values must be same as nsIWidget's values. /// */ /// /** /// * DISABLED means users cannot use IME completely. /// * Note that this state is *not* same as |ime-mode: disabled;|. /// */ /// ``` /// pub const IME_STATUS_DISABLED: i64 = 0; /// ```text /// /** /// * ENABLED means users can use all functions of IME. This state is same as /// * |ime-mode: normal;|. /// */ /// ``` /// pub const IME_STATUS_ENABLED: i64 = 1; /// ```text /// /** /// * PASSWORD means users cannot use most functions of IME. But on GTK2, /// * users can use "Simple IM" which only supports dead key inputting. /// * The behavior is same as the behavior of the native password field. /// * This state is same as |ime-mode: disabled;|. /// */ /// ``` /// pub const IME_STATUS_PASSWORD: i64 = 2; /// ```text /// /** /// * PLUGIN means a plug-in has focus. At this time we should not touch to /// * controlling the IME state. /// */ /// ``` /// pub const IME_STATUS_PLUGIN: i64 = 3; /// ```text /// /** /// * If sendQueryContentEvent()'s aAdditionalFlags argument is /// * QUERY_CONTENT_FLAG_USE_XP_LINE_BREAK, plain text generated from content /// * is created with "\n". /// * Otherwise, platform dependent. E.g., on Windows, "\r\n" is used. /// * aOffset and aLength are offset and length in/of the plain text content. /// * This flag also affects the result values such as offset, length and string. /// */ /// ``` /// pub const QUERY_CONTENT_FLAG_USE_NATIVE_LINE_BREAK: i64 = 0; pub const QUERY_CONTENT_FLAG_USE_XP_LINE_BREAK: i64 = 1; /// ```text /// /** /// * sendQueryContentEvent()'s aAdditionalFlags may have one of following /// * flags when aType is QUERY_SELECTED_TEXT. If one of them is set, /// * the result is the first range of the selection type. See also /// * nsISelectionController::SELECTION_*. /// */ /// ``` /// pub const QUERY_CONTENT_FLAG_SELECTION_SPELLCHECK: i64 = 2; pub const QUERY_CONTENT_FLAG_SELECTION_IME_RAWINPUT: i64 = 4; pub const QUERY_CONTENT_FLAG_SELECTION_IME_SELECTEDRAWTEXT: i64 = 8; pub const QUERY_CONTENT_FLAG_SELECTION_IME_CONVERTEDTEXT: i64 = 16; pub const QUERY_CONTENT_FLAG_SELECTION_IME_SELECTEDCONVERTEDTEXT: i64 = 32; pub const QUERY_CONTENT_FLAG_SELECTION_ACCESSIBILITY: i64 = 64; pub const QUERY_CONTENT_FLAG_SELECTION_FIND: i64 = 128; pub const QUERY_CONTENT_FLAG_SELECTION_URLSECONDARY: i64 = 256; pub const QUERY_CONTENT_FLAG_SELECTION_URLSTRIKEOUT: i64 = 512; /// ```text /// /** /// * One of sendQueryContentEvent()'s aAdditionalFlags. If this is specified, /// * aOffset is relative to start of selection or composition. /// * Note that this is supported only when QUERY_CONTENT_FLAG_USE_XP_LINE_BREAK /// * is not specified for now. /// */ /// ``` /// pub const QUERY_CONTENT_FLAG_OFFSET_RELATIVE_TO_INSERTION_POINT: i64 = 1024; /// ```text /// /** /// * QUERY_SELECTED_TEXT queries the first selection range's information. /// * /// * @param aOffset Not used. /// * @param aLength Not used. /// * @param aX Not used. /// * @param aY Not used. /// * /// * @return offset, reversed and text properties of the result are available. /// */ /// ``` /// pub const QUERY_SELECTED_TEXT: i64 = 3200; /// ```text /// /** /// * QUERY_TEXT_CONTENT queries the text at the specified range. /// * /// * @param aOffset The first character's offset. 0 is the first character. /// * @param aLength The length of getting text. If the aLength is too long, /// * the result text is shorter than this value. /// * @param aX Not used. /// * @param aY Not used. /// * /// * @return text property of the result is available. /// */ /// ``` /// pub const QUERY_TEXT_CONTENT: i64 = 3201; /// ```text /// /** /// * QUERY_CARET_RECT queries the (collapsed) caret rect of the offset. /// * If the actual caret is there at the specified offset, this returns the /// * actual caret rect. Otherwise, this guesses the caret rect from the /// * metrics of the text. /// * /// * @param aOffset The caret offset. 0 is the left side of the first /// * caracter in LTR text. /// * @param aLength Not used. /// * @param aX Not used. /// * @param aY Not used. /// * /// * @return left, top, width and height properties of the result are available. /// * The left and the top properties are offset in the client area of /// * the DOM window. /// */ /// ``` /// pub const QUERY_CARET_RECT: i64 = 3203; /// ```text /// /** /// * QUERY_TEXT_RECT queries the specified text's rect. /// * /// * @param aOffset The first character's offset. 0 is the first character. /// * @param aLength The length of getting text. If the aLength is too long, /// * the extra length is ignored. /// * @param aX Not used. /// * @param aY Not used. /// * /// * @return left, top, width and height properties of the result are available. /// * The left and the top properties are offset in the client area of /// * the DOM window. /// */ /// ``` /// pub const QUERY_TEXT_RECT: i64 = 3204; /// ```text /// /** /// * QUERY_TEXT_RECT queries the focused editor's rect. /// * /// * @param aOffset Not used. /// * @param aLength Not used. /// * @param aX Not used. /// * @param aY Not used. /// * /// * @return left, top, width and height properties of the result are available. /// */ /// ``` /// pub const QUERY_EDITOR_RECT: i64 = 3205; /// ```text /// /** /// * QUERY_CHARACTER_AT_POINT queries the character information at the /// * specified point. The point is offset in the window. /// * NOTE: If there are some panels at the point, this method send the query /// * event to the panel's widget automatically. /// * /// * @param aOffset Not used. /// * @param aLength Not used. /// * @param aX X offset in the widget. /// * @param aY Y offset in the widget. /// * /// * @return offset, notFound, left, top, width and height properties of the /// * result are available. /// */ /// ``` /// pub const QUERY_CHARACTER_AT_POINT: i64 = 3208; /// ```text /// /** /// * QUERY_TEXT_RECT_ARRAY queries the rects per character /// * /// * @param aOffset The first character's offset. 0 is the first character. /// * @param aLength The length of getting text. If the aLength is too long, /// * the extra length is ignored. /// * @param aX Not used. /// * @param aY Not used. /// */ /// ``` /// pub const QUERY_TEXT_RECT_ARRAY: i64 = 3209; /// ```text /// /** /// * If sendQueryContentEvent()'s aAdditionalFlags argument is /// * SELECTION_SET_FLAG_USE_NATIVE_LINE_BREAK, aOffset and aLength are offset /// * and length in/of plain text generated from content is created with "\n". /// * Otherwise, platform dependent. E.g., on Windows, "\r\n" is used. /// */ /// ``` /// pub const SELECTION_SET_FLAG_USE_NATIVE_LINE_BREAK: i64 = 0; pub const SELECTION_SET_FLAG_USE_XP_LINE_BREAK: i64 = 1; /// ```text /// /** /// * If SELECTION_SET_FLAG_REVERSE is set, the selection is set from /// * |aOffset + aLength| to |aOffset|. Otherwise, it's set from |aOffset| to /// * |aOffset + aLength|. /// */ /// ``` /// pub const SELECTION_SET_FLAG_REVERSE: i64 = 2; pub const SELECT_CHARACTER: i64 = 0; pub const SELECT_CLUSTER: i64 = 1; pub const SELECT_WORD: i64 = 2; pub const SELECT_LINE: i64 = 3; pub const SELECT_BEGINLINE: i64 = 4; pub const SELECT_ENDLINE: i64 = 5; pub const SELECT_PARAGRAPH: i64 = 6; pub const SELECT_WORDNOSPACE: i64 = 7; /// ```text /// /** /// * Returns all the audio input/output devices. /// */ /// ``` /// pub const AUDIO_INPUT: i64 = 0; pub const AUDIO_OUTPUT: i64 = 1; pub const AGENT_SHEET: i64 = 0; pub const USER_SHEET: i64 = 1; pub const AUTHOR_SHEET: i64 = 2; pub const DEFAULT_MOUSE_POINTER_ID: i64 = 0; pub const DEFAULT_PEN_POINTER_ID: i64 = 1; pub const DEFAULT_TOUCH_POINTER_ID: i64 = 2; pub const MOUSE_BUTTON_LEFT_BUTTON: i64 = 0; pub const MOUSE_BUTTON_MIDDLE_BUTTON: i64 = 1; pub const MOUSE_BUTTON_RIGHT_BUTTON: i64 = 2; pub const MOUSE_BUTTONS_NO_BUTTON: i64 = 0; pub const MOUSE_BUTTONS_LEFT_BUTTON: i64 = 1; pub const MOUSE_BUTTONS_RIGHT_BUTTON: i64 = 2; pub const MOUSE_BUTTONS_MIDDLE_BUTTON: i64 = 4; pub const MOUSE_BUTTONS_4TH_BUTTON: i64 = 8; pub const MOUSE_BUTTONS_5TH_BUTTON: i64 = 16; pub const MOUSE_BUTTONS_NOT_SPECIFIED: i64 = -1; pub const DIRECTION_LTR: i64 = 0; pub const DIRECTION_RTL: i64 = 1; pub const DIRECTION_NOT_SET: i64 = 2; /// ```text /// /** /// * Image animation mode of the window. When this attribute's value /// * is changed, the implementation should set all images in the window /// * to the given value. That is, when set to kDontAnimMode, all images /// * will stop animating. The attribute's value must be one of the /// * animationMode values from imgIContainer. /// * @note Images may individually override the window's setting after /// * the window's mode is set. Therefore images given different modes /// * since the last setting of the window's mode may behave /// * out of line with the window's overall mode. /// * @note The attribute's value is the window's overall mode. It may /// * for example continue to report kDontAnimMode after all images /// * have subsequently been individually animated. /// * @note Only images immediately in this window are affected; /// * this is not recursive to subwindows. /// * @see imgIContainer /// */ /// ``` /// /// `attribute unsigned short imageAnimationMode;` #[inline] pub unsafe fn GetImageAnimationMode(&self, aImageAnimationMode: *mut libc::uint16_t) -> nsresult { ((*self.vtable).GetImageAnimationMode)(self, aImageAnimationMode) } /// ```text /// /** /// * Image animation mode of the window. When this attribute's value /// * is changed, the implementation should set all images in the window /// * to the given value. That is, when set to kDontAnimMode, all images /// * will stop animating. The attribute's value must be one of the /// * animationMode values from imgIContainer. /// * @note Images may individually override the window's setting after /// * the window's mode is set. Therefore images given different modes /// * since the last setting of the window's mode may behave /// * out of line with the window's overall mode. /// * @note The attribute's value is the window's overall mode. It may /// * for example continue to report kDontAnimMode after all images /// * have subsequently been individually animated. /// * @note Only images immediately in this window are affected; /// * this is not recursive to subwindows. /// * @see imgIContainer /// */ /// ``` /// /// `attribute unsigned short imageAnimationMode;` #[inline] pub unsafe fn SetImageAnimationMode(&self, aImageAnimationMode: libc::uint16_t) -> nsresult { ((*self.vtable).SetImageAnimationMode)(self, aImageAnimationMode) } /// ```text /// /** /// * Whether the charset of the window's current document has been forced by /// * the user. /// * Cannot be accessed from unprivileged context (not content-accessible) /// */ /// ``` /// /// `readonly attribute boolean docCharsetIsForced;` #[inline] pub unsafe fn GetDocCharsetIsForced(&self, aDocCharsetIsForced: *mut bool) -> nsresult { ((*self.vtable).GetDocCharsetIsForced)(self, aDocCharsetIsForced) } /// ```text /// /** /// * Return the conversion of a physical millimeter in CSS pixels. /// */ /// ``` /// /// `readonly attribute float physicalMillimeterInCSSPixels;` #[inline] pub unsafe fn GetPhysicalMillimeterInCSSPixels(&self, aPhysicalMillimeterInCSSPixels: *mut libc::c_float) -> nsresult { ((*self.vtable).GetPhysicalMillimeterInCSSPixels)(self, aPhysicalMillimeterInCSSPixels) } /// ```text /// /** /// * Function to get metadata associated with the window's current document /// * @param aName the name of the metadata. This should be all lowercase. /// * @return the value of the metadata, or the empty string if it's not set /// * /// * Will throw a DOM security error if called without chrome privileges. /// */ /// ``` /// /// `AString getDocumentMetadata (in AString aName);` #[inline] pub unsafe fn GetDocumentMetadata(&self, aName: &::nsstring::nsAString, _retval: &mut ::nsstring::nsAString) -> nsresult { ((*self.vtable).GetDocumentMetadata)(self, aName, _retval) } /// ```text /// /** /// * Force an immediate redraw of this window. The parameter specifies /// * the number of times to redraw, and the return value is the length, /// * in milliseconds, that the redraws took. If aCount is not specified /// * or is 0, it is taken to be 1. /// */ /// ``` /// /// `unsigned long redraw ([optional] in unsigned long aCount);` #[inline] pub unsafe fn Redraw(&self, aCount: libc::uint32_t, _retval: *mut libc::uint32_t) -> nsresult { ((*self.vtable).Redraw)(self, aCount, _retval) } /// ```text /// /** /// * Force a synchronous layer transaction for this window if necessary. /// */ /// ``` /// /// `void updateLayerTree ();` #[inline] pub unsafe fn UpdateLayerTree(&self, ) -> nsresult { ((*self.vtable).UpdateLayerTree)(self, ) } /// ```text /// /** /// * Get the last used layer transaction id for this window's refresh driver. /// */ /// ``` /// /// `readonly attribute unsigned long long lastTransactionId;` #[inline] pub unsafe fn GetLastTransactionId(&self, aLastTransactionId: *mut libc::uint64_t) -> nsresult { ((*self.vtable).GetLastTransactionId)(self, aLastTransactionId) } /// ```text /// /** /// * Information retrieved from the <meta name="viewport"> tag. /// * See nsContentUtils::GetViewportInfo for more information. /// */ /// ``` /// /// `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);` #[inline] pub unsafe fn GetViewportInfo(&self, aDisplayWidth: uint32_t, aDisplayHeight: uint32_t, aDefaultZoom: *mut libc::c_double, aAllowZoom: *mut bool, aMinZoom: *mut libc::c_double, aMaxZoom: *mut libc::c_double, aWidth: *mut uint32_t, aHeight: *mut uint32_t, aAutoSize: *mut bool) -> nsresult { ((*self.vtable).GetViewportInfo)(self, aDisplayWidth, aDisplayHeight, aDefaultZoom, aAllowZoom, aMinZoom, aMaxZoom, aWidth, aHeight, aAutoSize) } /// ```text /// /** /// * Information about the window size in device pixels. /// */ /// ``` /// /// `void getContentViewerSize (out uint32_t aDisplayWidth, out uint32_t aDisplayHeight);` #[inline] pub unsafe fn GetContentViewerSize(&self, aDisplayWidth: *mut uint32_t, aDisplayHeight: *mut uint32_t) -> nsresult { ((*self.vtable).GetContentViewerSize)(self, aDisplayWidth, aDisplayHeight) } /// ```text /// /** /// * For any scrollable element, this allows you to override the /// * visible region and draw more than what is visible, which is /// * useful for asynchronous drawing. The "displayport" will be /// * <xPx, yPx, widthPx, heightPx> in units of CSS pixels, /// * regardless of the size of the enclosing container. This /// * will *not* trigger reflow. /// * /// * For the root scroll area, pass in the root document element. /// * For scrollable elements, pass in the container element (for /// * instance, the element with overflow: scroll). /// * /// * <x, y> is relative to the top-left of what would normally be /// * the visible area of the element. This means that the pixels /// * rendered to the displayport take scrolling into account, /// * for example. /// * /// * It's legal to set a displayport that extends beyond the overflow /// * area in any direction (left/right/top/bottom). /// * /// * It's also legal to set a displayport that extends beyond the /// * area's bounds. No pixels are rendered outside the area bounds. /// * /// * The caller of this method must have chrome privileges. /// * /// * Calling this will always force a recomposite, so it should be /// * avoided if at all possible. Client code should do checks before /// * calling this so that duplicate sets are not made with the same /// * displayport. /// * /// * aPriority is recorded along with the displayport rectangle. If this /// * method is called with a lower priority than the current priority, the /// * call is ignored. /// */ /// ``` /// /// `void setDisplayPortForElement (in float aXPx, in float aYPx, in float aWidthPx, in float aHeightPx, in nsIDOMElement aElement, in uint32_t aPriority);` #[inline] pub unsafe fn SetDisplayPortForElement(&self, aXPx: libc::c_float, aYPx: libc::c_float, aWidthPx: libc::c_float, aHeightPx: libc::c_float, aElement: *const nsIDOMElement, aPriority: uint32_t) -> nsresult { ((*self.vtable).SetDisplayPortForElement)(self, aXPx, aYPx, aWidthPx, aHeightPx, aElement, aPriority) } /// ```text /// /** /// * An alternate way to represent a displayport rect as a set of margins and a /// * base rect to apply those margins to. A consumer of pixels may ask for as /// * many extra pixels as it would like in each direction. Layout then sets /// * the base rect to the "visible rect" of the element, which is just the /// * subrect of the element that is drawn (it does not take in account content /// * covering the element). /// * /// * If both a displayport rect and displayport margins with corresponding base /// * rect are set with the same priority then the margins will take precendence. /// * /// * Specifying an alignment value will ensure that after the base rect has /// * been expanded by the displayport margins, it will be further expanded so /// * that each edge is located at a multiple of the "alignment" value. /// * /// * Note that both the margin values and alignment are treated as values in /// * ScreenPixels. Refer to layout/base/Units.h for a description of this unit. /// * The base rect values are in app units. /// */ /// ``` /// /// `void setDisplayPortMarginsForElement (in float aLeftMargin, in float aTopMargin, in float aRightMargin, in float aBottomMargin, in nsIDOMElement aElement, in uint32_t aPriority);` #[inline] pub unsafe fn SetDisplayPortMarginsForElement(&self, aLeftMargin: libc::c_float, aTopMargin: libc::c_float, aRightMargin: libc::c_float, aBottomMargin: libc::c_float, aElement: *const nsIDOMElement, aPriority: uint32_t) -> nsresult { ((*self.vtable).SetDisplayPortMarginsForElement)(self, aLeftMargin, aTopMargin, aRightMargin, aBottomMargin, aElement, aPriority) } /// `void setDisplayPortBaseForElement (in int32_t aX, in int32_t aY, in int32_t aWidth, in int32_t aHeight, in nsIDOMElement aElement);` #[inline] pub unsafe fn SetDisplayPortBaseForElement(&self, aX: int32_t, aY: int32_t, aWidth: int32_t, aHeight: int32_t, aElement: *const nsIDOMElement) -> nsresult { ((*self.vtable).SetDisplayPortBaseForElement)(self, aX, aY, aWidth, aHeight, aElement) } /// ```text /// /** /// * Get/set the resolution at which rescalable web content is drawn. /// * /// * Setting a new resolution does *not* trigger reflow. This API is /// * entirely separate from textZoom and fullZoom; a resolution scale /// * can be applied together with both textZoom and fullZoom. /// * /// * The effect of this API is for gfx code to allocate more or fewer /// * pixels for rescalable content by a factor of |resolution| in /// * both dimensions. The scale at which the content is displayed does /// * not change; if that is desired, use setResolutionAndScaleTo() instead. /// * /// * The caller of this method must have chrome privileges. /// */ /// ``` /// /// `void setResolution (in float aResolution);` #[inline] pub unsafe fn SetResolution(&self, aResolution: libc::c_float) -> nsresult { ((*self.vtable).SetResolution)(self, aResolution) } /// `void getResolution (out float aResolution);` #[inline] pub unsafe fn GetResolution(&self, aResolution: *mut libc::c_float) -> nsresult { ((*self.vtable).GetResolution)(self, aResolution) } /// ```text /// /** /// * Similar to setResolution(), but also scales the content by the /// * amount of the resolution, so that it is displayed at a /// * correspondingly larger or smaller size, without the need for /// * the caller to set an additional transform. /// * /// * This can be used to implement a non-reflowing scale-zoom, e.g. /// * for pinch-zoom on mobile platforms. /// * /// * The caller of this method must have chrome privileges. /// */ /// ``` /// /// `void setResolutionAndScaleTo (in float aResolution);` #[inline] pub unsafe fn SetResolutionAndScaleTo(&self, aResolution: libc::c_float) -> nsresult { ((*self.vtable).SetResolutionAndScaleTo)(self, aResolution) } /// ```text /// /** /// * Set a resolution on the presShell which is the "restored" from history. /// * The display dimensions are compared to their current values and used /// * to scale the resolution value if necessary, e.g. if the device was /// * rotated between saving and restoring of the session data. /// * This resolution should be used when painting for the first time. Calling /// * this too late may have no effect. /// */ /// ``` /// /// `void setRestoreResolution (in float aResolution, in uint32_t aDisplayWidth, in uint32_t aDisplayHeight);` #[inline] pub unsafe fn SetRestoreResolution(&self, aResolution: libc::c_float, aDisplayWidth: uint32_t, aDisplayHeight: uint32_t) -> nsresult { ((*self.vtable).SetRestoreResolution)(self, aResolution, aDisplayWidth, aDisplayHeight) } /// ```text /// /** /// * Whether the resolution has been set by the user. /// * This gives a way to check whether the provided resolution is the default /// * value or restored from a previous session. /// * /// * Can only be accessed with chrome privileges. /// */ /// ``` /// /// `readonly attribute boolean isResolutionSet;` #[inline] pub unsafe fn GetIsResolutionSet(&self, aIsResolutionSet: *mut bool) -> nsresult { ((*self.vtable).GetIsResolutionSet)(self, aIsResolutionSet) } /// ```text /// /** /// * Whether the next paint should be flagged as the first paint for a document. /// * This gives a way to track the next paint that occurs after the flag is /// * set. The flag gets cleared after the next paint. /// * /// * Can only be accessed with chrome privileges. /// */ /// ``` /// /// `attribute boolean isFirstPaint;` #[inline] pub unsafe fn GetIsFirstPaint(&self, aIsFirstPaint: *mut bool) -> nsresult { ((*self.vtable).GetIsFirstPaint)(self, aIsFirstPaint) } /// ```text /// /** /// * Whether the next paint should be flagged as the first paint for a document. /// * This gives a way to track the next paint that occurs after the flag is /// * set. The flag gets cleared after the next paint. /// * /// * Can only be accessed with chrome privileges. /// */ /// ``` /// /// `attribute boolean isFirstPaint;` #[inline] pub unsafe fn SetIsFirstPaint(&self, aIsFirstPaint: bool) -> nsresult { ((*self.vtable).SetIsFirstPaint)(self, aIsFirstPaint) } /// `uint32_t getPresShellId ();` #[inline] pub unsafe fn GetPresShellId(&self, _retval: *mut uint32_t) -> nsresult { ((*self.vtable).GetPresShellId)(self, _retval) } /// ```text /// /** Synthesize a mouse event. The event types supported are: /// * mousedown, mouseup, mousemove, mouseover, mouseout, mousecancel, /// * contextmenu, MozMouseHittest /// * /// * Events are sent in coordinates offset by aX and aY from the window. /// * /// * Note that additional events may be fired as a result of this call. For /// * instance, typically a click event will be fired as a result of a /// * mousedown and mouseup in sequence. /// * /// * Normally at this level of events, the mouseover and mouseout events are /// * only fired when the window is entered or exited. For inter-element /// * mouseover and mouseout events, a movemove event fired on the new element /// * should be sufficient to generate the correct over and out events as well. /// * /// * Cannot be accessed from unprivileged context (not content-accessible) /// * Will throw a DOM security error if called without chrome privileges. /// * /// * The event is dispatched via the toplevel window, so it could go to any /// * window under the toplevel window, in some cases it could never reach this /// * window at all. /// * /// * NOTE: mousecancel is used to represent the vanishing of an input device /// * such as a pen leaving its digitizer by synthesizing a WidgetMouseEvent, /// * whose mMessage is eMouseExitFromWidget and mExitFrom is /// * WidgetMouseEvent::eTopLevel. /// * /// * @param aType event type /// * @param aX x offset in CSS pixels /// * @param aY y offset in CSS pixels /// * @param aButton button to synthesize /// * @param aClickCount number of clicks that have been performed /// * @param aModifiers modifiers pressed, using constants defined as MODIFIER_* /// * @param aIgnoreRootScrollFrame whether the event should ignore viewport bounds /// * during dispatch /// * @param aPressure touch input pressure: 0.0 -> 1.0 /// * @param aInputSourceArg input source, see nsIDOMMouseEvent for values, /// * defaults to mouse input. /// * @param aIsDOMEventSynthesized controls nsIDOMEvent.isSynthesized value /// * that helps identifying test related events, /// * defaults to true /// * @param aIsWidgetEventSynthesized controls WidgetMouseEvent.mReason value /// * defaults to false (WidgetMouseEvent::eReal) /// * @param aIdentifier A unique identifier for the pointer causing the event, /// * defaulting to nsIDOMWindowUtils::DEFAULT_MOUSE_POINTER_ID. /// * /// * returns true if the page called prevent default on this event /// */ /// ``` /// /// `[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);` const _SendMouseEvent: () = (); /// ```text /// /** Synthesize a touch event. The event types supported are: /// * touchstart, touchend, touchmove, and touchcancel /// * /// * Events are sent in coordinates offset by aX and aY from the window. /// * /// * Cannot be accessed from unprivileged context (not content-accessible) /// * Will throw a DOM security error if called without chrome privileges. /// * /// * The event is dispatched via the toplevel window, so it could go to any /// * window under the toplevel window, in some cases it could never reach this /// * window at all. /// * /// * @param aType event type /// * @param xs array of offsets in CSS pixels for each touch to be sent /// * @param ys array of offsets in CSS pixels for each touch to be sent /// * @param rxs array of radii in CSS pixels for each touch to be sent /// * @param rys array of radii in CSS pixels for each touch to be sent /// * @param rotationAngles array of angles in degrees for each touch to be sent /// * @param forces array of forces (floats from 0 to 1) for each touch to be sent /// * @param count number of touches in this set /// * @param aModifiers modifiers pressed, using constants defined as MODIFIER_* /// * @param aIgnoreRootScrollFrame whether the event should ignore viewport bounds /// * during dispatch /// * /// * returns true if the page called prevent default on this touch event /// */ /// ``` /// /// `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);` #[inline] pub unsafe fn SendTouchEvent(&self, aType: &::nsstring::nsAString, aIdentifiers: *mut uint32_t, aXs: *mut int32_t, aYs: *mut int32_t, aRxs: *mut uint32_t, aRys: *mut uint32_t, aRotationAngles: *mut libc::c_float, aForces: *mut libc::c_float, count: uint32_t, aModifiers: libc::int32_t, aIgnoreRootScrollFrame: bool, _retval: *mut bool) -> nsresult { ((*self.vtable).SendTouchEvent)(self, aType, aIdentifiers, aXs, aYs, aRxs, aRys, aRotationAngles, aForces, count, aModifiers, aIgnoreRootScrollFrame, _retval) } /// ```text /// /** The same as sendMouseEvent but ensures that the event is dispatched to /// * this DOM window or one of its children. /// */ /// ``` /// /// `[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);` const _SendMouseEventToWindow: () = (); /// ```text /// /** The same as sendTouchEvent but ensures that the event is dispatched to /// * this DOM window or one of its children. /// */ /// ``` /// /// `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);` #[inline] pub unsafe fn SendTouchEventToWindow(&self, aType: &::nsstring::nsAString, aIdentifiers: *mut uint32_t, aXs: *mut int32_t, aYs: *mut int32_t, aRxs: *mut uint32_t, aRys: *mut uint32_t, aRotationAngles: *mut libc::c_float, aForces: *mut libc::c_float, count: uint32_t, aModifiers: libc::int32_t, aIgnoreRootScrollFrame: bool, _retval: *mut bool) -> nsresult { ((*self.vtable).SendTouchEventToWindow)(self, aType, aIdentifiers, aXs, aYs, aRxs, aRys, aRotationAngles, aForces, count, aModifiers, aIgnoreRootScrollFrame, _retval) } /// `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);` #[inline] pub unsafe fn SendWheelEvent(&self, aX: libc::c_float, aY: libc::c_float, aDeltaX: libc::c_double, aDeltaY: libc::c_double, aDeltaZ: libc::c_double, aDeltaMode: libc::uint32_t, aModifiers: libc::int32_t, aLineOrPageDeltaX: libc::int32_t, aLineOrPageDeltaY: libc::int32_t, aOptions: libc::uint32_t) -> nsresult { ((*self.vtable).SendWheelEvent)(self, aX, aY, aDeltaX, aDeltaY, aDeltaZ, aDeltaMode, aModifiers, aLineOrPageDeltaX, aLineOrPageDeltaY, aOptions) } /// `boolean sendKeyEvent (in AString aType, in long aKeyCode, in long aCharCode, in long aModifiers, [optional] in unsigned long aAdditionalFlags);` #[inline] pub unsafe fn SendKeyEvent(&self, aType: &::nsstring::nsAString, aKeyCode: libc::int32_t, aCharCode: libc::int32_t, aModifiers: libc::int32_t, aAdditionalFlags: libc::uint32_t, _retval: *mut bool) -> nsresult { ((*self.vtable).SendKeyEvent)(self, aType, aKeyCode, aCharCode, aModifiers, aAdditionalFlags, _retval) } /// ```text /// /** /// * See nsIWidget::SynthesizeNativeKeyEvent /// * /// * Cannot be accessed from unprivileged context (not content-accessible) /// * Will throw a DOM security error if called without chrome privileges. /// * /// * When you use this for tests, use the constants defined in NativeKeyCodes.js /// * /// * NOTE: The synthesized native event will be fired asynchronously, and upon /// * completion the observer, if provided, will be notified with a "keyevent" /// * topic. /// */ /// ``` /// /// `void sendNativeKeyEvent (in long aNativeKeyboardLayout, in long aNativeKeyCode, in long aModifierFlags, in AString aCharacters, in AString aUnmodifiedCharacters, [optional] in nsIObserver aObserver);` #[inline] pub unsafe fn SendNativeKeyEvent(&self, aNativeKeyboardLayout: libc::int32_t, aNativeKeyCode: libc::int32_t, aModifierFlags: libc::int32_t, aCharacters: &::nsstring::nsAString, aUnmodifiedCharacters: &::nsstring::nsAString, aObserver: *const nsIObserver) -> nsresult { ((*self.vtable).SendNativeKeyEvent)(self, aNativeKeyboardLayout, aNativeKeyCode, aModifierFlags, aCharacters, aUnmodifiedCharacters, aObserver) } /// ```text /// /** /// * See nsIWidget::SynthesizeNativeMouseEvent /// * /// * Will be called on the widget that contains aElement. /// * Cannot be accessed from unprivileged context (not content-accessible) /// * Will throw a DOM security error if called without chrome privileges. /// * /// * NOTE: The synthesized native event will be fired asynchronously, and upon /// * completion the observer, if provided, will be notified with a "mouseevent" /// * topic. /// */ /// ``` /// /// `void sendNativeMouseEvent (in long aScreenX, in long aScreenY, in long aNativeMessage, in long aModifierFlags, in nsIDOMElement aElement, [optional] in nsIObserver aObserver);` #[inline] pub unsafe fn SendNativeMouseEvent(&self, aScreenX: libc::int32_t, aScreenY: libc::int32_t, aNativeMessage: libc::int32_t, aModifierFlags: libc::int32_t, aElement: *const nsIDOMElement, aObserver: *const nsIObserver) -> nsresult { ((*self.vtable).SendNativeMouseEvent)(self, aScreenX, aScreenY, aNativeMessage, aModifierFlags, aElement, aObserver) } /// ```text /// /** /// * See nsIWidget::SynthesizeNativeMouseMove and sendNativeMouseEvent /// */ /// ``` /// /// `void sendNativeMouseMove (in long aScreenX, in long aScreenY, in nsIDOMElement aElement, [optional] in nsIObserver aObserver);` #[inline] pub unsafe fn SendNativeMouseMove(&self, aScreenX: libc::int32_t, aScreenY: libc::int32_t, aElement: *const nsIDOMElement, aObserver: *const nsIObserver) -> nsresult { ((*self.vtable).SendNativeMouseMove)(self, aScreenX, aScreenY, aElement, aObserver) } /// ```text /// /** /// * Suppress animations that are applied to a window by OS when /// * resizing, moving, changing size mode, ... /// */ /// ``` /// /// `void suppressAnimation (in boolean aSuppress);` #[inline] pub unsafe fn SuppressAnimation(&self, aSuppress: bool) -> nsresult { ((*self.vtable).SuppressAnimation)(self, aSuppress) } /// ```text /// /** /// * See nsIWidget::SynthesizeNativeMouseScrollEvent /// * /// * Will be called on the widget that contains aElement. /// * Cannot be accessed from unprivileged context (not content-accessible) /// * Will throw a DOM security error if called without chrome privileges. /// * /// * NOTE: The synthesized native event will be fired asynchronously, and upon /// * completion the observer, if provided, will be notified with a /// * "mousescrollevent" topic. /// * /// * @param aNativeMessage /// * On Windows: WM_MOUSEWHEEL (0x020A), WM_MOUSEHWHEEL(0x020E), /// * WM_VSCROLL (0x0115) or WM_HSCROLL (0x114). /// */ /// ``` /// /// `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 nsIDOMElement aElement, [optional] in nsIObserver aObserver);` #[inline] pub unsafe fn SendNativeMouseScrollEvent(&self, aScreenX: libc::int32_t, aScreenY: libc::int32_t, aNativeMessage: libc::uint32_t, aDeltaX: libc::c_double, aDeltaY: libc::c_double, aDeltaZ: libc::c_double, aModifierFlags: libc::uint32_t, aAdditionalFlags: libc::uint32_t, aElement: *const nsIDOMElement, aObserver: *const nsIObserver) -> nsresult { ((*self.vtable).SendNativeMouseScrollEvent)(self, aScreenX, aScreenY, aNativeMessage, aDeltaX, aDeltaY, aDeltaZ, aModifierFlags, aAdditionalFlags, aElement, aObserver) } /// ```text /// /** /// * Create a new or update an existing touch point on the digitizer. /// * To trigger os level gestures, individual touch points should /// * transition through a complete set of touch states which should be /// * sent as individual calls. For example: /// * tap - msg1:TOUCH_CONTACT, msg2:TOUCH_REMOVE /// * drag - msg1-n:TOUCH_CONTACT (moving), msgn+1:TOUCH_REMOVE /// * hover drag - msg1-n:TOUCH_HOVER (moving), msgn+1:TOUCH_REMOVE /// * /// * Widget support: Windows 8.0+, Winrt/Win32. Other widgets will throw. /// * /// * NOTE: The synthesized native event will be fired asynchronously, and upon /// * completion the observer, if provided, will be notified with a "touchpoint" /// * topic. /// * /// * @param aPointerId The touch point id to create or update. /// * @param aTouchState one or more of the touch states listed above /// * @param aScreenX, aScreenY screen coords of this event /// * @param aPressure 0.0 -> 1.0 float val indicating pressure /// * @param aOrientation 0 -> 359 degree value indicating the /// * orientation of the pointer. Use 90 for normal taps. /// */ /// ``` /// /// `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);` #[inline] pub unsafe fn SendNativeTouchPoint(&self, aPointerId: libc::uint32_t, aTouchState: libc::uint32_t, aScreenX: libc::int32_t, aScreenY: libc::int32_t, aPressure: libc::c_double, aOrientation: libc::uint32_t, aObserver: *const nsIObserver) -> nsresult { ((*self.vtable).SendNativeTouchPoint)(self, aPointerId, aTouchState, aScreenX, aScreenY, aPressure, aOrientation, aObserver) } /// ```text /// /** /// * Simulates native touch based taps on the input digitizer. Events /// * triggered by this call are injected at the os level. Events do not /// * bypass widget level input processing and as such can be used to /// * test widget event logic and async pan-zoom controller functionality. /// * Cannot be accessed from an unprivileged context. /// * /// * Long taps (based on the aLongTap parameter) will be completed /// * asynchrnously after the call returns. Long tap delay is based on /// * the ui.click_hold_context_menus.delay pref or 1500 msec if pref /// * is not set. /// * /// * Widget support: Windows 8.0+, Winrt/Win32. Other widgets will /// * throw. /// * /// * NOTE: The synthesized native event will be fired asynchronously, and upon /// * completion the observer, if provided, will be notified, with a "touchtap" /// * topic. /// * /// * @param aScreenX, aScreenY screen coords of this event /// * @param aLongTap true if the tap should be long, false for a short /// * tap. /// */ /// ``` /// /// `void sendNativeTouchTap (in long aScreenX, in long aScreenY, in boolean aLongTap, [optional] in nsIObserver aObserver);` #[inline] pub unsafe fn SendNativeTouchTap(&self, aScreenX: libc::int32_t, aScreenY: libc::int32_t, aLongTap: bool, aObserver: *const nsIObserver) -> nsresult { ((*self.vtable).SendNativeTouchTap)(self, aScreenX, aScreenY, aLongTap, aObserver) } /// ```text /// /** /// * Cancel any existing touch points or long tap delays. Calling this is safe /// * even if you're sure there aren't any pointers recorded. You should call /// * this when tests shut down to reset the digitizer driver. Not doing so can /// * leave the digitizer in an undetermined state which can screw up subsequent /// * tests and native input. /// * /// * NOTE: The synthesized native event will be fired asynchronously, and upon /// * completion the observer, if provided, will be notified with a "cleartouch" /// * topic. /// */ /// ``` /// /// `void clearNativeTouchSequence ([optional] in nsIObserver aObserver);` #[inline] pub unsafe fn ClearNativeTouchSequence(&self, aObserver: *const nsIObserver) -> nsresult { ((*self.vtable).ClearNativeTouchSequence)(self, aObserver) } /// ```text /// /** /// * See nsIWidget::ActivateNativeMenuItemAt /// * /// * Cannot be accessed from unprivileged context (not content-accessible) /// * Will throw a DOM security error if called without chrome privileges. /// */ /// ``` /// /// `void activateNativeMenuItemAt (in AString indexString);` #[inline] pub unsafe fn ActivateNativeMenuItemAt(&self, indexString: &::nsstring::nsAString) -> nsresult { ((*self.vtable).ActivateNativeMenuItemAt)(self, indexString) } /// ```text /// /** /// * See nsIWidget::ForceUpdateNativeMenuAt /// * /// * Cannot be accessed from unprivileged context (not content-accessible) /// * Will throw a DOM security error if called without chrome privileges. /// */ /// ``` /// /// `void forceUpdateNativeMenuAt (in AString indexString);` #[inline] pub unsafe fn ForceUpdateNativeMenuAt(&self, indexString: &::nsstring::nsAString) -> nsresult { ((*self.vtable).ForceUpdateNativeMenuAt)(self, indexString) } /// ```text /// /** /// * Returns the current selection as plaintext. Note that the result may be /// * different from the result of sendQueryContentEvent(QUERY_SELECTED_TEXT). /// * This result is computed by native API with transferable data. In other /// * words, when the OS treats the selection as plaintext, it treats current /// * selection as this result. /// */ /// ``` /// /// `AString GetSelectionAsPlaintext ();` #[inline] pub unsafe fn GetSelectionAsPlaintext(&self, _retval: &mut ::nsstring::nsAString) -> nsresult { ((*self.vtable).GetSelectionAsPlaintext)(self, _retval) } /// ```text /// /** /// * Focus the element aElement. The element should be in the same document /// * that the window is displaying. Pass null to blur the element, if any, /// * that currently has focus, and focus the document. /// * /// * Cannot be accessed from unprivileged context (not content-accessible) /// * Will throw a DOM security error if called without chrome privileges. /// * /// * @param aElement the element to focus /// * /// * Do not use this method. Just use element.focus if available or /// * nsIFocusManager::SetFocus instead. /// * /// */ /// ``` /// /// `void focus (in nsIDOMElement aElement);` #[inline] pub unsafe fn Focus(&self, aElement: *const nsIDOMElement) -> nsresult { ((*self.vtable).Focus)(self, aElement) } /// ```text /// /** /// * Force a garbage collection followed by a cycle collection. /// * /// * Will throw a DOM security error if called without chrome privileges in /// * non-debug builds. Available to all callers in debug builds. /// * /// * @param aListener listener that receives information about the CC graph /// * (see @mozilla.org/cycle-collector-logger;1 for a logger /// * component) /// */ /// ``` /// /// `void garbageCollect ([optional] in nsICycleCollectorListener aListener);` #[inline] pub unsafe fn GarbageCollect(&self, aListener: *const nsICycleCollectorListener) -> nsresult { ((*self.vtable).GarbageCollect)(self, aListener) } /// ```text /// /** /// * Force a cycle collection without garbage collection. /// * /// * Will throw a DOM security error if called without chrome privileges in /// * non-debug builds. Available to all callers in debug builds. /// * /// * @param aListener listener that receives information about the CC graph /// * (see @mozilla.org/cycle-collector-logger;1 for a logger /// * component) /// */ /// ``` /// /// `void cycleCollect ([optional] in nsICycleCollectorListener aListener);` #[inline] pub unsafe fn CycleCollect(&self, aListener: *const nsICycleCollectorListener) -> nsresult { ((*self.vtable).CycleCollect)(self, aListener) } /// ```text /// /** /// * Trigger whichever GC or CC timer is currently active and waiting to fire. /// * Don't do this too much for initiating heavy actions, like the start of a IGC. /// */ /// ``` /// /// `void runNextCollectorTimer ();` #[inline] pub unsafe fn RunNextCollectorTimer(&self, ) -> nsresult { ((*self.vtable).RunNextCollectorTimer)(self, ) } /// ```text /// /** Synthesize a simple gesture event for a window. The event types /// * supported are: MozSwipeGestureMayStart, MozSwipeGestureStart, /// * MozSwipeGestureUpdate, MozSwipeGestureEnd, MozSwipeGesture, /// * MozMagnifyGestureStart, MozMagnifyGestureUpdate, MozMagnifyGesture, /// * MozRotateGestureStart, MozRotateGestureUpdate, MozRotateGesture, /// * MozPressTapGesture, MozTapGesture, and MozEdgeUIGesture. /// * /// * Cannot be accessed from unprivileged context (not /// * content-accessible) Will throw a DOM security error if called /// * without chrome privileges. /// * /// * @param aType event type /// * @param aX x offset in CSS pixels /// * @param aY y offset in CSS pixels /// * @param aDirection direction, using constants defined in nsIDOMSimpleGestureEvent /// * @param aDelta amount of magnification or rotation for magnify and rotation events /// * @param aModifiers modifiers pressed, using constants defined in nsIDOMNSEvent /// * @param aClickCount For tap gestures, the number of taps. /// */ /// ``` /// /// `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);` #[inline] pub unsafe fn SendSimpleGestureEvent(&self, aType: &::nsstring::nsAString, aX: libc::c_float, aY: libc::c_float, aDirection: libc::uint32_t, aDelta: libc::c_double, aModifiers: libc::int32_t, aClickCount: libc::uint32_t) -> nsresult { ((*self.vtable).SendSimpleGestureEvent)(self, aType, aX, aY, aDirection, aDelta, aModifiers, aClickCount) } /// ```text /// /** /// * Retrieve the element at point aX, aY in the window's document. /// * /// * @param aIgnoreRootScrollFrame whether or not to ignore the root scroll /// * frame when retrieving the element. If false, this method returns /// * null for coordinates outside of the viewport. /// * @param aFlushLayout flushes layout if true. Otherwise, no flush occurs. /// */ /// ``` /// /// `nsIDOMElement elementFromPoint (in float aX, in float aY, in boolean aIgnoreRootScrollFrame, in boolean aFlushLayout);` #[inline] pub unsafe fn ElementFromPoint(&self, aX: libc::c_float, aY: libc::c_float, aIgnoreRootScrollFrame: bool, aFlushLayout: bool, _retval: *mut *const nsIDOMElement) -> nsresult { ((*self.vtable).ElementFromPoint)(self, aX, aY, aIgnoreRootScrollFrame, aFlushLayout, _retval) } /// ```text /// /** /// * Retrieve all nodes that intersect a rect in the window's document. /// * /// * @param aX x reference for the rectangle in CSS pixels /// * @param aY y reference for the rectangle in CSS pixels /// * @param aTopSize How much to expand up the rectangle /// * @param aRightSize How much to expand right the rectangle /// * @param aBottomSize How much to expand down the rectangle /// * @param aLeftSize How much to expand left the rectangle /// * @param aIgnoreRootScrollFrame whether or not to ignore the root scroll /// * frame when retrieving the element. If false, this method returns /// * null for coordinates outside of the viewport. /// * @param aFlushLayout flushes layout if true. Otherwise, no flush occurs. /// */ /// ``` /// /// `nsIDOMNodeList 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);` #[inline] pub unsafe fn NodesFromRect(&self, aX: libc::c_float, aY: libc::c_float, aTopSize: libc::c_float, aRightSize: libc::c_float, aBottomSize: libc::c_float, aLeftSize: libc::c_float, aIgnoreRootScrollFrame: bool, aFlushLayout: bool, _retval: *mut *const nsIDOMNodeList) -> nsresult { ((*self.vtable).NodesFromRect)(self, aX, aY, aTopSize, aRightSize, aBottomSize, aLeftSize, aIgnoreRootScrollFrame, aFlushLayout, _retval) } /// ```text /// /** /// * Get a list of nodes that have meaningful textual content to /// * be translated. The implementation of this algorithm is in flux /// * as we experiment and refine which approach works best. /// * /// * This method requires chrome privileges. /// */ /// ``` /// /// `nsITranslationNodeList getTranslationNodes (in nsIDOMNode aRoot);` #[inline] pub unsafe fn GetTranslationNodes(&self, aRoot: *const nsIDOMNode, _retval: *mut *const nsITranslationNodeList) -> nsresult { ((*self.vtable).GetTranslationNodes)(self, aRoot, _retval) } /// ```text /// /** /// * Compare the two canvases, returning the number of differing pixels and /// * the maximum difference in a channel. This will throw an error if /// * the dimensions of the two canvases are different. /// * /// * This method requires chrome privileges. /// */ /// ``` /// /// `uint32_t compareCanvases (in nsISupports aCanvas1, in nsISupports aCanvas2, out unsigned long aMaxDifference);` #[inline] pub unsafe fn CompareCanvases(&self, aCanvas1: *const nsISupports, aCanvas2: *const nsISupports, aMaxDifference: *mut libc::uint32_t, _retval: *mut uint32_t) -> nsresult { ((*self.vtable).CompareCanvases)(self, aCanvas1, aCanvas2, aMaxDifference, _retval) } /// ```text /// /** /// * Returns true if a MozAfterPaint event has been queued but not yet /// * fired. /// */ /// ``` /// /// `readonly attribute boolean isMozAfterPaintPending;` #[inline] pub unsafe fn GetIsMozAfterPaintPending(&self, aIsMozAfterPaintPending: *mut bool) -> nsresult { ((*self.vtable).GetIsMozAfterPaintPending)(self, aIsMozAfterPaintPending) } /// ```text /// /** /// * Suppresses/unsuppresses user initiated event handling in window's document /// * and subdocuments. /// * /// * @throw NS_ERROR_DOM_SECURITY_ERR if called without chrome privileges and /// * NS_ERROR_FAILURE if window doesn't have a document. /// */ /// ``` /// /// `void suppressEventHandling (in boolean aSuppress);` #[inline] pub unsafe fn SuppressEventHandling(&self, aSuppress: bool) -> nsresult { ((*self.vtable).SuppressEventHandling)(self, aSuppress) } /// ```text /// /** /// * Disable or enable non synthetic test mouse events on *all* windows. /// * /// * Cannot be accessed from unprivileged context (not content-accessible). /// * Will throw a DOM security error if called without chrome privileges. /// * /// * @param aDisable If true, disable all non synthetic test mouse events /// * on all windows. Otherwise, enable them. /// */ /// ``` /// /// `void disableNonTestMouseEvents (in boolean aDisable);` #[inline] pub unsafe fn DisableNonTestMouseEvents(&self, aDisable: bool) -> nsresult { ((*self.vtable).DisableNonTestMouseEvents)(self, aDisable) } /// ```text /// /** /// * Returns the scroll position of the window's currently loaded document. /// * /// * @param aFlushLayout flushes layout if true. Otherwise, no flush occurs. /// * @see nsIDOMWindow::scrollX/Y /// */ /// ``` /// /// `void getScrollXY (in boolean aFlushLayout, out long aScrollX, out long aScrollY);` #[inline] pub unsafe fn GetScrollXY(&self, aFlushLayout: bool, aScrollX: *mut libc::int32_t, aScrollY: *mut libc::int32_t) -> nsresult { ((*self.vtable).GetScrollXY)(self, aFlushLayout, aScrollX, aScrollY) } /// ```text /// /** /// * Returns the scroll position of the window's currently loaded document. /// * /// * @param aFlushLayout flushes layout if true. Otherwise, no flush occurs. /// * @see nsIDOMWindow::scrollX/Y /// */ /// ``` /// /// `void getScrollXYFloat (in boolean aFlushLayout, out float aScrollX, out float aScrollY);` #[inline] pub unsafe fn GetScrollXYFloat(&self, aFlushLayout: bool, aScrollX: *mut libc::c_float, aScrollY: *mut libc::c_float) -> nsresult { ((*self.vtable).GetScrollXYFloat)(self, aFlushLayout, aScrollX, aScrollY) } /// ```text /// /** /// * Returns the scrollbar width of the window's scroll frame. /// * /// * @param aFlushLayout flushes layout if true. Otherwise, no flush occurs. /// */ /// ``` /// /// `void getScrollbarSize (in boolean aFlushLayout, out long aWidth, out long aHeight);` #[inline] pub unsafe fn GetScrollbarSize(&self, aFlushLayout: bool, aWidth: *mut libc::int32_t, aHeight: *mut libc::int32_t) -> nsresult { ((*self.vtable).GetScrollbarSize)(self, aFlushLayout, aWidth, aHeight) } /// ```text /// /** /// * Returns the given element's bounds without flushing pending layout changes. /// */ /// ``` /// /// `nsIDOMClientRect getBoundsWithoutFlushing (in nsIDOMElement aElement);` #[inline] pub unsafe fn GetBoundsWithoutFlushing(&self, aElement: *const nsIDOMElement, _retval: *mut *const nsIDOMClientRect) -> nsresult { ((*self.vtable).GetBoundsWithoutFlushing)(self, aElement, _retval) } /// ```text /// /** /// * Returns true if a flush of the given type is needed. /// */ /// ``` /// /// `bool needsFlush (in long aFlushtype);` #[inline] pub unsafe fn NeedsFlush(&self, aFlushtype: libc::int32_t, _retval: *mut bool) -> nsresult { ((*self.vtable).NeedsFlush)(self, aFlushtype, _retval) } /// ```text /// /** /// * Returns the bounds of the window's currently loaded document. This will /// * generally be (0, 0, pageWidth, pageHeight) but in some cases (e.g. RTL /// * documents) may have a negative left value. /// */ /// ``` /// /// `nsIDOMClientRect getRootBounds ();` #[inline] pub unsafe fn GetRootBounds(&self, _retval: *mut *const nsIDOMClientRect) -> nsresult { ((*self.vtable).GetRootBounds)(self, _retval) } /// ```text /// /** /// * Get IME open state. TRUE means 'Open', otherwise, 'Close'. /// * This property works only when IMEEnabled is IME_STATUS_ENABLED. /// */ /// ``` /// /// `readonly attribute boolean IMEIsOpen;` #[inline] pub unsafe fn GetIMEIsOpen(&self, aIMEIsOpen: *mut bool) -> nsresult { ((*self.vtable).GetIMEIsOpen)(self, aIMEIsOpen) } /// ```text /// /** /// * Get IME status, see above IME_STATUS_* definitions. /// */ /// ``` /// /// `readonly attribute unsigned long IMEStatus;` #[inline] pub unsafe fn GetIMEStatus(&self, aIMEStatus: *mut libc::uint32_t) -> nsresult { ((*self.vtable).GetIMEStatus)(self, aIMEStatus) } /// ```text /// /** /// * Get the number of screen pixels per CSS pixel. /// */ /// ``` /// /// `readonly attribute float screenPixelsPerCSSPixel;` #[inline] pub unsafe fn GetScreenPixelsPerCSSPixel(&self, aScreenPixelsPerCSSPixel: *mut libc::c_float) -> nsresult { ((*self.vtable).GetScreenPixelsPerCSSPixel)(self, aScreenPixelsPerCSSPixel) } /// ```text /// /** /// * Get the current zoom factor. /// * This is _approximately_ the same as nsIContentViewer.fullZoom, /// * but takes into account Gecko's quantization of the zoom factor, which is /// * implemented by adjusting the (integer) number of appUnits per devPixel. /// */ /// ``` /// /// `readonly attribute float fullZoom;` #[inline] pub unsafe fn GetFullZoom(&self, aFullZoom: *mut libc::c_float) -> nsresult { ((*self.vtable).GetFullZoom)(self, aFullZoom) } /// ```text /// /** /// * Dispatches aEvent via the nsIPresShell object of the window's document. /// * The event is dispatched to aTarget, which should be an object /// * which implements nsIContent interface (#element, #text, etc). /// * /// * Cannot be accessed from unprivileged context (not /// * content-accessible) Will throw a DOM security error if called /// * without chrome privileges. /// * /// * @note Event handlers won't get aEvent as parameter, but a similar event. /// * Also, aEvent should not be reused. /// */ /// ``` /// /// `boolean dispatchDOMEventViaPresShell (in nsIDOMNode aTarget, in nsIDOMEvent aEvent, in boolean aTrusted);` #[inline] pub unsafe fn DispatchDOMEventViaPresShell(&self, aTarget: *const nsIDOMNode, aEvent: *const nsIDOMEvent, aTrusted: bool, _retval: *mut bool) -> nsresult { ((*self.vtable).DispatchDOMEventViaPresShell)(self, aTarget, aEvent, aTrusted, _retval) } /// ```text /// /** /// * Sets WidgetEvent::mFlags::mOnlyChromeDispatch to true to ensure that /// * the event is propagated only to chrome. /// * Event's .target property will be aTarget. /// * Returns the same value as what EventTarget.dispatchEvent does. /// */ /// ``` /// /// `boolean dispatchEventToChromeOnly (in nsIDOMEventTarget aTarget, in nsIDOMEvent aEvent);` #[inline] pub unsafe fn DispatchEventToChromeOnly(&self, aTarget: *const nsIDOMEventTarget, aEvent: *const nsIDOMEvent, _retval: *mut bool) -> nsresult { ((*self.vtable).DispatchEventToChromeOnly)(self, aTarget, aEvent, _retval) } /// ```text /// /** /// * Returns the real classname (possibly of the mostly-transparent security /// * wrapper) of aObj. /// */ /// ``` /// /// `[implicit_jscontext] string getClassName (in jsval aObject);` const _GetClassName: () = (); /// ```text /// /** /// * Generate a content command event. /// * /// * Cannot be accessed from unprivileged context (not content-accessible) /// * Will throw a DOM security error if called without chrome privileges. /// * /// * @param aType Type of command content event to send. Can be one of "cut", /// * "copy", "paste", "delete", "undo", "redo", or "pasteTransferable". /// * @param aTransferable an instance of nsITransferable when aType is /// * "pasteTransferable" /// */ /// ``` /// /// `void sendContentCommandEvent (in AString aType, [optional] in nsITransferable aTransferable);` #[inline] pub unsafe fn SendContentCommandEvent(&self, aType: &::nsstring::nsAString, aTransferable: *const nsITransferable) -> nsresult { ((*self.vtable).SendContentCommandEvent)(self, aType, aTransferable) } /// ```text /// /** /// * Synthesize a query content event. Note that the result value returned here /// * is in LayoutDevice pixels rather than CSS pixels. /// * /// * @param aType One of the following const values. And see also each comment /// * for the other parameters and the result. /// * @param aAdditionalFlags See the description of QUERY_CONTENT_FLAG_*. /// */ /// ``` /// /// `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);` #[inline] pub unsafe fn SendQueryContentEvent(&self, aType: libc::uint32_t, aOffset: libc::int64_t, aLength: libc::uint32_t, aX: libc::int32_t, aY: libc::int32_t, aAdditionalFlags: libc::uint32_t, _retval: *mut *const nsIQueryContentEventResult) -> nsresult { ((*self.vtable).SendQueryContentEvent)(self, aType, aOffset, aLength, aX, aY, aAdditionalFlags, _retval) } /// ```text /// /** /// * Called when the remote child frame has changed its fullscreen state, /// * when entering fullscreen, and when the origin which is fullscreen changes. /// * aFrameElement is the iframe element which contains the child-process /// * fullscreen document. /// */ /// ``` /// /// `void remoteFrameFullscreenChanged (in nsIDOMElement aFrameElement);` #[inline] pub unsafe fn RemoteFrameFullscreenChanged(&self, aFrameElement: *const nsIDOMElement) -> nsresult { ((*self.vtable).RemoteFrameFullscreenChanged)(self, aFrameElement) } /// ```text /// /** /// * Called when the remote frame has popped all fullscreen elements off its /// * stack, so that the operation can complete on the parent side. /// */ /// ``` /// /// `void remoteFrameFullscreenReverted ();` #[inline] pub unsafe fn RemoteFrameFullscreenReverted(&self, ) -> nsresult { ((*self.vtable).RemoteFrameFullscreenReverted)(self, ) } /// ```text /// /** /// * Calls the document to handle any pending fullscreen requests. /// * It is called when the parent document has entered fullscreen, and /// * we want to put the current document into fullscreen as well. /// * The return value indicates whether there is any fullscreen request /// * handled by this call. /// */ /// ``` /// /// `boolean handleFullscreenRequests ();` #[inline] pub unsafe fn HandleFullscreenRequests(&self, _retval: *mut bool) -> nsresult { ((*self.vtable).HandleFullscreenRequests)(self, _retval) } /// ```text /// /** /// * Called when the child frame has fully exit fullscreen, so that the parent /// * process can also fully exit. /// */ /// ``` /// /// `void exitFullscreen ();` #[inline] pub unsafe fn ExitFullscreen(&self, ) -> nsresult { ((*self.vtable).ExitFullscreen)(self, ) } /// ```text /// /** /// * Synthesize a selection set event to the window. /// * /// * This sets the selection as the specified information. /// * /// * @param aOffset The caret offset of the selection start. /// * @param aLength The length of the selection. If this is too long, the /// * extra length is ignored. /// * @param aAdditionalFlags See the description of SELECTION_SET_FLAG_*. /// * @return True, if succeeded. Otherwise, false. /// */ /// ``` /// /// `boolean sendSelectionSetEvent (in unsigned long aOffset, in unsigned long aLength, [optional] in unsigned long aAdditionalFlags);` #[inline] pub unsafe fn SendSelectionSetEvent(&self, aOffset: libc::uint32_t, aLength: libc::uint32_t, aAdditionalFlags: libc::uint32_t, _retval: *mut bool) -> nsresult { ((*self.vtable).SendSelectionSetEvent)(self, aOffset, aLength, aAdditionalFlags, _retval) } /// ```text /// /** /// * Select content at a client point based on a selection behavior if the /// * underlying content is selectable. Selection will accumulate with any /// * existing selection, callers should clear selection prior if needed. /// * May fire selection changed events. Calls nsFrame's SelectByTypeAtPoint. /// * /// * @param aX, aY The selection point in client coordinates. /// * @param aSelectType The selection behavior requested. /// * @return True if a selection occured, false otherwise. /// * @throw NS_ERROR_DOM_SECURITY_ERR, NS_ERROR_UNEXPECTED for utils /// * issues, and NS_ERROR_INVALID_ARG for coordinates that are outside /// * this window. /// */ /// ``` /// /// `boolean selectAtPoint (in float aX, in float aY, in unsigned long aSelectBehavior);` #[inline] pub unsafe fn SelectAtPoint(&self, aX: libc::c_float, aY: libc::c_float, aSelectBehavior: libc::uint32_t, _retval: *mut bool) -> nsresult { ((*self.vtable).SelectAtPoint)(self, aX, aY, aSelectBehavior, _retval) } /// ```text /// /** /// * Perform the equivalent of: /// * window.getComputedStyle(aElement, aPseudoElement). /// * getPropertyValue(aPropertyName) /// * except that, when the link whose presence in history is allowed to /// * influence aElement's style is visited, get the value the property /// * would have if allowed all properties to change as a result of /// * :visited selectors (except for cases where getComputedStyle uses /// * data from the frame). /// * /// * This is easier to implement than adding our property restrictions /// * to this API, and is sufficient for the present testing /// * requirements (which are essentially testing 'color'). /// */ /// ``` /// /// `AString getVisitedDependentComputedStyle (in nsIDOMElement aElement, in AString aPseudoElement, in AString aPropertyName);` #[inline] pub unsafe fn GetVisitedDependentComputedStyle(&self, aElement: *const nsIDOMElement, aPseudoElement: &::nsstring::nsAString, aPropertyName: &::nsstring::nsAString, _retval: &mut ::nsstring::nsAString) -> nsresult { ((*self.vtable).GetVisitedDependentComputedStyle)(self, aElement, aPseudoElement, aPropertyName, _retval) } /// ```text /// /** /// * Get the id of the outer window of this window. This will never throw. /// */ /// ``` /// /// `readonly attribute unsigned long long outerWindowID;` #[inline] pub unsafe fn GetOuterWindowID(&self, aOuterWindowID: *mut libc::uint64_t) -> nsresult { ((*self.vtable).GetOuterWindowID)(self, aOuterWindowID) } /// ```text /// /** /// * Get the id of the current inner window of this window. If there /// * is no current inner window, throws NS_ERROR_NOT_AVAILABLE. /// */ /// ``` /// /// `readonly attribute unsigned long long currentInnerWindowID;` #[inline] pub unsafe fn GetCurrentInnerWindowID(&self, aCurrentInnerWindowID: *mut libc::uint64_t) -> nsresult { ((*self.vtable).GetCurrentInnerWindowID)(self, aCurrentInnerWindowID) } /// ```text /// /** /// * Put the window into a state where scripts are frozen and events /// * suppressed, for use when the window has launched a modal prompt. /// */ /// ``` /// /// `void enterModalState ();` #[inline] pub unsafe fn EnterModalState(&self, ) -> nsresult { ((*self.vtable).EnterModalState)(self, ) } /// ```text /// /** /// * Resume normal window state, where scripts can run and events are /// * delivered. /// */ /// ``` /// /// `void leaveModalState ();` #[inline] pub unsafe fn LeaveModalState(&self, ) -> nsresult { ((*self.vtable).LeaveModalState)(self, ) } /// ```text /// /** /// * Is the window is in a modal state? [See enterModalState()] /// */ /// ``` /// /// `[noscript] boolean isInModalState ();` #[inline] pub unsafe fn IsInModalState(&self, _retval: *mut bool) -> nsresult { ((*self.vtable).IsInModalState)(self, _retval) } /// ```text /// /** /// * Request set internal desktopMode flag change. /// */ /// ``` /// /// `void setDesktopModeViewport (in boolean aDesktopModeViewport);` #[inline] pub unsafe fn SetDesktopModeViewport(&self, aDesktopModeViewport: bool) -> nsresult { ((*self.vtable).SetDesktopModeViewport)(self, aDesktopModeViewport) } /// ```text /// /** /// * Suspend/resume timeouts on this window and its descendant windows. /// */ /// ``` /// /// `void suspendTimeouts ();` #[inline] pub unsafe fn SuspendTimeouts(&self, ) -> nsresult { ((*self.vtable).SuspendTimeouts)(self, ) } /// `void resumeTimeouts ();` #[inline] pub unsafe fn ResumeTimeouts(&self, ) -> nsresult { ((*self.vtable).ResumeTimeouts)(self, ) } /// ```text /// /** /// * What type of layer manager the widget associated with this window is /// * using. "Basic" is unaccelerated; other types are accelerated. Throws an /// * error if there is no widget associated with this window. /// */ /// ``` /// /// `readonly attribute AString layerManagerType;` #[inline] pub unsafe fn GetLayerManagerType(&self, aLayerManagerType: &mut ::nsstring::nsAString) -> nsresult { ((*self.vtable).GetLayerManagerType)(self, aLayerManagerType) } /// ```text /// /** /// * True if the layer manager for the widget associated with this window is /// * forwarding layers to a remote compositor, false otherwise. Throws an /// * error if there is no widget associated with this window. /// */ /// ``` /// /// `readonly attribute boolean layerManagerRemote;` #[inline] pub unsafe fn GetLayerManagerRemote(&self, aLayerManagerRemote: *mut bool) -> nsresult { ((*self.vtable).GetLayerManagerRemote)(self, aLayerManagerRemote) } /// ```text /// /** /// * True if advanced layers is enabled on this window, false otherwise. /// */ /// ``` /// /// `readonly attribute boolean usingAdvancedLayers;` #[inline] pub unsafe fn GetUsingAdvancedLayers(&self, aUsingAdvancedLayers: *mut bool) -> nsresult { ((*self.vtable).GetUsingAdvancedLayers)(self, aUsingAdvancedLayers) } /// ```text /// /** /// * True if webrender was requested by the user (via pref or env-var), false /// * otherwise. Note that this doesn't represent whether or not webrender is /// * *actually* enabled, just whether or not it was requested. /// */ /// ``` /// /// `readonly attribute boolean isWebRenderRequested;` #[inline] pub unsafe fn GetIsWebRenderRequested(&self, aIsWebRenderRequested: *mut bool) -> nsresult { ((*self.vtable).GetIsWebRenderRequested)(self, aIsWebRenderRequested) } /// ```text /// /** /// * Returns the current audio backend as a free-form string. /// */ /// ``` /// /// `readonly attribute AString currentAudioBackend;` #[inline] pub unsafe fn GetCurrentAudioBackend(&self, aCurrentAudioBackend: &mut ::nsstring::nsAString) -> nsresult { ((*self.vtable).GetCurrentAudioBackend)(self, aCurrentAudioBackend) } /// ```text /// /** /// * Returns the max channel counts of the current audio device. /// */ /// ``` /// /// `readonly attribute unsigned long currentMaxAudioChannels;` #[inline] pub unsafe fn GetCurrentMaxAudioChannels(&self, aCurrentMaxAudioChannels: *mut libc::uint32_t) -> nsresult { ((*self.vtable).GetCurrentMaxAudioChannels)(self, aCurrentMaxAudioChannels) } /// ```text /// /** /// * Returns the preferred channel layout of the current audio device. /// */ /// ``` /// /// `readonly attribute AString currentPreferredChannelLayout;` #[inline] pub unsafe fn GetCurrentPreferredChannelLayout(&self, aCurrentPreferredChannelLayout: &mut ::nsstring::nsAString) -> nsresult { ((*self.vtable).GetCurrentPreferredChannelLayout)(self, aCurrentPreferredChannelLayout) } /// ```text /// /** /// * Returns the preferred sample rate of the current audio device. /// */ /// ``` /// /// `readonly attribute unsigned long currentPreferredSampleRate;` #[inline] pub unsafe fn GetCurrentPreferredSampleRate(&self, aCurrentPreferredSampleRate: *mut libc::uint32_t) -> nsresult { ((*self.vtable).GetCurrentPreferredSampleRate)(self, aCurrentPreferredSampleRate) } /// `nsIArray audioDevices (in unsigned short aSide);` #[inline] pub unsafe fn AudioDevices(&self, aSide: libc::uint16_t, _retval: *mut *const nsIArray) -> nsresult { ((*self.vtable).AudioDevices)(self, aSide, _retval) } /// ```text /// /** /// * Record (and return) frame-intervals for frames which were presented /// * between calling StartFrameTimeRecording and StopFrameTimeRecording. /// * /// * - Uses a cyclic buffer and serves concurrent consumers, so if Stop is called too late /// * (elements were overwritten since Start), result is considered invalid and hence empty. /// * - Buffer is capable of holding 10 seconds @ 60fps (or more if frames were less frequent). /// * Can be changed (up to 1 hour) via pref: toolkit.framesRecording.bufferSize. /// * - Note: the first frame-interval may be longer than expected because last frame /// * might have been presented some time before calling StartFrameTimeRecording. /// */ /// /** /// * Returns a handle which represents current recording start position. /// */ /// ``` /// /// `void startFrameTimeRecording ([retval] out unsigned long startIndex);` #[inline] pub unsafe fn StartFrameTimeRecording(&self, startIndex: *mut libc::uint32_t) -> nsresult { ((*self.vtable).StartFrameTimeRecording)(self, startIndex) } /// ```text /// /** /// * Returns number of recorded frames since startIndex was issued, /// * and allocates+populates 2 arraye with the recorded data. /// * - Allocation is infallible. Should be released even if size is 0. /// */ /// ``` /// /// `void stopFrameTimeRecording (in unsigned long startIndex, [optional] out unsigned long frameCount, [array, size_is (frameCount), retval] out float frameIntervals);` #[inline] pub unsafe fn StopFrameTimeRecording(&self, startIndex: libc::uint32_t, frameCount: *mut libc::uint32_t, frameIntervals: *mut *mut libc::c_float) -> nsresult { ((*self.vtable).StopFrameTimeRecording)(self, startIndex, frameCount, frameIntervals) } /// ```text /// /** /// * The DPI of the display /// */ /// ``` /// /// `readonly attribute float displayDPI;` #[inline] pub unsafe fn GetDisplayDPI(&self, aDisplayDPI: *mut libc::c_float) -> nsresult { ((*self.vtable).GetDisplayDPI)(self, aDisplayDPI) } /// ```text /// /** /// * Return this window's frame element. /// * Ignores all chrome/content or mozbrowser boundaries. /// */ /// ``` /// /// `readonly attribute nsIDOMElement containerElement;` #[inline] pub unsafe fn GetContainerElement(&self, aContainerElement: *mut *const nsIDOMElement) -> nsresult { ((*self.vtable).GetContainerElement)(self, aContainerElement) } /// `[noscript] void RenderDocument (in nsConstRect aRect, in uint32_t aFlags, in nscolor aBackgroundColor, in gfxContext aThebesContext);` const _RenderDocument: () = (); /// ```text /// /** /// * advanceTimeAndRefresh allows the caller to take over the refresh /// * driver timing for a window. A call to advanceTimeAndRefresh does /// * three things: /// * (1) It marks the refresh driver for this presentation so that it /// * no longer refreshes on its own, but is instead driven entirely /// * by the caller (except for the refresh that happens when a /// * document comes out of the bfcache). /// * (2) It advances the refresh driver's current refresh time by the /// * argument given. Negative advances are permitted. /// * (3) It does a refresh (i.e., notifies refresh observers) at that /// * new time. /// * /// * Note that this affects other connected docshells of the same type /// * in the same docshell tree, such as parent frames. /// * /// * When callers have completed their use of advanceTimeAndRefresh, /// * they must call restoreNormalRefresh. /// */ /// ``` /// /// `void advanceTimeAndRefresh (in long long aMilliseconds);` #[inline] pub unsafe fn AdvanceTimeAndRefresh(&self, aMilliseconds: libc::int64_t) -> nsresult { ((*self.vtable).AdvanceTimeAndRefresh)(self, aMilliseconds) } /// ```text /// /** /// * Undoes the effects of advanceTimeAndRefresh. /// */ /// ``` /// /// `void restoreNormalRefresh ();` #[inline] pub unsafe fn RestoreNormalRefresh(&self, ) -> nsresult { ((*self.vtable).RestoreNormalRefresh)(self, ) } /// ```text /// /** /// * Reports whether the current state is test-controlled refreshes /// * (see advanceTimeAndRefresh and restoreNormalRefresh above). /// */ /// ``` /// /// `readonly attribute bool isTestControllingRefreshes;` #[inline] pub unsafe fn GetIsTestControllingRefreshes(&self, aIsTestControllingRefreshes: *mut bool) -> nsresult { ((*self.vtable).GetIsTestControllingRefreshes)(self, aIsTestControllingRefreshes) } /// ```text /// /** /// * Reports whether APZ is enabled on the widget that this window is attached /// * to. If there is no widget it will report the default platform value of /// * whether or not APZ is enabled. /// */ /// ``` /// /// `readonly attribute bool asyncPanZoomEnabled;` #[inline] pub unsafe fn GetAsyncPanZoomEnabled(&self, aAsyncPanZoomEnabled: *mut bool) -> nsresult { ((*self.vtable).GetAsyncPanZoomEnabled)(self, aAsyncPanZoomEnabled) } /// ```text /// /** /// * Set async scroll offset on an element. The next composite will render /// * with that offset if async scrolling is enabled, and then the offset /// * will be removed. Only call this while test-controlled refreshes is enabled. /// */ /// ``` /// /// `void setAsyncScrollOffset (in nsIDOMNode aNode, in float aX, in float aY);` #[inline] pub unsafe fn SetAsyncScrollOffset(&self, aNode: *const nsIDOMNode, aX: libc::c_float, aY: libc::c_float) -> nsresult { ((*self.vtable).SetAsyncScrollOffset)(self, aNode, aX, aY) } /// ```text /// /** /// * Set async zoom value. aRootElement should be the document element of our /// * document. The next composite will render with that zoom added to any /// * existing zoom if async scrolling is enabled, and then the zoom will be /// * removed. Only call this while test-controlled refreshes is enabled. /// */ /// ``` /// /// `void setAsyncZoom (in nsIDOMNode aRootElement, in float aValue);` #[inline] pub unsafe fn SetAsyncZoom(&self, aRootElement: *const nsIDOMNode, aValue: libc::c_float) -> nsresult { ((*self.vtable).SetAsyncZoom)(self, aRootElement, aValue) } /// ```text /// /** /// * Do a round-trip to the compositor to ensure any pending APZ repaint requests /// * get flushed to the main thread. If the function returns true, the flush was /// * triggered and an "apz-repaints-flushed" notification will be dispatched via /// * the observer service once the flush is complete. If the function returns /// * false, an error occurred or a flush is not needed, and the notification /// * will not fire. This is intended to be used by test code only! /// */ /// ``` /// /// `bool flushApzRepaints ();` #[inline] pub unsafe fn FlushApzRepaints(&self, _retval: *mut bool) -> nsresult { ((*self.vtable).FlushApzRepaints)(self, _retval) } /// ```text /// /** /// * Ask APZ to pan and zoom to the focused input element. /// */ /// ``` /// /// `void zoomToFocusedInput ();` #[inline] pub unsafe fn ZoomToFocusedInput(&self, ) -> nsresult { ((*self.vtable).ZoomToFocusedInput)(self, ) } /// ```text /// /** /// * Method for testing StyleAnimationValue::ComputeDistance. /// * /// * Returns the distance between the two values as reported by /// * StyleAnimationValue::ComputeDistance for the given element and /// * property. /// */ /// ``` /// /// `double computeAnimationDistance (in nsIDOMElement element, in AString property, in AString value1, in AString value2);` #[inline] pub unsafe fn ComputeAnimationDistance(&self, element: *const nsIDOMElement, property: &::nsstring::nsAString, value1: &::nsstring::nsAString, value2: &::nsstring::nsAString, _retval: *mut libc::c_double) -> nsresult { ((*self.vtable).ComputeAnimationDistance)(self, element, property, value1, value2, _retval) } /// ```text /// /** /// * Returns the animation type of the specified property (e.g. 'coord'). /// * /// * @param aProperty A longhand CSS property (e.g. 'background-color'). /// */ /// ``` /// /// `AString getAnimationTypeForLonghand (in AString aProperty);` #[inline] pub unsafe fn GetAnimationTypeForLonghand(&self, aProperty: &::nsstring::nsAString, _retval: &mut ::nsstring::nsAString) -> nsresult { ((*self.vtable).GetAnimationTypeForLonghand)(self, aProperty, _retval) } /// ```text /// /** /// * Returns the computed style for the specified property of given pseudo type /// * on the given element after removing styles from declarative animations. /// * @param aElement - A target element /// * @param aPseudoElement - A pseudo type (e.g. '::before' or null) /// * @param aProperty - A longhand CSS property (e.g. 'background-color') /// * @param aFlushType - FLUSH_NONE if any pending styles should not happen, /// * FLUSH_STYLE to flush pending styles. /// */ /// ``` /// /// `AString getUnanimatedComputedStyle (in nsIDOMElement aElement, in AString aPseudoElement, in AString aProperty, in long aFlushType);` #[inline] pub unsafe fn GetUnanimatedComputedStyle(&self, aElement: *const nsIDOMElement, aPseudoElement: &::nsstring::nsAString, aProperty: &::nsstring::nsAString, aFlushType: libc::int32_t, _retval: &mut ::nsstring::nsAString) -> nsresult { ((*self.vtable).GetUnanimatedComputedStyle)(self, aElement, aPseudoElement, aProperty, aFlushType, _retval) } /// ```text /// /** /// * Get the type of the currently focused html input, if any. /// */ /// ``` /// /// `readonly attribute string focusedInputType;` #[inline] pub unsafe fn GetFocusedInputType(&self, aFocusedInputType: *mut *const libc::c_char) -> nsresult { ((*self.vtable).GetFocusedInputType)(self, aFocusedInputType) } /// ```text /// /** /// * Find the view ID for a given element. This is the reverse of /// * findElementWithViewId(). /// */ /// ``` /// /// `nsViewID getViewId (in nsIDOMElement aElement);` #[inline] pub unsafe fn GetViewId(&self, aElement: *const nsIDOMElement, _retval: *mut nsViewID) -> nsresult { ((*self.vtable).GetViewId)(self, aElement, _retval) } /// ```text /// /** /// * Checks the layer tree for this window and returns true /// * if all layers have transforms that are translations by integers, /// * no leaf layers overlap, and the union of the leaf layers is exactly /// * the bounds of the window. Always returns true in non-DEBUG builds. /// */ /// ``` /// /// `boolean leafLayersPartitionWindow ();` #[inline] pub unsafe fn LeafLayersPartitionWindow(&self, _retval: *mut bool) -> nsresult { ((*self.vtable).LeafLayersPartitionWindow)(self, _retval) } /// ```text /// /** /// * Check if any PaintedLayer painting has been done for this element, /// * clears the painted flags if they have. /// */ /// ``` /// /// `boolean checkAndClearPaintedState (in nsIDOMElement aElement);` #[inline] pub unsafe fn CheckAndClearPaintedState(&self, aElement: *const nsIDOMElement, _retval: *mut bool) -> nsresult { ((*self.vtable).CheckAndClearPaintedState)(self, aElement, _retval) } /// ```text /// /** /// * Check if any display list building has been done for this element, /// * clears the display list flags if they have. /// */ /// ``` /// /// `boolean checkAndClearDisplayListState (in nsIDOMElement aElement);` #[inline] pub unsafe fn CheckAndClearDisplayListState(&self, aElement: *const nsIDOMElement, _retval: *mut bool) -> nsresult { ((*self.vtable).CheckAndClearDisplayListState)(self, aElement, _retval) } /// ```text /// /** /// * Check whether all display items of the primary frame of aElement have been /// * assigned to the same single PaintedLayer in the last paint. If that is the /// * case, returns whether that PaintedLayer is opaque; if it's not the case, an /// * exception is thrown. /// */ /// ``` /// /// `boolean isPartOfOpaqueLayer (in nsIDOMElement aElement);` #[inline] pub unsafe fn IsPartOfOpaqueLayer(&self, aElement: *const nsIDOMElement, _retval: *mut bool) -> nsresult { ((*self.vtable).IsPartOfOpaqueLayer)(self, aElement, _retval) } /// ```text /// /** /// * Count the number of different PaintedLayers that the supplied elements have /// * been assigned to in the last paint. Throws an exception if any of the /// * elements doesn't have a primary frame, or if that frame's display items are /// * assigned to any other layers than just a single PaintedLayer per element. /// */ /// ``` /// /// `unsigned long numberOfAssignedPaintedLayers ([array, size_is (count)] in nsIDOMElement aElements, in uint32_t count);` #[inline] pub unsafe fn NumberOfAssignedPaintedLayers(&self, aElements: *mut *const nsIDOMElement, count: uint32_t, _retval: *mut libc::uint32_t) -> nsresult { ((*self.vtable).NumberOfAssignedPaintedLayers)(self, aElements, count, _retval) } /// ```text /// /** /// * Get internal id of the stored blob, file or file handle. /// */ /// ``` /// /// `[implicit_jscontext] long long getFileId (in jsval aFile);` const _GetFileId: () = (); /// ```text /// /** /// * Get internal file path of the stored file or file handle. /// * /// * TODO: File handle objects are actually not supported at the moment. /// */ /// ``` /// /// `[implicit_jscontext] AString getFilePath (in jsval aFile);` const _GetFilePath: () = (); /// ```text /// /** /// * Get file ref count info for given database and file id. /// * /// */ /// ``` /// /// `[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);` const _GetFileReferences: () = (); /// `void flushPendingFileDeletions ();` #[inline] pub unsafe fn FlushPendingFileDeletions(&self, ) -> nsresult { ((*self.vtable).FlushPendingFileDeletions)(self, ) } /// ```text /// /** /// * Return whether incremental GC has been disabled due to a binary add-on. /// */ /// ``` /// /// `[implicit_jscontext] boolean isIncrementalGCEnabled ();` const _IsIncrementalGCEnabled: () = (); /// ```text /// /** /// * Begin opcode-level profiling of all JavaScript execution in the window's /// * runtime. /// */ /// ``` /// /// `[implicit_jscontext] void startPCCountProfiling ();` const _StartPCCountProfiling: () = (); /// ```text /// /** /// * Stop opcode-level profiling of JavaScript execution in the runtime, and /// * collect all counts for use by getPCCount methods. /// */ /// ``` /// /// `[implicit_jscontext] void stopPCCountProfiling ();` const _StopPCCountProfiling: () = (); /// ```text /// /** /// * Purge collected PC counters. /// */ /// ``` /// /// `[implicit_jscontext] void purgePCCounts ();` const _PurgePCCounts: () = (); /// ```text /// /** /// * Get the number of scripts with opcode-level profiling information. /// */ /// ``` /// /// `[implicit_jscontext] long getPCCountScriptCount ();` const _GetPCCountScriptCount: () = (); /// ```text /// /** /// * Get a JSON string for a short summary of a script and the PC counts /// * accumulated for it. /// */ /// ``` /// /// `[implicit_jscontext] AString getPCCountScriptSummary (in long script);` const _GetPCCountScriptSummary: () = (); /// ```text /// /** /// * Get a JSON string with full information about a profiled script, /// * including the decompilation of the script and placement of decompiled /// * operations within it, and PC counts for each operation. /// */ /// ``` /// /// `[implicit_jscontext] AString getPCCountScriptContents (in long script);` const _GetPCCountScriptContents: () = (); /// ```text /// /** /// * Returns true if painting is suppressed for this window and false /// * otherwise. /// */ /// ``` /// /// `readonly attribute boolean paintingSuppressed;` #[inline] pub unsafe fn GetPaintingSuppressed(&self, aPaintingSuppressed: *mut bool) -> nsresult { ((*self.vtable).GetPaintingSuppressed)(self, aPaintingSuppressed) } /// ```text /// /** /// * Returns an array of plugins on the page for opt-in activation. /// * /// * Cannot be accessed from unprivileged context (not content-accessible). /// * Will throw a DOM security error if called without chrome privileges. /// * /// */ /// ``` /// /// `[implicit_jscontext] readonly attribute jsval plugins;` const _GetPlugins: () = (); /// ```text /// /** /// * Set the scrollport size for the purposes of clamping scroll positions for /// * the root scroll frame of this document to be (aWidth,aHeight) in CSS pixels. /// * /// * The caller of this method must have chrome privileges. /// */ /// ``` /// /// `void setScrollPositionClampingScrollPortSize (in float aWidth, in float aHeight);` #[inline] pub unsafe fn SetScrollPositionClampingScrollPortSize(&self, aWidth: libc::c_float, aHeight: libc::c_float) -> nsresult { ((*self.vtable).SetScrollPositionClampingScrollPortSize)(self, aWidth, aHeight) } /// ```text /// /** /// * These are used to control whether dialogs (alert, prompt, confirm) are /// * allowed. /// */ /// ``` /// /// `void disableDialogs ();` #[inline] pub unsafe fn DisableDialogs(&self, ) -> nsresult { ((*self.vtable).DisableDialogs)(self, ) } /// `void enableDialogs ();` #[inline] pub unsafe fn EnableDialogs(&self, ) -> nsresult { ((*self.vtable).EnableDialogs)(self, ) } /// `bool areDialogsEnabled ();` #[inline] pub unsafe fn AreDialogsEnabled(&self, _retval: *mut bool) -> nsresult { ((*self.vtable).AreDialogsEnabled)(self, _retval) } /// ```text /// /** /// * Synchronously loads a style sheet from |sheetURI| and adds it to the list /// * of additional style sheets of the document. /// * /// * These additional style sheets are very much like user/agent sheets loaded /// * with loadAndRegisterSheet. The only difference is that they are applied only /// * on the document owned by this window. /// * /// * Sheets added via this API take effect immediately on the document. /// */ /// ``` /// /// `void loadSheet (in nsIURI sheetURI, in unsigned long type);` #[inline] pub unsafe fn LoadSheet(&self, sheetURI: *const nsIURI, type_: libc::uint32_t) -> nsresult { ((*self.vtable).LoadSheet)(self, sheetURI, type_) } /// ```text /// /** /// * Same as the above method but allows passing the URI as a string. /// */ /// ``` /// /// `void loadSheetUsingURIString (in ACString sheetURI, in unsigned long type);` #[inline] pub unsafe fn LoadSheetUsingURIString(&self, sheetURI: &::nsstring::nsACString, type_: libc::uint32_t) -> nsresult { ((*self.vtable).LoadSheetUsingURIString)(self, sheetURI, type_) } /// ```text /// /** /// * Adds a style sheet to the list of additional style sheets of the document. /// * /// * Style sheets can be preloaded with nsIStyleSheetService.preloadSheet. /// * /// * Sheets added via this API take effect immediately on the document. /// */ /// ``` /// /// `void addSheet (in nsIPreloadedStyleSheet sheet, in unsigned long type);` #[inline] pub unsafe fn AddSheet(&self, sheet: *const nsIPreloadedStyleSheet, type_: libc::uint32_t) -> nsresult { ((*self.vtable).AddSheet)(self, sheet, type_) } /// ```text /// /** /// * Remove the document style sheet at |sheetURI| from the list of additional /// * style sheets of the document. The removal takes effect immediately. /// */ /// ``` /// /// `void removeSheet (in nsIURI sheetURI, in unsigned long type);` #[inline] pub unsafe fn RemoveSheet(&self, sheetURI: *const nsIURI, type_: libc::uint32_t) -> nsresult { ((*self.vtable).RemoveSheet)(self, sheetURI, type_) } /// ```text /// /** /// * Same as the above method but allows passing the URI as a string. /// */ /// ``` /// /// `void removeSheetUsingURIString (in ACString sheetURI, in unsigned long type);` #[inline] pub unsafe fn RemoveSheetUsingURIString(&self, sheetURI: &::nsstring::nsACString, type_: libc::uint32_t) -> nsresult { ((*self.vtable).RemoveSheetUsingURIString)(self, sheetURI, type_) } /// ```text /// /** /// * Returns true if a user input is being handled. /// * /// * This calls EventStateManager::IsHandlingUserInput(). /// */ /// ``` /// /// `readonly attribute boolean isHandlingUserInput;` #[inline] pub unsafe fn GetIsHandlingUserInput(&self, aIsHandlingUserInput: *mut bool) -> nsresult { ((*self.vtable).GetIsHandlingUserInput)(self, aIsHandlingUserInput) } /// ```text /// /** /// * Returns milliseconds elapsed since last user input was started /// * /// * This relies on EventStateManager::LatestUserInputStart() /// */ /// ``` /// /// `readonly attribute double millisSinceLastUserInput;` #[inline] pub unsafe fn GetMillisSinceLastUserInput(&self, aMillisSinceLastUserInput: *mut libc::c_double) -> nsresult { ((*self.vtable).GetMillisSinceLastUserInput)(self, aMillisSinceLastUserInput) } /// ```text /// /** /// * After calling the method, the window for which this DOMWindowUtils /// * was created can be closed using scripts. /// */ /// ``` /// /// `void allowScriptsToClose ();` #[inline] pub unsafe fn AllowScriptsToClose(&self, ) -> nsresult { ((*self.vtable).AllowScriptsToClose)(self, ) } /// ```text /// /** /// * Is the parent window's main widget visible? If it isn't, we probably /// * don't want to display any dialogs etc it may request. This corresponds /// * to the visibility check in nsWindowWatcher::OpenWindowInternal(). /// * /// * Will throw a DOM security error if called without chrome privileges or /// * NS_ERROR_NOT_AVAILABLE in the unlikely event that the parent window's /// * main widget can't be reached. /// */ /// ``` /// /// `readonly attribute boolean isParentWindowMainWidgetVisible;` #[inline] pub unsafe fn GetIsParentWindowMainWidgetVisible(&self, aIsParentWindowMainWidgetVisible: *mut bool) -> nsresult { ((*self.vtable).GetIsParentWindowMainWidgetVisible)(self, aIsParentWindowMainWidgetVisible) } /// ```text /// /** /// * In certain cases the event handling of nodes, form controls in practice, /// * may be disabled. Such cases are for example the existence of disabled /// * attribute or -moz-user-input: none/disabled. /// */ /// ``` /// /// `boolean isNodeDisabledForEvents (in nsIDOMNode aNode);` #[inline] pub unsafe fn IsNodeDisabledForEvents(&self, aNode: *const nsIDOMNode, _retval: *mut bool) -> nsresult { ((*self.vtable).IsNodeDisabledForEvents)(self, aNode, _retval) } /// ```text /// /** /// * Setting paintFlashing to true will flash newly painted area. /// */ /// ``` /// /// `attribute boolean paintFlashing;` #[inline] pub unsafe fn GetPaintFlashing(&self, aPaintFlashing: *mut bool) -> nsresult { ((*self.vtable).GetPaintFlashing)(self, aPaintFlashing) } /// ```text /// /** /// * Setting paintFlashing to true will flash newly painted area. /// */ /// ``` /// /// `attribute boolean paintFlashing;` #[inline] pub unsafe fn SetPaintFlashing(&self, aPaintFlashing: bool) -> nsresult { ((*self.vtable).SetPaintFlashing)(self, aPaintFlashing) } /// `AString getOMTAStyle (in nsIDOMElement aElement, in AString aProperty, [optional] in AString aPseudoElement);` #[inline] pub unsafe fn GetOMTAStyle(&self, aElement: *const nsIDOMElement, aProperty: &::nsstring::nsAString, aPseudoElement: &::nsstring::nsAString, _retval: &mut ::nsstring::nsAString) -> nsresult { ((*self.vtable).GetOMTAStyle)(self, aElement, aProperty, aPseudoElement, _retval) } /// ```text /// /** /// * Special function that gets a property syncronously from the last composite /// * that occured. /// * /// * Supported properties: /// * "overdraw": Report a percentage between 0 and 999 indicate how many times /// * each pixels on the destination window have been touched. /// */ /// ``` /// /// `float requestCompositorProperty (in AString aProperty);` #[inline] pub unsafe fn RequestCompositorProperty(&self, aProperty: &::nsstring::nsAString, _retval: *mut libc::c_float) -> nsresult { ((*self.vtable).RequestCompositorProperty)(self, aProperty, _retval) } /// ```text /// /** /// * If aHandlingInput is true, this informs the event state manager that /// * we're handling user input. Otherwise, this is a no-op (as by default /// * we're not handling user input). /// * Remember to call destruct() on the return value! /// * See also nsIDOMWindowUtils::isHandlingUserInput. /// */ /// ``` /// /// `nsIJSRAIIHelper setHandlingUserInput (in boolean aHandlingInput);` #[inline] pub unsafe fn SetHandlingUserInput(&self, aHandlingInput: bool, _retval: *mut *const nsIJSRAIIHelper) -> nsresult { ((*self.vtable).SetHandlingUserInput)(self, aHandlingInput, _retval) } /// ```text /// /** /// * Get the content- and compositor-side APZ test data instances. /// * The return values are of type APZTestData (see APZTestData.webidl). /// */ /// ``` /// /// `[implicit_jscontext] jsval getContentAPZTestData ();` const _GetContentAPZTestData: () = (); /// `[implicit_jscontext] jsval getCompositorAPZTestData ();` const _GetCompositorAPZTestData: () = (); /// ```text /// /** /// * Posts an eRestyle_Self restyle event for the given element. /// */ /// ``` /// /// `void postRestyleSelfEvent (in nsIDOMElement aElement);` #[inline] pub unsafe fn PostRestyleSelfEvent(&self, aElement: *const nsIDOMElement) -> nsresult { ((*self.vtable).PostRestyleSelfEvent)(self, aElement) } /// ```text /// /** /// * Used to pause or resume all media in this window. Use-cases are audio /// * competing, remote media control and to prevent auto-playing media. /// */ /// ``` /// /// `attribute uint32_t mediaSuspend;` #[inline] pub unsafe fn GetMediaSuspend(&self, aMediaSuspend: *mut uint32_t) -> nsresult { ((*self.vtable).GetMediaSuspend)(self, aMediaSuspend) } /// ```text /// /** /// * Used to pause or resume all media in this window. Use-cases are audio /// * competing, remote media control and to prevent auto-playing media. /// */ /// ``` /// /// `attribute uint32_t mediaSuspend;` #[inline] pub unsafe fn SetMediaSuspend(&self, aMediaSuspend: uint32_t) -> nsresult { ((*self.vtable).SetMediaSuspend)(self, aMediaSuspend) } /// ```text /// /** /// * With this it's possible to mute all the MediaElements in this window. /// * We have audioMuted and audioVolume to preserve the volume across /// * mute/umute. /// */ /// ``` /// /// `attribute boolean audioMuted;` #[inline] pub unsafe fn GetAudioMuted(&self, aAudioMuted: *mut bool) -> nsresult { ((*self.vtable).GetAudioMuted)(self, aAudioMuted) } /// ```text /// /** /// * With this it's possible to mute all the MediaElements in this window. /// * We have audioMuted and audioVolume to preserve the volume across /// * mute/umute. /// */ /// ``` /// /// `attribute boolean audioMuted;` #[inline] pub unsafe fn SetAudioMuted(&self, aAudioMuted: bool) -> nsresult { ((*self.vtable).SetAudioMuted)(self, aAudioMuted) } /// ```text /// /** /// * range: greater or equal to 0. The real volume level is affected by the /// * volume of all ancestor windows. /// */ /// ``` /// /// `attribute float audioVolume;` #[inline] pub unsafe fn GetAudioVolume(&self, aAudioVolume: *mut libc::c_float) -> nsresult { ((*self.vtable).GetAudioVolume)(self, aAudioVolume) } /// ```text /// /** /// * range: greater or equal to 0. The real volume level is affected by the /// * volume of all ancestor windows. /// */ /// ``` /// /// `attribute float audioVolume;` #[inline] pub unsafe fn SetAudioVolume(&self, aAudioVolume: libc::c_float) -> nsresult { ((*self.vtable).SetAudioVolume)(self, aAudioVolume) } /// ```text /// /** /// * This method doesn't do anything useful. It was solely added for the /// * purpose of the test for bug 503926. /// */ /// ``` /// /// `void xpconnectArgument (in nsIDOMWindowUtils aThis);` #[inline] pub unsafe fn XpconnectArgument(&self, aThis: *const nsIDOMWindowUtils) -> nsresult { ((*self.vtable).XpconnectArgument)(self, aThis) } /// ```text /// /** /// * Helper for JS components that need to send permission requests with /// * e10s support properly. /// */ /// ``` /// /// `void askPermission (in nsIContentPermissionRequest aRequest);` #[inline] pub unsafe fn AskPermission(&self, aRequest: *const nsIContentPermissionRequest) -> nsresult { ((*self.vtable).AskPermission)(self, aRequest) } /// ```text /// /** /// * Restyle generation for the current document. /// * /// * May throw NS_ERROR_NOT_AVAILABLE. /// */ /// ``` /// /// `readonly attribute unsigned long long restyleGeneration;` #[inline] pub unsafe fn GetRestyleGeneration(&self, aRestyleGeneration: *mut libc::uint64_t) -> nsresult { ((*self.vtable).GetRestyleGeneration)(self, aRestyleGeneration) } /// ```text /// /** /// * Number of frames constructed (excluding breaking) for the curent /// * document. /// * /// * May throw NS_ERROR_NOT_AVAILABLE. /// */ /// ``` /// /// `readonly attribute unsigned long long framesConstructed;` #[inline] pub unsafe fn GetFramesConstructed(&self, aFramesConstructed: *mut libc::uint64_t) -> nsresult { ((*self.vtable).GetFramesConstructed)(self, aFramesConstructed) } /// ```text /// /** /// * Number of frames reflowed for the curent document. /// * /// * May throw NS_ERROR_NOT_AVAILABLE. /// */ /// ``` /// /// `readonly attribute unsigned long long framesReflowed;` #[inline] pub unsafe fn GetFramesReflowed(&self, aFramesReflowed: *mut libc::uint64_t) -> nsresult { ((*self.vtable).GetFramesReflowed)(self, aFramesReflowed) } /// ```text /// /** /// * Controls the amount of chrome that should be visible on each side of /// * the window. Works like the chromemargin xul:window attribute. /// * This should only be used with non-XUL windows. /// */ /// ``` /// /// `void setChromeMargin (in int32_t aTop, in int32_t aRight, in int32_t aBottom, in int32_t aLeft);` #[inline] pub unsafe fn SetChromeMargin(&self, aTop: int32_t, aRight: int32_t, aBottom: int32_t, aLeft: int32_t) -> nsresult { ((*self.vtable).SetChromeMargin)(self, aTop, aRight, aBottom, aLeft) } /// ```text /// /** /// * Enable some service workers testing features. /// */ /// ``` /// /// `attribute boolean serviceWorkersTestingEnabled;` #[inline] pub unsafe fn GetServiceWorkersTestingEnabled(&self, aServiceWorkersTestingEnabled: *mut bool) -> nsresult { ((*self.vtable).GetServiceWorkersTestingEnabled)(self, aServiceWorkersTestingEnabled) } /// ```text /// /** /// * Enable some service workers testing features. /// */ /// ``` /// /// `attribute boolean serviceWorkersTestingEnabled;` #[inline] pub unsafe fn SetServiceWorkersTestingEnabled(&self, aServiceWorkersTestingEnabled: bool) -> nsresult { ((*self.vtable).SetServiceWorkersTestingEnabled)(self, aServiceWorkersTestingEnabled) } /// ```text /// /** /// * Returns a JSObject which contains a list of frame uniformities /// * when the pref gfx.vsync.collect-scroll-data is enabled. /// * Every result contains a layer address and a frame uniformity for that layer. /// * A negative frame uniformity value indicates an invalid frame uniformity and an error has occured. /// */ /// ``` /// /// `[implicit_jscontext] jsval getFrameUniformityTestData ();` const _GetFrameUniformityTestData: () = (); /// `void enterChaosMode ();` #[inline] pub unsafe fn EnterChaosMode(&self, ) -> nsresult { ((*self.vtable).EnterChaosMode)(self, ) } /// ```text /// /** /// * Decrease the chaos mode activation level. See enterChaosMode(). /// */ /// ``` /// /// `void leaveChaosMode ();` #[inline] pub unsafe fn LeaveChaosMode(&self, ) -> nsresult { ((*self.vtable).LeaveChaosMode)(self, ) } /// ```text /// /** /// * Alerts Gecko of a device reset /// */ /// ``` /// /// `void triggerDeviceReset ();` #[inline] pub unsafe fn TriggerDeviceReset(&self, ) -> nsresult { ((*self.vtable).TriggerDeviceReset)(self, ) } /// ```text /// /** /// * Returns whether the document's style set's rule processor for the /// * specified level of the cascade is shared by multiple style sets. /// * (Used by tests to ensure that certain optimizations do not regress.) /// * /// * @param aSheetType One of the nsIStyleSheetService.*_SHEET constants. /// */ /// ``` /// /// `bool hasRuleProcessorUsedByMultipleStyleSets (in unsigned long aSheetType);` #[inline] pub unsafe fn HasRuleProcessorUsedByMultipleStyleSets(&self, aSheetType: libc::uint32_t, _retval: *mut bool) -> nsresult { ((*self.vtable).HasRuleProcessorUsedByMultipleStyleSets)(self, aSheetType, _retval) } /// `void forceUseCounterFlush (in nsIDOMNode aNode);` #[inline] pub unsafe fn ForceUseCounterFlush(&self, aNode: *const nsIDOMNode) -> nsresult { ((*self.vtable).ForceUseCounterFlush)(self, aNode) } /// ```text /// /** /// * Enable or disable displayport suppression. This is intended to be used by /// * testing code, to provide more deterministic behaviour over the displayport /// * suppression during tests. Note that this updates a flag, so whatever value /// * was last provided is what will be used. /// */ /// ``` /// /// `void respectDisplayPortSuppression (in boolean aEnabled);` #[inline] pub unsafe fn RespectDisplayPortSuppression(&self, aEnabled: bool) -> nsresult { ((*self.vtable).RespectDisplayPortSuppression)(self, aEnabled) } /// ```text /// /** /// * Set a flag that forces the next reflow interrupt check to return true. This /// * can be used by tests to force execution of the interrupted reflow codepaths. /// */ /// ``` /// /// `void forceReflowInterrupt ();` #[inline] pub unsafe fn ForceReflowInterrupt(&self, ) -> nsresult { ((*self.vtable).ForceReflowInterrupt)(self, ) } /// ```text /// /** /// * Terminate the GPU process. Used for testing GPU process restarts. /// */ /// ``` /// /// `void terminateGPUProcess ();` #[inline] pub unsafe fn TerminateGPUProcess(&self, ) -> nsresult { ((*self.vtable).TerminateGPUProcess)(self, ) } /// ```text /// /** /// * Returns the GPU process pid, or -1 if there is no GPU process. /// */ /// ``` /// /// `readonly attribute int32_t gpuProcessPid;` #[inline] pub unsafe fn GetGpuProcessPid(&self, aGpuProcessPid: *mut int32_t) -> nsresult { ((*self.vtable).GetGpuProcessPid)(self, aGpuProcessPid) } /// ```text /// /** /// * Returns true if the given timeout ID is in the list of tracking /// * timeouts. /// */ /// ``` /// /// `boolean isTimeoutTracking (in unsigned long timeoutId);` #[inline] pub unsafe fn IsTimeoutTracking(&self, timeoutId: libc::uint32_t, _retval: *mut bool) -> nsresult { ((*self.vtable).IsTimeoutTracking)(self, timeoutId, _retval) } /// ```text /// /** /// * Adds an EventStates bit to the element. /// * /// * The state string must be one of the following: /// * * (none yet; but for example "higlighted" for NS_EVENT_STATE_HIGHLIGHTED) /// * /// * The supported state strings are defined in kManuallyManagedStates /// * in nsDOMWindowUtils.cpp. /// */ /// ``` /// /// `void addManuallyManagedState (in nsIDOMElement element, in AString state);` #[inline] pub unsafe fn AddManuallyManagedState(&self, element: *const nsIDOMElement, state: &::nsstring::nsAString) -> nsresult { ((*self.vtable).AddManuallyManagedState)(self, element, state) } /// ```text /// /** /// * Removes the specified EventStates bits from the element. /// * /// * See above for the strings that can be passed for |state|. /// */ /// ``` /// /// `void removeManuallyManagedState (in nsIDOMElement element, in AString state);` #[inline] pub unsafe fn RemoveManuallyManagedState(&self, element: *const nsIDOMElement, state: &::nsstring::nsAString) -> nsresult { ((*self.vtable).RemoveManuallyManagedState)(self, element, state) } /// ```text /// /** /// * Returns usage data for a given storage object. /// * /// * @param aStorage /// * The storage object to get usage data for. /// */ /// ``` /// /// `int64_t getStorageUsage (in nsIDOMStorage aStorage);` #[inline] pub unsafe fn GetStorageUsage(&self, aStorage: *const nsIDOMStorage, _retval: *mut int64_t) -> nsresult { ((*self.vtable).GetStorageUsage)(self, aStorage, _retval) } /// ```text /// /** /// * Returns the directionality of a string using the first-strong character /// * algorithm defined in http://unicode.org/reports/tr9/#P2. /// * /// * @param aString the string to retrieve the direction for. /// * @return one of DIRECTION_LTR, DIRECTION_RTL or DIRECTION_NOT_SET depending /// * on the first-strong character found in the string. /// */ /// ``` /// /// `long getDirectionFromText (in AString aString);` #[inline] pub unsafe fn GetDirectionFromText(&self, aString: &::nsstring::nsAString, _retval: *mut libc::int32_t) -> nsresult { ((*self.vtable).GetDirectionFromText)(self, aString, _retval) } /// ```text /// /** /// * Calls FrameNeedsReflow on that root frame so that a layout flush /// * will be necessary. /// * /// * This should only be used for testing. /// */ /// ``` /// /// `void ensureDirtyRootFrame ();` #[inline] pub unsafe fn EnsureDirtyRootFrame(&self, ) -> nsresult { ((*self.vtable).EnsureDirtyRootFrame)(self, ) } /// ```text /// /** /// * Whether the current document is styled by Servo's style engine. /// * /// * This calls nsIDocument::IsStyledByServo(). /// */ /// ``` /// /// `readonly attribute boolean isStyledByServo;` #[inline] pub unsafe fn GetIsStyledByServo(&self, aIsStyledByServo: *mut bool) -> nsresult { ((*self.vtable).GetIsStyledByServo)(self, aIsStyledByServo) } /// ```text /// /** /// * Add a domain to the existing stylo blocklist. /// * /// * This calls nsLayoutUtils::AddToStyloBlocklist(). /// */ /// ``` /// /// `void addToStyloBlocklist (in ACString aBlockedDomain);` #[inline] pub unsafe fn AddToStyloBlocklist(&self, aBlockedDomain: &::nsstring::nsACString) -> nsresult { ((*self.vtable).AddToStyloBlocklist)(self, aBlockedDomain) } /// ```text /// /** /// * Remove a domain from the existing stylo blocklist. /// * /// * This calls nsLayoutUtils::RemoveFromStyloBlocklist(). /// */ /// ``` /// /// `void removeFromStyloBlocklist (in ACString aBlockedDomain);` #[inline] pub unsafe fn RemoveFromStyloBlocklist(&self, aBlockedDomain: &::nsstring::nsACString) -> nsresult { ((*self.vtable).RemoveFromStyloBlocklist)(self, aBlockedDomain) } } /// `interface nsITranslationNodeList : nsISupports` /// // The actual type definition for the interface. This struct has methods // declared on it which will call through its vtable. You never want to pass // this type around by value, always pass it behind a reference. #[repr(C)] pub struct nsITranslationNodeList { vtable: *const nsITranslationNodeListVTable, /// This field is a phantomdata to ensure that the VTable type and any /// struct containing it is not safe to send across threads, as XPCOM is /// generally not threadsafe. /// /// XPCOM interfaces in general are not safe to send across threads. __nosync: ::std::marker::PhantomData<::std::rc::Rc<u8>>, } // Implementing XpCom for an interface exposes its IID, which allows for easy // use of the `.query_interface<T>` helper method. This also defines that // method for nsITranslationNodeList. unsafe impl XpCom for nsITranslationNodeList { const IID: nsIID = nsID(0xc694e359, 0x7227, 0x4392, [0xa1, 0x38, 0x33, 0xc0, 0xcc, 0x1f, 0x15, 0xa6]); } // We need to implement the RefCounted trait so we can be used with `RefPtr`. // This trait teaches `RefPtr` how to manage our memory. unsafe impl RefCounted for nsITranslationNodeList { #[inline] unsafe fn addref(&self) { self.AddRef(); } #[inline] unsafe fn release(&self) { self.Release(); } } // This trait is implemented on all types which can be coerced to from nsITranslationNodeList. // It is used in the implementation of `fn coerce<T>`. We hide it from the // documentation, because it clutters it up a lot. #[doc(hidden)] pub trait nsITranslationNodeListCoerce { /// Cheaply cast a value of this type from a `nsITranslationNodeList`. fn coerce_from(v: &nsITranslationNodeList) -> &Self; } // The trivial implementation: We can obviously coerce ourselves to ourselves. impl nsITranslationNodeListCoerce for nsITranslationNodeList { #[inline] fn coerce_from(v: &nsITranslationNodeList) -> &Self { v } } impl nsITranslationNodeList { /// Cast this `nsITranslationNodeList` to one of its base interfaces. #[inline] pub fn coerce<T: nsITranslationNodeListCoerce>(&self) -> &T { T::coerce_from(self) } } // Every interface struct type implements `Deref` to its base interface. This // causes methods on the base interfaces to be directly avaliable on the // object. For example, you can call `.AddRef` or `.QueryInterface` directly // on any interface which inherits from `nsISupports`. impl ::std::ops::Deref for nsITranslationNodeList { type Target = nsISupports; #[inline] fn deref(&self) -> &nsISupports { unsafe { ::std::mem::transmute(self) } } } // Ensure we can use .coerce() to cast to our base types as well. Any type which // our base interface can coerce from should be coercable from us as well. impl<T: nsISupportsCoerce> nsITranslationNodeListCoerce for T { #[inline] fn coerce_from(v: &nsITranslationNodeList) -> &Self { T::coerce_from(v) } } // This struct represents the interface's VTable. A pointer to a statically // allocated version of this struct is at the beginning of every nsITranslationNodeList // object. It contains one pointer field for each method in the interface. In // the case where we can't generate a binding for a method, we include a void // pointer. #[doc(hidden)] #[repr(C)] pub struct nsITranslationNodeListVTable { /// We need to include the members from the base interface's vtable at the start /// of the VTable definition. pub __base: nsISupportsVTable, /* readonly attribute unsigned long length; */ pub GetLength: unsafe extern "system" fn (this: *const nsITranslationNodeList, aLength: *mut libc::uint32_t) -> nsresult, /* nsIDOMNode item (in unsigned long index); */ pub Item: unsafe extern "system" fn (this: *const nsITranslationNodeList, index: libc::uint32_t, _retval: *mut *const nsIDOMNode) -> nsresult, /* boolean isTranslationRootAtIndex (in unsigned long index); */ pub IsTranslationRootAtIndex: unsafe extern "system" fn (this: *const nsITranslationNodeList, index: libc::uint32_t, _retval: *mut bool) -> nsresult, } // The implementations of the function wrappers which are exposed to rust code. // Call these methods rather than manually calling through the VTable struct. impl nsITranslationNodeList { /// `readonly attribute unsigned long length;` #[inline] pub unsafe fn GetLength(&self, aLength: *mut libc::uint32_t) -> nsresult { ((*self.vtable).GetLength)(self, aLength) } /// `nsIDOMNode item (in unsigned long index);` #[inline] pub unsafe fn Item(&self, index: libc::uint32_t, _retval: *mut *const nsIDOMNode) -> nsresult { ((*self.vtable).Item)(self, index, _retval) } /// `boolean isTranslationRootAtIndex (in unsigned long index);` #[inline] pub unsafe fn IsTranslationRootAtIndex(&self, index: libc::uint32_t, _retval: *mut bool) -> nsresult { ((*self.vtable).IsTranslationRootAtIndex)(self, index, _retval) } } /// `interface nsIJSRAIIHelper : nsISupports` /// // The actual type definition for the interface. This struct has methods // declared on it which will call through its vtable. You never want to pass // this type around by value, always pass it behind a reference. #[repr(C)] pub struct nsIJSRAIIHelper { vtable: *const nsIJSRAIIHelperVTable, /// This field is a phantomdata to ensure that the VTable type and any /// struct containing it is not safe to send across threads, as XPCOM is /// generally not threadsafe. /// /// XPCOM interfaces in general are not safe to send across threads. __nosync: ::std::marker::PhantomData<::std::rc::Rc<u8>>, } // Implementing XpCom for an interface exposes its IID, which allows for easy // use of the `.query_interface<T>` helper method. This also defines that // method for nsIJSRAIIHelper. unsafe impl XpCom for nsIJSRAIIHelper { const IID: nsIID = nsID(0x52e5a996, 0xd0a9, 0x4efc, [0xa6, 0xfa, 0x24, 0x48, 0x9c, 0x53, 0x2b, 0x19]); } // We need to implement the RefCounted trait so we can be used with `RefPtr`. // This trait teaches `RefPtr` how to manage our memory. unsafe impl RefCounted for nsIJSRAIIHelper { #[inline] unsafe fn addref(&self) { self.AddRef(); } #[inline] unsafe fn release(&self) { self.Release(); } } // This trait is implemented on all types which can be coerced to from nsIJSRAIIHelper. // It is used in the implementation of `fn coerce<T>`. We hide it from the // documentation, because it clutters it up a lot. #[doc(hidden)] pub trait nsIJSRAIIHelperCoerce { /// Cheaply cast a value of this type from a `nsIJSRAIIHelper`. fn coerce_from(v: &nsIJSRAIIHelper) -> &Self; } // The trivial implementation: We can obviously coerce ourselves to ourselves. impl nsIJSRAIIHelperCoerce for nsIJSRAIIHelper { #[inline] fn coerce_from(v: &nsIJSRAIIHelper) -> &Self { v } } impl nsIJSRAIIHelper { /// Cast this `nsIJSRAIIHelper` to one of its base interfaces. #[inline] pub fn coerce<T: nsIJSRAIIHelperCoerce>(&self) -> &T { T::coerce_from(self) } } // Every interface struct type implements `Deref` to its base interface. This // causes methods on the base interfaces to be directly avaliable on the // object. For example, you can call `.AddRef` or `.QueryInterface` directly // on any interface which inherits from `nsISupports`. impl ::std::ops::Deref for nsIJSRAIIHelper { type Target = nsISupports; #[inline] fn deref(&self) -> &nsISupports { unsafe { ::std::mem::transmute(self) } } } // Ensure we can use .coerce() to cast to our base types as well. Any type which // our base interface can coerce from should be coercable from us as well. impl<T: nsISupportsCoerce> nsIJSRAIIHelperCoerce for T { #[inline] fn coerce_from(v: &nsIJSRAIIHelper) -> &Self { T::coerce_from(v) } } // This struct represents the interface's VTable. A pointer to a statically // allocated version of this struct is at the beginning of every nsIJSRAIIHelper // object. It contains one pointer field for each method in the interface. In // the case where we can't generate a binding for a method, we include a void // pointer. #[doc(hidden)] #[repr(C)] pub struct nsIJSRAIIHelperVTable { /// We need to include the members from the base interface's vtable at the start /// of the VTable definition. pub __base: nsISupportsVTable, /* void destruct (); */ pub Destruct: unsafe extern "system" fn (this: *const nsIJSRAIIHelper) -> nsresult, } // The implementations of the function wrappers which are exposed to rust code. // Call these methods rather than manually calling through the VTable struct. impl nsIJSRAIIHelper { /// ```text /// /** /// * JS doesn't do RAII very well. We can use this interface to make remembering /// * to destruct an object in a finally clause easier. /// */ /// ``` /// /// `void destruct ();` #[inline] pub unsafe fn Destruct(&self, ) -> nsresult { ((*self.vtable).Destruct)(self, ) } }