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

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

Issue 1648803006: Expose Service Describer in Dart mojo package (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Address zra's feedback Created 4 years, 10 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_connected_socket_mojom; 5 library tcp_connected_socket_mojom;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 8
9 import 'package:mojo/bindings.dart' as bindings; 9 import 'package:mojo/bindings.dart' as bindings;
10 import 'package:mojo/core.dart' as core; 10 import 'package:mojo/core.dart' as core;
11 import 'package:mojo/mojo/bindings/types/mojom_types.mojom.dart' as mojom_types; 11 import 'package:mojo/mojo/bindings/types/mojom_types.mojom.dart' as mojom_types;
12 import 'package:mojo/mojo/bindings/types/service_describer.mojom.dart' as servic e_describer; 12 import 'package:mojo/mojo/bindings/types/service_describer.mojom.dart' as servic e_describer;
13 13
14 14
15 15
16 16
17 17
18 18
19 class _TcpConnectedSocketServiceDescription implements service_describer.Service Description { 19 class _TcpConnectedSocketServiceDescription implements service_describer.Service Description {
20 dynamic getTopLevelInterface([Function responseFactory]) => null; 20 dynamic getTopLevelInterface([Function responseFactory]) =>
21 responseFactory(null);
21 22
22 dynamic getTypeDefinition(String typeKey, [Function responseFactory]) => null; 23 dynamic getTypeDefinition(String typeKey, [Function responseFactory]) =>
24 responseFactory(null);
23 25
24 dynamic getAllTypeDefinitions([Function responseFactory]) => null; 26 dynamic getAllTypeDefinitions([Function responseFactory]) =>
27 responseFactory(null);
25 } 28 }
26 29
27 abstract class TcpConnectedSocket { 30 abstract class TcpConnectedSocket {
28 static const String serviceName = null; 31 static const String serviceName = null;
29 } 32 }
30 33
31 34
32 class _TcpConnectedSocketProxyImpl extends bindings.Proxy { 35 class _TcpConnectedSocketProxyImpl extends bindings.Proxy {
33 _TcpConnectedSocketProxyImpl.fromEndpoint( 36 _TcpConnectedSocketProxyImpl.fromEndpoint(
34 core.MojoMessagePipeEndpoint endpoint) : super.fromEndpoint(endpoint); 37 core.MojoMessagePipeEndpoint endpoint) : super.fromEndpoint(endpoint);
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
170 _impl = d; 173 _impl = d;
171 } 174 }
172 175
173 String toString() { 176 String toString() {
174 var superString = super.toString(); 177 var superString = super.toString();
175 return "TcpConnectedSocketStub($superString)"; 178 return "TcpConnectedSocketStub($superString)";
176 } 179 }
177 180
178 int get version => 0; 181 int get version => 0;
179 182
180 service_describer.ServiceDescription get serviceDescription => 183 static service_describer.ServiceDescription _cachedServiceDescription;
181 new _TcpConnectedSocketServiceDescription(); 184 static service_describer.ServiceDescription get serviceDescription {
185 if (_cachedServiceDescription == null) {
186 _cachedServiceDescription = new _TcpConnectedSocketServiceDescription();
187 }
188 return _cachedServiceDescription;
189 }
182 } 190 }
183 191
184 192
185 193
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698