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

Side by Side Diff: mojo/dart/packages/mojo/lib/mojo/application_connector.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 application_connector_mojom; 5 library application_connector_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/service_provider.mojom.dart' as service_provider_mojom ; 10 import 'package:mojo/mojo/service_provider.mojom.dart' as service_provider_mojom ;
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 "exposedServices: $exposedServices" ")"; 101 "exposedServices: $exposedServices" ")";
102 } 102 }
103 103
104 Map toJson() { 104 Map toJson() {
105 throw new bindings.MojoCodecError( 105 throw new bindings.MojoCodecError(
106 'Object containing handles cannot be encoded to JSON.'); 106 'Object containing handles cannot be encoded to JSON.');
107 } 107 }
108 } 108 }
109 109
110 110
111
112
113 class _ApplicationConnectorDuplicateParams extends bindings.Struct { 111 class _ApplicationConnectorDuplicateParams extends bindings.Struct {
114 static const List<bindings.StructDataHeader> kVersions = const [ 112 static const List<bindings.StructDataHeader> kVersions = const [
115 const bindings.StructDataHeader(16, 0) 113 const bindings.StructDataHeader(16, 0)
116 ]; 114 ];
117 Object applicationConnectorRequest = null; 115 Object applicationConnectorRequest = null;
118 116
119 _ApplicationConnectorDuplicateParams() : super(kVersions.last.size); 117 _ApplicationConnectorDuplicateParams() : super(kVersions.last.size);
120 118
121 static _ApplicationConnectorDuplicateParams deserialize(bindings.Message messa ge) { 119 static _ApplicationConnectorDuplicateParams deserialize(bindings.Message messa ge) {
122 var decoder = new bindings.Decoder(message); 120 var decoder = new bindings.Decoder(message);
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
173 return "_ApplicationConnectorDuplicateParams(" 171 return "_ApplicationConnectorDuplicateParams("
174 "applicationConnectorRequest: $applicationConnectorRequest" ")"; 172 "applicationConnectorRequest: $applicationConnectorRequest" ")";
175 } 173 }
176 174
177 Map toJson() { 175 Map toJson() {
178 throw new bindings.MojoCodecError( 176 throw new bindings.MojoCodecError(
179 'Object containing handles cannot be encoded to JSON.'); 177 'Object containing handles cannot be encoded to JSON.');
180 } 178 }
181 } 179 }
182 180
183
184
185
186 const int _ApplicationConnector_connectToApplicationName = 0; 181 const int _ApplicationConnector_connectToApplicationName = 0;
187 const int _ApplicationConnector_duplicateName = 1; 182 const int _ApplicationConnector_duplicateName = 1;
188 183
189
190
191 class _ApplicationConnectorServiceDescription implements service_describer.Servi ceDescription { 184 class _ApplicationConnectorServiceDescription implements service_describer.Servi ceDescription {
192 dynamic getTopLevelInterface([Function responseFactory]) => 185 dynamic getTopLevelInterface([Function responseFactory]) =>
193 responseFactory(null); 186 responseFactory(null);
194 187
195 dynamic getTypeDefinition(String typeKey, [Function responseFactory]) => 188 dynamic getTypeDefinition(String typeKey, [Function responseFactory]) =>
196 responseFactory(null); 189 responseFactory(null);
197 190
198 dynamic getAllTypeDefinitions([Function responseFactory]) => 191 dynamic getAllTypeDefinitions([Function responseFactory]) =>
199 responseFactory(null); 192 responseFactory(null);
200 } 193 }
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after
388 static service_describer.ServiceDescription get serviceDescription { 381 static service_describer.ServiceDescription get serviceDescription {
389 if (_cachedServiceDescription == null) { 382 if (_cachedServiceDescription == null) {
390 _cachedServiceDescription = new _ApplicationConnectorServiceDescription(); 383 _cachedServiceDescription = new _ApplicationConnectorServiceDescription();
391 } 384 }
392 return _cachedServiceDescription; 385 return _cachedServiceDescription;
393 } 386 }
394 } 387 }
395 388
396 389
397 390
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698