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

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

Issue 1433183002: Generate Mojom Types for Dart (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Simplify identifier_store for Go and Dart Created 5 years 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 camera_mojom; 5 library camera_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/mojom_types.mojom.dart' as mojom_types;
12 import 'package:mojo/mojo/service_describer.mojom.dart' as service_describer;
11 13
12 14
13 15
14 class Photo extends bindings.Struct { 16 class Photo extends bindings.Struct {
15 static const List<bindings.StructDataHeader> kVersions = const [ 17 static const List<bindings.StructDataHeader> kVersions = const [
16 const bindings.StructDataHeader(24, 0) 18 const bindings.StructDataHeader(24, 0)
17 ]; 19 ];
18 String uniqueId = null; 20 String uniqueId = null;
19 core.MojoDataPipeConsumer content = null; 21 core.MojoDataPipeConsumer content = null;
20 22
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 "uniqueId: $uniqueId" ", " 79 "uniqueId: $uniqueId" ", "
78 "content: $content" ")"; 80 "content: $content" ")";
79 } 81 }
80 82
81 Map toJson() { 83 Map toJson() {
82 throw new bindings.MojoCodecError( 84 throw new bindings.MojoCodecError(
83 'Object containing handles cannot be encoded to JSON.'); 85 'Object containing handles cannot be encoded to JSON.');
84 } 86 }
85 } 87 }
86 88
89 mojom_types.MojomStruct _camera_Photo__() {
90 return new mojom_types.MojomStruct()
91 ..declData = (new mojom_types.DeclarationData()..shortName = 'Photo')
92 ..fields = <mojom_types.StructField>[
93 new mojom_types.StructField()
94 ..declData = (new mojom_types.DeclarationData()..shortName = 'UniqueId')
95 ..type = (new mojom_types.Type()
96 ..stringType = (new mojom_types.StringType()..nullable = false)),
97
98 new mojom_types.StructField()
99 ..declData = (new mojom_types.DeclarationData()..shortName = 'Content')
100 ..type = (new mojom_types.Type()
101 ..handleType = (new mojom_types.HandleType()
102 ..kind = mojom_types.HandleTypeKind.DATA_PIPE_CONSUMER
103 ..nullable = false)),
104 ];
105 }
106
87 107
88 class CameraRollServiceUpdateParams extends bindings.Struct { 108 class CameraRollServiceUpdateParams extends bindings.Struct {
89 static const List<bindings.StructDataHeader> kVersions = const [ 109 static const List<bindings.StructDataHeader> kVersions = const [
90 const bindings.StructDataHeader(8, 0) 110 const bindings.StructDataHeader(8, 0)
91 ]; 111 ];
92 112
93 CameraRollServiceUpdateParams() : super(kVersions.last.size); 113 CameraRollServiceUpdateParams() : super(kVersions.last.size);
94 114
95 static CameraRollServiceUpdateParams deserialize(bindings.Message message) { 115 static CameraRollServiceUpdateParams deserialize(bindings.Message message) {
96 var decoder = new bindings.Decoder(message); 116 var decoder = new bindings.Decoder(message);
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 String toString() { 155 String toString() {
136 return "CameraRollServiceUpdateParams("")"; 156 return "CameraRollServiceUpdateParams("")";
137 } 157 }
138 158
139 Map toJson() { 159 Map toJson() {
140 Map map = new Map(); 160 Map map = new Map();
141 return map; 161 return map;
142 } 162 }
143 } 163 }
144 164
165 mojom_types.MojomStruct _camera_CameraRollService_Update_Params__() {
166 return new mojom_types.MojomStruct()
167 ..declData = (new mojom_types.DeclarationData()..shortName = 'CameraRollServ iceUpdateParams')
168 ..fields = <mojom_types.StructField>[];
169 }
170
145 171
146 class CameraRollServiceGetCountParams extends bindings.Struct { 172 class CameraRollServiceGetCountParams extends bindings.Struct {
147 static const List<bindings.StructDataHeader> kVersions = const [ 173 static const List<bindings.StructDataHeader> kVersions = const [
148 const bindings.StructDataHeader(8, 0) 174 const bindings.StructDataHeader(8, 0)
149 ]; 175 ];
150 176
151 CameraRollServiceGetCountParams() : super(kVersions.last.size); 177 CameraRollServiceGetCountParams() : super(kVersions.last.size);
152 178
153 static CameraRollServiceGetCountParams deserialize(bindings.Message message) { 179 static CameraRollServiceGetCountParams deserialize(bindings.Message message) {
154 var decoder = new bindings.Decoder(message); 180 var decoder = new bindings.Decoder(message);
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
193 String toString() { 219 String toString() {
194 return "CameraRollServiceGetCountParams("")"; 220 return "CameraRollServiceGetCountParams("")";
195 } 221 }
196 222
197 Map toJson() { 223 Map toJson() {
198 Map map = new Map(); 224 Map map = new Map();
199 return map; 225 return map;
200 } 226 }
201 } 227 }
202 228
229 mojom_types.MojomStruct _camera_CameraRollService_GetCount_Params__() {
230 return new mojom_types.MojomStruct()
231 ..declData = (new mojom_types.DeclarationData()..shortName = 'CameraRollServ iceGetCountParams')
232 ..fields = <mojom_types.StructField>[];
233 }
234
203 235
204 class CameraRollServiceGetCountResponseParams extends bindings.Struct { 236 class CameraRollServiceGetCountResponseParams extends bindings.Struct {
205 static const List<bindings.StructDataHeader> kVersions = const [ 237 static const List<bindings.StructDataHeader> kVersions = const [
206 const bindings.StructDataHeader(16, 0) 238 const bindings.StructDataHeader(16, 0)
207 ]; 239 ];
208 int numPhotos = 0; 240 int numPhotos = 0;
209 241
210 CameraRollServiceGetCountResponseParams() : super(kVersions.last.size); 242 CameraRollServiceGetCountResponseParams() : super(kVersions.last.size);
211 243
212 static CameraRollServiceGetCountResponseParams deserialize(bindings.Message me ssage) { 244 static CameraRollServiceGetCountResponseParams deserialize(bindings.Message me ssage) {
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
260 "numPhotos: $numPhotos" ")"; 292 "numPhotos: $numPhotos" ")";
261 } 293 }
262 294
263 Map toJson() { 295 Map toJson() {
264 Map map = new Map(); 296 Map map = new Map();
265 map["numPhotos"] = numPhotos; 297 map["numPhotos"] = numPhotos;
266 return map; 298 return map;
267 } 299 }
268 } 300 }
269 301
302 mojom_types.MojomStruct _camera_CameraRollService_GetCount_ResponseParams__() {
303 return new mojom_types.MojomStruct()
304 ..declData = (new mojom_types.DeclarationData()..shortName = 'CameraRollServ iceGetCountResponseParams')
305 ..fields = <mojom_types.StructField>[
306 new mojom_types.StructField()
307 ..declData = (new mojom_types.DeclarationData()..shortName = 'NumPhotos' )
308 ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.UI NT32),
309 ];
310 }
311
270 312
271 class CameraRollServiceGetPhotoParams extends bindings.Struct { 313 class CameraRollServiceGetPhotoParams extends bindings.Struct {
272 static const List<bindings.StructDataHeader> kVersions = const [ 314 static const List<bindings.StructDataHeader> kVersions = const [
273 const bindings.StructDataHeader(16, 0) 315 const bindings.StructDataHeader(16, 0)
274 ]; 316 ];
275 int index = 0; 317 int index = 0;
276 318
277 CameraRollServiceGetPhotoParams() : super(kVersions.last.size); 319 CameraRollServiceGetPhotoParams() : super(kVersions.last.size);
278 320
279 static CameraRollServiceGetPhotoParams deserialize(bindings.Message message) { 321 static CameraRollServiceGetPhotoParams deserialize(bindings.Message message) {
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
327 "index: $index" ")"; 369 "index: $index" ")";
328 } 370 }
329 371
330 Map toJson() { 372 Map toJson() {
331 Map map = new Map(); 373 Map map = new Map();
332 map["index"] = index; 374 map["index"] = index;
333 return map; 375 return map;
334 } 376 }
335 } 377 }
336 378
379 mojom_types.MojomStruct _camera_CameraRollService_GetPhoto_Params__() {
380 return new mojom_types.MojomStruct()
381 ..declData = (new mojom_types.DeclarationData()..shortName = 'CameraRollServ iceGetPhotoParams')
382 ..fields = <mojom_types.StructField>[
383 new mojom_types.StructField()
384 ..declData = (new mojom_types.DeclarationData()..shortName = 'Index')
385 ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.UI NT32),
386 ];
387 }
388
337 389
338 class CameraRollServiceGetPhotoResponseParams extends bindings.Struct { 390 class CameraRollServiceGetPhotoResponseParams extends bindings.Struct {
339 static const List<bindings.StructDataHeader> kVersions = const [ 391 static const List<bindings.StructDataHeader> kVersions = const [
340 const bindings.StructDataHeader(16, 0) 392 const bindings.StructDataHeader(16, 0)
341 ]; 393 ];
342 Photo photo = null; 394 Photo photo = null;
343 395
344 CameraRollServiceGetPhotoResponseParams() : super(kVersions.last.size); 396 CameraRollServiceGetPhotoResponseParams() : super(kVersions.last.size);
345 397
346 static CameraRollServiceGetPhotoResponseParams deserialize(bindings.Message me ssage) { 398 static CameraRollServiceGetPhotoResponseParams deserialize(bindings.Message me ssage) {
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
394 return "CameraRollServiceGetPhotoResponseParams(" 446 return "CameraRollServiceGetPhotoResponseParams("
395 "photo: $photo" ")"; 447 "photo: $photo" ")";
396 } 448 }
397 449
398 Map toJson() { 450 Map toJson() {
399 throw new bindings.MojoCodecError( 451 throw new bindings.MojoCodecError(
400 'Object containing handles cannot be encoded to JSON.'); 452 'Object containing handles cannot be encoded to JSON.');
401 } 453 }
402 } 454 }
403 455
456 mojom_types.MojomStruct _camera_CameraRollService_GetPhoto_ResponseParams__() {
457 return new mojom_types.MojomStruct()
458 ..declData = (new mojom_types.DeclarationData()..shortName = 'CameraRollServ iceGetPhotoResponseParams')
459 ..fields = <mojom_types.StructField>[
460 new mojom_types.StructField()
461 ..declData = (new mojom_types.DeclarationData()..shortName = 'Photo')
462 ..type = (new mojom_types.Type()
463 ..typeReference = (new mojom_types.TypeReference()
464 ..nullable = true
465
466
467 ..identifier = '_camera_Photo__'
468 ..typeKey = '_camera_Photo__'
469 )),
470 ];
471 }
472
404 473
405 class CameraServiceGetLatestFrameParams extends bindings.Struct { 474 class CameraServiceGetLatestFrameParams extends bindings.Struct {
406 static const List<bindings.StructDataHeader> kVersions = const [ 475 static const List<bindings.StructDataHeader> kVersions = const [
407 const bindings.StructDataHeader(8, 0) 476 const bindings.StructDataHeader(8, 0)
408 ]; 477 ];
409 478
410 CameraServiceGetLatestFrameParams() : super(kVersions.last.size); 479 CameraServiceGetLatestFrameParams() : super(kVersions.last.size);
411 480
412 static CameraServiceGetLatestFrameParams deserialize(bindings.Message message) { 481 static CameraServiceGetLatestFrameParams deserialize(bindings.Message message) {
413 var decoder = new bindings.Decoder(message); 482 var decoder = new bindings.Decoder(message);
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
452 String toString() { 521 String toString() {
453 return "CameraServiceGetLatestFrameParams("")"; 522 return "CameraServiceGetLatestFrameParams("")";
454 } 523 }
455 524
456 Map toJson() { 525 Map toJson() {
457 Map map = new Map(); 526 Map map = new Map();
458 return map; 527 return map;
459 } 528 }
460 } 529 }
461 530
531 mojom_types.MojomStruct _camera_CameraService_GetLatestFrame_Params__() {
532 return new mojom_types.MojomStruct()
533 ..declData = (new mojom_types.DeclarationData()..shortName = 'CameraServiceG etLatestFrameParams')
534 ..fields = <mojom_types.StructField>[];
535 }
536
462 537
463 class CameraServiceGetLatestFrameResponseParams extends bindings.Struct { 538 class CameraServiceGetLatestFrameResponseParams extends bindings.Struct {
464 static const List<bindings.StructDataHeader> kVersions = const [ 539 static const List<bindings.StructDataHeader> kVersions = const [
465 const bindings.StructDataHeader(16, 0) 540 const bindings.StructDataHeader(16, 0)
466 ]; 541 ];
467 core.MojoDataPipeConsumer content = null; 542 core.MojoDataPipeConsumer content = null;
468 543
469 CameraServiceGetLatestFrameResponseParams() : super(kVersions.last.size); 544 CameraServiceGetLatestFrameResponseParams() : super(kVersions.last.size);
470 545
471 static CameraServiceGetLatestFrameResponseParams deserialize(bindings.Message message) { 546 static CameraServiceGetLatestFrameResponseParams deserialize(bindings.Message message) {
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
518 return "CameraServiceGetLatestFrameResponseParams(" 593 return "CameraServiceGetLatestFrameResponseParams("
519 "content: $content" ")"; 594 "content: $content" ")";
520 } 595 }
521 596
522 Map toJson() { 597 Map toJson() {
523 throw new bindings.MojoCodecError( 598 throw new bindings.MojoCodecError(
524 'Object containing handles cannot be encoded to JSON.'); 599 'Object containing handles cannot be encoded to JSON.');
525 } 600 }
526 } 601 }
527 602
603 mojom_types.MojomStruct _camera_CameraService_GetLatestFrame_ResponseParams__() {
604 return new mojom_types.MojomStruct()
605 ..declData = (new mojom_types.DeclarationData()..shortName = 'CameraServiceG etLatestFrameResponseParams')
606 ..fields = <mojom_types.StructField>[
607 new mojom_types.StructField()
608 ..declData = (new mojom_types.DeclarationData()..shortName = 'Content')
609 ..type = (new mojom_types.Type()
610 ..handleType = (new mojom_types.HandleType()
611 ..kind = mojom_types.HandleTypeKind.DATA_PIPE_CONSUMER
612 ..nullable = true)),
613 ];
614 }
615
616
528 const int kCameraRollService_update_name = 0; 617 const int kCameraRollService_update_name = 0;
529 const int kCameraRollService_getCount_name = 1; 618 const int kCameraRollService_getCount_name = 1;
530 const int kCameraRollService_getPhoto_name = 2; 619 const int kCameraRollService_getPhoto_name = 2;
531 620
532 const String CameraRollServiceName = 621 const String CameraRollServiceName =
533 'mojo::CameraRollService'; 622 'mojo::CameraRollService';
534 623
624 mojom_types.MojomInterface _camera_CameraRollService__() {
625 return new mojom_types.MojomInterface()
626 ..declData = (new mojom_types.DeclarationData()..shortName = "CameraRollServ ice")
627 ..interfaceName = "CameraRollService"
628 ..methods = <int, mojom_types.MojomMethod>{
629 kCameraRollService_update_name: new mojom_types.MojomMethod()
630 ..declData = (new mojom_types.DeclarationData()..shortName = "Update")
631 ..ordinal = kCameraRollService_update_name..parameters = _camera_CameraR ollService_Update_Params__(),kCameraRollService_getCount_name: new mojom_types.M ojomMethod()
632 ..declData = (new mojom_types.DeclarationData()..shortName = "GetCount")
633 ..ordinal = kCameraRollService_getCount_name
634 ..responseParams = _camera_CameraRollService_GetCount_ResponseParams__() ..parameters = _camera_CameraRollService_GetCount_Params__(),kCameraRollService_ getPhoto_name: new mojom_types.MojomMethod()
635 ..declData = (new mojom_types.DeclarationData()..shortName = "GetPhoto")
636 ..ordinal = kCameraRollService_getPhoto_name
637 ..responseParams = _camera_CameraRollService_GetPhoto_ResponseParams__() ..parameters = _camera_CameraRollService_GetPhoto_Params__(),
638 };
639 }
640
641 class _CameraRollServiceServiceDescription extends service_describer.ServiceDesc ription {
642 // Avoid infinite loop by overriding serviceDescription field.
643 final service_describer.ServiceDescription serviceDescription = null;
644 dynamic getTopLevelInterface([Function responseFactory = null]) {
645 return _camera_CameraRollService__();
646 }
647 dynamic getTypeDefinition(String typeKey,[Function responseFactory = null]) {
648 return getAllMojomTypeDefinitions()[typeKey];
649 }
650 dynamic getAllTypeDefinitions([Function responseFactory = null]) {
651 return getAllMojomTypeDefinitions();
652 }
653 }
654
535 abstract class CameraRollService { 655 abstract class CameraRollService {
536 void update(); 656 void update();
537 dynamic getCount([Function responseFactory = null]); 657 dynamic getCount([Function responseFactory = null]);
538 dynamic getPhoto(int index,[Function responseFactory = null]); 658 dynamic getPhoto(int index,[Function responseFactory = null]);
539 659
540 } 660 }
541 661
542 662
543 class CameraRollServiceProxyImpl extends bindings.Proxy { 663 class CameraRollServiceProxyImpl extends bindings.Proxy {
544 CameraRollServiceProxyImpl.fromEndpoint( 664 CameraRollServiceProxyImpl.fromEndpoint(
545 core.MojoMessagePipeEndpoint endpoint) : super.fromEndpoint(endpoint); 665 core.MojoMessagePipeEndpoint endpoint) : super.fromEndpoint(endpoint);
546 666
547 CameraRollServiceProxyImpl.fromHandle(core.MojoHandle handle) : 667 CameraRollServiceProxyImpl.fromHandle(core.MojoHandle handle) :
548 super.fromHandle(handle); 668 super.fromHandle(handle);
549 669
550 CameraRollServiceProxyImpl.unbound() : super.unbound(); 670 CameraRollServiceProxyImpl.unbound() : super.unbound();
551 671
552 static CameraRollServiceProxyImpl newFromEndpoint( 672 static CameraRollServiceProxyImpl newFromEndpoint(
553 core.MojoMessagePipeEndpoint endpoint) { 673 core.MojoMessagePipeEndpoint endpoint) {
554 assert(endpoint.setDescription("For CameraRollServiceProxyImpl")); 674 assert(endpoint.setDescription("For CameraRollServiceProxyImpl"));
555 return new CameraRollServiceProxyImpl.fromEndpoint(endpoint); 675 return new CameraRollServiceProxyImpl.fromEndpoint(endpoint);
556 } 676 }
557 677
558 String get name => CameraRollServiceName; 678 String get name => CameraRollServiceName;
559 679
680 service_describer.ServiceDescription get serviceDescription =>
681 new _CameraRollServiceServiceDescription();
682
560 void handleResponse(bindings.ServiceMessage message) { 683 void handleResponse(bindings.ServiceMessage message) {
561 switch (message.header.type) { 684 switch (message.header.type) {
562 case kCameraRollService_getCount_name: 685 case kCameraRollService_getCount_name:
563 var r = CameraRollServiceGetCountResponseParams.deserialize( 686 var r = CameraRollServiceGetCountResponseParams.deserialize(
564 message.payload); 687 message.payload);
565 if (!message.header.hasRequestId) { 688 if (!message.header.hasRequestId) {
566 proxyError("Expected a message with a valid request Id."); 689 proxyError("Expected a message with a valid request Id.");
567 return; 690 return;
568 } 691 }
569 Completer c = completerMap[message.header.requestId]; 692 Completer c = completerMap[message.header.requestId];
(...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after
805 assert(_impl == null); 928 assert(_impl == null);
806 _impl = d; 929 _impl = d;
807 } 930 }
808 931
809 String toString() { 932 String toString() {
810 var superString = super.toString(); 933 var superString = super.toString();
811 return "CameraRollServiceStub($superString)"; 934 return "CameraRollServiceStub($superString)";
812 } 935 }
813 936
814 int get version => 0; 937 int get version => 0;
938
939 service_describer.ServiceDescription get serviceDescription =>
940 new _CameraRollServiceServiceDescription();
815 } 941 }
816 942
817 const int kCameraService_getLatestFrame_name = 0; 943 const int kCameraService_getLatestFrame_name = 0;
818 944
819 const String CameraServiceName = 945 const String CameraServiceName =
820 'mojo::CameraService'; 946 'mojo::CameraService';
821 947
948 mojom_types.MojomInterface _camera_CameraService__() {
949 return new mojom_types.MojomInterface()
950 ..declData = (new mojom_types.DeclarationData()..shortName = "CameraService" )
951 ..interfaceName = "CameraService"
952 ..methods = <int, mojom_types.MojomMethod>{
953 kCameraService_getLatestFrame_name: new mojom_types.MojomMethod()
954 ..declData = (new mojom_types.DeclarationData()..shortName = "GetLatestF rame")
955 ..ordinal = kCameraService_getLatestFrame_name
956 ..responseParams = _camera_CameraService_GetLatestFrame_ResponseParams__ ()..parameters = _camera_CameraService_GetLatestFrame_Params__(),
957 };
958 }
959
960 class _CameraServiceServiceDescription extends service_describer.ServiceDescript ion {
961 // Avoid infinite loop by overriding serviceDescription field.
962 final service_describer.ServiceDescription serviceDescription = null;
963 dynamic getTopLevelInterface([Function responseFactory = null]) {
964 return _camera_CameraService__();
965 }
966 dynamic getTypeDefinition(String typeKey,[Function responseFactory = null]) {
967 return getAllMojomTypeDefinitions()[typeKey];
968 }
969 dynamic getAllTypeDefinitions([Function responseFactory = null]) {
970 return getAllMojomTypeDefinitions();
971 }
972 }
973
822 abstract class CameraService { 974 abstract class CameraService {
823 dynamic getLatestFrame([Function responseFactory = null]); 975 dynamic getLatestFrame([Function responseFactory = null]);
824 976
825 } 977 }
826 978
827 979
828 class CameraServiceProxyImpl extends bindings.Proxy { 980 class CameraServiceProxyImpl extends bindings.Proxy {
829 CameraServiceProxyImpl.fromEndpoint( 981 CameraServiceProxyImpl.fromEndpoint(
830 core.MojoMessagePipeEndpoint endpoint) : super.fromEndpoint(endpoint); 982 core.MojoMessagePipeEndpoint endpoint) : super.fromEndpoint(endpoint);
831 983
832 CameraServiceProxyImpl.fromHandle(core.MojoHandle handle) : 984 CameraServiceProxyImpl.fromHandle(core.MojoHandle handle) :
833 super.fromHandle(handle); 985 super.fromHandle(handle);
834 986
835 CameraServiceProxyImpl.unbound() : super.unbound(); 987 CameraServiceProxyImpl.unbound() : super.unbound();
836 988
837 static CameraServiceProxyImpl newFromEndpoint( 989 static CameraServiceProxyImpl newFromEndpoint(
838 core.MojoMessagePipeEndpoint endpoint) { 990 core.MojoMessagePipeEndpoint endpoint) {
839 assert(endpoint.setDescription("For CameraServiceProxyImpl")); 991 assert(endpoint.setDescription("For CameraServiceProxyImpl"));
840 return new CameraServiceProxyImpl.fromEndpoint(endpoint); 992 return new CameraServiceProxyImpl.fromEndpoint(endpoint);
841 } 993 }
842 994
843 String get name => CameraServiceName; 995 String get name => CameraServiceName;
844 996
997 service_describer.ServiceDescription get serviceDescription =>
998 new _CameraServiceServiceDescription();
999
845 void handleResponse(bindings.ServiceMessage message) { 1000 void handleResponse(bindings.ServiceMessage message) {
846 switch (message.header.type) { 1001 switch (message.header.type) {
847 case kCameraService_getLatestFrame_name: 1002 case kCameraService_getLatestFrame_name:
848 var r = CameraServiceGetLatestFrameResponseParams.deserialize( 1003 var r = CameraServiceGetLatestFrameResponseParams.deserialize(
849 message.payload); 1004 message.payload);
850 if (!message.header.hasRequestId) { 1005 if (!message.header.hasRequestId) {
851 proxyError("Expected a message with a valid request Id."); 1006 proxyError("Expected a message with a valid request Id.");
852 return; 1007 return;
853 } 1008 }
854 Completer c = completerMap[message.header.requestId]; 1009 Completer c = completerMap[message.header.requestId];
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after
1020 assert(_impl == null); 1175 assert(_impl == null);
1021 _impl = d; 1176 _impl = d;
1022 } 1177 }
1023 1178
1024 String toString() { 1179 String toString() {
1025 var superString = super.toString(); 1180 var superString = super.toString();
1026 return "CameraServiceStub($superString)"; 1181 return "CameraServiceStub($superString)";
1027 } 1182 }
1028 1183
1029 int get version => 0; 1184 int get version => 0;
1185
1186 service_describer.ServiceDescription get serviceDescription =>
1187 new _CameraServiceServiceDescription();
1030 } 1188 }
1031 1189
1032 1190
1191
1192
1193
1194
1195
1196
1197 var _MojomDesc__ = _initDescriptions();
1198
1199 Map<String, mojom_types.UserDefinedType> _initDescriptions() {
1200 var map = new Map<String, mojom_types.UserDefinedType>();
1201
1202 map["_camera_Photo__"] =
1203 new mojom_types.UserDefinedType()
1204 ..structType = _camera_Photo__();
1205
1206
1207
1208
1209
1210
1211
1212 map["_camera_CameraRollService_Update_Params__"] =
1213 new mojom_types.UserDefinedType()
1214 ..structType = _camera_CameraRollService_Update_Params__();
1215
1216
1217
1218 map["_camera_CameraRollService_GetCount_Params__"] =
1219 new mojom_types.UserDefinedType()
1220 ..structType = _camera_CameraRollService_GetCount_Params__();
1221
1222
1223
1224 map["_camera_CameraRollService_GetCount_ResponseParams__"] =
1225 new mojom_types.UserDefinedType()
1226 ..structType = _camera_CameraRollService_GetCount_ResponseParams__();
1227
1228
1229
1230
1231
1232 map["_camera_CameraRollService_GetPhoto_Params__"] =
1233 new mojom_types.UserDefinedType()
1234 ..structType = _camera_CameraRollService_GetPhoto_Params__();
1235
1236
1237
1238
1239
1240 map["_camera_CameraRollService_GetPhoto_ResponseParams__"] =
1241 new mojom_types.UserDefinedType()
1242 ..structType = _camera_CameraRollService_GetPhoto_ResponseParams__();
1243
1244
1245
1246
1247
1248 map["_camera_CameraService_GetLatestFrame_Params__"] =
1249 new mojom_types.UserDefinedType()
1250 ..structType = _camera_CameraService_GetLatestFrame_Params__();
1251
1252
1253
1254 map["_camera_CameraService_GetLatestFrame_ResponseParams__"] =
1255 new mojom_types.UserDefinedType()
1256 ..structType = _camera_CameraService_GetLatestFrame_ResponseParams__();
1257
1258
1259
1260
1261
1262 map["_camera_CameraRollService__"] =
1263 new mojom_types.UserDefinedType()
1264 ..interfaceType = _camera_CameraRollService__();
1265
1266
1267 map["_camera_CameraService__"] =
1268 new mojom_types.UserDefinedType()
1269 ..interfaceType = _camera_CameraService__();
1270
1271 return map;
1272 }
1273
1274 Map<String, mojom_types.UserDefinedType> getAllMojomTypeDefinitions() {
1275 return _MojomDesc__;
1276 }
1277
1278
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698