| OLD | NEW |
| 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 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 | 10 |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 87 "content: $content" ")"; | 87 "content: $content" ")"; |
| 88 } | 88 } |
| 89 | 89 |
| 90 Map toJson() { | 90 Map toJson() { |
| 91 throw new bindings.MojoCodecError( | 91 throw new bindings.MojoCodecError( |
| 92 'Object containing handles cannot be encoded to JSON.'); | 92 'Object containing handles cannot be encoded to JSON.'); |
| 93 } | 93 } |
| 94 } | 94 } |
| 95 | 95 |
| 96 | 96 |
| 97 | |
| 98 | |
| 99 class _CameraRollServiceUpdateParams extends bindings.Struct { | 97 class _CameraRollServiceUpdateParams extends bindings.Struct { |
| 100 static const List<bindings.StructDataHeader> kVersions = const [ | 98 static const List<bindings.StructDataHeader> kVersions = const [ |
| 101 const bindings.StructDataHeader(8, 0) | 99 const bindings.StructDataHeader(8, 0) |
| 102 ]; | 100 ]; |
| 103 | 101 |
| 104 _CameraRollServiceUpdateParams() : super(kVersions.last.size); | 102 _CameraRollServiceUpdateParams() : super(kVersions.last.size); |
| 105 | 103 |
| 106 static _CameraRollServiceUpdateParams deserialize(bindings.Message message) { | 104 static _CameraRollServiceUpdateParams deserialize(bindings.Message message) { |
| 107 var decoder = new bindings.Decoder(message); | 105 var decoder = new bindings.Decoder(message); |
| 108 var result = decode(decoder); | 106 var result = decode(decoder); |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 147 return "_CameraRollServiceUpdateParams("")"; | 145 return "_CameraRollServiceUpdateParams("")"; |
| 148 } | 146 } |
| 149 | 147 |
| 150 Map toJson() { | 148 Map toJson() { |
| 151 Map map = new Map(); | 149 Map map = new Map(); |
| 152 return map; | 150 return map; |
| 153 } | 151 } |
| 154 } | 152 } |
| 155 | 153 |
| 156 | 154 |
| 157 | |
| 158 | |
| 159 class _CameraRollServiceGetCountParams extends bindings.Struct { | 155 class _CameraRollServiceGetCountParams extends bindings.Struct { |
| 160 static const List<bindings.StructDataHeader> kVersions = const [ | 156 static const List<bindings.StructDataHeader> kVersions = const [ |
| 161 const bindings.StructDataHeader(8, 0) | 157 const bindings.StructDataHeader(8, 0) |
| 162 ]; | 158 ]; |
| 163 | 159 |
| 164 _CameraRollServiceGetCountParams() : super(kVersions.last.size); | 160 _CameraRollServiceGetCountParams() : super(kVersions.last.size); |
| 165 | 161 |
| 166 static _CameraRollServiceGetCountParams deserialize(bindings.Message message)
{ | 162 static _CameraRollServiceGetCountParams deserialize(bindings.Message message)
{ |
| 167 var decoder = new bindings.Decoder(message); | 163 var decoder = new bindings.Decoder(message); |
| 168 var result = decode(decoder); | 164 var result = decode(decoder); |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 207 return "_CameraRollServiceGetCountParams("")"; | 203 return "_CameraRollServiceGetCountParams("")"; |
| 208 } | 204 } |
| 209 | 205 |
| 210 Map toJson() { | 206 Map toJson() { |
| 211 Map map = new Map(); | 207 Map map = new Map(); |
| 212 return map; | 208 return map; |
| 213 } | 209 } |
| 214 } | 210 } |
| 215 | 211 |
| 216 | 212 |
| 217 | |
| 218 | |
| 219 class CameraRollServiceGetCountResponseParams extends bindings.Struct { | 213 class CameraRollServiceGetCountResponseParams extends bindings.Struct { |
| 220 static const List<bindings.StructDataHeader> kVersions = const [ | 214 static const List<bindings.StructDataHeader> kVersions = const [ |
| 221 const bindings.StructDataHeader(16, 0) | 215 const bindings.StructDataHeader(16, 0) |
| 222 ]; | 216 ]; |
| 223 int numPhotos = 0; | 217 int numPhotos = 0; |
| 224 | 218 |
| 225 CameraRollServiceGetCountResponseParams() : super(kVersions.last.size); | 219 CameraRollServiceGetCountResponseParams() : super(kVersions.last.size); |
| 226 | 220 |
| 227 static CameraRollServiceGetCountResponseParams deserialize(bindings.Message me
ssage) { | 221 static CameraRollServiceGetCountResponseParams deserialize(bindings.Message me
ssage) { |
| 228 var decoder = new bindings.Decoder(message); | 222 var decoder = new bindings.Decoder(message); |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 281 } | 275 } |
| 282 | 276 |
| 283 Map toJson() { | 277 Map toJson() { |
| 284 Map map = new Map(); | 278 Map map = new Map(); |
| 285 map["numPhotos"] = numPhotos; | 279 map["numPhotos"] = numPhotos; |
| 286 return map; | 280 return map; |
| 287 } | 281 } |
| 288 } | 282 } |
| 289 | 283 |
| 290 | 284 |
| 291 | |
| 292 | |
| 293 class _CameraRollServiceGetPhotoParams extends bindings.Struct { | 285 class _CameraRollServiceGetPhotoParams extends bindings.Struct { |
| 294 static const List<bindings.StructDataHeader> kVersions = const [ | 286 static const List<bindings.StructDataHeader> kVersions = const [ |
| 295 const bindings.StructDataHeader(16, 0) | 287 const bindings.StructDataHeader(16, 0) |
| 296 ]; | 288 ]; |
| 297 int index = 0; | 289 int index = 0; |
| 298 | 290 |
| 299 _CameraRollServiceGetPhotoParams() : super(kVersions.last.size); | 291 _CameraRollServiceGetPhotoParams() : super(kVersions.last.size); |
| 300 | 292 |
| 301 static _CameraRollServiceGetPhotoParams deserialize(bindings.Message message)
{ | 293 static _CameraRollServiceGetPhotoParams deserialize(bindings.Message message)
{ |
| 302 var decoder = new bindings.Decoder(message); | 294 var decoder = new bindings.Decoder(message); |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 355 } | 347 } |
| 356 | 348 |
| 357 Map toJson() { | 349 Map toJson() { |
| 358 Map map = new Map(); | 350 Map map = new Map(); |
| 359 map["index"] = index; | 351 map["index"] = index; |
| 360 return map; | 352 return map; |
| 361 } | 353 } |
| 362 } | 354 } |
| 363 | 355 |
| 364 | 356 |
| 365 | |
| 366 | |
| 367 class CameraRollServiceGetPhotoResponseParams extends bindings.Struct { | 357 class CameraRollServiceGetPhotoResponseParams extends bindings.Struct { |
| 368 static const List<bindings.StructDataHeader> kVersions = const [ | 358 static const List<bindings.StructDataHeader> kVersions = const [ |
| 369 const bindings.StructDataHeader(16, 0) | 359 const bindings.StructDataHeader(16, 0) |
| 370 ]; | 360 ]; |
| 371 Photo photo = null; | 361 Photo photo = null; |
| 372 | 362 |
| 373 CameraRollServiceGetPhotoResponseParams() : super(kVersions.last.size); | 363 CameraRollServiceGetPhotoResponseParams() : super(kVersions.last.size); |
| 374 | 364 |
| 375 static CameraRollServiceGetPhotoResponseParams deserialize(bindings.Message me
ssage) { | 365 static CameraRollServiceGetPhotoResponseParams deserialize(bindings.Message me
ssage) { |
| 376 var decoder = new bindings.Decoder(message); | 366 var decoder = new bindings.Decoder(message); |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 429 "photo: $photo" ")"; | 419 "photo: $photo" ")"; |
| 430 } | 420 } |
| 431 | 421 |
| 432 Map toJson() { | 422 Map toJson() { |
| 433 throw new bindings.MojoCodecError( | 423 throw new bindings.MojoCodecError( |
| 434 'Object containing handles cannot be encoded to JSON.'); | 424 'Object containing handles cannot be encoded to JSON.'); |
| 435 } | 425 } |
| 436 } | 426 } |
| 437 | 427 |
| 438 | 428 |
| 439 | |
| 440 | |
| 441 class _CameraServiceGetLatestFrameParams extends bindings.Struct { | 429 class _CameraServiceGetLatestFrameParams extends bindings.Struct { |
| 442 static const List<bindings.StructDataHeader> kVersions = const [ | 430 static const List<bindings.StructDataHeader> kVersions = const [ |
| 443 const bindings.StructDataHeader(8, 0) | 431 const bindings.StructDataHeader(8, 0) |
| 444 ]; | 432 ]; |
| 445 | 433 |
| 446 _CameraServiceGetLatestFrameParams() : super(kVersions.last.size); | 434 _CameraServiceGetLatestFrameParams() : super(kVersions.last.size); |
| 447 | 435 |
| 448 static _CameraServiceGetLatestFrameParams deserialize(bindings.Message message
) { | 436 static _CameraServiceGetLatestFrameParams deserialize(bindings.Message message
) { |
| 449 var decoder = new bindings.Decoder(message); | 437 var decoder = new bindings.Decoder(message); |
| 450 var result = decode(decoder); | 438 var result = decode(decoder); |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 489 return "_CameraServiceGetLatestFrameParams("")"; | 477 return "_CameraServiceGetLatestFrameParams("")"; |
| 490 } | 478 } |
| 491 | 479 |
| 492 Map toJson() { | 480 Map toJson() { |
| 493 Map map = new Map(); | 481 Map map = new Map(); |
| 494 return map; | 482 return map; |
| 495 } | 483 } |
| 496 } | 484 } |
| 497 | 485 |
| 498 | 486 |
| 499 | |
| 500 | |
| 501 class CameraServiceGetLatestFrameResponseParams extends bindings.Struct { | 487 class CameraServiceGetLatestFrameResponseParams extends bindings.Struct { |
| 502 static const List<bindings.StructDataHeader> kVersions = const [ | 488 static const List<bindings.StructDataHeader> kVersions = const [ |
| 503 const bindings.StructDataHeader(16, 0) | 489 const bindings.StructDataHeader(16, 0) |
| 504 ]; | 490 ]; |
| 505 core.MojoDataPipeConsumer content = null; | 491 core.MojoDataPipeConsumer content = null; |
| 506 | 492 |
| 507 CameraServiceGetLatestFrameResponseParams() : super(kVersions.last.size); | 493 CameraServiceGetLatestFrameResponseParams() : super(kVersions.last.size); |
| 508 | 494 |
| 509 static CameraServiceGetLatestFrameResponseParams deserialize(bindings.Message
message) { | 495 static CameraServiceGetLatestFrameResponseParams deserialize(bindings.Message
message) { |
| 510 var decoder = new bindings.Decoder(message); | 496 var decoder = new bindings.Decoder(message); |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 561 return "CameraServiceGetLatestFrameResponseParams(" | 547 return "CameraServiceGetLatestFrameResponseParams(" |
| 562 "content: $content" ")"; | 548 "content: $content" ")"; |
| 563 } | 549 } |
| 564 | 550 |
| 565 Map toJson() { | 551 Map toJson() { |
| 566 throw new bindings.MojoCodecError( | 552 throw new bindings.MojoCodecError( |
| 567 'Object containing handles cannot be encoded to JSON.'); | 553 'Object containing handles cannot be encoded to JSON.'); |
| 568 } | 554 } |
| 569 } | 555 } |
| 570 | 556 |
| 571 | |
| 572 | |
| 573 | |
| 574 const int _CameraRollService_updateName = 0; | 557 const int _CameraRollService_updateName = 0; |
| 575 const int _CameraRollService_getCountName = 1; | 558 const int _CameraRollService_getCountName = 1; |
| 576 const int _CameraRollService_getPhotoName = 2; | 559 const int _CameraRollService_getPhotoName = 2; |
| 577 | 560 |
| 578 | |
| 579 | |
| 580 class _CameraRollServiceServiceDescription implements service_describer.ServiceD
escription { | 561 class _CameraRollServiceServiceDescription implements service_describer.ServiceD
escription { |
| 581 dynamic getTopLevelInterface([Function responseFactory]) => | 562 dynamic getTopLevelInterface([Function responseFactory]) => |
| 582 responseFactory(null); | 563 responseFactory(null); |
| 583 | 564 |
| 584 dynamic getTypeDefinition(String typeKey, [Function responseFactory]) => | 565 dynamic getTypeDefinition(String typeKey, [Function responseFactory]) => |
| 585 responseFactory(null); | 566 responseFactory(null); |
| 586 | 567 |
| 587 dynamic getAllTypeDefinitions([Function responseFactory]) => | 568 dynamic getAllTypeDefinitions([Function responseFactory]) => |
| 588 responseFactory(null); | 569 responseFactory(null); |
| 589 } | 570 } |
| (...skipping 278 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 868 static service_describer.ServiceDescription get serviceDescription { | 849 static service_describer.ServiceDescription get serviceDescription { |
| 869 if (_cachedServiceDescription == null) { | 850 if (_cachedServiceDescription == null) { |
| 870 _cachedServiceDescription = new _CameraRollServiceServiceDescription(); | 851 _cachedServiceDescription = new _CameraRollServiceServiceDescription(); |
| 871 } | 852 } |
| 872 return _cachedServiceDescription; | 853 return _cachedServiceDescription; |
| 873 } | 854 } |
| 874 } | 855 } |
| 875 | 856 |
| 876 const int _CameraService_getLatestFrameName = 0; | 857 const int _CameraService_getLatestFrameName = 0; |
| 877 | 858 |
| 878 | |
| 879 | |
| 880 class _CameraServiceServiceDescription implements service_describer.ServiceDescr
iption { | 859 class _CameraServiceServiceDescription implements service_describer.ServiceDescr
iption { |
| 881 dynamic getTopLevelInterface([Function responseFactory]) => | 860 dynamic getTopLevelInterface([Function responseFactory]) => |
| 882 responseFactory(null); | 861 responseFactory(null); |
| 883 | 862 |
| 884 dynamic getTypeDefinition(String typeKey, [Function responseFactory]) => | 863 dynamic getTypeDefinition(String typeKey, [Function responseFactory]) => |
| 885 responseFactory(null); | 864 responseFactory(null); |
| 886 | 865 |
| 887 dynamic getAllTypeDefinitions([Function responseFactory]) => | 866 dynamic getAllTypeDefinitions([Function responseFactory]) => |
| 888 responseFactory(null); | 867 responseFactory(null); |
| 889 } | 868 } |
| (...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1099 static service_describer.ServiceDescription get serviceDescription { | 1078 static service_describer.ServiceDescription get serviceDescription { |
| 1100 if (_cachedServiceDescription == null) { | 1079 if (_cachedServiceDescription == null) { |
| 1101 _cachedServiceDescription = new _CameraServiceServiceDescription(); | 1080 _cachedServiceDescription = new _CameraServiceServiceDescription(); |
| 1102 } | 1081 } |
| 1103 return _cachedServiceDescription; | 1082 return _cachedServiceDescription; |
| 1104 } | 1083 } |
| 1105 } | 1084 } |
| 1106 | 1085 |
| 1107 | 1086 |
| 1108 | 1087 |
| OLD | NEW |