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

Side by Side Diff: mojo/dart/packages/mojo_services/lib/mojo/geometry.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 geometry_mojom; 4 library geometry_mojom;
5 import 'package:mojo/bindings.dart' as bindings; 5 import 'package:mojo/bindings.dart' as bindings;
6 6
7 7
8 8
9 9
10 class Point extends bindings.Struct { 10 class Point extends bindings.Struct {
11 static const List<bindings.StructDataHeader> kVersions = const [ 11 static const List<bindings.StructDataHeader> kVersions = const [
12 const bindings.StructDataHeader(16, 0) 12 const bindings.StructDataHeader(16, 0)
13 ]; 13 ];
14 int x = 0; 14 int x = 0;
15 int y = 0; 15 int y = 0;
16 16
17 Point() : super(kVersions.last.size); 17 Point() : super(kVersions.last.size);
18 18
19 Point.init(
20 int this.x,
21 int this.y
22 ) : super(kVersions.last.size);
23
19 static Point deserialize(bindings.Message message) { 24 static Point deserialize(bindings.Message message) {
20 var decoder = new bindings.Decoder(message); 25 var decoder = new bindings.Decoder(message);
21 var result = decode(decoder); 26 var result = decode(decoder);
22 if (decoder.excessHandles != null) { 27 if (decoder.excessHandles != null) {
23 decoder.excessHandles.forEach((h) => h.close()); 28 decoder.excessHandles.forEach((h) => h.close());
24 } 29 }
25 return result; 30 return result;
26 } 31 }
27 32
28 static Point decode(bindings.Decoder decoder0) { 33 static Point decode(bindings.Decoder decoder0) {
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 100
96 class PointF extends bindings.Struct { 101 class PointF extends bindings.Struct {
97 static const List<bindings.StructDataHeader> kVersions = const [ 102 static const List<bindings.StructDataHeader> kVersions = const [
98 const bindings.StructDataHeader(16, 0) 103 const bindings.StructDataHeader(16, 0)
99 ]; 104 ];
100 double x = 0.0; 105 double x = 0.0;
101 double y = 0.0; 106 double y = 0.0;
102 107
103 PointF() : super(kVersions.last.size); 108 PointF() : super(kVersions.last.size);
104 109
110 PointF.init(
111 double this.x,
112 double this.y
113 ) : super(kVersions.last.size);
114
105 static PointF deserialize(bindings.Message message) { 115 static PointF deserialize(bindings.Message message) {
106 var decoder = new bindings.Decoder(message); 116 var decoder = new bindings.Decoder(message);
107 var result = decode(decoder); 117 var result = decode(decoder);
108 if (decoder.excessHandles != null) { 118 if (decoder.excessHandles != null) {
109 decoder.excessHandles.forEach((h) => h.close()); 119 decoder.excessHandles.forEach((h) => h.close());
110 } 120 }
111 return result; 121 return result;
112 } 122 }
113 123
114 static PointF decode(bindings.Decoder decoder0) { 124 static PointF decode(bindings.Decoder decoder0) {
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
181 191
182 class Size extends bindings.Struct { 192 class Size extends bindings.Struct {
183 static const List<bindings.StructDataHeader> kVersions = const [ 193 static const List<bindings.StructDataHeader> kVersions = const [
184 const bindings.StructDataHeader(16, 0) 194 const bindings.StructDataHeader(16, 0)
185 ]; 195 ];
186 int width = 0; 196 int width = 0;
187 int height = 0; 197 int height = 0;
188 198
189 Size() : super(kVersions.last.size); 199 Size() : super(kVersions.last.size);
190 200
201 Size.init(
202 int this.width,
203 int this.height
204 ) : super(kVersions.last.size);
205
191 static Size deserialize(bindings.Message message) { 206 static Size deserialize(bindings.Message message) {
192 var decoder = new bindings.Decoder(message); 207 var decoder = new bindings.Decoder(message);
193 var result = decode(decoder); 208 var result = decode(decoder);
194 if (decoder.excessHandles != null) { 209 if (decoder.excessHandles != null) {
195 decoder.excessHandles.forEach((h) => h.close()); 210 decoder.excessHandles.forEach((h) => h.close());
196 } 211 }
197 return result; 212 return result;
198 } 213 }
199 214
200 static Size decode(bindings.Decoder decoder0) { 215 static Size decode(bindings.Decoder decoder0) {
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
269 static const List<bindings.StructDataHeader> kVersions = const [ 284 static const List<bindings.StructDataHeader> kVersions = const [
270 const bindings.StructDataHeader(24, 0) 285 const bindings.StructDataHeader(24, 0)
271 ]; 286 ];
272 int x = 0; 287 int x = 0;
273 int y = 0; 288 int y = 0;
274 int width = 0; 289 int width = 0;
275 int height = 0; 290 int height = 0;
276 291
277 Rect() : super(kVersions.last.size); 292 Rect() : super(kVersions.last.size);
278 293
294 Rect.init(
295 int this.x,
296 int this.y,
297 int this.width,
298 int this.height
299 ) : super(kVersions.last.size);
300
279 static Rect deserialize(bindings.Message message) { 301 static Rect deserialize(bindings.Message message) {
280 var decoder = new bindings.Decoder(message); 302 var decoder = new bindings.Decoder(message);
281 var result = decode(decoder); 303 var result = decode(decoder);
282 if (decoder.excessHandles != null) { 304 if (decoder.excessHandles != null) {
283 decoder.excessHandles.forEach((h) => h.close()); 305 decoder.excessHandles.forEach((h) => h.close());
284 } 306 }
285 return result; 307 return result;
286 } 308 }
287 309
288 static Rect decode(bindings.Decoder decoder0) { 310 static Rect decode(bindings.Decoder decoder0) {
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
383 static const List<bindings.StructDataHeader> kVersions = const [ 405 static const List<bindings.StructDataHeader> kVersions = const [
384 const bindings.StructDataHeader(24, 0) 406 const bindings.StructDataHeader(24, 0)
385 ]; 407 ];
386 double x = 0.0; 408 double x = 0.0;
387 double y = 0.0; 409 double y = 0.0;
388 double width = 0.0; 410 double width = 0.0;
389 double height = 0.0; 411 double height = 0.0;
390 412
391 RectF() : super(kVersions.last.size); 413 RectF() : super(kVersions.last.size);
392 414
415 RectF.init(
416 double this.x,
417 double this.y,
418 double this.width,
419 double this.height
420 ) : super(kVersions.last.size);
421
393 static RectF deserialize(bindings.Message message) { 422 static RectF deserialize(bindings.Message message) {
394 var decoder = new bindings.Decoder(message); 423 var decoder = new bindings.Decoder(message);
395 var result = decode(decoder); 424 var result = decode(decoder);
396 if (decoder.excessHandles != null) { 425 if (decoder.excessHandles != null) {
397 decoder.excessHandles.forEach((h) => h.close()); 426 decoder.excessHandles.forEach((h) => h.close());
398 } 427 }
399 return result; 428 return result;
400 } 429 }
401 430
402 static RectF decode(bindings.Decoder decoder0) { 431 static RectF decode(bindings.Decoder decoder0) {
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
505 double topLeftRadiusY = 0.0; 534 double topLeftRadiusY = 0.0;
506 double topRightRadiusX = 0.0; 535 double topRightRadiusX = 0.0;
507 double topRightRadiusY = 0.0; 536 double topRightRadiusY = 0.0;
508 double bottomLeftRadiusX = 0.0; 537 double bottomLeftRadiusX = 0.0;
509 double bottomLeftRadiusY = 0.0; 538 double bottomLeftRadiusY = 0.0;
510 double bottomRightRadiusX = 0.0; 539 double bottomRightRadiusX = 0.0;
511 double bottomRightRadiusY = 0.0; 540 double bottomRightRadiusY = 0.0;
512 541
513 RRectF() : super(kVersions.last.size); 542 RRectF() : super(kVersions.last.size);
514 543
544 RRectF.init(
545 double this.x,
546 double this.y,
547 double this.width,
548 double this.height,
549 double this.topLeftRadiusX,
550 double this.topLeftRadiusY,
551 double this.topRightRadiusX,
552 double this.topRightRadiusY,
553 double this.bottomLeftRadiusX,
554 double this.bottomLeftRadiusY,
555 double this.bottomRightRadiusX,
556 double this.bottomRightRadiusY
557 ) : super(kVersions.last.size);
558
515 static RRectF deserialize(bindings.Message message) { 559 static RRectF deserialize(bindings.Message message) {
516 var decoder = new bindings.Decoder(message); 560 var decoder = new bindings.Decoder(message);
517 var result = decode(decoder); 561 var result = decode(decoder);
518 if (decoder.excessHandles != null) { 562 if (decoder.excessHandles != null) {
519 decoder.excessHandles.forEach((h) => h.close()); 563 decoder.excessHandles.forEach((h) => h.close());
520 } 564 }
521 return result; 565 return result;
522 } 566 }
523 567
524 static RRectF decode(bindings.Decoder decoder0) { 568 static RRectF decode(bindings.Decoder decoder0) {
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after
720 764
721 765
722 class Transform extends bindings.Struct { 766 class Transform extends bindings.Struct {
723 static const List<bindings.StructDataHeader> kVersions = const [ 767 static const List<bindings.StructDataHeader> kVersions = const [
724 const bindings.StructDataHeader(16, 0) 768 const bindings.StructDataHeader(16, 0)
725 ]; 769 ];
726 List<double> matrix = null; 770 List<double> matrix = null;
727 771
728 Transform() : super(kVersions.last.size); 772 Transform() : super(kVersions.last.size);
729 773
774 Transform.init(
775 List<double> this.matrix
776 ) : super(kVersions.last.size);
777
730 static Transform deserialize(bindings.Message message) { 778 static Transform deserialize(bindings.Message message) {
731 var decoder = new bindings.Decoder(message); 779 var decoder = new bindings.Decoder(message);
732 var result = decode(decoder); 780 var result = decode(decoder);
733 if (decoder.excessHandles != null) { 781 if (decoder.excessHandles != null) {
734 decoder.excessHandles.forEach((h) => h.close()); 782 decoder.excessHandles.forEach((h) => h.close());
735 } 783 }
736 return result; 784 return result;
737 } 785 }
738 786
739 static Transform decode(bindings.Decoder decoder0) { 787 static Transform decode(bindings.Decoder decoder0) {
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
785 833
786 Map toJson() { 834 Map toJson() {
787 Map map = new Map(); 835 Map map = new Map();
788 map["matrix"] = matrix; 836 map["matrix"] = matrix;
789 return map; 837 return map;
790 } 838 }
791 } 839 }
792 840
793 841
794 842
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698