| Index: mojo/dart/packages/_mojo_for_test_only/lib/mojo/test/versioning/versioning_test_client.mojom.dart
|
| diff --git a/mojo/dart/packages/_mojo_for_test_only/lib/mojo/test/versioning/versioning_test_client.mojom.dart b/mojo/dart/packages/_mojo_for_test_only/lib/mojo/test/versioning/versioning_test_client.mojom.dart
|
| index 31930de0b924e31b5c8196a3b7f6df7016dbc2f0..e88afa05992681e9ce76298bd8252daa3ac8d1de 100644
|
| --- a/mojo/dart/packages/_mojo_for_test_only/lib/mojo/test/versioning/versioning_test_client.mojom.dart
|
| +++ b/mojo/dart/packages/_mojo_for_test_only/lib/mojo/test/versioning/versioning_test_client.mojom.dart
|
| @@ -806,24 +806,22 @@ abstract class HumanResourceDatabase {
|
| }
|
|
|
|
|
| -class _HumanResourceDatabaseProxyImpl extends bindings.Proxy {
|
| - _HumanResourceDatabaseProxyImpl.fromEndpoint(
|
| +class _HumanResourceDatabaseProxyControl extends bindings.ProxyMessageHandler
|
| + implements bindings.ProxyControl {
|
| + _HumanResourceDatabaseProxyControl.fromEndpoint(
|
| core.MojoMessagePipeEndpoint endpoint) : super.fromEndpoint(endpoint);
|
|
|
| - _HumanResourceDatabaseProxyImpl.fromHandle(core.MojoHandle handle) :
|
| - super.fromHandle(handle);
|
| + _HumanResourceDatabaseProxyControl.fromHandle(
|
| + core.MojoHandle handle) : super.fromHandle(handle);
|
|
|
| - _HumanResourceDatabaseProxyImpl.unbound() : super.unbound();
|
| -
|
| - static _HumanResourceDatabaseProxyImpl newFromEndpoint(
|
| - core.MojoMessagePipeEndpoint endpoint) {
|
| - assert(endpoint.setDescription("For _HumanResourceDatabaseProxyImpl"));
|
| - return new _HumanResourceDatabaseProxyImpl.fromEndpoint(endpoint);
|
| - }
|
| + _HumanResourceDatabaseProxyControl.unbound() : super.unbound();
|
|
|
| service_describer.ServiceDescription get serviceDescription =>
|
| - new _HumanResourceDatabaseServiceDescription();
|
| + new _HumanResourceDatabaseServiceDescription();
|
| +
|
| + String get serviceName => HumanResourceDatabase.serviceName;
|
|
|
| + @override
|
| void handleResponse(bindings.ServiceMessage message) {
|
| switch (message.header.type) {
|
| case _humanResourceDatabaseMethodAddEmployeeName:
|
| @@ -913,79 +911,30 @@ class _HumanResourceDatabaseProxyImpl extends bindings.Proxy {
|
| }
|
| }
|
|
|
| + @override
|
| String toString() {
|
| var superString = super.toString();
|
| - return "_HumanResourceDatabaseProxyImpl($superString)";
|
| + return "_HumanResourceDatabaseProxyControl($superString)";
|
| }
|
| }
|
|
|
|
|
| -class _HumanResourceDatabaseProxyCalls implements HumanResourceDatabase {
|
| - _HumanResourceDatabaseProxyImpl _proxyImpl;
|
| -
|
| - _HumanResourceDatabaseProxyCalls(this._proxyImpl);
|
| - dynamic addEmployee(Employee employee,[Function responseFactory = null]) {
|
| - var params = new _HumanResourceDatabaseAddEmployeeParams();
|
| - params.employee = employee;
|
| - return _proxyImpl.sendMessageWithRequestId(
|
| - params,
|
| - _humanResourceDatabaseMethodAddEmployeeName,
|
| - -1,
|
| - bindings.MessageHeader.kMessageExpectsResponse);
|
| - }
|
| - dynamic queryEmployee(int id,bool retrieveFingerPrint,[Function responseFactory = null]) {
|
| - var params = new _HumanResourceDatabaseQueryEmployeeParams();
|
| - params.id = id;
|
| - params.retrieveFingerPrint = retrieveFingerPrint;
|
| - return _proxyImpl.sendMessageWithRequestId(
|
| - params,
|
| - _humanResourceDatabaseMethodQueryEmployeeName,
|
| - -1,
|
| - bindings.MessageHeader.kMessageExpectsResponse);
|
| - }
|
| - dynamic attachFingerPrint(int id,List<int> fingerPrint,[Function responseFactory = null]) {
|
| - var params = new _HumanResourceDatabaseAttachFingerPrintParams();
|
| - params.id = id;
|
| - params.fingerPrint = fingerPrint;
|
| - return _proxyImpl.sendMessageWithRequestId(
|
| - params,
|
| - _humanResourceDatabaseMethodAttachFingerPrintName,
|
| - -1,
|
| - bindings.MessageHeader.kMessageExpectsResponse);
|
| - }
|
| - dynamic listEmployeeIds([Function responseFactory = null]) {
|
| - var params = new _HumanResourceDatabaseListEmployeeIdsParams();
|
| - return _proxyImpl.sendMessageWithRequestId(
|
| - params,
|
| - _humanResourceDatabaseMethodListEmployeeIdsName,
|
| - -1,
|
| - bindings.MessageHeader.kMessageExpectsResponse);
|
| - }
|
| -}
|
| -
|
| -
|
| -class HumanResourceDatabaseProxy implements bindings.ProxyBase {
|
| - final bindings.Proxy impl;
|
| - HumanResourceDatabase ptr;
|
| -
|
| - HumanResourceDatabaseProxy(_HumanResourceDatabaseProxyImpl proxyImpl) :
|
| - impl = proxyImpl,
|
| - ptr = new _HumanResourceDatabaseProxyCalls(proxyImpl);
|
| -
|
| +class HumanResourceDatabaseProxy extends bindings.Proxy
|
| + implements HumanResourceDatabase {
|
| HumanResourceDatabaseProxy.fromEndpoint(
|
| - core.MojoMessagePipeEndpoint endpoint) :
|
| - impl = new _HumanResourceDatabaseProxyImpl.fromEndpoint(endpoint) {
|
| - ptr = new _HumanResourceDatabaseProxyCalls(impl);
|
| - }
|
| + core.MojoMessagePipeEndpoint endpoint)
|
| + : super(new _HumanResourceDatabaseProxyControl.fromEndpoint(endpoint));
|
|
|
| - HumanResourceDatabaseProxy.fromHandle(core.MojoHandle handle) :
|
| - impl = new _HumanResourceDatabaseProxyImpl.fromHandle(handle) {
|
| - ptr = new _HumanResourceDatabaseProxyCalls(impl);
|
| - }
|
| + HumanResourceDatabaseProxy.fromHandle(core.MojoHandle handle)
|
| + : super(new _HumanResourceDatabaseProxyControl.fromHandle(handle));
|
| +
|
| + HumanResourceDatabaseProxy.unbound()
|
| + : super(new _HumanResourceDatabaseProxyControl.unbound());
|
|
|
| - HumanResourceDatabaseProxy.unbound() :
|
| - impl = new _HumanResourceDatabaseProxyImpl.unbound() {
|
| - ptr = new _HumanResourceDatabaseProxyCalls(impl);
|
| + static HumanResourceDatabaseProxy newFromEndpoint(
|
| + core.MojoMessagePipeEndpoint endpoint) {
|
| + assert(endpoint.setDescription("For HumanResourceDatabaseProxy"));
|
| + return new HumanResourceDatabaseProxy.fromEndpoint(endpoint);
|
| }
|
|
|
| factory HumanResourceDatabaseProxy.connectToService(
|
| @@ -995,30 +944,43 @@ class HumanResourceDatabaseProxy implements bindings.ProxyBase {
|
| return p;
|
| }
|
|
|
| - static HumanResourceDatabaseProxy newFromEndpoint(
|
| - core.MojoMessagePipeEndpoint endpoint) {
|
| - assert(endpoint.setDescription("For HumanResourceDatabaseProxy"));
|
| - return new HumanResourceDatabaseProxy.fromEndpoint(endpoint);
|
| - }
|
| -
|
| - String get serviceName => HumanResourceDatabase.serviceName;
|
|
|
| - Future close({bool immediate: false}) => impl.close(immediate: immediate);
|
| -
|
| - Future responseOrError(Future f) => impl.responseOrError(f);
|
| -
|
| - Future get errorFuture => impl.errorFuture;
|
| -
|
| - int get version => impl.version;
|
| -
|
| - Future<int> queryVersion() => impl.queryVersion();
|
| -
|
| - void requireVersion(int requiredVersion) {
|
| - impl.requireVersion(requiredVersion);
|
| - }
|
| -
|
| - String toString() {
|
| - return "HumanResourceDatabaseProxy($impl)";
|
| + dynamic addEmployee(Employee employee,[Function responseFactory = null]) {
|
| + var params = new _HumanResourceDatabaseAddEmployeeParams();
|
| + params.employee = employee;
|
| + return ctrl.sendMessageWithRequestId(
|
| + params,
|
| + _humanResourceDatabaseMethodAddEmployeeName,
|
| + -1,
|
| + bindings.MessageHeader.kMessageExpectsResponse);
|
| + }
|
| + dynamic queryEmployee(int id,bool retrieveFingerPrint,[Function responseFactory = null]) {
|
| + var params = new _HumanResourceDatabaseQueryEmployeeParams();
|
| + params.id = id;
|
| + params.retrieveFingerPrint = retrieveFingerPrint;
|
| + return ctrl.sendMessageWithRequestId(
|
| + params,
|
| + _humanResourceDatabaseMethodQueryEmployeeName,
|
| + -1,
|
| + bindings.MessageHeader.kMessageExpectsResponse);
|
| + }
|
| + dynamic attachFingerPrint(int id,List<int> fingerPrint,[Function responseFactory = null]) {
|
| + var params = new _HumanResourceDatabaseAttachFingerPrintParams();
|
| + params.id = id;
|
| + params.fingerPrint = fingerPrint;
|
| + return ctrl.sendMessageWithRequestId(
|
| + params,
|
| + _humanResourceDatabaseMethodAttachFingerPrintName,
|
| + -1,
|
| + bindings.MessageHeader.kMessageExpectsResponse);
|
| + }
|
| + dynamic listEmployeeIds([Function responseFactory = null]) {
|
| + var params = new _HumanResourceDatabaseListEmployeeIdsParams();
|
| + return ctrl.sendMessageWithRequestId(
|
| + params,
|
| + _humanResourceDatabaseMethodListEmployeeIdsName,
|
| + -1,
|
| + bindings.MessageHeader.kMessageExpectsResponse);
|
| }
|
| }
|
|
|
| @@ -1220,7 +1182,7 @@ mojom_types.RuntimeTypeInfo _initRuntimeTypeInfo() {
|
| // serializedRuntimeTypeInfo contains the bytes of the Mojo serialization of
|
| // a mojom_types.RuntimeTypeInfo struct describing the Mojom types in this
|
| // file. The string contains the base64 encoding of the gzip-compressed bytes.
|
| - var serializedRuntimeTypeInfo = "H4sIAAAJbogC/+xaT4/bRBS3nS1rtlRd+i+GwjYLAqJC4wqEFKWXXbFBRRQUWFRRcQheZ0qM1nawnVV64yNw5MhH6JEjx34EjnyEPfZGZ5o39WQ8YzuJ106kHenJa8eZmfeb937ze7MxlGnbhuvfcOWf95h7FZsO959ju4PN9X/1O50IhVGnc4KC0PE9x/ul07k/di3vexT648BGB1ZkHVkhEvRzD9tn2H541Ov2v+4+6pAOW6S/VtxdS9Zbcr7P4NrAVmM+34PrEK53sTUzxz1AIyuIXORFLfzuh5nvd93Rsf8EoeX9asP8qV9Nbh3+rMX35M+/dPH66eqs/wrjP/v8f2g/KuJ2BdsWthiR6fOPsN2COEiBLzGvi9guYLOx/YTNHPouMoPxwHcdDwUm6c8MA3v6x2h8dOzYpuNFKHhs2Sg0jxxvgIcITTJmaMaD9smDvn3skEUjX3Zf4aIx499VZ3FtKOlNhl87J36XwN/D/QfdQ8idD7Jxa9H3efzeAH/Kwi8LJ7UgnC5CPB90H768/xjb+zlwou/zOF0qGacGx6M0//7dmA+fngSfbeBOyjQkht6V4RPTUQIXct0sGReWj5uUl7R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9zLeO+zhybDo+fRT6DjpFvWPsMPJ7Y99xQwneZhXiM4PfdE4z6xn1tL5WTL5vY7styHdaUaua78/U1dCDd0CvlFUn1AvSgyLcyfp01WL55OyC+eQmnJFxNKKI1vFByetIMKHzWef2p4vyDK+vHtLznLX4PEfNuW7aEurA23Cmux+Glj346tXqdeniCdZvuyJ6jTo2mFGv7Unw3AEsEjhM7eYvdduium0bOKAKuk1LORef9/sD2X4oLz8SfD4t+dxDxI9p+8s0nUXz1NCKydP3QYuK8jQ+vbg8v5j3/ILE35crdH6xB/E11uLvVrSc9bVWgC7SMurrFmD+yAlCqvq+7idx36nYOci5Usy+6C5gwPn/f1WtSp7Wc/CckhIPFK9WQeezBrw7iVvEcqvEb9oS95H09zQOzjFRHdiB33RVZf+xkSPuWP77LwAA///UgNHD2CgAAA==";
|
|
|
| // Deserialize RuntimeTypeInfo
|
| var bytes = BASE64.decode(serializedRuntimeTypeInfo);
|
|
|