OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 library sample_interfaces_mojom; | 5 library sample_interfaces_mojom; |
6 import 'dart:async'; | 6 import 'dart:async'; |
7 import 'dart:collection'; | 7 import 'dart:collection'; |
8 import 'dart:convert'; | 8 import 'dart:convert'; |
9 import 'dart:io'; | 9 import 'dart:io'; |
10 import 'dart:typed_data'; | 10 import 'dart:typed_data'; |
(...skipping 1354 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1365 | 1365 |
1366 abstract class Provider { | 1366 abstract class Provider { |
1367 static const String serviceName = null; | 1367 static const String serviceName = null; |
1368 dynamic echoString(String a,[Function responseFactory = null]); | 1368 dynamic echoString(String a,[Function responseFactory = null]); |
1369 dynamic echoStrings(String a,String b,[Function responseFactory = null]); | 1369 dynamic echoStrings(String a,String b,[Function responseFactory = null]); |
1370 dynamic echoMessagePipeHandle(core.MojoMessagePipeEndpoint a,[Function respons
eFactory = null]); | 1370 dynamic echoMessagePipeHandle(core.MojoMessagePipeEndpoint a,[Function respons
eFactory = null]); |
1371 dynamic echoEnum(Enum a,[Function responseFactory = null]); | 1371 dynamic echoEnum(Enum a,[Function responseFactory = null]); |
1372 dynamic echoInt(int a,[Function responseFactory = null]); | 1372 dynamic echoInt(int a,[Function responseFactory = null]); |
1373 } | 1373 } |
1374 | 1374 |
1375 | 1375 class _ProviderProxyControl |
1376 class _ProviderProxyControl extends bindings.ProxyMessageHandler | 1376 extends bindings.ProxyMessageHandler |
1377 implements bindings.ProxyControl { | 1377 implements bindings.ProxyControl { |
1378 _ProviderProxyControl.fromEndpoint( | 1378 _ProviderProxyControl.fromEndpoint( |
1379 core.MojoMessagePipeEndpoint endpoint) : super.fromEndpoint(endpoint); | 1379 core.MojoMessagePipeEndpoint endpoint) : super.fromEndpoint(endpoint); |
1380 | 1380 |
1381 _ProviderProxyControl.fromHandle( | 1381 _ProviderProxyControl.fromHandle( |
1382 core.MojoHandle handle) : super.fromHandle(handle); | 1382 core.MojoHandle handle) : super.fromHandle(handle); |
1383 | 1383 |
1384 _ProviderProxyControl.unbound() : super.unbound(); | 1384 _ProviderProxyControl.unbound() : super.unbound(); |
1385 | 1385 |
1386 service_describer.ServiceDescription get serviceDescription => | 1386 service_describer.ServiceDescription get serviceDescription => |
1387 new _ProviderServiceDescription(); | 1387 new _ProviderServiceDescription(); |
1388 | 1388 |
1389 String get serviceName => Provider.serviceName; | 1389 String get serviceName => Provider.serviceName; |
1390 | 1390 |
1391 @override | |
1392 void handleResponse(bindings.ServiceMessage message) { | 1391 void handleResponse(bindings.ServiceMessage message) { |
1393 switch (message.header.type) { | 1392 switch (message.header.type) { |
1394 case _providerMethodEchoStringName: | 1393 case _providerMethodEchoStringName: |
1395 var r = ProviderEchoStringResponseParams.deserialize( | 1394 var r = ProviderEchoStringResponseParams.deserialize( |
1396 message.payload); | 1395 message.payload); |
1397 if (!message.header.hasRequestId) { | 1396 if (!message.header.hasRequestId) { |
1398 proxyError("Expected a message with a valid request Id."); | 1397 proxyError("Expected a message with a valid request Id."); |
1399 return; | 1398 return; |
1400 } | 1399 } |
1401 Completer c = completerMap[message.header.requestId]; | 1400 Completer c = completerMap[message.header.requestId]; |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1498 } | 1497 } |
1499 } | 1498 } |
1500 | 1499 |
1501 @override | 1500 @override |
1502 String toString() { | 1501 String toString() { |
1503 var superString = super.toString(); | 1502 var superString = super.toString(); |
1504 return "_ProviderProxyControl($superString)"; | 1503 return "_ProviderProxyControl($superString)"; |
1505 } | 1504 } |
1506 } | 1505 } |
1507 | 1506 |
1508 | 1507 class ProviderProxy |
1509 class ProviderProxy extends bindings.Proxy | 1508 extends bindings.Proxy |
1510 implements Provider { | 1509 implements Provider { |
1511 ProviderProxy.fromEndpoint( | 1510 ProviderProxy.fromEndpoint( |
1512 core.MojoMessagePipeEndpoint endpoint) | 1511 core.MojoMessagePipeEndpoint endpoint) |
1513 : super(new _ProviderProxyControl.fromEndpoint(endpoint)); | 1512 : super(new _ProviderProxyControl.fromEndpoint(endpoint)); |
1514 | 1513 |
1515 ProviderProxy.fromHandle(core.MojoHandle handle) | 1514 ProviderProxy.fromHandle(core.MojoHandle handle) |
1516 : super(new _ProviderProxyControl.fromHandle(handle)); | 1515 : super(new _ProviderProxyControl.fromHandle(handle)); |
1517 | 1516 |
1518 ProviderProxy.unbound() | 1517 ProviderProxy.unbound() |
1519 : super(new _ProviderProxyControl.unbound()); | 1518 : super(new _ProviderProxyControl.unbound()); |
1520 | 1519 |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1573 var params = new _ProviderEchoIntParams(); | 1572 var params = new _ProviderEchoIntParams(); |
1574 params.a = a; | 1573 params.a = a; |
1575 return ctrl.sendMessageWithRequestId( | 1574 return ctrl.sendMessageWithRequestId( |
1576 params, | 1575 params, |
1577 _providerMethodEchoIntName, | 1576 _providerMethodEchoIntName, |
1578 -1, | 1577 -1, |
1579 bindings.MessageHeader.kMessageExpectsResponse); | 1578 bindings.MessageHeader.kMessageExpectsResponse); |
1580 } | 1579 } |
1581 } | 1580 } |
1582 | 1581 |
1583 | 1582 class _ProviderStubControl |
1584 class ProviderStub extends bindings.Stub { | 1583 extends bindings.StubMessageHandler |
| 1584 implements bindings.StubControl<Provider> { |
1585 Provider _impl; | 1585 Provider _impl; |
1586 | 1586 |
1587 ProviderStub.fromEndpoint( | 1587 _ProviderStubControl.fromEndpoint( |
1588 core.MojoMessagePipeEndpoint endpoint, [Provider impl]) | 1588 core.MojoMessagePipeEndpoint endpoint, [Provider impl]) |
1589 : super.fromEndpoint(endpoint, autoBegin: impl != null) { | 1589 : super.fromEndpoint(endpoint, autoBegin: impl != null) { |
1590 _impl = impl; | 1590 _impl = impl; |
1591 } | 1591 } |
1592 | 1592 |
1593 ProviderStub.fromHandle( | 1593 _ProviderStubControl.fromHandle( |
1594 core.MojoHandle handle, [Provider impl]) | 1594 core.MojoHandle handle, [Provider impl]) |
1595 : super.fromHandle(handle, autoBegin: impl != null) { | 1595 : super.fromHandle(handle, autoBegin: impl != null) { |
1596 _impl = impl; | 1596 _impl = impl; |
1597 } | 1597 } |
1598 | 1598 |
1599 ProviderStub.unbound([this._impl]) : super.unbound(); | 1599 _ProviderStubControl.unbound([this._impl]) : super.unbound(); |
1600 | |
1601 static ProviderStub newFromEndpoint( | |
1602 core.MojoMessagePipeEndpoint endpoint) { | |
1603 assert(endpoint.setDescription("For ProviderStub")); | |
1604 return new ProviderStub.fromEndpoint(endpoint); | |
1605 } | |
1606 | 1600 |
1607 | 1601 |
1608 ProviderEchoStringResponseParams _providerEchoStringResponseParamsFactory(Stri
ng a) { | 1602 ProviderEchoStringResponseParams _providerEchoStringResponseParamsFactory(Stri
ng a) { |
1609 var result = new ProviderEchoStringResponseParams(); | 1603 var result = new ProviderEchoStringResponseParams(); |
1610 result.a = a; | 1604 result.a = a; |
1611 return result; | 1605 return result; |
1612 } | 1606 } |
1613 ProviderEchoStringsResponseParams _providerEchoStringsResponseParamsFactory(St
ring a, String b) { | 1607 ProviderEchoStringsResponseParams _providerEchoStringsResponseParamsFactory(St
ring a, String b) { |
1614 var result = new ProviderEchoStringsResponseParams(); | 1608 var result = new ProviderEchoStringsResponseParams(); |
1615 result.a = a; | 1609 result.a = a; |
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1771 } | 1765 } |
1772 | 1766 |
1773 @override | 1767 @override |
1774 void bind(core.MojoMessagePipeEndpoint endpoint) { | 1768 void bind(core.MojoMessagePipeEndpoint endpoint) { |
1775 super.bind(endpoint); | 1769 super.bind(endpoint); |
1776 if (!isOpen && (_impl != null)) { | 1770 if (!isOpen && (_impl != null)) { |
1777 beginHandlingEvents(); | 1771 beginHandlingEvents(); |
1778 } | 1772 } |
1779 } | 1773 } |
1780 | 1774 |
| 1775 @override |
1781 String toString() { | 1776 String toString() { |
1782 var superString = super.toString(); | 1777 var superString = super.toString(); |
1783 return "ProviderStub($superString)"; | 1778 return "_ProviderStubControl($superString)"; |
1784 } | 1779 } |
1785 | 1780 |
1786 int get version => 0; | 1781 int get version => 0; |
1787 | 1782 |
1788 static service_describer.ServiceDescription _cachedServiceDescription; | 1783 static service_describer.ServiceDescription _cachedServiceDescription; |
1789 static service_describer.ServiceDescription get serviceDescription { | 1784 static service_describer.ServiceDescription get serviceDescription { |
1790 if (_cachedServiceDescription == null) { | 1785 if (_cachedServiceDescription == null) { |
1791 _cachedServiceDescription = new _ProviderServiceDescription(); | 1786 _cachedServiceDescription = new _ProviderServiceDescription(); |
1792 } | 1787 } |
1793 return _cachedServiceDescription; | 1788 return _cachedServiceDescription; |
1794 } | 1789 } |
1795 } | 1790 } |
1796 | 1791 |
| 1792 class ProviderStub |
| 1793 extends bindings.Stub<Provider> |
| 1794 implements Provider { |
| 1795 ProviderStub.fromEndpoint( |
| 1796 core.MojoMessagePipeEndpoint endpoint, [Provider impl]) |
| 1797 : super(new _ProviderStubControl.fromEndpoint(endpoint, impl)); |
| 1798 |
| 1799 ProviderStub.fromHandle( |
| 1800 core.MojoHandle handle, [Provider impl]) |
| 1801 : super(new _ProviderStubControl.fromHandle(handle, impl)); |
| 1802 |
| 1803 ProviderStub.unbound([Provider impl]) |
| 1804 : super(new _ProviderStubControl.unbound(impl)); |
| 1805 |
| 1806 static ProviderStub newFromEndpoint( |
| 1807 core.MojoMessagePipeEndpoint endpoint) { |
| 1808 assert(endpoint.setDescription("For ProviderStub")); |
| 1809 return new ProviderStub.fromEndpoint(endpoint); |
| 1810 } |
| 1811 |
| 1812 static service_describer.ServiceDescription get serviceDescription => |
| 1813 _ProviderStubControl.serviceDescription; |
| 1814 |
| 1815 |
| 1816 dynamic echoString(String a,[Function responseFactory = null]) { |
| 1817 return impl.echoString(a,responseFactory); |
| 1818 } |
| 1819 dynamic echoStrings(String a,String b,[Function responseFactory = null]) { |
| 1820 return impl.echoStrings(a,b,responseFactory); |
| 1821 } |
| 1822 dynamic echoMessagePipeHandle(core.MojoMessagePipeEndpoint a,[Function respons
eFactory = null]) { |
| 1823 return impl.echoMessagePipeHandle(a,responseFactory); |
| 1824 } |
| 1825 dynamic echoEnum(Enum a,[Function responseFactory = null]) { |
| 1826 return impl.echoEnum(a,responseFactory); |
| 1827 } |
| 1828 dynamic echoInt(int a,[Function responseFactory = null]) { |
| 1829 return impl.echoInt(a,responseFactory); |
| 1830 } |
| 1831 } |
| 1832 |
1797 const int _integerAccessorMethodGetIntegerName = 0; | 1833 const int _integerAccessorMethodGetIntegerName = 0; |
1798 const int _integerAccessorMethodSetIntegerName = 1; | 1834 const int _integerAccessorMethodSetIntegerName = 1; |
1799 | 1835 |
1800 class _IntegerAccessorServiceDescription implements service_describer.ServiceDes
cription { | 1836 class _IntegerAccessorServiceDescription implements service_describer.ServiceDes
cription { |
1801 dynamic getTopLevelInterface([Function responseFactory]) => | 1837 dynamic getTopLevelInterface([Function responseFactory]) => |
1802 responseFactory(null); | 1838 responseFactory(null); |
1803 | 1839 |
1804 dynamic getTypeDefinition(String typeKey, [Function responseFactory]) => | 1840 dynamic getTypeDefinition(String typeKey, [Function responseFactory]) => |
1805 responseFactory(null); | 1841 responseFactory(null); |
1806 | 1842 |
1807 dynamic getAllTypeDefinitions([Function responseFactory]) => | 1843 dynamic getAllTypeDefinitions([Function responseFactory]) => |
1808 responseFactory(null); | 1844 responseFactory(null); |
1809 } | 1845 } |
1810 | 1846 |
1811 abstract class IntegerAccessor { | 1847 abstract class IntegerAccessor { |
1812 static const String serviceName = null; | 1848 static const String serviceName = null; |
1813 dynamic getInteger([Function responseFactory = null]); | 1849 dynamic getInteger([Function responseFactory = null]); |
1814 void setInteger(int data, Enum type); | 1850 void setInteger(int data, Enum type); |
1815 } | 1851 } |
1816 | 1852 |
1817 | 1853 class _IntegerAccessorProxyControl |
1818 class _IntegerAccessorProxyControl extends bindings.ProxyMessageHandler | 1854 extends bindings.ProxyMessageHandler |
1819 implements bindings.ProxyControl { | 1855 implements bindings.ProxyControl { |
1820 _IntegerAccessorProxyControl.fromEndpoint( | 1856 _IntegerAccessorProxyControl.fromEndpoint( |
1821 core.MojoMessagePipeEndpoint endpoint) : super.fromEndpoint(endpoint); | 1857 core.MojoMessagePipeEndpoint endpoint) : super.fromEndpoint(endpoint); |
1822 | 1858 |
1823 _IntegerAccessorProxyControl.fromHandle( | 1859 _IntegerAccessorProxyControl.fromHandle( |
1824 core.MojoHandle handle) : super.fromHandle(handle); | 1860 core.MojoHandle handle) : super.fromHandle(handle); |
1825 | 1861 |
1826 _IntegerAccessorProxyControl.unbound() : super.unbound(); | 1862 _IntegerAccessorProxyControl.unbound() : super.unbound(); |
1827 | 1863 |
1828 service_describer.ServiceDescription get serviceDescription => | 1864 service_describer.ServiceDescription get serviceDescription => |
1829 new _IntegerAccessorServiceDescription(); | 1865 new _IntegerAccessorServiceDescription(); |
1830 | 1866 |
1831 String get serviceName => IntegerAccessor.serviceName; | 1867 String get serviceName => IntegerAccessor.serviceName; |
1832 | 1868 |
1833 @override | |
1834 void handleResponse(bindings.ServiceMessage message) { | 1869 void handleResponse(bindings.ServiceMessage message) { |
1835 switch (message.header.type) { | 1870 switch (message.header.type) { |
1836 case _integerAccessorMethodGetIntegerName: | 1871 case _integerAccessorMethodGetIntegerName: |
1837 var r = IntegerAccessorGetIntegerResponseParams.deserialize( | 1872 var r = IntegerAccessorGetIntegerResponseParams.deserialize( |
1838 message.payload); | 1873 message.payload); |
1839 if (!message.header.hasRequestId) { | 1874 if (!message.header.hasRequestId) { |
1840 proxyError("Expected a message with a valid request Id."); | 1875 proxyError("Expected a message with a valid request Id."); |
1841 return; | 1876 return; |
1842 } | 1877 } |
1843 Completer c = completerMap[message.header.requestId]; | 1878 Completer c = completerMap[message.header.requestId]; |
(...skipping 16 matching lines...) Expand all Loading... |
1860 } | 1895 } |
1861 } | 1896 } |
1862 | 1897 |
1863 @override | 1898 @override |
1864 String toString() { | 1899 String toString() { |
1865 var superString = super.toString(); | 1900 var superString = super.toString(); |
1866 return "_IntegerAccessorProxyControl($superString)"; | 1901 return "_IntegerAccessorProxyControl($superString)"; |
1867 } | 1902 } |
1868 } | 1903 } |
1869 | 1904 |
1870 | 1905 class IntegerAccessorProxy |
1871 class IntegerAccessorProxy extends bindings.Proxy | 1906 extends bindings.Proxy |
1872 implements IntegerAccessor { | 1907 implements IntegerAccessor { |
1873 IntegerAccessorProxy.fromEndpoint( | 1908 IntegerAccessorProxy.fromEndpoint( |
1874 core.MojoMessagePipeEndpoint endpoint) | 1909 core.MojoMessagePipeEndpoint endpoint) |
1875 : super(new _IntegerAccessorProxyControl.fromEndpoint(endpoint)); | 1910 : super(new _IntegerAccessorProxyControl.fromEndpoint(endpoint)); |
1876 | 1911 |
1877 IntegerAccessorProxy.fromHandle(core.MojoHandle handle) | 1912 IntegerAccessorProxy.fromHandle(core.MojoHandle handle) |
1878 : super(new _IntegerAccessorProxyControl.fromHandle(handle)); | 1913 : super(new _IntegerAccessorProxyControl.fromHandle(handle)); |
1879 | 1914 |
1880 IntegerAccessorProxy.unbound() | 1915 IntegerAccessorProxy.unbound() |
1881 : super(new _IntegerAccessorProxyControl.unbound()); | 1916 : super(new _IntegerAccessorProxyControl.unbound()); |
1882 | 1917 |
(...skipping 25 matching lines...) Expand all Loading... |
1908 return; | 1943 return; |
1909 } | 1944 } |
1910 var params = new _IntegerAccessorSetIntegerParams(); | 1945 var params = new _IntegerAccessorSetIntegerParams(); |
1911 params.data = data; | 1946 params.data = data; |
1912 params.type = type; | 1947 params.type = type; |
1913 ctrl.sendMessage(params, | 1948 ctrl.sendMessage(params, |
1914 _integerAccessorMethodSetIntegerName); | 1949 _integerAccessorMethodSetIntegerName); |
1915 } | 1950 } |
1916 } | 1951 } |
1917 | 1952 |
1918 | 1953 class _IntegerAccessorStubControl |
1919 class IntegerAccessorStub extends bindings.Stub { | 1954 extends bindings.StubMessageHandler |
| 1955 implements bindings.StubControl<IntegerAccessor> { |
1920 IntegerAccessor _impl; | 1956 IntegerAccessor _impl; |
1921 | 1957 |
1922 IntegerAccessorStub.fromEndpoint( | 1958 _IntegerAccessorStubControl.fromEndpoint( |
1923 core.MojoMessagePipeEndpoint endpoint, [IntegerAccessor impl]) | 1959 core.MojoMessagePipeEndpoint endpoint, [IntegerAccessor impl]) |
1924 : super.fromEndpoint(endpoint, autoBegin: impl != null) { | 1960 : super.fromEndpoint(endpoint, autoBegin: impl != null) { |
1925 _impl = impl; | 1961 _impl = impl; |
1926 } | 1962 } |
1927 | 1963 |
1928 IntegerAccessorStub.fromHandle( | 1964 _IntegerAccessorStubControl.fromHandle( |
1929 core.MojoHandle handle, [IntegerAccessor impl]) | 1965 core.MojoHandle handle, [IntegerAccessor impl]) |
1930 : super.fromHandle(handle, autoBegin: impl != null) { | 1966 : super.fromHandle(handle, autoBegin: impl != null) { |
1931 _impl = impl; | 1967 _impl = impl; |
1932 } | 1968 } |
1933 | 1969 |
1934 IntegerAccessorStub.unbound([this._impl]) : super.unbound(); | 1970 _IntegerAccessorStubControl.unbound([this._impl]) : super.unbound(); |
1935 | |
1936 static IntegerAccessorStub newFromEndpoint( | |
1937 core.MojoMessagePipeEndpoint endpoint) { | |
1938 assert(endpoint.setDescription("For IntegerAccessorStub")); | |
1939 return new IntegerAccessorStub.fromEndpoint(endpoint); | |
1940 } | |
1941 | 1971 |
1942 | 1972 |
1943 IntegerAccessorGetIntegerResponseParams _integerAccessorGetIntegerResponsePara
msFactory(int data, Enum type) { | 1973 IntegerAccessorGetIntegerResponseParams _integerAccessorGetIntegerResponsePara
msFactory(int data, Enum type) { |
1944 var result = new IntegerAccessorGetIntegerResponseParams(); | 1974 var result = new IntegerAccessorGetIntegerResponseParams(); |
1945 result.data = data; | 1975 result.data = data; |
1946 result.type = type; | 1976 result.type = type; |
1947 return result; | 1977 return result; |
1948 } | 1978 } |
1949 | 1979 |
1950 dynamic handleMessage(bindings.ServiceMessage message) { | 1980 dynamic handleMessage(bindings.ServiceMessage message) { |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2001 } | 2031 } |
2002 | 2032 |
2003 @override | 2033 @override |
2004 void bind(core.MojoMessagePipeEndpoint endpoint) { | 2034 void bind(core.MojoMessagePipeEndpoint endpoint) { |
2005 super.bind(endpoint); | 2035 super.bind(endpoint); |
2006 if (!isOpen && (_impl != null)) { | 2036 if (!isOpen && (_impl != null)) { |
2007 beginHandlingEvents(); | 2037 beginHandlingEvents(); |
2008 } | 2038 } |
2009 } | 2039 } |
2010 | 2040 |
| 2041 @override |
2011 String toString() { | 2042 String toString() { |
2012 var superString = super.toString(); | 2043 var superString = super.toString(); |
2013 return "IntegerAccessorStub($superString)"; | 2044 return "_IntegerAccessorStubControl($superString)"; |
2014 } | 2045 } |
2015 | 2046 |
2016 int get version => 3; | 2047 int get version => 3; |
2017 | 2048 |
2018 static service_describer.ServiceDescription _cachedServiceDescription; | 2049 static service_describer.ServiceDescription _cachedServiceDescription; |
2019 static service_describer.ServiceDescription get serviceDescription { | 2050 static service_describer.ServiceDescription get serviceDescription { |
2020 if (_cachedServiceDescription == null) { | 2051 if (_cachedServiceDescription == null) { |
2021 _cachedServiceDescription = new _IntegerAccessorServiceDescription(); | 2052 _cachedServiceDescription = new _IntegerAccessorServiceDescription(); |
2022 } | 2053 } |
2023 return _cachedServiceDescription; | 2054 return _cachedServiceDescription; |
2024 } | 2055 } |
2025 } | 2056 } |
2026 | 2057 |
| 2058 class IntegerAccessorStub |
| 2059 extends bindings.Stub<IntegerAccessor> |
| 2060 implements IntegerAccessor { |
| 2061 IntegerAccessorStub.fromEndpoint( |
| 2062 core.MojoMessagePipeEndpoint endpoint, [IntegerAccessor impl]) |
| 2063 : super(new _IntegerAccessorStubControl.fromEndpoint(endpoint, impl)); |
| 2064 |
| 2065 IntegerAccessorStub.fromHandle( |
| 2066 core.MojoHandle handle, [IntegerAccessor impl]) |
| 2067 : super(new _IntegerAccessorStubControl.fromHandle(handle, impl)); |
| 2068 |
| 2069 IntegerAccessorStub.unbound([IntegerAccessor impl]) |
| 2070 : super(new _IntegerAccessorStubControl.unbound(impl)); |
| 2071 |
| 2072 static IntegerAccessorStub newFromEndpoint( |
| 2073 core.MojoMessagePipeEndpoint endpoint) { |
| 2074 assert(endpoint.setDescription("For IntegerAccessorStub")); |
| 2075 return new IntegerAccessorStub.fromEndpoint(endpoint); |
| 2076 } |
| 2077 |
| 2078 static service_describer.ServiceDescription get serviceDescription => |
| 2079 _IntegerAccessorStubControl.serviceDescription; |
| 2080 |
| 2081 |
| 2082 dynamic getInteger([Function responseFactory = null]) { |
| 2083 return impl.getInteger(responseFactory); |
| 2084 } |
| 2085 void setInteger(int data, Enum type) { |
| 2086 return impl.setInteger(data, type); |
| 2087 } |
| 2088 } |
| 2089 |
2027 const int _sampleInterfaceMethodSampleMethod1Name = 1; | 2090 const int _sampleInterfaceMethodSampleMethod1Name = 1; |
2028 const int _sampleInterfaceMethodSampleMethod0Name = 0; | 2091 const int _sampleInterfaceMethodSampleMethod0Name = 0; |
2029 const int _sampleInterfaceMethodSampleMethod2Name = 2; | 2092 const int _sampleInterfaceMethodSampleMethod2Name = 2; |
2030 | 2093 |
2031 class _SampleInterfaceServiceDescription implements service_describer.ServiceDes
cription { | 2094 class _SampleInterfaceServiceDescription implements service_describer.ServiceDes
cription { |
2032 dynamic getTopLevelInterface([Function responseFactory]) => | 2095 dynamic getTopLevelInterface([Function responseFactory]) => |
2033 responseFactory(null); | 2096 responseFactory(null); |
2034 | 2097 |
2035 dynamic getTypeDefinition(String typeKey, [Function responseFactory]) => | 2098 dynamic getTypeDefinition(String typeKey, [Function responseFactory]) => |
2036 responseFactory(null); | 2099 responseFactory(null); |
2037 | 2100 |
2038 dynamic getAllTypeDefinitions([Function responseFactory]) => | 2101 dynamic getAllTypeDefinitions([Function responseFactory]) => |
2039 responseFactory(null); | 2102 responseFactory(null); |
2040 } | 2103 } |
2041 | 2104 |
2042 abstract class SampleInterface { | 2105 abstract class SampleInterface { |
2043 static const String serviceName = null; | 2106 static const String serviceName = null; |
2044 dynamic sampleMethod1(int in1,String in2,[Function responseFactory = null]); | 2107 dynamic sampleMethod1(int in1,String in2,[Function responseFactory = null]); |
2045 void sampleMethod0(); | 2108 void sampleMethod0(); |
2046 void sampleMethod2(); | 2109 void sampleMethod2(); |
2047 } | 2110 } |
2048 | 2111 |
2049 | 2112 class _SampleInterfaceProxyControl |
2050 class _SampleInterfaceProxyControl extends bindings.ProxyMessageHandler | 2113 extends bindings.ProxyMessageHandler |
2051 implements bindings.ProxyControl { | 2114 implements bindings.ProxyControl { |
2052 _SampleInterfaceProxyControl.fromEndpoint( | 2115 _SampleInterfaceProxyControl.fromEndpoint( |
2053 core.MojoMessagePipeEndpoint endpoint) : super.fromEndpoint(endpoint); | 2116 core.MojoMessagePipeEndpoint endpoint) : super.fromEndpoint(endpoint); |
2054 | 2117 |
2055 _SampleInterfaceProxyControl.fromHandle( | 2118 _SampleInterfaceProxyControl.fromHandle( |
2056 core.MojoHandle handle) : super.fromHandle(handle); | 2119 core.MojoHandle handle) : super.fromHandle(handle); |
2057 | 2120 |
2058 _SampleInterfaceProxyControl.unbound() : super.unbound(); | 2121 _SampleInterfaceProxyControl.unbound() : super.unbound(); |
2059 | 2122 |
2060 service_describer.ServiceDescription get serviceDescription => | 2123 service_describer.ServiceDescription get serviceDescription => |
2061 new _SampleInterfaceServiceDescription(); | 2124 new _SampleInterfaceServiceDescription(); |
2062 | 2125 |
2063 String get serviceName => SampleInterface.serviceName; | 2126 String get serviceName => SampleInterface.serviceName; |
2064 | 2127 |
2065 @override | |
2066 void handleResponse(bindings.ServiceMessage message) { | 2128 void handleResponse(bindings.ServiceMessage message) { |
2067 switch (message.header.type) { | 2129 switch (message.header.type) { |
2068 case _sampleInterfaceMethodSampleMethod1Name: | 2130 case _sampleInterfaceMethodSampleMethod1Name: |
2069 var r = SampleInterfaceSampleMethod1ResponseParams.deserialize( | 2131 var r = SampleInterfaceSampleMethod1ResponseParams.deserialize( |
2070 message.payload); | 2132 message.payload); |
2071 if (!message.header.hasRequestId) { | 2133 if (!message.header.hasRequestId) { |
2072 proxyError("Expected a message with a valid request Id."); | 2134 proxyError("Expected a message with a valid request Id."); |
2073 return; | 2135 return; |
2074 } | 2136 } |
2075 Completer c = completerMap[message.header.requestId]; | 2137 Completer c = completerMap[message.header.requestId]; |
(...skipping 16 matching lines...) Expand all Loading... |
2092 } | 2154 } |
2093 } | 2155 } |
2094 | 2156 |
2095 @override | 2157 @override |
2096 String toString() { | 2158 String toString() { |
2097 var superString = super.toString(); | 2159 var superString = super.toString(); |
2098 return "_SampleInterfaceProxyControl($superString)"; | 2160 return "_SampleInterfaceProxyControl($superString)"; |
2099 } | 2161 } |
2100 } | 2162 } |
2101 | 2163 |
2102 | 2164 class SampleInterfaceProxy |
2103 class SampleInterfaceProxy extends bindings.Proxy | 2165 extends bindings.Proxy |
2104 implements SampleInterface { | 2166 implements SampleInterface { |
2105 SampleInterfaceProxy.fromEndpoint( | 2167 SampleInterfaceProxy.fromEndpoint( |
2106 core.MojoMessagePipeEndpoint endpoint) | 2168 core.MojoMessagePipeEndpoint endpoint) |
2107 : super(new _SampleInterfaceProxyControl.fromEndpoint(endpoint)); | 2169 : super(new _SampleInterfaceProxyControl.fromEndpoint(endpoint)); |
2108 | 2170 |
2109 SampleInterfaceProxy.fromHandle(core.MojoHandle handle) | 2171 SampleInterfaceProxy.fromHandle(core.MojoHandle handle) |
2110 : super(new _SampleInterfaceProxyControl.fromHandle(handle)); | 2172 : super(new _SampleInterfaceProxyControl.fromHandle(handle)); |
2111 | 2173 |
2112 SampleInterfaceProxy.unbound() | 2174 SampleInterfaceProxy.unbound() |
2113 : super(new _SampleInterfaceProxyControl.unbound()); | 2175 : super(new _SampleInterfaceProxyControl.unbound()); |
2114 | 2176 |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2149 if (!ctrl.isBound) { | 2211 if (!ctrl.isBound) { |
2150 ctrl.proxyError("The Proxy is closed."); | 2212 ctrl.proxyError("The Proxy is closed."); |
2151 return; | 2213 return; |
2152 } | 2214 } |
2153 var params = new _SampleInterfaceSampleMethod2Params(); | 2215 var params = new _SampleInterfaceSampleMethod2Params(); |
2154 ctrl.sendMessage(params, | 2216 ctrl.sendMessage(params, |
2155 _sampleInterfaceMethodSampleMethod2Name); | 2217 _sampleInterfaceMethodSampleMethod2Name); |
2156 } | 2218 } |
2157 } | 2219 } |
2158 | 2220 |
2159 | 2221 class _SampleInterfaceStubControl |
2160 class SampleInterfaceStub extends bindings.Stub { | 2222 extends bindings.StubMessageHandler |
| 2223 implements bindings.StubControl<SampleInterface> { |
2161 SampleInterface _impl; | 2224 SampleInterface _impl; |
2162 | 2225 |
2163 SampleInterfaceStub.fromEndpoint( | 2226 _SampleInterfaceStubControl.fromEndpoint( |
2164 core.MojoMessagePipeEndpoint endpoint, [SampleInterface impl]) | 2227 core.MojoMessagePipeEndpoint endpoint, [SampleInterface impl]) |
2165 : super.fromEndpoint(endpoint, autoBegin: impl != null) { | 2228 : super.fromEndpoint(endpoint, autoBegin: impl != null) { |
2166 _impl = impl; | 2229 _impl = impl; |
2167 } | 2230 } |
2168 | 2231 |
2169 SampleInterfaceStub.fromHandle( | 2232 _SampleInterfaceStubControl.fromHandle( |
2170 core.MojoHandle handle, [SampleInterface impl]) | 2233 core.MojoHandle handle, [SampleInterface impl]) |
2171 : super.fromHandle(handle, autoBegin: impl != null) { | 2234 : super.fromHandle(handle, autoBegin: impl != null) { |
2172 _impl = impl; | 2235 _impl = impl; |
2173 } | 2236 } |
2174 | 2237 |
2175 SampleInterfaceStub.unbound([this._impl]) : super.unbound(); | 2238 _SampleInterfaceStubControl.unbound([this._impl]) : super.unbound(); |
2176 | |
2177 static SampleInterfaceStub newFromEndpoint( | |
2178 core.MojoMessagePipeEndpoint endpoint) { | |
2179 assert(endpoint.setDescription("For SampleInterfaceStub")); | |
2180 return new SampleInterfaceStub.fromEndpoint(endpoint); | |
2181 } | |
2182 | 2239 |
2183 | 2240 |
2184 SampleInterfaceSampleMethod1ResponseParams _sampleInterfaceSampleMethod1Respon
seParamsFactory(String out1, Enum out2) { | 2241 SampleInterfaceSampleMethod1ResponseParams _sampleInterfaceSampleMethod1Respon
seParamsFactory(String out1, Enum out2) { |
2185 var result = new SampleInterfaceSampleMethod1ResponseParams(); | 2242 var result = new SampleInterfaceSampleMethod1ResponseParams(); |
2186 result.out1 = out1; | 2243 result.out1 = out1; |
2187 result.out2 = out2; | 2244 result.out2 = out2; |
2188 return result; | 2245 return result; |
2189 } | 2246 } |
2190 | 2247 |
2191 dynamic handleMessage(bindings.ServiceMessage message) { | 2248 dynamic handleMessage(bindings.ServiceMessage message) { |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2245 } | 2302 } |
2246 | 2303 |
2247 @override | 2304 @override |
2248 void bind(core.MojoMessagePipeEndpoint endpoint) { | 2305 void bind(core.MojoMessagePipeEndpoint endpoint) { |
2249 super.bind(endpoint); | 2306 super.bind(endpoint); |
2250 if (!isOpen && (_impl != null)) { | 2307 if (!isOpen && (_impl != null)) { |
2251 beginHandlingEvents(); | 2308 beginHandlingEvents(); |
2252 } | 2309 } |
2253 } | 2310 } |
2254 | 2311 |
| 2312 @override |
2255 String toString() { | 2313 String toString() { |
2256 var superString = super.toString(); | 2314 var superString = super.toString(); |
2257 return "SampleInterfaceStub($superString)"; | 2315 return "_SampleInterfaceStubControl($superString)"; |
2258 } | 2316 } |
2259 | 2317 |
2260 int get version => 0; | 2318 int get version => 0; |
2261 | 2319 |
2262 static service_describer.ServiceDescription _cachedServiceDescription; | 2320 static service_describer.ServiceDescription _cachedServiceDescription; |
2263 static service_describer.ServiceDescription get serviceDescription { | 2321 static service_describer.ServiceDescription get serviceDescription { |
2264 if (_cachedServiceDescription == null) { | 2322 if (_cachedServiceDescription == null) { |
2265 _cachedServiceDescription = new _SampleInterfaceServiceDescription(); | 2323 _cachedServiceDescription = new _SampleInterfaceServiceDescription(); |
2266 } | 2324 } |
2267 return _cachedServiceDescription; | 2325 return _cachedServiceDescription; |
2268 } | 2326 } |
2269 } | 2327 } |
2270 | 2328 |
| 2329 class SampleInterfaceStub |
| 2330 extends bindings.Stub<SampleInterface> |
| 2331 implements SampleInterface { |
| 2332 SampleInterfaceStub.fromEndpoint( |
| 2333 core.MojoMessagePipeEndpoint endpoint, [SampleInterface impl]) |
| 2334 : super(new _SampleInterfaceStubControl.fromEndpoint(endpoint, impl)); |
| 2335 |
| 2336 SampleInterfaceStub.fromHandle( |
| 2337 core.MojoHandle handle, [SampleInterface impl]) |
| 2338 : super(new _SampleInterfaceStubControl.fromHandle(handle, impl)); |
| 2339 |
| 2340 SampleInterfaceStub.unbound([SampleInterface impl]) |
| 2341 : super(new _SampleInterfaceStubControl.unbound(impl)); |
| 2342 |
| 2343 static SampleInterfaceStub newFromEndpoint( |
| 2344 core.MojoMessagePipeEndpoint endpoint) { |
| 2345 assert(endpoint.setDescription("For SampleInterfaceStub")); |
| 2346 return new SampleInterfaceStub.fromEndpoint(endpoint); |
| 2347 } |
| 2348 |
| 2349 static service_describer.ServiceDescription get serviceDescription => |
| 2350 _SampleInterfaceStubControl.serviceDescription; |
| 2351 |
| 2352 |
| 2353 dynamic sampleMethod1(int in1,String in2,[Function responseFactory = null]) { |
| 2354 return impl.sampleMethod1(in1,in2,responseFactory); |
| 2355 } |
| 2356 void sampleMethod0() { |
| 2357 return impl.sampleMethod0(); |
| 2358 } |
| 2359 void sampleMethod2() { |
| 2360 return impl.sampleMethod2(); |
| 2361 } |
| 2362 } |
| 2363 |
2271 | 2364 |
2272 mojom_types.RuntimeTypeInfo getRuntimeTypeInfo() => _runtimeTypeInfo ?? | 2365 mojom_types.RuntimeTypeInfo getRuntimeTypeInfo() => _runtimeTypeInfo ?? |
2273 _initRuntimeTypeInfo(); | 2366 _initRuntimeTypeInfo(); |
2274 | 2367 |
2275 Map<String, mojom_types.UserDefinedType> getAllMojomTypeDefinitions() { | 2368 Map<String, mojom_types.UserDefinedType> getAllMojomTypeDefinitions() { |
2276 return getRuntimeTypeInfo().typeMap; | 2369 return getRuntimeTypeInfo().typeMap; |
2277 } | 2370 } |
2278 | 2371 |
2279 var _runtimeTypeInfo; | 2372 var _runtimeTypeInfo; |
2280 mojom_types.RuntimeTypeInfo _initRuntimeTypeInfo() { | 2373 mojom_types.RuntimeTypeInfo _initRuntimeTypeInfo() { |
2281 // serializedRuntimeTypeInfo contains the bytes of the Mojo serialization of | 2374 // serializedRuntimeTypeInfo contains the bytes of the Mojo serialization of |
2282 // a mojom_types.RuntimeTypeInfo struct describing the Mojom types in this | 2375 // a mojom_types.RuntimeTypeInfo struct describing the Mojom types in this |
2283 // file. The string contains the base64 encoding of the gzip-compressed bytes. | 2376 // file. The string contains the base64 encoding of the gzip-compressed bytes. |
2284 var serializedRuntimeTypeInfo = "H4sIAAAJbogC/+xb3W7jRBS243Qpuyx0tymk+5tdtJCb1
kmRoOIqvYhIBZUiFVbdq103GRKjxA62gwpPwCPwCFzyCDwCj8Jl78BuzmnGkxn/JE4zbjvS0dR/Gc/n7
3xn5sy0rEzKBtQ1qNnzWK8zNXvf31BXfSv6VoHjfahPoB5B/cS3km/fv2k3337bfPO1awxHA7LbtMbD4
Prnvj3nXD+0PNIjzkGnQ1zXdi7aKXPuazv2L2aXOKLfOb6ogl9zfjQ6RGnBe28w7x0ca769K4SP//wof
KzU+bicQ91QwqXGtPMfFPY+LB/A+yE+m77d842Bbab94Lk130zfDN/0sevoA7tjDPSebfcGRO/bQ6L/5
hj60P7J1l2nM/ljND4dmB3dRIRc/dS0uqbVc3WPuJ6rT1p+O71hN3huSLWvUnypQl1RoktSnFqC5+9Df
18ffPdD06+3fXsQxmkXr/HwCp4vrAAvET4b6qTWYvBpMPi0Bfh84ltAXdaPnvnnPp7ixF6ewSk4vrsCn
Hjvgcfgohe8K8Mx3nd2h48z+me1kIyHCoUz7zyWh4DPN8QDLPnvv70ivlUY/M4T6pXC8Gxf0P9HgMG0/
zsO+XnsvxkfByxXjcO6QK/KzHutx+D2j5YNbo9B20O4uSPbcolUuLH+VVHD/d9n3vOOkqwk9btqTJzsG
p4h8rftFeDFwyWIUy2V3w/kW0Hw/BkHF5UaX7GF5XeFo58a1R7q15FpvSaOa9pWGF/v1xER4fvFCvVME
cQHdvwUN/6c4TdHF1ROOwWwsiCuN5jvrYIl/b5nC35fNeb74vnjmLj1WLK4lZX+Ytw6ljxu5VV/Mb7lR
X+1K9ZfbUH9DfDducH6q8Xob+jhOeadjYjvG3xbzDvgPItJR3DzKzLMo6pUXmaNgqgAmBYpXNao+8/h5
uqH8HulSd1+FD3fOtGWM99qdvr2sef4OPD7+UCyuIXzzqzi1rT/csYtVgd5uqxy/HNZ8ep9aMpQxHwpr
QinqPgh0sFl8wzjd4hnEs5P88izlznimUjXfy+Gw2sS3NQIXcc895RvLhe/h5Lp+om2LH9zQ8Iu63ykp
ubD7wLebEngd2lxWp8DJzUBTqcROD2XXJ/ocf+y/RLnL2G/nAbCW79c3C93bv0ykV9+lSO/nJmPA459j
Z/vjsKtQH0XtjwFXQ/884i4rtEjbXNEWobVHRAOjpuSjB8Qj1rK8booL/EKsODiQI0k8jRuL0qkU5sS6
JS6wPwwa7595tuzCL5hhLzl2/x8O8wR31i9/xfniVqyfS00bloEbph/DXgX5JBZ3EqS6Dv2/11KfxPNj
8vQR+w3Snqe/GtNIv8qwd95Xz9ZNF/YzyhfiPvvKH5S2cJ8xQHZePrkBvFUFEf2IYAUU+BejMA9WLN7D
/h6aHkzuG9JFkc2MoojuF4J/b6cGeTJPxVq7XLV/rm1ojgyr+5nzSd6XDLh00T2b/k0P5+eSsynuP3rc
Tg1GF7F7V9n/3+D2b/OXp7BsyLJvosKFc81Zt8FXteo59pw4a+70etwafmJ7Yr8OeDf/Uvcj4jXt7s1T
n9eKtdzPzvmE0P9lzB/lnY/u4g/ZynXcdUIXon4U+fg9kIy/rS05fGnLiF/0u4rvar4eA900LTqXB19A
edk2Fd6letDU1z2hLi8WmG+UM1o3faPjPwQxwmsH8qWl5Z13Rbn9/bYq4v49qUEfEubv8naLymc9kQ4H
Vzz/E3Uui87Tk267ov/X5NmnLHHwf/TGzRO3bsG49T/AwAA//9GparmsEAAAA=="; | 2377 var serializedRuntimeTypeInfo = "H4sIAAAJbogC/+xb3W7jRBS243Qpuyx0tymk+5tdtJCb1
kmRoOIqvYhIBZUiFVbdq103GRKjxA62gwpPwCPwCFzyCDwCj8Jl78BuzmnGkxn/JE4zbjvS0dR/Gc/n7
3xn5sy0rEzKBtQ1qNnzWK8zNXvf31BXfSv6VoHjfahPoB5B/cS3km/fv2k3337bfPO1awxHA7LbtMbD4
Prnvj3nXD+0PNIjzkGnQ1zXdi7aKXPuazv2L2aXOKLfOb6ogl9zfjQ6RGnBe28w7x0ca769K4SP//wof
KzU+bicQ91QwqXGtPMfFPY+LB/A+yE+m77d842Bbab94Lk130zfDN/0sevoA7tjDPSebfcGRO/bQ6L/5
hj60P7J1l2nM/ljND4dmB3dRIRc/dS0uqbVc3WPuJ6rT1p+O71hN3huSLWvUnypQl1RoktSnFqC5+9Df
18ffPdD06+3fXsQxmkXr/HwCp4vrAAvET4b6qTWYvBpMPi0Bfh84ltAXdaPnvnnPp7ixF6ewSk4vrsCn
Hjvgcfgohe8K8Mx3nd2h48z+me1kIyHCoUz7zyWh4DPN8QDLPnvv70ivlUY/M4T6pXC8Gxf0P9HgMG0/
zsO+XnsvxkfByxXjcO6QK/KzHutx+D2j5YNbo9B20O4uSPbcolUuLH+VVHD/d9n3vOOkqwk9btqTJzsG
p4h8rftFeDFwyWIUy2V3w/kW0Hw/BkHF5UaX7GF5XeFo58a1R7q15FpvSaOa9pWGF/v1xER4fvFCvVME
cQHdvwUN/6c4TdHF1ROOwWwsiCuN5jvrYIl/b5nC35fNeb74vnjmLj1WLK4lZX+Ytw6ljxu5VV/Mb7lR
X+1K9ZfbUH9DfDducH6q8Xob+jhOeadjYjvG3xbzDvgPItJR3DzKzLMo6pUXmaNgqgAmBYpXNao+8/h5
uqH8HulSd1+FD3fOtGWM99qdvr2sef4OPD7+UCyuIXzzqzi1rT/csYtVgd5uqxy/HNZ8ep9aMpQxHwpr
QinqPgh0sFl8wzjd4hnEs5P88izlznimUjXfy+Gw2sS3NQIXcc895RvLhe/h5Lp+om2LH9zQ8Iu63ykp
ubD7wLebEngd2lxWp8DJzUBTqcROD2XXJ/ocf+y/RLnL2G/nAbCW79c3C93bv0ykV9+lSO/nJmPA459j
Z/vjsKtQH0XtjwFXQ/884i4rtEjbXNEWobVHRAOjpuSjB8Qj1rK8booL/EKsODiQI0k8jRuL0qkU5sS6
JS6wPwwa7595tuzCL5hhLzl2/x8O8wR31i9/xfniVqyfS00bloEbph/DXgX5JBZ3EqS6Dv2/11KfxPNj
8vQR+w3Snqe/GtNIv8qwd95Xz9ZNF/YzyhfiPvvKH5S2cJ8xQHZePrkBvFUFEf2IYAUU+BejMA9WLN7D
/h6aHkzuG9JFkc2MoojuF4J/b6cGeTJPxVq7XLV/rm1ojgyr+5nzSd6XDLh00T2b/k0P5+eSsynuP3rc
Tg1GF7F7V9n/3+D2b/OXp7BsyLJvosKFc81Zt8FXteo59pw4a+70etwafmJ7Yr8OeDf/Uvcj4jXt7s1T
n9eKtdzPzvmE0P9lzB/lnY/u4g/ZynXcdUIXon4U+fg9kIy/rS05fGnLiF/0u4rvar4eA900LTqXB19A
edk2Fd6letDU1z2hLi8WmG+UM1o3faPjPwQxwmsH8qWl5Z13Rbn9/bYq4v49qUEfEubv8naLymc9kQ4H
Vzz/E3Uui87Tk267ov/X5NmnLHHwf/TGzRO3bsG49T/AwAA//9GparmsEAAAA=="; |
2285 | 2378 |
2286 // Deserialize RuntimeTypeInfo | 2379 // Deserialize RuntimeTypeInfo |
2287 var bytes = BASE64.decode(serializedRuntimeTypeInfo); | 2380 var bytes = BASE64.decode(serializedRuntimeTypeInfo); |
2288 var unzippedBytes = new ZLibDecoder().convert(bytes); | 2381 var unzippedBytes = new ZLibDecoder().convert(bytes); |
2289 var bdata = new ByteData.view(unzippedBytes.buffer); | 2382 var bdata = new ByteData.view(unzippedBytes.buffer); |
2290 var message = new bindings.Message(bdata, null, unzippedBytes.length, 0); | 2383 var message = new bindings.Message(bdata, null, unzippedBytes.length, 0); |
2291 _runtimeTypeInfo = mojom_types.RuntimeTypeInfo.deserialize(message); | 2384 _runtimeTypeInfo = mojom_types.RuntimeTypeInfo.deserialize(message); |
2292 return _runtimeTypeInfo; | 2385 return _runtimeTypeInfo; |
2293 } | 2386 } |
OLD | NEW |