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

Side by Side Diff: mojo/dart/packages/mojo_services/lib/keyboard/keyboard.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 keyboard_mojom; 4 library keyboard_mojom;
5 import 'dart:async'; 5 import 'dart:async';
6 import 'package:mojo/bindings.dart' as bindings; 6 import 'package:mojo/bindings.dart' as bindings;
7 import 'package:mojo/core.dart' as core; 7 import 'package:mojo/core.dart' as core;
8 import 'package:mojo/mojo/bindings/types/service_describer.mojom.dart' as servic e_describer; 8 import 'package:mojo/mojo/bindings/types/service_describer.mojom.dart' as servic e_describer;
9 import 'package:mojo_services/mojo/native_viewport_event_dispatcher.mojom.dart' as native_viewport_event_dispatcher_mojom; 9 import 'package:mojo_services/mojo/native_viewport_event_dispatcher.mojom.dart' as native_viewport_event_dispatcher_mojom;
10 10
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 static const List<bindings.StructDataHeader> kVersions = const [ 125 static const List<bindings.StructDataHeader> kVersions = const [
126 const bindings.StructDataHeader(40, 0) 126 const bindings.StructDataHeader(40, 0)
127 ]; 127 ];
128 int id = 0; 128 int id = 0;
129 int position = 0; 129 int position = 0;
130 String text = null; 130 String text = null;
131 String label = null; 131 String label = null;
132 132
133 CompletionData() : super(kVersions.last.size); 133 CompletionData() : super(kVersions.last.size);
134 134
135 CompletionData.init(
136 int this.id,
137 int this.position,
138 String this.text,
139 String this.label
140 ) : super(kVersions.last.size);
141
135 static CompletionData deserialize(bindings.Message message) { 142 static CompletionData deserialize(bindings.Message message) {
136 var decoder = new bindings.Decoder(message); 143 var decoder = new bindings.Decoder(message);
137 var result = decode(decoder); 144 var result = decode(decoder);
138 if (decoder.excessHandles != null) { 145 if (decoder.excessHandles != null) {
139 decoder.excessHandles.forEach((h) => h.close()); 146 decoder.excessHandles.forEach((h) => h.close());
140 } 147 }
141 return result; 148 return result;
142 } 149 }
143 150
144 static CompletionData decode(bindings.Decoder decoder0) { 151 static CompletionData decode(bindings.Decoder decoder0) {
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
238 class CorrectionData extends bindings.Struct { 245 class CorrectionData extends bindings.Struct {
239 static const List<bindings.StructDataHeader> kVersions = const [ 246 static const List<bindings.StructDataHeader> kVersions = const [
240 const bindings.StructDataHeader(32, 0) 247 const bindings.StructDataHeader(32, 0)
241 ]; 248 ];
242 int offset = 0; 249 int offset = 0;
243 String oldText = null; 250 String oldText = null;
244 String newText = null; 251 String newText = null;
245 252
246 CorrectionData() : super(kVersions.last.size); 253 CorrectionData() : super(kVersions.last.size);
247 254
255 CorrectionData.init(
256 int this.offset,
257 String this.oldText,
258 String this.newText
259 ) : super(kVersions.last.size);
260
248 static CorrectionData deserialize(bindings.Message message) { 261 static CorrectionData deserialize(bindings.Message message) {
249 var decoder = new bindings.Decoder(message); 262 var decoder = new bindings.Decoder(message);
250 var result = decode(decoder); 263 var result = decode(decoder);
251 if (decoder.excessHandles != null) { 264 if (decoder.excessHandles != null) {
252 decoder.excessHandles.forEach((h) => h.close()); 265 decoder.excessHandles.forEach((h) => h.close());
253 } 266 }
254 return result; 267 return result;
255 } 268 }
256 269
257 static CorrectionData decode(bindings.Decoder decoder0) { 270 static CorrectionData decode(bindings.Decoder decoder0) {
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
336 349
337 350
338 class _KeyboardClientCommitCompletionParams extends bindings.Struct { 351 class _KeyboardClientCommitCompletionParams extends bindings.Struct {
339 static const List<bindings.StructDataHeader> kVersions = const [ 352 static const List<bindings.StructDataHeader> kVersions = const [
340 const bindings.StructDataHeader(16, 0) 353 const bindings.StructDataHeader(16, 0)
341 ]; 354 ];
342 CompletionData completion = null; 355 CompletionData completion = null;
343 356
344 _KeyboardClientCommitCompletionParams() : super(kVersions.last.size); 357 _KeyboardClientCommitCompletionParams() : super(kVersions.last.size);
345 358
359 _KeyboardClientCommitCompletionParams.init(
360 CompletionData this.completion
361 ) : super(kVersions.last.size);
362
346 static _KeyboardClientCommitCompletionParams deserialize(bindings.Message mess age) { 363 static _KeyboardClientCommitCompletionParams deserialize(bindings.Message mess age) {
347 var decoder = new bindings.Decoder(message); 364 var decoder = new bindings.Decoder(message);
348 var result = decode(decoder); 365 var result = decode(decoder);
349 if (decoder.excessHandles != null) { 366 if (decoder.excessHandles != null) {
350 decoder.excessHandles.forEach((h) => h.close()); 367 decoder.excessHandles.forEach((h) => h.close());
351 } 368 }
352 return result; 369 return result;
353 } 370 }
354 371
355 static _KeyboardClientCommitCompletionParams decode(bindings.Decoder decoder0) { 372 static _KeyboardClientCommitCompletionParams decode(bindings.Decoder decoder0) {
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
409 426
410 427
411 class _KeyboardClientCommitCorrectionParams extends bindings.Struct { 428 class _KeyboardClientCommitCorrectionParams extends bindings.Struct {
412 static const List<bindings.StructDataHeader> kVersions = const [ 429 static const List<bindings.StructDataHeader> kVersions = const [
413 const bindings.StructDataHeader(16, 0) 430 const bindings.StructDataHeader(16, 0)
414 ]; 431 ];
415 CorrectionData correction = null; 432 CorrectionData correction = null;
416 433
417 _KeyboardClientCommitCorrectionParams() : super(kVersions.last.size); 434 _KeyboardClientCommitCorrectionParams() : super(kVersions.last.size);
418 435
436 _KeyboardClientCommitCorrectionParams.init(
437 CorrectionData this.correction
438 ) : super(kVersions.last.size);
439
419 static _KeyboardClientCommitCorrectionParams deserialize(bindings.Message mess age) { 440 static _KeyboardClientCommitCorrectionParams deserialize(bindings.Message mess age) {
420 var decoder = new bindings.Decoder(message); 441 var decoder = new bindings.Decoder(message);
421 var result = decode(decoder); 442 var result = decode(decoder);
422 if (decoder.excessHandles != null) { 443 if (decoder.excessHandles != null) {
423 decoder.excessHandles.forEach((h) => h.close()); 444 decoder.excessHandles.forEach((h) => h.close());
424 } 445 }
425 return result; 446 return result;
426 } 447 }
427 448
428 static _KeyboardClientCommitCorrectionParams decode(bindings.Decoder decoder0) { 449 static _KeyboardClientCommitCorrectionParams decode(bindings.Decoder decoder0) {
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
483 504
484 class _KeyboardClientCommitTextParams extends bindings.Struct { 505 class _KeyboardClientCommitTextParams extends bindings.Struct {
485 static const List<bindings.StructDataHeader> kVersions = const [ 506 static const List<bindings.StructDataHeader> kVersions = const [
486 const bindings.StructDataHeader(24, 0) 507 const bindings.StructDataHeader(24, 0)
487 ]; 508 ];
488 String text = null; 509 String text = null;
489 int newCursorPosition = 0; 510 int newCursorPosition = 0;
490 511
491 _KeyboardClientCommitTextParams() : super(kVersions.last.size); 512 _KeyboardClientCommitTextParams() : super(kVersions.last.size);
492 513
514 _KeyboardClientCommitTextParams.init(
515 String this.text,
516 int this.newCursorPosition
517 ) : super(kVersions.last.size);
518
493 static _KeyboardClientCommitTextParams deserialize(bindings.Message message) { 519 static _KeyboardClientCommitTextParams deserialize(bindings.Message message) {
494 var decoder = new bindings.Decoder(message); 520 var decoder = new bindings.Decoder(message);
495 var result = decode(decoder); 521 var result = decode(decoder);
496 if (decoder.excessHandles != null) { 522 if (decoder.excessHandles != null) {
497 decoder.excessHandles.forEach((h) => h.close()); 523 decoder.excessHandles.forEach((h) => h.close());
498 } 524 }
499 return result; 525 return result;
500 } 526 }
501 527
502 static _KeyboardClientCommitTextParams decode(bindings.Decoder decoder0) { 528 static _KeyboardClientCommitTextParams decode(bindings.Decoder decoder0) {
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
569 595
570 class _KeyboardClientDeleteSurroundingTextParams extends bindings.Struct { 596 class _KeyboardClientDeleteSurroundingTextParams extends bindings.Struct {
571 static const List<bindings.StructDataHeader> kVersions = const [ 597 static const List<bindings.StructDataHeader> kVersions = const [
572 const bindings.StructDataHeader(16, 0) 598 const bindings.StructDataHeader(16, 0)
573 ]; 599 ];
574 int beforeLength = 0; 600 int beforeLength = 0;
575 int afterLength = 0; 601 int afterLength = 0;
576 602
577 _KeyboardClientDeleteSurroundingTextParams() : super(kVersions.last.size); 603 _KeyboardClientDeleteSurroundingTextParams() : super(kVersions.last.size);
578 604
605 _KeyboardClientDeleteSurroundingTextParams.init(
606 int this.beforeLength,
607 int this.afterLength
608 ) : super(kVersions.last.size);
609
579 static _KeyboardClientDeleteSurroundingTextParams deserialize(bindings.Message message) { 610 static _KeyboardClientDeleteSurroundingTextParams deserialize(bindings.Message message) {
580 var decoder = new bindings.Decoder(message); 611 var decoder = new bindings.Decoder(message);
581 var result = decode(decoder); 612 var result = decode(decoder);
582 if (decoder.excessHandles != null) { 613 if (decoder.excessHandles != null) {
583 decoder.excessHandles.forEach((h) => h.close()); 614 decoder.excessHandles.forEach((h) => h.close());
584 } 615 }
585 return result; 616 return result;
586 } 617 }
587 618
588 static _KeyboardClientDeleteSurroundingTextParams decode(bindings.Decoder deco der0) { 619 static _KeyboardClientDeleteSurroundingTextParams decode(bindings.Decoder deco der0) {
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
655 686
656 class _KeyboardClientSetComposingRegionParams extends bindings.Struct { 687 class _KeyboardClientSetComposingRegionParams extends bindings.Struct {
657 static const List<bindings.StructDataHeader> kVersions = const [ 688 static const List<bindings.StructDataHeader> kVersions = const [
658 const bindings.StructDataHeader(16, 0) 689 const bindings.StructDataHeader(16, 0)
659 ]; 690 ];
660 int start = 0; 691 int start = 0;
661 int end = 0; 692 int end = 0;
662 693
663 _KeyboardClientSetComposingRegionParams() : super(kVersions.last.size); 694 _KeyboardClientSetComposingRegionParams() : super(kVersions.last.size);
664 695
696 _KeyboardClientSetComposingRegionParams.init(
697 int this.start,
698 int this.end
699 ) : super(kVersions.last.size);
700
665 static _KeyboardClientSetComposingRegionParams deserialize(bindings.Message me ssage) { 701 static _KeyboardClientSetComposingRegionParams deserialize(bindings.Message me ssage) {
666 var decoder = new bindings.Decoder(message); 702 var decoder = new bindings.Decoder(message);
667 var result = decode(decoder); 703 var result = decode(decoder);
668 if (decoder.excessHandles != null) { 704 if (decoder.excessHandles != null) {
669 decoder.excessHandles.forEach((h) => h.close()); 705 decoder.excessHandles.forEach((h) => h.close());
670 } 706 }
671 return result; 707 return result;
672 } 708 }
673 709
674 static _KeyboardClientSetComposingRegionParams decode(bindings.Decoder decoder 0) { 710 static _KeyboardClientSetComposingRegionParams decode(bindings.Decoder decoder 0) {
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
741 777
742 class _KeyboardClientSetComposingTextParams extends bindings.Struct { 778 class _KeyboardClientSetComposingTextParams extends bindings.Struct {
743 static const List<bindings.StructDataHeader> kVersions = const [ 779 static const List<bindings.StructDataHeader> kVersions = const [
744 const bindings.StructDataHeader(24, 0) 780 const bindings.StructDataHeader(24, 0)
745 ]; 781 ];
746 String text = null; 782 String text = null;
747 int newCursorPosition = 0; 783 int newCursorPosition = 0;
748 784
749 _KeyboardClientSetComposingTextParams() : super(kVersions.last.size); 785 _KeyboardClientSetComposingTextParams() : super(kVersions.last.size);
750 786
787 _KeyboardClientSetComposingTextParams.init(
788 String this.text,
789 int this.newCursorPosition
790 ) : super(kVersions.last.size);
791
751 static _KeyboardClientSetComposingTextParams deserialize(bindings.Message mess age) { 792 static _KeyboardClientSetComposingTextParams deserialize(bindings.Message mess age) {
752 var decoder = new bindings.Decoder(message); 793 var decoder = new bindings.Decoder(message);
753 var result = decode(decoder); 794 var result = decode(decoder);
754 if (decoder.excessHandles != null) { 795 if (decoder.excessHandles != null) {
755 decoder.excessHandles.forEach((h) => h.close()); 796 decoder.excessHandles.forEach((h) => h.close());
756 } 797 }
757 return result; 798 return result;
758 } 799 }
759 800
760 static _KeyboardClientSetComposingTextParams decode(bindings.Decoder decoder0) { 801 static _KeyboardClientSetComposingTextParams decode(bindings.Decoder decoder0) {
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
827 868
828 class _KeyboardClientSetSelectionParams extends bindings.Struct { 869 class _KeyboardClientSetSelectionParams extends bindings.Struct {
829 static const List<bindings.StructDataHeader> kVersions = const [ 870 static const List<bindings.StructDataHeader> kVersions = const [
830 const bindings.StructDataHeader(16, 0) 871 const bindings.StructDataHeader(16, 0)
831 ]; 872 ];
832 int start = 0; 873 int start = 0;
833 int end = 0; 874 int end = 0;
834 875
835 _KeyboardClientSetSelectionParams() : super(kVersions.last.size); 876 _KeyboardClientSetSelectionParams() : super(kVersions.last.size);
836 877
878 _KeyboardClientSetSelectionParams.init(
879 int this.start,
880 int this.end
881 ) : super(kVersions.last.size);
882
837 static _KeyboardClientSetSelectionParams deserialize(bindings.Message message) { 883 static _KeyboardClientSetSelectionParams deserialize(bindings.Message message) {
838 var decoder = new bindings.Decoder(message); 884 var decoder = new bindings.Decoder(message);
839 var result = decode(decoder); 885 var result = decode(decoder);
840 if (decoder.excessHandles != null) { 886 if (decoder.excessHandles != null) {
841 decoder.excessHandles.forEach((h) => h.close()); 887 decoder.excessHandles.forEach((h) => h.close());
842 } 888 }
843 return result; 889 return result;
844 } 890 }
845 891
846 static _KeyboardClientSetSelectionParams decode(bindings.Decoder decoder0) { 892 static _KeyboardClientSetSelectionParams decode(bindings.Decoder decoder0) {
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
912 958
913 959
914 class _KeyboardClientSubmitParams extends bindings.Struct { 960 class _KeyboardClientSubmitParams extends bindings.Struct {
915 static const List<bindings.StructDataHeader> kVersions = const [ 961 static const List<bindings.StructDataHeader> kVersions = const [
916 const bindings.StructDataHeader(16, 0) 962 const bindings.StructDataHeader(16, 0)
917 ]; 963 ];
918 SubmitAction action = null; 964 SubmitAction action = null;
919 965
920 _KeyboardClientSubmitParams() : super(kVersions.last.size); 966 _KeyboardClientSubmitParams() : super(kVersions.last.size);
921 967
968 _KeyboardClientSubmitParams.init(
969 SubmitAction this.action
970 ) : super(kVersions.last.size);
971
922 static _KeyboardClientSubmitParams deserialize(bindings.Message message) { 972 static _KeyboardClientSubmitParams deserialize(bindings.Message message) {
923 var decoder = new bindings.Decoder(message); 973 var decoder = new bindings.Decoder(message);
924 var result = decode(decoder); 974 var result = decode(decoder);
925 if (decoder.excessHandles != null) { 975 if (decoder.excessHandles != null) {
926 decoder.excessHandles.forEach((h) => h.close()); 976 decoder.excessHandles.forEach((h) => h.close());
927 } 977 }
928 return result; 978 return result;
929 } 979 }
930 980
931 static _KeyboardClientSubmitParams decode(bindings.Decoder decoder0) { 981 static _KeyboardClientSubmitParams decode(bindings.Decoder decoder0) {
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
989 1039
990 class _KeyboardServiceShowParams extends bindings.Struct { 1040 class _KeyboardServiceShowParams extends bindings.Struct {
991 static const List<bindings.StructDataHeader> kVersions = const [ 1041 static const List<bindings.StructDataHeader> kVersions = const [
992 const bindings.StructDataHeader(24, 0) 1042 const bindings.StructDataHeader(24, 0)
993 ]; 1043 ];
994 KeyboardClientInterface client = null; 1044 KeyboardClientInterface client = null;
995 KeyboardType type = null; 1045 KeyboardType type = null;
996 1046
997 _KeyboardServiceShowParams() : super(kVersions.last.size); 1047 _KeyboardServiceShowParams() : super(kVersions.last.size);
998 1048
1049 _KeyboardServiceShowParams.init(
1050 KeyboardClientInterface this.client,
1051 KeyboardType this.type
1052 ) : super(kVersions.last.size);
1053
999 static _KeyboardServiceShowParams deserialize(bindings.Message message) { 1054 static _KeyboardServiceShowParams deserialize(bindings.Message message) {
1000 var decoder = new bindings.Decoder(message); 1055 var decoder = new bindings.Decoder(message);
1001 var result = decode(decoder); 1056 var result = decode(decoder);
1002 if (decoder.excessHandles != null) { 1057 if (decoder.excessHandles != null) {
1003 decoder.excessHandles.forEach((h) => h.close()); 1058 decoder.excessHandles.forEach((h) => h.close());
1004 } 1059 }
1005 return result; 1060 return result;
1006 } 1061 }
1007 1062
1008 static _KeyboardServiceShowParams decode(bindings.Decoder decoder0) { 1063 static _KeyboardServiceShowParams decode(bindings.Decoder decoder0) {
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
1075 } 1130 }
1076 1131
1077 1132
1078 class _KeyboardServiceShowByRequestParams extends bindings.Struct { 1133 class _KeyboardServiceShowByRequestParams extends bindings.Struct {
1079 static const List<bindings.StructDataHeader> kVersions = const [ 1134 static const List<bindings.StructDataHeader> kVersions = const [
1080 const bindings.StructDataHeader(8, 0) 1135 const bindings.StructDataHeader(8, 0)
1081 ]; 1136 ];
1082 1137
1083 _KeyboardServiceShowByRequestParams() : super(kVersions.last.size); 1138 _KeyboardServiceShowByRequestParams() : super(kVersions.last.size);
1084 1139
1140 _KeyboardServiceShowByRequestParams.init(
1141 ) : super(kVersions.last.size);
1142
1085 static _KeyboardServiceShowByRequestParams deserialize(bindings.Message messag e) { 1143 static _KeyboardServiceShowByRequestParams deserialize(bindings.Message messag e) {
1086 var decoder = new bindings.Decoder(message); 1144 var decoder = new bindings.Decoder(message);
1087 var result = decode(decoder); 1145 var result = decode(decoder);
1088 if (decoder.excessHandles != null) { 1146 if (decoder.excessHandles != null) {
1089 decoder.excessHandles.forEach((h) => h.close()); 1147 decoder.excessHandles.forEach((h) => h.close());
1090 } 1148 }
1091 return result; 1149 return result;
1092 } 1150 }
1093 1151
1094 static _KeyboardServiceShowByRequestParams decode(bindings.Decoder decoder0) { 1152 static _KeyboardServiceShowByRequestParams decode(bindings.Decoder decoder0) {
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
1133 } 1191 }
1134 1192
1135 1193
1136 class _KeyboardServiceHideParams extends bindings.Struct { 1194 class _KeyboardServiceHideParams extends bindings.Struct {
1137 static const List<bindings.StructDataHeader> kVersions = const [ 1195 static const List<bindings.StructDataHeader> kVersions = const [
1138 const bindings.StructDataHeader(8, 0) 1196 const bindings.StructDataHeader(8, 0)
1139 ]; 1197 ];
1140 1198
1141 _KeyboardServiceHideParams() : super(kVersions.last.size); 1199 _KeyboardServiceHideParams() : super(kVersions.last.size);
1142 1200
1201 _KeyboardServiceHideParams.init(
1202 ) : super(kVersions.last.size);
1203
1143 static _KeyboardServiceHideParams deserialize(bindings.Message message) { 1204 static _KeyboardServiceHideParams deserialize(bindings.Message message) {
1144 var decoder = new bindings.Decoder(message); 1205 var decoder = new bindings.Decoder(message);
1145 var result = decode(decoder); 1206 var result = decode(decoder);
1146 if (decoder.excessHandles != null) { 1207 if (decoder.excessHandles != null) {
1147 decoder.excessHandles.forEach((h) => h.close()); 1208 decoder.excessHandles.forEach((h) => h.close());
1148 } 1209 }
1149 return result; 1210 return result;
1150 } 1211 }
1151 1212
1152 static _KeyboardServiceHideParams decode(bindings.Decoder decoder0) { 1213 static _KeyboardServiceHideParams decode(bindings.Decoder decoder0) {
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
1192 1253
1193 1254
1194 class _KeyboardServiceSetTextParams extends bindings.Struct { 1255 class _KeyboardServiceSetTextParams extends bindings.Struct {
1195 static const List<bindings.StructDataHeader> kVersions = const [ 1256 static const List<bindings.StructDataHeader> kVersions = const [
1196 const bindings.StructDataHeader(16, 0) 1257 const bindings.StructDataHeader(16, 0)
1197 ]; 1258 ];
1198 String text = null; 1259 String text = null;
1199 1260
1200 _KeyboardServiceSetTextParams() : super(kVersions.last.size); 1261 _KeyboardServiceSetTextParams() : super(kVersions.last.size);
1201 1262
1263 _KeyboardServiceSetTextParams.init(
1264 String this.text
1265 ) : super(kVersions.last.size);
1266
1202 static _KeyboardServiceSetTextParams deserialize(bindings.Message message) { 1267 static _KeyboardServiceSetTextParams deserialize(bindings.Message message) {
1203 var decoder = new bindings.Decoder(message); 1268 var decoder = new bindings.Decoder(message);
1204 var result = decode(decoder); 1269 var result = decode(decoder);
1205 if (decoder.excessHandles != null) { 1270 if (decoder.excessHandles != null) {
1206 decoder.excessHandles.forEach((h) => h.close()); 1271 decoder.excessHandles.forEach((h) => h.close());
1207 } 1272 }
1208 return result; 1273 return result;
1209 } 1274 }
1210 1275
1211 static _KeyboardServiceSetTextParams decode(bindings.Decoder decoder0) { 1276 static _KeyboardServiceSetTextParams decode(bindings.Decoder decoder0) {
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
1265 1330
1266 class _KeyboardServiceSetSelectionParams extends bindings.Struct { 1331 class _KeyboardServiceSetSelectionParams extends bindings.Struct {
1267 static const List<bindings.StructDataHeader> kVersions = const [ 1332 static const List<bindings.StructDataHeader> kVersions = const [
1268 const bindings.StructDataHeader(16, 0) 1333 const bindings.StructDataHeader(16, 0)
1269 ]; 1334 ];
1270 int start = 0; 1335 int start = 0;
1271 int end = 0; 1336 int end = 0;
1272 1337
1273 _KeyboardServiceSetSelectionParams() : super(kVersions.last.size); 1338 _KeyboardServiceSetSelectionParams() : super(kVersions.last.size);
1274 1339
1340 _KeyboardServiceSetSelectionParams.init(
1341 int this.start,
1342 int this.end
1343 ) : super(kVersions.last.size);
1344
1275 static _KeyboardServiceSetSelectionParams deserialize(bindings.Message message ) { 1345 static _KeyboardServiceSetSelectionParams deserialize(bindings.Message message ) {
1276 var decoder = new bindings.Decoder(message); 1346 var decoder = new bindings.Decoder(message);
1277 var result = decode(decoder); 1347 var result = decode(decoder);
1278 if (decoder.excessHandles != null) { 1348 if (decoder.excessHandles != null) {
1279 decoder.excessHandles.forEach((h) => h.close()); 1349 decoder.excessHandles.forEach((h) => h.close());
1280 } 1350 }
1281 return result; 1351 return result;
1282 } 1352 }
1283 1353
1284 static _KeyboardServiceSetSelectionParams decode(bindings.Decoder decoder0) { 1354 static _KeyboardServiceSetSelectionParams decode(bindings.Decoder decoder0) {
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
1351 1421
1352 class _KeyboardServiceFactoryCreateKeyboardServiceParams extends bindings.Struct { 1422 class _KeyboardServiceFactoryCreateKeyboardServiceParams extends bindings.Struct {
1353 static const List<bindings.StructDataHeader> kVersions = const [ 1423 static const List<bindings.StructDataHeader> kVersions = const [
1354 const bindings.StructDataHeader(16, 0) 1424 const bindings.StructDataHeader(16, 0)
1355 ]; 1425 ];
1356 native_viewport_event_dispatcher_mojom.NativeViewportEventDispatcherInterfaceR equest keyEventDispatcher = null; 1426 native_viewport_event_dispatcher_mojom.NativeViewportEventDispatcherInterfaceR equest keyEventDispatcher = null;
1357 KeyboardServiceInterfaceRequest serviceRequest = null; 1427 KeyboardServiceInterfaceRequest serviceRequest = null;
1358 1428
1359 _KeyboardServiceFactoryCreateKeyboardServiceParams() : super(kVersions.last.si ze); 1429 _KeyboardServiceFactoryCreateKeyboardServiceParams() : super(kVersions.last.si ze);
1360 1430
1431 _KeyboardServiceFactoryCreateKeyboardServiceParams.init(
1432 native_viewport_event_dispatcher_mojom.NativeViewportEventDispatcherInterfac eRequest this.keyEventDispatcher,
1433 KeyboardServiceInterfaceRequest this.serviceRequest
1434 ) : super(kVersions.last.size);
1435
1361 static _KeyboardServiceFactoryCreateKeyboardServiceParams deserialize(bindings .Message message) { 1436 static _KeyboardServiceFactoryCreateKeyboardServiceParams deserialize(bindings .Message message) {
1362 var decoder = new bindings.Decoder(message); 1437 var decoder = new bindings.Decoder(message);
1363 var result = decode(decoder); 1438 var result = decode(decoder);
1364 if (decoder.excessHandles != null) { 1439 if (decoder.excessHandles != null) {
1365 decoder.excessHandles.forEach((h) => h.close()); 1440 decoder.excessHandles.forEach((h) => h.close());
1366 } 1441 }
1367 return result; 1442 return result;
1368 } 1443 }
1369 1444
1370 static _KeyboardServiceFactoryCreateKeyboardServiceParams decode(bindings.Deco der decoder0) { 1445 static _KeyboardServiceFactoryCreateKeyboardServiceParams decode(bindings.Deco der decoder0) {
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
1435 const int _keyboardClientMethodCommitCompletionName = 0; 1510 const int _keyboardClientMethodCommitCompletionName = 0;
1436 const int _keyboardClientMethodCommitCorrectionName = 1; 1511 const int _keyboardClientMethodCommitCorrectionName = 1;
1437 const int _keyboardClientMethodCommitTextName = 2; 1512 const int _keyboardClientMethodCommitTextName = 2;
1438 const int _keyboardClientMethodDeleteSurroundingTextName = 3; 1513 const int _keyboardClientMethodDeleteSurroundingTextName = 3;
1439 const int _keyboardClientMethodSetComposingRegionName = 4; 1514 const int _keyboardClientMethodSetComposingRegionName = 4;
1440 const int _keyboardClientMethodSetComposingTextName = 5; 1515 const int _keyboardClientMethodSetComposingTextName = 5;
1441 const int _keyboardClientMethodSetSelectionName = 6; 1516 const int _keyboardClientMethodSetSelectionName = 6;
1442 const int _keyboardClientMethodSubmitName = 7; 1517 const int _keyboardClientMethodSubmitName = 7;
1443 1518
1444 class _KeyboardClientServiceDescription implements service_describer.ServiceDesc ription { 1519 class _KeyboardClientServiceDescription implements service_describer.ServiceDesc ription {
1445 dynamic getTopLevelInterface([Function responseFactory]) => 1520 void getTopLevelInterface(Function responder) {
1446 responseFactory(null); 1521 responder(null);
1522 }
1447 1523
1448 dynamic getTypeDefinition(String typeKey, [Function responseFactory]) => 1524 void getTypeDefinition(String typeKey, Function responder) {
1449 responseFactory(null); 1525 responder(null);
1526 }
1450 1527
1451 dynamic getAllTypeDefinitions([Function responseFactory]) => 1528 void getAllTypeDefinitions(Function responder) {
1452 responseFactory(null); 1529 responder(null);
1530 }
1453 } 1531 }
1454 1532
1455 abstract class KeyboardClient { 1533 abstract class KeyboardClient {
1456 static const String serviceName = null; 1534 static const String serviceName = null;
1457 1535
1458 static service_describer.ServiceDescription _cachedServiceDescription; 1536 static service_describer.ServiceDescription _cachedServiceDescription;
1459 static service_describer.ServiceDescription get serviceDescription { 1537 static service_describer.ServiceDescription get serviceDescription {
1460 if (_cachedServiceDescription == null) { 1538 if (_cachedServiceDescription == null) {
1461 _cachedServiceDescription = new _KeyboardClientServiceDescription(); 1539 _cachedServiceDescription = new _KeyboardClientServiceDescription();
1462 } 1540 }
(...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after
1702 : super.fromHandle(handle, autoBegin: impl != null) { 1780 : super.fromHandle(handle, autoBegin: impl != null) {
1703 _impl = impl; 1781 _impl = impl;
1704 } 1782 }
1705 1783
1706 _KeyboardClientStubControl.unbound([this._impl]) : super.unbound(); 1784 _KeyboardClientStubControl.unbound([this._impl]) : super.unbound();
1707 1785
1708 String get serviceName => KeyboardClient.serviceName; 1786 String get serviceName => KeyboardClient.serviceName;
1709 1787
1710 1788
1711 1789
1712 dynamic handleMessage(bindings.ServiceMessage message) { 1790 void handleMessage(bindings.ServiceMessage message) {
1713 if (bindings.ControlMessageHandler.isControlMessage(message)) { 1791 if (bindings.ControlMessageHandler.isControlMessage(message)) {
1714 return bindings.ControlMessageHandler.handleMessage(this, 1792 bindings.ControlMessageHandler.handleMessage(
1715 0, 1793 this, 0, message);
1716 message); 1794 return;
1717 } 1795 }
1718 if (_impl == null) { 1796 if (_impl == null) {
1719 throw new core.MojoApiError("$this has no implementation set"); 1797 throw new core.MojoApiError("$this has no implementation set");
1720 } 1798 }
1721 switch (message.header.type) { 1799 switch (message.header.type) {
1722 case _keyboardClientMethodCommitCompletionName: 1800 case _keyboardClientMethodCommitCompletionName:
1723 var params = _KeyboardClientCommitCompletionParams.deserialize( 1801 var params = _KeyboardClientCommitCompletionParams.deserialize(
1724 message.payload); 1802 message.payload);
1725 _impl.commitCompletion(params.completion); 1803 _impl.commitCompletion(params.completion);
1726 break; 1804 break;
(...skipping 29 matching lines...) Expand all
1756 break; 1834 break;
1757 case _keyboardClientMethodSubmitName: 1835 case _keyboardClientMethodSubmitName:
1758 var params = _KeyboardClientSubmitParams.deserialize( 1836 var params = _KeyboardClientSubmitParams.deserialize(
1759 message.payload); 1837 message.payload);
1760 _impl.submit(params.action); 1838 _impl.submit(params.action);
1761 break; 1839 break;
1762 default: 1840 default:
1763 throw new bindings.MojoCodecError("Unexpected message name"); 1841 throw new bindings.MojoCodecError("Unexpected message name");
1764 break; 1842 break;
1765 } 1843 }
1766 return null;
1767 } 1844 }
1768 1845
1769 KeyboardClient get impl => _impl; 1846 KeyboardClient get impl => _impl;
1770 set impl(KeyboardClient d) { 1847 set impl(KeyboardClient d) {
1771 if (d == null) { 1848 if (d == null) {
1772 throw new core.MojoApiError("$this: Cannot set a null implementation"); 1849 throw new core.MojoApiError("$this: Cannot set a null implementation");
1773 } 1850 }
1774 if (isBound && (_impl == null)) { 1851 if (isBound && (_impl == null)) {
1775 beginHandlingEvents(); 1852 beginHandlingEvents();
1776 } 1853 }
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
1843 } 1920 }
1844 } 1921 }
1845 1922
1846 const int _keyboardServiceMethodShowName = 0; 1923 const int _keyboardServiceMethodShowName = 0;
1847 const int _keyboardServiceMethodShowByRequestName = 1; 1924 const int _keyboardServiceMethodShowByRequestName = 1;
1848 const int _keyboardServiceMethodHideName = 2; 1925 const int _keyboardServiceMethodHideName = 2;
1849 const int _keyboardServiceMethodSetTextName = 3; 1926 const int _keyboardServiceMethodSetTextName = 3;
1850 const int _keyboardServiceMethodSetSelectionName = 4; 1927 const int _keyboardServiceMethodSetSelectionName = 4;
1851 1928
1852 class _KeyboardServiceServiceDescription implements service_describer.ServiceDes cription { 1929 class _KeyboardServiceServiceDescription implements service_describer.ServiceDes cription {
1853 dynamic getTopLevelInterface([Function responseFactory]) => 1930 void getTopLevelInterface(Function responder) {
1854 responseFactory(null); 1931 responder(null);
1932 }
1855 1933
1856 dynamic getTypeDefinition(String typeKey, [Function responseFactory]) => 1934 void getTypeDefinition(String typeKey, Function responder) {
1857 responseFactory(null); 1935 responder(null);
1936 }
1858 1937
1859 dynamic getAllTypeDefinitions([Function responseFactory]) => 1938 void getAllTypeDefinitions(Function responder) {
1860 responseFactory(null); 1939 responder(null);
1940 }
1861 } 1941 }
1862 1942
1863 abstract class KeyboardService { 1943 abstract class KeyboardService {
1864 static const String serviceName = "keyboard::KeyboardService"; 1944 static const String serviceName = "keyboard::KeyboardService";
1865 1945
1866 static service_describer.ServiceDescription _cachedServiceDescription; 1946 static service_describer.ServiceDescription _cachedServiceDescription;
1867 static service_describer.ServiceDescription get serviceDescription { 1947 static service_describer.ServiceDescription get serviceDescription {
1868 if (_cachedServiceDescription == null) { 1948 if (_cachedServiceDescription == null) {
1869 _cachedServiceDescription = new _KeyboardServiceServiceDescription(); 1949 _cachedServiceDescription = new _KeyboardServiceServiceDescription();
1870 } 1950 }
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after
2060 : super.fromHandle(handle, autoBegin: impl != null) { 2140 : super.fromHandle(handle, autoBegin: impl != null) {
2061 _impl = impl; 2141 _impl = impl;
2062 } 2142 }
2063 2143
2064 _KeyboardServiceStubControl.unbound([this._impl]) : super.unbound(); 2144 _KeyboardServiceStubControl.unbound([this._impl]) : super.unbound();
2065 2145
2066 String get serviceName => KeyboardService.serviceName; 2146 String get serviceName => KeyboardService.serviceName;
2067 2147
2068 2148
2069 2149
2070 dynamic handleMessage(bindings.ServiceMessage message) { 2150 void handleMessage(bindings.ServiceMessage message) {
2071 if (bindings.ControlMessageHandler.isControlMessage(message)) { 2151 if (bindings.ControlMessageHandler.isControlMessage(message)) {
2072 return bindings.ControlMessageHandler.handleMessage(this, 2152 bindings.ControlMessageHandler.handleMessage(
2073 0, 2153 this, 0, message);
2074 message); 2154 return;
2075 } 2155 }
2076 if (_impl == null) { 2156 if (_impl == null) {
2077 throw new core.MojoApiError("$this has no implementation set"); 2157 throw new core.MojoApiError("$this has no implementation set");
2078 } 2158 }
2079 switch (message.header.type) { 2159 switch (message.header.type) {
2080 case _keyboardServiceMethodShowName: 2160 case _keyboardServiceMethodShowName:
2081 var params = _KeyboardServiceShowParams.deserialize( 2161 var params = _KeyboardServiceShowParams.deserialize(
2082 message.payload); 2162 message.payload);
2083 _impl.show(params.client, params.type); 2163 _impl.show(params.client, params.type);
2084 break; 2164 break;
(...skipping 10 matching lines...) Expand all
2095 break; 2175 break;
2096 case _keyboardServiceMethodSetSelectionName: 2176 case _keyboardServiceMethodSetSelectionName:
2097 var params = _KeyboardServiceSetSelectionParams.deserialize( 2177 var params = _KeyboardServiceSetSelectionParams.deserialize(
2098 message.payload); 2178 message.payload);
2099 _impl.setSelection(params.start, params.end); 2179 _impl.setSelection(params.start, params.end);
2100 break; 2180 break;
2101 default: 2181 default:
2102 throw new bindings.MojoCodecError("Unexpected message name"); 2182 throw new bindings.MojoCodecError("Unexpected message name");
2103 break; 2183 break;
2104 } 2184 }
2105 return null;
2106 } 2185 }
2107 2186
2108 KeyboardService get impl => _impl; 2187 KeyboardService get impl => _impl;
2109 set impl(KeyboardService d) { 2188 set impl(KeyboardService d) {
2110 if (d == null) { 2189 if (d == null) {
2111 throw new core.MojoApiError("$this: Cannot set a null implementation"); 2190 throw new core.MojoApiError("$this: Cannot set a null implementation");
2112 } 2191 }
2113 if (isBound && (_impl == null)) { 2192 if (isBound && (_impl == null)) {
2114 beginHandlingEvents(); 2193 beginHandlingEvents();
2115 } 2194 }
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
2169 return impl.setText(text); 2248 return impl.setText(text);
2170 } 2249 }
2171 void setSelection(int start, int end) { 2250 void setSelection(int start, int end) {
2172 return impl.setSelection(start, end); 2251 return impl.setSelection(start, end);
2173 } 2252 }
2174 } 2253 }
2175 2254
2176 const int _keyboardServiceFactoryMethodCreateKeyboardServiceName = 0; 2255 const int _keyboardServiceFactoryMethodCreateKeyboardServiceName = 0;
2177 2256
2178 class _KeyboardServiceFactoryServiceDescription implements service_describer.Ser viceDescription { 2257 class _KeyboardServiceFactoryServiceDescription implements service_describer.Ser viceDescription {
2179 dynamic getTopLevelInterface([Function responseFactory]) => 2258 void getTopLevelInterface(Function responder) {
2180 responseFactory(null); 2259 responder(null);
2260 }
2181 2261
2182 dynamic getTypeDefinition(String typeKey, [Function responseFactory]) => 2262 void getTypeDefinition(String typeKey, Function responder) {
2183 responseFactory(null); 2263 responder(null);
2264 }
2184 2265
2185 dynamic getAllTypeDefinitions([Function responseFactory]) => 2266 void getAllTypeDefinitions(Function responder) {
2186 responseFactory(null); 2267 responder(null);
2268 }
2187 } 2269 }
2188 2270
2189 abstract class KeyboardServiceFactory { 2271 abstract class KeyboardServiceFactory {
2190 static const String serviceName = "keyboard::KeyboardServiceFactory"; 2272 static const String serviceName = "keyboard::KeyboardServiceFactory";
2191 2273
2192 static service_describer.ServiceDescription _cachedServiceDescription; 2274 static service_describer.ServiceDescription _cachedServiceDescription;
2193 static service_describer.ServiceDescription get serviceDescription { 2275 static service_describer.ServiceDescription get serviceDescription {
2194 if (_cachedServiceDescription == null) { 2276 if (_cachedServiceDescription == null) {
2195 _cachedServiceDescription = new _KeyboardServiceFactoryServiceDescription( ); 2277 _cachedServiceDescription = new _KeyboardServiceFactoryServiceDescription( );
2196 } 2278 }
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
2327 : super.fromHandle(handle, autoBegin: impl != null) { 2409 : super.fromHandle(handle, autoBegin: impl != null) {
2328 _impl = impl; 2410 _impl = impl;
2329 } 2411 }
2330 2412
2331 _KeyboardServiceFactoryStubControl.unbound([this._impl]) : super.unbound(); 2413 _KeyboardServiceFactoryStubControl.unbound([this._impl]) : super.unbound();
2332 2414
2333 String get serviceName => KeyboardServiceFactory.serviceName; 2415 String get serviceName => KeyboardServiceFactory.serviceName;
2334 2416
2335 2417
2336 2418
2337 dynamic handleMessage(bindings.ServiceMessage message) { 2419 void handleMessage(bindings.ServiceMessage message) {
2338 if (bindings.ControlMessageHandler.isControlMessage(message)) { 2420 if (bindings.ControlMessageHandler.isControlMessage(message)) {
2339 return bindings.ControlMessageHandler.handleMessage(this, 2421 bindings.ControlMessageHandler.handleMessage(
2340 0, 2422 this, 0, message);
2341 message); 2423 return;
2342 } 2424 }
2343 if (_impl == null) { 2425 if (_impl == null) {
2344 throw new core.MojoApiError("$this has no implementation set"); 2426 throw new core.MojoApiError("$this has no implementation set");
2345 } 2427 }
2346 switch (message.header.type) { 2428 switch (message.header.type) {
2347 case _keyboardServiceFactoryMethodCreateKeyboardServiceName: 2429 case _keyboardServiceFactoryMethodCreateKeyboardServiceName:
2348 var params = _KeyboardServiceFactoryCreateKeyboardServiceParams.deserial ize( 2430 var params = _KeyboardServiceFactoryCreateKeyboardServiceParams.deserial ize(
2349 message.payload); 2431 message.payload);
2350 _impl.createKeyboardService(params.keyEventDispatcher, params.serviceReq uest); 2432 _impl.createKeyboardService(params.keyEventDispatcher, params.serviceReq uest);
2351 break; 2433 break;
2352 default: 2434 default:
2353 throw new bindings.MojoCodecError("Unexpected message name"); 2435 throw new bindings.MojoCodecError("Unexpected message name");
2354 break; 2436 break;
2355 } 2437 }
2356 return null;
2357 } 2438 }
2358 2439
2359 KeyboardServiceFactory get impl => _impl; 2440 KeyboardServiceFactory get impl => _impl;
2360 set impl(KeyboardServiceFactory d) { 2441 set impl(KeyboardServiceFactory d) {
2361 if (d == null) { 2442 if (d == null) {
2362 throw new core.MojoApiError("$this: Cannot set a null implementation"); 2443 throw new core.MojoApiError("$this: Cannot set a null implementation");
2363 } 2444 }
2364 if (isBound && (_impl == null)) { 2445 if (isBound && (_impl == null)) {
2365 beginHandlingEvents(); 2446 beginHandlingEvents();
2366 } 2447 }
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
2407 } 2488 }
2408 2489
2409 2490
2410 void createKeyboardService(native_viewport_event_dispatcher_mojom.NativeViewpo rtEventDispatcherInterfaceRequest keyEventDispatcher, KeyboardServiceInterfaceRe quest serviceRequest) { 2491 void createKeyboardService(native_viewport_event_dispatcher_mojom.NativeViewpo rtEventDispatcherInterfaceRequest keyEventDispatcher, KeyboardServiceInterfaceRe quest serviceRequest) {
2411 return impl.createKeyboardService(keyEventDispatcher, serviceRequest); 2492 return impl.createKeyboardService(keyEventDispatcher, serviceRequest);
2412 } 2493 }
2413 } 2494 }
2414 2495
2415 2496
2416 2497
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698