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

Side by Side Diff: mojo/dart/packages/mojo_services/lib/mojo/media/rate_control.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 rate_control_mojom; 5 library rate_control_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 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 Map map = new Map(); 117 Map map = new Map();
118 map["referenceOffset"] = referenceOffset; 118 map["referenceOffset"] = referenceOffset;
119 map["targetOffset"] = targetOffset; 119 map["targetOffset"] = targetOffset;
120 map["referenceDelta"] = referenceDelta; 120 map["referenceDelta"] = referenceDelta;
121 map["targetDelta"] = targetDelta; 121 map["targetDelta"] = targetDelta;
122 return map; 122 return map;
123 } 123 }
124 } 124 }
125 125
126 126
127
128
129 class TimelineTransform extends bindings.Struct { 127 class TimelineTransform extends bindings.Struct {
130 static const List<bindings.StructDataHeader> kVersions = const [ 128 static const List<bindings.StructDataHeader> kVersions = const [
131 const bindings.StructDataHeader(24, 0) 129 const bindings.StructDataHeader(24, 0)
132 ]; 130 ];
133 static const int kLocalTimeId = 4294967295; 131 static const int kLocalTimeId = 4294967295;
134 static const int kContextual = 4294967294; 132 static const int kContextual = 4294967294;
135 TimelineQuad quad = null; 133 TimelineQuad quad = null;
136 int referenceTimelineId = 4294967294; 134 int referenceTimelineId = 4294967294;
137 int targetTimelineId = 4294967295; 135 int targetTimelineId = 4294967295;
138 136
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
222 Map toJson() { 220 Map toJson() {
223 Map map = new Map(); 221 Map map = new Map();
224 map["quad"] = quad; 222 map["quad"] = quad;
225 map["referenceTimelineId"] = referenceTimelineId; 223 map["referenceTimelineId"] = referenceTimelineId;
226 map["targetTimelineId"] = targetTimelineId; 224 map["targetTimelineId"] = targetTimelineId;
227 return map; 225 return map;
228 } 226 }
229 } 227 }
230 228
231 229
232
233
234 class _RateControlGetCurrentTransformParams extends bindings.Struct { 230 class _RateControlGetCurrentTransformParams extends bindings.Struct {
235 static const List<bindings.StructDataHeader> kVersions = const [ 231 static const List<bindings.StructDataHeader> kVersions = const [
236 const bindings.StructDataHeader(8, 0) 232 const bindings.StructDataHeader(8, 0)
237 ]; 233 ];
238 234
239 _RateControlGetCurrentTransformParams() : super(kVersions.last.size); 235 _RateControlGetCurrentTransformParams() : super(kVersions.last.size);
240 236
241 static _RateControlGetCurrentTransformParams deserialize(bindings.Message mess age) { 237 static _RateControlGetCurrentTransformParams deserialize(bindings.Message mess age) {
242 var decoder = new bindings.Decoder(message); 238 var decoder = new bindings.Decoder(message);
243 var result = decode(decoder); 239 var result = decode(decoder);
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
282 return "_RateControlGetCurrentTransformParams("")"; 278 return "_RateControlGetCurrentTransformParams("")";
283 } 279 }
284 280
285 Map toJson() { 281 Map toJson() {
286 Map map = new Map(); 282 Map map = new Map();
287 return map; 283 return map;
288 } 284 }
289 } 285 }
290 286
291 287
292
293
294 class RateControlGetCurrentTransformResponseParams extends bindings.Struct { 288 class RateControlGetCurrentTransformResponseParams extends bindings.Struct {
295 static const List<bindings.StructDataHeader> kVersions = const [ 289 static const List<bindings.StructDataHeader> kVersions = const [
296 const bindings.StructDataHeader(16, 0) 290 const bindings.StructDataHeader(16, 0)
297 ]; 291 ];
298 TimelineTransform trans = null; 292 TimelineTransform trans = null;
299 293
300 RateControlGetCurrentTransformResponseParams() : super(kVersions.last.size); 294 RateControlGetCurrentTransformResponseParams() : super(kVersions.last.size);
301 295
302 static RateControlGetCurrentTransformResponseParams deserialize(bindings.Messa ge message) { 296 static RateControlGetCurrentTransformResponseParams deserialize(bindings.Messa ge message) {
303 var decoder = new bindings.Decoder(message); 297 var decoder = new bindings.Decoder(message);
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
357 } 351 }
358 352
359 Map toJson() { 353 Map toJson() {
360 Map map = new Map(); 354 Map map = new Map();
361 map["trans"] = trans; 355 map["trans"] = trans;
362 return map; 356 return map;
363 } 357 }
364 } 358 }
365 359
366 360
367
368
369 class _RateControlSetCurrentQuadParams extends bindings.Struct { 361 class _RateControlSetCurrentQuadParams extends bindings.Struct {
370 static const List<bindings.StructDataHeader> kVersions = const [ 362 static const List<bindings.StructDataHeader> kVersions = const [
371 const bindings.StructDataHeader(16, 0) 363 const bindings.StructDataHeader(16, 0)
372 ]; 364 ];
373 TimelineQuad quad = null; 365 TimelineQuad quad = null;
374 366
375 _RateControlSetCurrentQuadParams() : super(kVersions.last.size); 367 _RateControlSetCurrentQuadParams() : super(kVersions.last.size);
376 368
377 static _RateControlSetCurrentQuadParams deserialize(bindings.Message message) { 369 static _RateControlSetCurrentQuadParams deserialize(bindings.Message message) {
378 var decoder = new bindings.Decoder(message); 370 var decoder = new bindings.Decoder(message);
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
432 } 424 }
433 425
434 Map toJson() { 426 Map toJson() {
435 Map map = new Map(); 427 Map map = new Map();
436 map["quad"] = quad; 428 map["quad"] = quad;
437 return map; 429 return map;
438 } 430 }
439 } 431 }
440 432
441 433
442
443
444 class _RateControlSetTargetTimelineIdParams extends bindings.Struct { 434 class _RateControlSetTargetTimelineIdParams extends bindings.Struct {
445 static const List<bindings.StructDataHeader> kVersions = const [ 435 static const List<bindings.StructDataHeader> kVersions = const [
446 const bindings.StructDataHeader(16, 0) 436 const bindings.StructDataHeader(16, 0)
447 ]; 437 ];
448 int id = 0; 438 int id = 0;
449 439
450 _RateControlSetTargetTimelineIdParams() : super(kVersions.last.size); 440 _RateControlSetTargetTimelineIdParams() : super(kVersions.last.size);
451 441
452 static _RateControlSetTargetTimelineIdParams deserialize(bindings.Message mess age) { 442 static _RateControlSetTargetTimelineIdParams deserialize(bindings.Message mess age) {
453 var decoder = new bindings.Decoder(message); 443 var decoder = new bindings.Decoder(message);
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
506 } 496 }
507 497
508 Map toJson() { 498 Map toJson() {
509 Map map = new Map(); 499 Map map = new Map();
510 map["id"] = id; 500 map["id"] = id;
511 return map; 501 return map;
512 } 502 }
513 } 503 }
514 504
515 505
516
517
518 class _RateControlSetRateParams extends bindings.Struct { 506 class _RateControlSetRateParams extends bindings.Struct {
519 static const List<bindings.StructDataHeader> kVersions = const [ 507 static const List<bindings.StructDataHeader> kVersions = const [
520 const bindings.StructDataHeader(16, 0) 508 const bindings.StructDataHeader(16, 0)
521 ]; 509 ];
522 int referenceDelta = 0; 510 int referenceDelta = 0;
523 int targetDelta = 0; 511 int targetDelta = 0;
524 512
525 _RateControlSetRateParams() : super(kVersions.last.size); 513 _RateControlSetRateParams() : super(kVersions.last.size);
526 514
527 static _RateControlSetRateParams deserialize(bindings.Message message) { 515 static _RateControlSetRateParams deserialize(bindings.Message message) {
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
594 582
595 Map toJson() { 583 Map toJson() {
596 Map map = new Map(); 584 Map map = new Map();
597 map["referenceDelta"] = referenceDelta; 585 map["referenceDelta"] = referenceDelta;
598 map["targetDelta"] = targetDelta; 586 map["targetDelta"] = targetDelta;
599 return map; 587 return map;
600 } 588 }
601 } 589 }
602 590
603 591
604
605
606 class _RateControlSetRateAtReferenceTimeParams extends bindings.Struct { 592 class _RateControlSetRateAtReferenceTimeParams extends bindings.Struct {
607 static const List<bindings.StructDataHeader> kVersions = const [ 593 static const List<bindings.StructDataHeader> kVersions = const [
608 const bindings.StructDataHeader(24, 0) 594 const bindings.StructDataHeader(24, 0)
609 ]; 595 ];
610 int referenceDelta = 0; 596 int referenceDelta = 0;
611 int targetDelta = 0; 597 int targetDelta = 0;
612 int referenceTime = 0; 598 int referenceTime = 0;
613 599
614 _RateControlSetRateAtReferenceTimeParams() : super(kVersions.last.size); 600 _RateControlSetRateAtReferenceTimeParams() : super(kVersions.last.size);
615 601
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
696 Map toJson() { 682 Map toJson() {
697 Map map = new Map(); 683 Map map = new Map();
698 map["referenceDelta"] = referenceDelta; 684 map["referenceDelta"] = referenceDelta;
699 map["targetDelta"] = targetDelta; 685 map["targetDelta"] = targetDelta;
700 map["referenceTime"] = referenceTime; 686 map["referenceTime"] = referenceTime;
701 return map; 687 return map;
702 } 688 }
703 } 689 }
704 690
705 691
706
707
708 class _RateControlSetRateAtTargetTimeParams extends bindings.Struct { 692 class _RateControlSetRateAtTargetTimeParams extends bindings.Struct {
709 static const List<bindings.StructDataHeader> kVersions = const [ 693 static const List<bindings.StructDataHeader> kVersions = const [
710 const bindings.StructDataHeader(24, 0) 694 const bindings.StructDataHeader(24, 0)
711 ]; 695 ];
712 int referenceDelta = 0; 696 int referenceDelta = 0;
713 int targetDelta = 0; 697 int targetDelta = 0;
714 int targetTime = 0; 698 int targetTime = 0;
715 699
716 _RateControlSetRateAtTargetTimeParams() : super(kVersions.last.size); 700 _RateControlSetRateAtTargetTimeParams() : super(kVersions.last.size);
717 701
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
798 Map toJson() { 782 Map toJson() {
799 Map map = new Map(); 783 Map map = new Map();
800 map["referenceDelta"] = referenceDelta; 784 map["referenceDelta"] = referenceDelta;
801 map["targetDelta"] = targetDelta; 785 map["targetDelta"] = targetDelta;
802 map["targetTime"] = targetTime; 786 map["targetTime"] = targetTime;
803 return map; 787 return map;
804 } 788 }
805 } 789 }
806 790
807 791
808
809
810 class _RateControlCancelPendingChangesParams extends bindings.Struct { 792 class _RateControlCancelPendingChangesParams extends bindings.Struct {
811 static const List<bindings.StructDataHeader> kVersions = const [ 793 static const List<bindings.StructDataHeader> kVersions = const [
812 const bindings.StructDataHeader(8, 0) 794 const bindings.StructDataHeader(8, 0)
813 ]; 795 ];
814 796
815 _RateControlCancelPendingChangesParams() : super(kVersions.last.size); 797 _RateControlCancelPendingChangesParams() : super(kVersions.last.size);
816 798
817 static _RateControlCancelPendingChangesParams deserialize(bindings.Message mes sage) { 799 static _RateControlCancelPendingChangesParams deserialize(bindings.Message mes sage) {
818 var decoder = new bindings.Decoder(message); 800 var decoder = new bindings.Decoder(message);
819 var result = decode(decoder); 801 var result = decode(decoder);
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
857 String toString() { 839 String toString() {
858 return "_RateControlCancelPendingChangesParams("")"; 840 return "_RateControlCancelPendingChangesParams("")";
859 } 841 }
860 842
861 Map toJson() { 843 Map toJson() {
862 Map map = new Map(); 844 Map map = new Map();
863 return map; 845 return map;
864 } 846 }
865 } 847 }
866 848
867
868
869
870 const int _RateControl_getCurrentTransformName = 0; 849 const int _RateControl_getCurrentTransformName = 0;
871 const int _RateControl_setCurrentQuadName = 1; 850 const int _RateControl_setCurrentQuadName = 1;
872 const int _RateControl_setTargetTimelineIdName = 2; 851 const int _RateControl_setTargetTimelineIdName = 2;
873 const int _RateControl_setRateName = 3; 852 const int _RateControl_setRateName = 3;
874 const int _RateControl_setRateAtReferenceTimeName = 4; 853 const int _RateControl_setRateAtReferenceTimeName = 4;
875 const int _RateControl_setRateAtTargetTimeName = 5; 854 const int _RateControl_setRateAtTargetTimeName = 5;
876 const int _RateControl_cancelPendingChangesName = 6; 855 const int _RateControl_cancelPendingChangesName = 6;
877 856
878
879
880 class _RateControlServiceDescription implements service_describer.ServiceDescrip tion { 857 class _RateControlServiceDescription implements service_describer.ServiceDescrip tion {
881 dynamic getTopLevelInterface([Function responseFactory]) => 858 dynamic getTopLevelInterface([Function responseFactory]) =>
882 responseFactory(null); 859 responseFactory(null);
883 860
884 dynamic getTypeDefinition(String typeKey, [Function responseFactory]) => 861 dynamic getTypeDefinition(String typeKey, [Function responseFactory]) =>
885 responseFactory(null); 862 responseFactory(null);
886 863
887 dynamic getAllTypeDefinitions([Function responseFactory]) => 864 dynamic getAllTypeDefinitions([Function responseFactory]) =>
888 responseFactory(null); 865 responseFactory(null);
889 } 866 }
(...skipping 301 matching lines...) Expand 10 before | Expand all | Expand 10 after
1191 static service_describer.ServiceDescription get serviceDescription { 1168 static service_describer.ServiceDescription get serviceDescription {
1192 if (_cachedServiceDescription == null) { 1169 if (_cachedServiceDescription == null) {
1193 _cachedServiceDescription = new _RateControlServiceDescription(); 1170 _cachedServiceDescription = new _RateControlServiceDescription();
1194 } 1171 }
1195 return _cachedServiceDescription; 1172 return _cachedServiceDescription;
1196 } 1173 }
1197 } 1174 }
1198 1175
1199 1176
1200 1177
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698