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

Side by Side Diff: mojo/dart/packages/mojo_services/lib/mojo/gfx/composition/nodes.mojom.dart

Issue 2006093002: Dart: Futures -> Callbacks. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Merge Created 4 years, 6 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 // WARNING: DO NOT EDIT. This file was generated by a program. 1 // WARNING: DO NOT EDIT. This file was generated by a program.
2 // See $MOJO_SDK/tools/bindings/mojom_bindings_generator.py. 2 // See $MOJO_SDK/tools/bindings/mojom_bindings_generator.py.
3 3
4 library nodes_mojom; 4 library nodes_mojom;
5 import 'package:mojo/bindings.dart' as bindings; 5 import 'package:mojo/bindings.dart' as bindings;
6 6
7 import 'package:mojo_services/mojo/geometry.mojom.dart' as geometry_mojom; 7 import 'package:mojo_services/mojo/geometry.mojom.dart' as geometry_mojom;
8 import 'package:mojo_services/mojo/gfx/composition/hit_tests.mojom.dart' as hit_ tests_mojom; 8 import 'package:mojo_services/mojo/gfx/composition/hit_tests.mojom.dart' as hit_ tests_mojom;
9 9
10 10
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 ]; 74 ];
75 geometry_mojom.Transform contentTransform = null; 75 geometry_mojom.Transform contentTransform = null;
76 geometry_mojom.RectF contentClip = null; 76 geometry_mojom.RectF contentClip = null;
77 NodeCombinator combinator = new NodeCombinator(0); 77 NodeCombinator combinator = new NodeCombinator(0);
78 hit_tests_mojom.HitTestBehavior hitTestBehavior = null; 78 hit_tests_mojom.HitTestBehavior hitTestBehavior = null;
79 List<int> childNodeIds = null; 79 List<int> childNodeIds = null;
80 NodeOp op = null; 80 NodeOp op = null;
81 81
82 Node() : super(kVersions.last.size); 82 Node() : super(kVersions.last.size);
83 83
84 Node.init(
85 geometry_mojom.Transform this.contentTransform,
86 geometry_mojom.RectF this.contentClip,
87 NodeCombinator this.combinator,
88 hit_tests_mojom.HitTestBehavior this.hitTestBehavior,
89 List<int> this.childNodeIds,
90 NodeOp this.op
91 ) : super(kVersions.last.size);
92
84 static Node deserialize(bindings.Message message) { 93 static Node deserialize(bindings.Message message) {
85 var decoder = new bindings.Decoder(message); 94 var decoder = new bindings.Decoder(message);
86 var result = decode(decoder); 95 var result = decode(decoder);
87 if (decoder.excessHandles != null) { 96 if (decoder.excessHandles != null) {
88 decoder.excessHandles.forEach((h) => h.close()); 97 decoder.excessHandles.forEach((h) => h.close());
89 } 98 }
90 return result; 99 return result;
91 } 100 }
92 101
93 static Node decode(bindings.Decoder decoder0) { 102 static Node decode(bindings.Decoder decoder0) {
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
219 228
220 class RectNodeOp extends bindings.Struct { 229 class RectNodeOp extends bindings.Struct {
221 static const List<bindings.StructDataHeader> kVersions = const [ 230 static const List<bindings.StructDataHeader> kVersions = const [
222 const bindings.StructDataHeader(24, 0) 231 const bindings.StructDataHeader(24, 0)
223 ]; 232 ];
224 geometry_mojom.RectF contentRect = null; 233 geometry_mojom.RectF contentRect = null;
225 Color color = null; 234 Color color = null;
226 235
227 RectNodeOp() : super(kVersions.last.size); 236 RectNodeOp() : super(kVersions.last.size);
228 237
238 RectNodeOp.init(
239 geometry_mojom.RectF this.contentRect,
240 Color this.color
241 ) : super(kVersions.last.size);
242
229 static RectNodeOp deserialize(bindings.Message message) { 243 static RectNodeOp deserialize(bindings.Message message) {
230 var decoder = new bindings.Decoder(message); 244 var decoder = new bindings.Decoder(message);
231 var result = decode(decoder); 245 var result = decode(decoder);
232 if (decoder.excessHandles != null) { 246 if (decoder.excessHandles != null) {
233 decoder.excessHandles.forEach((h) => h.close()); 247 decoder.excessHandles.forEach((h) => h.close());
234 } 248 }
235 return result; 249 return result;
236 } 250 }
237 251
238 static RectNodeOp decode(bindings.Decoder decoder0) { 252 static RectNodeOp decode(bindings.Decoder decoder0) {
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
309 static const List<bindings.StructDataHeader> kVersions = const [ 323 static const List<bindings.StructDataHeader> kVersions = const [
310 const bindings.StructDataHeader(40, 0) 324 const bindings.StructDataHeader(40, 0)
311 ]; 325 ];
312 geometry_mojom.RectF contentRect = null; 326 geometry_mojom.RectF contentRect = null;
313 geometry_mojom.RectF imageRect = null; 327 geometry_mojom.RectF imageRect = null;
314 int imageResourceId = 0; 328 int imageResourceId = 0;
315 Blend blend = null; 329 Blend blend = null;
316 330
317 ImageNodeOp() : super(kVersions.last.size); 331 ImageNodeOp() : super(kVersions.last.size);
318 332
333 ImageNodeOp.init(
334 geometry_mojom.RectF this.contentRect,
335 geometry_mojom.RectF this.imageRect,
336 int this.imageResourceId,
337 Blend this.blend
338 ) : super(kVersions.last.size);
339
319 static ImageNodeOp deserialize(bindings.Message message) { 340 static ImageNodeOp deserialize(bindings.Message message) {
320 var decoder = new bindings.Decoder(message); 341 var decoder = new bindings.Decoder(message);
321 var result = decode(decoder); 342 var result = decode(decoder);
322 if (decoder.excessHandles != null) { 343 if (decoder.excessHandles != null) {
323 decoder.excessHandles.forEach((h) => h.close()); 344 decoder.excessHandles.forEach((h) => h.close());
324 } 345 }
325 return result; 346 return result;
326 } 347 }
327 348
328 static ImageNodeOp decode(bindings.Decoder decoder0) { 349 static ImageNodeOp decode(bindings.Decoder decoder0) {
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
424 445
425 class SceneNodeOp extends bindings.Struct { 446 class SceneNodeOp extends bindings.Struct {
426 static const List<bindings.StructDataHeader> kVersions = const [ 447 static const List<bindings.StructDataHeader> kVersions = const [
427 const bindings.StructDataHeader(16, 0) 448 const bindings.StructDataHeader(16, 0)
428 ]; 449 ];
429 int sceneResourceId = 0; 450 int sceneResourceId = 0;
430 int sceneVersion = 0; 451 int sceneVersion = 0;
431 452
432 SceneNodeOp() : super(kVersions.last.size); 453 SceneNodeOp() : super(kVersions.last.size);
433 454
455 SceneNodeOp.init(
456 int this.sceneResourceId,
457 int this.sceneVersion
458 ) : super(kVersions.last.size);
459
434 static SceneNodeOp deserialize(bindings.Message message) { 460 static SceneNodeOp deserialize(bindings.Message message) {
435 var decoder = new bindings.Decoder(message); 461 var decoder = new bindings.Decoder(message);
436 var result = decode(decoder); 462 var result = decode(decoder);
437 if (decoder.excessHandles != null) { 463 if (decoder.excessHandles != null) {
438 decoder.excessHandles.forEach((h) => h.close()); 464 decoder.excessHandles.forEach((h) => h.close());
439 } 465 }
440 return result; 466 return result;
441 } 467 }
442 468
443 static SceneNodeOp decode(bindings.Decoder decoder0) { 469 static SceneNodeOp decode(bindings.Decoder decoder0) {
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
510 536
511 class LayerNodeOp extends bindings.Struct { 537 class LayerNodeOp extends bindings.Struct {
512 static const List<bindings.StructDataHeader> kVersions = const [ 538 static const List<bindings.StructDataHeader> kVersions = const [
513 const bindings.StructDataHeader(24, 0) 539 const bindings.StructDataHeader(24, 0)
514 ]; 540 ];
515 geometry_mojom.RectF layerRect = null; 541 geometry_mojom.RectF layerRect = null;
516 Blend blend = null; 542 Blend blend = null;
517 543
518 LayerNodeOp() : super(kVersions.last.size); 544 LayerNodeOp() : super(kVersions.last.size);
519 545
546 LayerNodeOp.init(
547 geometry_mojom.RectF this.layerRect,
548 Blend this.blend
549 ) : super(kVersions.last.size);
550
520 static LayerNodeOp deserialize(bindings.Message message) { 551 static LayerNodeOp deserialize(bindings.Message message) {
521 var decoder = new bindings.Decoder(message); 552 var decoder = new bindings.Decoder(message);
522 var result = decode(decoder); 553 var result = decode(decoder);
523 if (decoder.excessHandles != null) { 554 if (decoder.excessHandles != null) {
524 decoder.excessHandles.forEach((h) => h.close()); 555 decoder.excessHandles.forEach((h) => h.close());
525 } 556 }
526 return result; 557 return result;
527 } 558 }
528 559
529 static LayerNodeOp decode(bindings.Decoder decoder0) { 560 static LayerNodeOp decode(bindings.Decoder decoder0) {
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
600 static const List<bindings.StructDataHeader> kVersions = const [ 631 static const List<bindings.StructDataHeader> kVersions = const [
601 const bindings.StructDataHeader(16, 0) 632 const bindings.StructDataHeader(16, 0)
602 ]; 633 ];
603 int red = 0; 634 int red = 0;
604 int green = 0; 635 int green = 0;
605 int blue = 0; 636 int blue = 0;
606 int alpha = 0; 637 int alpha = 0;
607 638
608 Color() : super(kVersions.last.size); 639 Color() : super(kVersions.last.size);
609 640
641 Color.init(
642 int this.red,
643 int this.green,
644 int this.blue,
645 int this.alpha
646 ) : super(kVersions.last.size);
647
610 static Color deserialize(bindings.Message message) { 648 static Color deserialize(bindings.Message message) {
611 var decoder = new bindings.Decoder(message); 649 var decoder = new bindings.Decoder(message);
612 var result = decode(decoder); 650 var result = decode(decoder);
613 if (decoder.excessHandles != null) { 651 if (decoder.excessHandles != null) {
614 decoder.excessHandles.forEach((h) => h.close()); 652 decoder.excessHandles.forEach((h) => h.close());
615 } 653 }
616 return result; 654 return result;
617 } 655 }
618 656
619 static Color decode(bindings.Decoder decoder0) { 657 static Color decode(bindings.Decoder decoder0) {
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
711 749
712 750
713 class Blend extends bindings.Struct { 751 class Blend extends bindings.Struct {
714 static const List<bindings.StructDataHeader> kVersions = const [ 752 static const List<bindings.StructDataHeader> kVersions = const [
715 const bindings.StructDataHeader(16, 0) 753 const bindings.StructDataHeader(16, 0)
716 ]; 754 ];
717 int alpha = 255; 755 int alpha = 255;
718 756
719 Blend() : super(kVersions.last.size); 757 Blend() : super(kVersions.last.size);
720 758
759 Blend.init(
760 int this.alpha
761 ) : super(kVersions.last.size);
762
721 static Blend deserialize(bindings.Message message) { 763 static Blend deserialize(bindings.Message message) {
722 var decoder = new bindings.Decoder(message); 764 var decoder = new bindings.Decoder(message);
723 var result = decode(decoder); 765 var result = decode(decoder);
724 if (decoder.excessHandles != null) { 766 if (decoder.excessHandles != null) {
725 decoder.excessHandles.forEach((h) => h.close()); 767 decoder.excessHandles.forEach((h) => h.close());
726 } 768 }
727 return result; 769 return result;
728 } 770 }
729 771
730 static Blend decode(bindings.Decoder decoder0) { 772 static Blend decode(bindings.Decoder decoder0) {
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after
931 break; 973 break;
932 default: 974 default:
933 result += "unknown"; 975 result += "unknown";
934 } 976 }
935 result += ": $_data)"; 977 result += ": $_data)";
936 return result; 978 return result;
937 } 979 }
938 } 980 }
939 981
940 982
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698