Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(236)

Side by Side Diff: mojo/dart/packages/mojo_services/lib/mojo/tcp_server_socket.mojom.dart

Issue 1753013002: Mojom runtime type info: New implementation for Dart. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: No changes to sha1s Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 tcp_server_socket_mojom; 5 library tcp_server_socket_mojom;
6 import 'dart:async'; 6 import 'dart:async';
7 import 'package:mojo/bindings.dart' as bindings; 7 import 'package:mojo/bindings.dart' as bindings;
8 import 'package:mojo/core.dart' as core; 8 import 'package:mojo/core.dart' as core;
9 import 'package:mojo/mojo/bindings/types/service_describer.mojom.dart' as servic e_describer; 9 import 'package:mojo/mojo/bindings/types/service_describer.mojom.dart' as servic e_describer;
10 import 'package:mojo/mojo/network_error.mojom.dart' as network_error_mojom; 10 import 'package:mojo/mojo/network_error.mojom.dart' as network_error_mojom;
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 "clientSocket: $clientSocket" ")"; 103 "clientSocket: $clientSocket" ")";
104 } 104 }
105 105
106 Map toJson() { 106 Map toJson() {
107 throw new bindings.MojoCodecError( 107 throw new bindings.MojoCodecError(
108 'Object containing handles cannot be encoded to JSON.'); 108 'Object containing handles cannot be encoded to JSON.');
109 } 109 }
110 } 110 }
111 111
112 112
113
114
115 class TcpServerSocketAcceptResponseParams extends bindings.Struct { 113 class TcpServerSocketAcceptResponseParams extends bindings.Struct {
116 static const List<bindings.StructDataHeader> kVersions = const [ 114 static const List<bindings.StructDataHeader> kVersions = const [
117 const bindings.StructDataHeader(24, 0) 115 const bindings.StructDataHeader(24, 0)
118 ]; 116 ];
119 network_error_mojom.NetworkError result = null; 117 network_error_mojom.NetworkError result = null;
120 net_address_mojom.NetAddress remoteAddress = null; 118 net_address_mojom.NetAddress remoteAddress = null;
121 119
122 TcpServerSocketAcceptResponseParams() : super(kVersions.last.size); 120 TcpServerSocketAcceptResponseParams() : super(kVersions.last.size);
123 121
124 static TcpServerSocketAcceptResponseParams deserialize(bindings.Message messag e) { 122 static TcpServerSocketAcceptResponseParams deserialize(bindings.Message messag e) {
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
192 } 190 }
193 191
194 Map toJson() { 192 Map toJson() {
195 Map map = new Map(); 193 Map map = new Map();
196 map["result"] = result; 194 map["result"] = result;
197 map["remoteAddress"] = remoteAddress; 195 map["remoteAddress"] = remoteAddress;
198 return map; 196 return map;
199 } 197 }
200 } 198 }
201 199
202
203
204
205 const int _TcpServerSocket_acceptName = 0; 200 const int _TcpServerSocket_acceptName = 0;
206 201
207
208
209 class _TcpServerSocketServiceDescription implements service_describer.ServiceDes cription { 202 class _TcpServerSocketServiceDescription implements service_describer.ServiceDes cription {
210 dynamic getTopLevelInterface([Function responseFactory]) => 203 dynamic getTopLevelInterface([Function responseFactory]) =>
211 responseFactory(null); 204 responseFactory(null);
212 205
213 dynamic getTypeDefinition(String typeKey, [Function responseFactory]) => 206 dynamic getTypeDefinition(String typeKey, [Function responseFactory]) =>
214 responseFactory(null); 207 responseFactory(null);
215 208
216 dynamic getAllTypeDefinitions([Function responseFactory]) => 209 dynamic getAllTypeDefinitions([Function responseFactory]) =>
217 responseFactory(null); 210 responseFactory(null);
218 } 211 }
(...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after
434 static service_describer.ServiceDescription get serviceDescription { 427 static service_describer.ServiceDescription get serviceDescription {
435 if (_cachedServiceDescription == null) { 428 if (_cachedServiceDescription == null) {
436 _cachedServiceDescription = new _TcpServerSocketServiceDescription(); 429 _cachedServiceDescription = new _TcpServerSocketServiceDescription();
437 } 430 }
438 return _cachedServiceDescription; 431 return _cachedServiceDescription;
439 } 432 }
440 } 433 }
441 434
442 435
443 436
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698