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 keyboard_mojom; | 5 library keyboard_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 import 'package:mojo_services/mojo/native_viewport_event_dispatcher.mojom.dart'
as native_viewport_event_dispatcher_mojom; | 10 import 'package:mojo_services/mojo/native_viewport_event_dispatcher.mojom.dart'
as native_viewport_event_dispatcher_mojom; |
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
126 static const List<bindings.StructDataHeader> kVersions = const [ | 126 static const List<bindings.StructDataHeader> kVersions = const [ |
127 const bindings.StructDataHeader(40, 0) | 127 const bindings.StructDataHeader(40, 0) |
128 ]; | 128 ]; |
129 int id = 0; | 129 int id = 0; |
130 int position = 0; | 130 int position = 0; |
131 String text = null; | 131 String text = null; |
132 String label = null; | 132 String label = null; |
133 | 133 |
134 CompletionData() : super(kVersions.last.size); | 134 CompletionData() : super(kVersions.last.size); |
135 | 135 |
| 136 CompletionData.init( |
| 137 int this.id, |
| 138 int this.position, |
| 139 String this.text, |
| 140 String this.label |
| 141 ) : super(kVersions.last.size); |
| 142 |
136 static CompletionData deserialize(bindings.Message message) { | 143 static CompletionData deserialize(bindings.Message message) { |
137 var decoder = new bindings.Decoder(message); | 144 var decoder = new bindings.Decoder(message); |
138 var result = decode(decoder); | 145 var result = decode(decoder); |
139 if (decoder.excessHandles != null) { | 146 if (decoder.excessHandles != null) { |
140 decoder.excessHandles.forEach((h) => h.close()); | 147 decoder.excessHandles.forEach((h) => h.close()); |
141 } | 148 } |
142 return result; | 149 return result; |
143 } | 150 } |
144 | 151 |
145 static CompletionData decode(bindings.Decoder decoder0) { | 152 static CompletionData decode(bindings.Decoder decoder0) { |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
239 class CorrectionData extends bindings.Struct { | 246 class CorrectionData extends bindings.Struct { |
240 static const List<bindings.StructDataHeader> kVersions = const [ | 247 static const List<bindings.StructDataHeader> kVersions = const [ |
241 const bindings.StructDataHeader(32, 0) | 248 const bindings.StructDataHeader(32, 0) |
242 ]; | 249 ]; |
243 int offset = 0; | 250 int offset = 0; |
244 String oldText = null; | 251 String oldText = null; |
245 String newText = null; | 252 String newText = null; |
246 | 253 |
247 CorrectionData() : super(kVersions.last.size); | 254 CorrectionData() : super(kVersions.last.size); |
248 | 255 |
| 256 CorrectionData.init( |
| 257 int this.offset, |
| 258 String this.oldText, |
| 259 String this.newText |
| 260 ) : super(kVersions.last.size); |
| 261 |
249 static CorrectionData deserialize(bindings.Message message) { | 262 static CorrectionData deserialize(bindings.Message message) { |
250 var decoder = new bindings.Decoder(message); | 263 var decoder = new bindings.Decoder(message); |
251 var result = decode(decoder); | 264 var result = decode(decoder); |
252 if (decoder.excessHandles != null) { | 265 if (decoder.excessHandles != null) { |
253 decoder.excessHandles.forEach((h) => h.close()); | 266 decoder.excessHandles.forEach((h) => h.close()); |
254 } | 267 } |
255 return result; | 268 return result; |
256 } | 269 } |
257 | 270 |
258 static CorrectionData decode(bindings.Decoder decoder0) { | 271 static CorrectionData decode(bindings.Decoder decoder0) { |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
337 | 350 |
338 | 351 |
339 class _KeyboardClientCommitCompletionParams extends bindings.Struct { | 352 class _KeyboardClientCommitCompletionParams extends bindings.Struct { |
340 static const List<bindings.StructDataHeader> kVersions = const [ | 353 static const List<bindings.StructDataHeader> kVersions = const [ |
341 const bindings.StructDataHeader(16, 0) | 354 const bindings.StructDataHeader(16, 0) |
342 ]; | 355 ]; |
343 CompletionData completion = null; | 356 CompletionData completion = null; |
344 | 357 |
345 _KeyboardClientCommitCompletionParams() : super(kVersions.last.size); | 358 _KeyboardClientCommitCompletionParams() : super(kVersions.last.size); |
346 | 359 |
| 360 _KeyboardClientCommitCompletionParams.init( |
| 361 CompletionData this.completion |
| 362 ) : super(kVersions.last.size); |
| 363 |
347 static _KeyboardClientCommitCompletionParams deserialize(bindings.Message mess
age) { | 364 static _KeyboardClientCommitCompletionParams deserialize(bindings.Message mess
age) { |
348 var decoder = new bindings.Decoder(message); | 365 var decoder = new bindings.Decoder(message); |
349 var result = decode(decoder); | 366 var result = decode(decoder); |
350 if (decoder.excessHandles != null) { | 367 if (decoder.excessHandles != null) { |
351 decoder.excessHandles.forEach((h) => h.close()); | 368 decoder.excessHandles.forEach((h) => h.close()); |
352 } | 369 } |
353 return result; | 370 return result; |
354 } | 371 } |
355 | 372 |
356 static _KeyboardClientCommitCompletionParams decode(bindings.Decoder decoder0)
{ | 373 static _KeyboardClientCommitCompletionParams decode(bindings.Decoder decoder0)
{ |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
410 | 427 |
411 | 428 |
412 class _KeyboardClientCommitCorrectionParams extends bindings.Struct { | 429 class _KeyboardClientCommitCorrectionParams extends bindings.Struct { |
413 static const List<bindings.StructDataHeader> kVersions = const [ | 430 static const List<bindings.StructDataHeader> kVersions = const [ |
414 const bindings.StructDataHeader(16, 0) | 431 const bindings.StructDataHeader(16, 0) |
415 ]; | 432 ]; |
416 CorrectionData correction = null; | 433 CorrectionData correction = null; |
417 | 434 |
418 _KeyboardClientCommitCorrectionParams() : super(kVersions.last.size); | 435 _KeyboardClientCommitCorrectionParams() : super(kVersions.last.size); |
419 | 436 |
| 437 _KeyboardClientCommitCorrectionParams.init( |
| 438 CorrectionData this.correction |
| 439 ) : super(kVersions.last.size); |
| 440 |
420 static _KeyboardClientCommitCorrectionParams deserialize(bindings.Message mess
age) { | 441 static _KeyboardClientCommitCorrectionParams deserialize(bindings.Message mess
age) { |
421 var decoder = new bindings.Decoder(message); | 442 var decoder = new bindings.Decoder(message); |
422 var result = decode(decoder); | 443 var result = decode(decoder); |
423 if (decoder.excessHandles != null) { | 444 if (decoder.excessHandles != null) { |
424 decoder.excessHandles.forEach((h) => h.close()); | 445 decoder.excessHandles.forEach((h) => h.close()); |
425 } | 446 } |
426 return result; | 447 return result; |
427 } | 448 } |
428 | 449 |
429 static _KeyboardClientCommitCorrectionParams decode(bindings.Decoder decoder0)
{ | 450 static _KeyboardClientCommitCorrectionParams decode(bindings.Decoder decoder0)
{ |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
484 | 505 |
485 class _KeyboardClientCommitTextParams extends bindings.Struct { | 506 class _KeyboardClientCommitTextParams extends bindings.Struct { |
486 static const List<bindings.StructDataHeader> kVersions = const [ | 507 static const List<bindings.StructDataHeader> kVersions = const [ |
487 const bindings.StructDataHeader(24, 0) | 508 const bindings.StructDataHeader(24, 0) |
488 ]; | 509 ]; |
489 String text = null; | 510 String text = null; |
490 int newCursorPosition = 0; | 511 int newCursorPosition = 0; |
491 | 512 |
492 _KeyboardClientCommitTextParams() : super(kVersions.last.size); | 513 _KeyboardClientCommitTextParams() : super(kVersions.last.size); |
493 | 514 |
| 515 _KeyboardClientCommitTextParams.init( |
| 516 String this.text, |
| 517 int this.newCursorPosition |
| 518 ) : super(kVersions.last.size); |
| 519 |
494 static _KeyboardClientCommitTextParams deserialize(bindings.Message message) { | 520 static _KeyboardClientCommitTextParams deserialize(bindings.Message message) { |
495 var decoder = new bindings.Decoder(message); | 521 var decoder = new bindings.Decoder(message); |
496 var result = decode(decoder); | 522 var result = decode(decoder); |
497 if (decoder.excessHandles != null) { | 523 if (decoder.excessHandles != null) { |
498 decoder.excessHandles.forEach((h) => h.close()); | 524 decoder.excessHandles.forEach((h) => h.close()); |
499 } | 525 } |
500 return result; | 526 return result; |
501 } | 527 } |
502 | 528 |
503 static _KeyboardClientCommitTextParams decode(bindings.Decoder decoder0) { | 529 static _KeyboardClientCommitTextParams decode(bindings.Decoder decoder0) { |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
570 | 596 |
571 class _KeyboardClientDeleteSurroundingTextParams extends bindings.Struct { | 597 class _KeyboardClientDeleteSurroundingTextParams extends bindings.Struct { |
572 static const List<bindings.StructDataHeader> kVersions = const [ | 598 static const List<bindings.StructDataHeader> kVersions = const [ |
573 const bindings.StructDataHeader(16, 0) | 599 const bindings.StructDataHeader(16, 0) |
574 ]; | 600 ]; |
575 int beforeLength = 0; | 601 int beforeLength = 0; |
576 int afterLength = 0; | 602 int afterLength = 0; |
577 | 603 |
578 _KeyboardClientDeleteSurroundingTextParams() : super(kVersions.last.size); | 604 _KeyboardClientDeleteSurroundingTextParams() : super(kVersions.last.size); |
579 | 605 |
| 606 _KeyboardClientDeleteSurroundingTextParams.init( |
| 607 int this.beforeLength, |
| 608 int this.afterLength |
| 609 ) : super(kVersions.last.size); |
| 610 |
580 static _KeyboardClientDeleteSurroundingTextParams deserialize(bindings.Message
message) { | 611 static _KeyboardClientDeleteSurroundingTextParams deserialize(bindings.Message
message) { |
581 var decoder = new bindings.Decoder(message); | 612 var decoder = new bindings.Decoder(message); |
582 var result = decode(decoder); | 613 var result = decode(decoder); |
583 if (decoder.excessHandles != null) { | 614 if (decoder.excessHandles != null) { |
584 decoder.excessHandles.forEach((h) => h.close()); | 615 decoder.excessHandles.forEach((h) => h.close()); |
585 } | 616 } |
586 return result; | 617 return result; |
587 } | 618 } |
588 | 619 |
589 static _KeyboardClientDeleteSurroundingTextParams decode(bindings.Decoder deco
der0) { | 620 static _KeyboardClientDeleteSurroundingTextParams decode(bindings.Decoder deco
der0) { |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
656 | 687 |
657 class _KeyboardClientSetComposingRegionParams extends bindings.Struct { | 688 class _KeyboardClientSetComposingRegionParams extends bindings.Struct { |
658 static const List<bindings.StructDataHeader> kVersions = const [ | 689 static const List<bindings.StructDataHeader> kVersions = const [ |
659 const bindings.StructDataHeader(16, 0) | 690 const bindings.StructDataHeader(16, 0) |
660 ]; | 691 ]; |
661 int start = 0; | 692 int start = 0; |
662 int end = 0; | 693 int end = 0; |
663 | 694 |
664 _KeyboardClientSetComposingRegionParams() : super(kVersions.last.size); | 695 _KeyboardClientSetComposingRegionParams() : super(kVersions.last.size); |
665 | 696 |
| 697 _KeyboardClientSetComposingRegionParams.init( |
| 698 int this.start, |
| 699 int this.end |
| 700 ) : super(kVersions.last.size); |
| 701 |
666 static _KeyboardClientSetComposingRegionParams deserialize(bindings.Message me
ssage) { | 702 static _KeyboardClientSetComposingRegionParams deserialize(bindings.Message me
ssage) { |
667 var decoder = new bindings.Decoder(message); | 703 var decoder = new bindings.Decoder(message); |
668 var result = decode(decoder); | 704 var result = decode(decoder); |
669 if (decoder.excessHandles != null) { | 705 if (decoder.excessHandles != null) { |
670 decoder.excessHandles.forEach((h) => h.close()); | 706 decoder.excessHandles.forEach((h) => h.close()); |
671 } | 707 } |
672 return result; | 708 return result; |
673 } | 709 } |
674 | 710 |
675 static _KeyboardClientSetComposingRegionParams decode(bindings.Decoder decoder
0) { | 711 static _KeyboardClientSetComposingRegionParams decode(bindings.Decoder decoder
0) { |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
742 | 778 |
743 class _KeyboardClientSetComposingTextParams extends bindings.Struct { | 779 class _KeyboardClientSetComposingTextParams extends bindings.Struct { |
744 static const List<bindings.StructDataHeader> kVersions = const [ | 780 static const List<bindings.StructDataHeader> kVersions = const [ |
745 const bindings.StructDataHeader(24, 0) | 781 const bindings.StructDataHeader(24, 0) |
746 ]; | 782 ]; |
747 String text = null; | 783 String text = null; |
748 int newCursorPosition = 0; | 784 int newCursorPosition = 0; |
749 | 785 |
750 _KeyboardClientSetComposingTextParams() : super(kVersions.last.size); | 786 _KeyboardClientSetComposingTextParams() : super(kVersions.last.size); |
751 | 787 |
| 788 _KeyboardClientSetComposingTextParams.init( |
| 789 String this.text, |
| 790 int this.newCursorPosition |
| 791 ) : super(kVersions.last.size); |
| 792 |
752 static _KeyboardClientSetComposingTextParams deserialize(bindings.Message mess
age) { | 793 static _KeyboardClientSetComposingTextParams deserialize(bindings.Message mess
age) { |
753 var decoder = new bindings.Decoder(message); | 794 var decoder = new bindings.Decoder(message); |
754 var result = decode(decoder); | 795 var result = decode(decoder); |
755 if (decoder.excessHandles != null) { | 796 if (decoder.excessHandles != null) { |
756 decoder.excessHandles.forEach((h) => h.close()); | 797 decoder.excessHandles.forEach((h) => h.close()); |
757 } | 798 } |
758 return result; | 799 return result; |
759 } | 800 } |
760 | 801 |
761 static _KeyboardClientSetComposingTextParams decode(bindings.Decoder decoder0)
{ | 802 static _KeyboardClientSetComposingTextParams decode(bindings.Decoder decoder0)
{ |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
828 | 869 |
829 class _KeyboardClientSetSelectionParams extends bindings.Struct { | 870 class _KeyboardClientSetSelectionParams extends bindings.Struct { |
830 static const List<bindings.StructDataHeader> kVersions = const [ | 871 static const List<bindings.StructDataHeader> kVersions = const [ |
831 const bindings.StructDataHeader(16, 0) | 872 const bindings.StructDataHeader(16, 0) |
832 ]; | 873 ]; |
833 int start = 0; | 874 int start = 0; |
834 int end = 0; | 875 int end = 0; |
835 | 876 |
836 _KeyboardClientSetSelectionParams() : super(kVersions.last.size); | 877 _KeyboardClientSetSelectionParams() : super(kVersions.last.size); |
837 | 878 |
| 879 _KeyboardClientSetSelectionParams.init( |
| 880 int this.start, |
| 881 int this.end |
| 882 ) : super(kVersions.last.size); |
| 883 |
838 static _KeyboardClientSetSelectionParams deserialize(bindings.Message message)
{ | 884 static _KeyboardClientSetSelectionParams deserialize(bindings.Message message)
{ |
839 var decoder = new bindings.Decoder(message); | 885 var decoder = new bindings.Decoder(message); |
840 var result = decode(decoder); | 886 var result = decode(decoder); |
841 if (decoder.excessHandles != null) { | 887 if (decoder.excessHandles != null) { |
842 decoder.excessHandles.forEach((h) => h.close()); | 888 decoder.excessHandles.forEach((h) => h.close()); |
843 } | 889 } |
844 return result; | 890 return result; |
845 } | 891 } |
846 | 892 |
847 static _KeyboardClientSetSelectionParams decode(bindings.Decoder decoder0) { | 893 static _KeyboardClientSetSelectionParams decode(bindings.Decoder decoder0) { |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
913 | 959 |
914 | 960 |
915 class _KeyboardClientSubmitParams extends bindings.Struct { | 961 class _KeyboardClientSubmitParams extends bindings.Struct { |
916 static const List<bindings.StructDataHeader> kVersions = const [ | 962 static const List<bindings.StructDataHeader> kVersions = const [ |
917 const bindings.StructDataHeader(16, 0) | 963 const bindings.StructDataHeader(16, 0) |
918 ]; | 964 ]; |
919 SubmitAction action = null; | 965 SubmitAction action = null; |
920 | 966 |
921 _KeyboardClientSubmitParams() : super(kVersions.last.size); | 967 _KeyboardClientSubmitParams() : super(kVersions.last.size); |
922 | 968 |
| 969 _KeyboardClientSubmitParams.init( |
| 970 SubmitAction this.action |
| 971 ) : super(kVersions.last.size); |
| 972 |
923 static _KeyboardClientSubmitParams deserialize(bindings.Message message) { | 973 static _KeyboardClientSubmitParams deserialize(bindings.Message message) { |
924 var decoder = new bindings.Decoder(message); | 974 var decoder = new bindings.Decoder(message); |
925 var result = decode(decoder); | 975 var result = decode(decoder); |
926 if (decoder.excessHandles != null) { | 976 if (decoder.excessHandles != null) { |
927 decoder.excessHandles.forEach((h) => h.close()); | 977 decoder.excessHandles.forEach((h) => h.close()); |
928 } | 978 } |
929 return result; | 979 return result; |
930 } | 980 } |
931 | 981 |
932 static _KeyboardClientSubmitParams decode(bindings.Decoder decoder0) { | 982 static _KeyboardClientSubmitParams decode(bindings.Decoder decoder0) { |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
990 | 1040 |
991 class _KeyboardServiceShowParams extends bindings.Struct { | 1041 class _KeyboardServiceShowParams extends bindings.Struct { |
992 static const List<bindings.StructDataHeader> kVersions = const [ | 1042 static const List<bindings.StructDataHeader> kVersions = const [ |
993 const bindings.StructDataHeader(24, 0) | 1043 const bindings.StructDataHeader(24, 0) |
994 ]; | 1044 ]; |
995 KeyboardClientInterface client = null; | 1045 KeyboardClientInterface client = null; |
996 KeyboardType type = null; | 1046 KeyboardType type = null; |
997 | 1047 |
998 _KeyboardServiceShowParams() : super(kVersions.last.size); | 1048 _KeyboardServiceShowParams() : super(kVersions.last.size); |
999 | 1049 |
| 1050 _KeyboardServiceShowParams.init( |
| 1051 KeyboardClientInterface this.client, |
| 1052 KeyboardType this.type |
| 1053 ) : super(kVersions.last.size); |
| 1054 |
1000 static _KeyboardServiceShowParams deserialize(bindings.Message message) { | 1055 static _KeyboardServiceShowParams deserialize(bindings.Message message) { |
1001 var decoder = new bindings.Decoder(message); | 1056 var decoder = new bindings.Decoder(message); |
1002 var result = decode(decoder); | 1057 var result = decode(decoder); |
1003 if (decoder.excessHandles != null) { | 1058 if (decoder.excessHandles != null) { |
1004 decoder.excessHandles.forEach((h) => h.close()); | 1059 decoder.excessHandles.forEach((h) => h.close()); |
1005 } | 1060 } |
1006 return result; | 1061 return result; |
1007 } | 1062 } |
1008 | 1063 |
1009 static _KeyboardServiceShowParams decode(bindings.Decoder decoder0) { | 1064 static _KeyboardServiceShowParams decode(bindings.Decoder decoder0) { |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1076 } | 1131 } |
1077 | 1132 |
1078 | 1133 |
1079 class _KeyboardServiceShowByRequestParams extends bindings.Struct { | 1134 class _KeyboardServiceShowByRequestParams extends bindings.Struct { |
1080 static const List<bindings.StructDataHeader> kVersions = const [ | 1135 static const List<bindings.StructDataHeader> kVersions = const [ |
1081 const bindings.StructDataHeader(8, 0) | 1136 const bindings.StructDataHeader(8, 0) |
1082 ]; | 1137 ]; |
1083 | 1138 |
1084 _KeyboardServiceShowByRequestParams() : super(kVersions.last.size); | 1139 _KeyboardServiceShowByRequestParams() : super(kVersions.last.size); |
1085 | 1140 |
| 1141 _KeyboardServiceShowByRequestParams.init( |
| 1142 ) : super(kVersions.last.size); |
| 1143 |
1086 static _KeyboardServiceShowByRequestParams deserialize(bindings.Message messag
e) { | 1144 static _KeyboardServiceShowByRequestParams deserialize(bindings.Message messag
e) { |
1087 var decoder = new bindings.Decoder(message); | 1145 var decoder = new bindings.Decoder(message); |
1088 var result = decode(decoder); | 1146 var result = decode(decoder); |
1089 if (decoder.excessHandles != null) { | 1147 if (decoder.excessHandles != null) { |
1090 decoder.excessHandles.forEach((h) => h.close()); | 1148 decoder.excessHandles.forEach((h) => h.close()); |
1091 } | 1149 } |
1092 return result; | 1150 return result; |
1093 } | 1151 } |
1094 | 1152 |
1095 static _KeyboardServiceShowByRequestParams decode(bindings.Decoder decoder0) { | 1153 static _KeyboardServiceShowByRequestParams decode(bindings.Decoder decoder0) { |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1134 } | 1192 } |
1135 | 1193 |
1136 | 1194 |
1137 class _KeyboardServiceHideParams extends bindings.Struct { | 1195 class _KeyboardServiceHideParams extends bindings.Struct { |
1138 static const List<bindings.StructDataHeader> kVersions = const [ | 1196 static const List<bindings.StructDataHeader> kVersions = const [ |
1139 const bindings.StructDataHeader(8, 0) | 1197 const bindings.StructDataHeader(8, 0) |
1140 ]; | 1198 ]; |
1141 | 1199 |
1142 _KeyboardServiceHideParams() : super(kVersions.last.size); | 1200 _KeyboardServiceHideParams() : super(kVersions.last.size); |
1143 | 1201 |
| 1202 _KeyboardServiceHideParams.init( |
| 1203 ) : super(kVersions.last.size); |
| 1204 |
1144 static _KeyboardServiceHideParams deserialize(bindings.Message message) { | 1205 static _KeyboardServiceHideParams deserialize(bindings.Message message) { |
1145 var decoder = new bindings.Decoder(message); | 1206 var decoder = new bindings.Decoder(message); |
1146 var result = decode(decoder); | 1207 var result = decode(decoder); |
1147 if (decoder.excessHandles != null) { | 1208 if (decoder.excessHandles != null) { |
1148 decoder.excessHandles.forEach((h) => h.close()); | 1209 decoder.excessHandles.forEach((h) => h.close()); |
1149 } | 1210 } |
1150 return result; | 1211 return result; |
1151 } | 1212 } |
1152 | 1213 |
1153 static _KeyboardServiceHideParams decode(bindings.Decoder decoder0) { | 1214 static _KeyboardServiceHideParams decode(bindings.Decoder decoder0) { |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1193 | 1254 |
1194 | 1255 |
1195 class _KeyboardServiceSetTextParams extends bindings.Struct { | 1256 class _KeyboardServiceSetTextParams extends bindings.Struct { |
1196 static const List<bindings.StructDataHeader> kVersions = const [ | 1257 static const List<bindings.StructDataHeader> kVersions = const [ |
1197 const bindings.StructDataHeader(16, 0) | 1258 const bindings.StructDataHeader(16, 0) |
1198 ]; | 1259 ]; |
1199 String text = null; | 1260 String text = null; |
1200 | 1261 |
1201 _KeyboardServiceSetTextParams() : super(kVersions.last.size); | 1262 _KeyboardServiceSetTextParams() : super(kVersions.last.size); |
1202 | 1263 |
| 1264 _KeyboardServiceSetTextParams.init( |
| 1265 String this.text |
| 1266 ) : super(kVersions.last.size); |
| 1267 |
1203 static _KeyboardServiceSetTextParams deserialize(bindings.Message message) { | 1268 static _KeyboardServiceSetTextParams deserialize(bindings.Message message) { |
1204 var decoder = new bindings.Decoder(message); | 1269 var decoder = new bindings.Decoder(message); |
1205 var result = decode(decoder); | 1270 var result = decode(decoder); |
1206 if (decoder.excessHandles != null) { | 1271 if (decoder.excessHandles != null) { |
1207 decoder.excessHandles.forEach((h) => h.close()); | 1272 decoder.excessHandles.forEach((h) => h.close()); |
1208 } | 1273 } |
1209 return result; | 1274 return result; |
1210 } | 1275 } |
1211 | 1276 |
1212 static _KeyboardServiceSetTextParams decode(bindings.Decoder decoder0) { | 1277 static _KeyboardServiceSetTextParams decode(bindings.Decoder decoder0) { |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1266 | 1331 |
1267 class _KeyboardServiceSetSelectionParams extends bindings.Struct { | 1332 class _KeyboardServiceSetSelectionParams extends bindings.Struct { |
1268 static const List<bindings.StructDataHeader> kVersions = const [ | 1333 static const List<bindings.StructDataHeader> kVersions = const [ |
1269 const bindings.StructDataHeader(16, 0) | 1334 const bindings.StructDataHeader(16, 0) |
1270 ]; | 1335 ]; |
1271 int start = 0; | 1336 int start = 0; |
1272 int end = 0; | 1337 int end = 0; |
1273 | 1338 |
1274 _KeyboardServiceSetSelectionParams() : super(kVersions.last.size); | 1339 _KeyboardServiceSetSelectionParams() : super(kVersions.last.size); |
1275 | 1340 |
| 1341 _KeyboardServiceSetSelectionParams.init( |
| 1342 int this.start, |
| 1343 int this.end |
| 1344 ) : super(kVersions.last.size); |
| 1345 |
1276 static _KeyboardServiceSetSelectionParams deserialize(bindings.Message message
) { | 1346 static _KeyboardServiceSetSelectionParams deserialize(bindings.Message message
) { |
1277 var decoder = new bindings.Decoder(message); | 1347 var decoder = new bindings.Decoder(message); |
1278 var result = decode(decoder); | 1348 var result = decode(decoder); |
1279 if (decoder.excessHandles != null) { | 1349 if (decoder.excessHandles != null) { |
1280 decoder.excessHandles.forEach((h) => h.close()); | 1350 decoder.excessHandles.forEach((h) => h.close()); |
1281 } | 1351 } |
1282 return result; | 1352 return result; |
1283 } | 1353 } |
1284 | 1354 |
1285 static _KeyboardServiceSetSelectionParams decode(bindings.Decoder decoder0) { | 1355 static _KeyboardServiceSetSelectionParams decode(bindings.Decoder decoder0) { |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1352 | 1422 |
1353 class _KeyboardServiceFactoryCreateKeyboardServiceParams extends bindings.Struct
{ | 1423 class _KeyboardServiceFactoryCreateKeyboardServiceParams extends bindings.Struct
{ |
1354 static const List<bindings.StructDataHeader> kVersions = const [ | 1424 static const List<bindings.StructDataHeader> kVersions = const [ |
1355 const bindings.StructDataHeader(16, 0) | 1425 const bindings.StructDataHeader(16, 0) |
1356 ]; | 1426 ]; |
1357 native_viewport_event_dispatcher_mojom.NativeViewportEventDispatcherInterfaceR
equest keyEventDispatcher = null; | 1427 native_viewport_event_dispatcher_mojom.NativeViewportEventDispatcherInterfaceR
equest keyEventDispatcher = null; |
1358 KeyboardServiceInterfaceRequest serviceRequest = null; | 1428 KeyboardServiceInterfaceRequest serviceRequest = null; |
1359 | 1429 |
1360 _KeyboardServiceFactoryCreateKeyboardServiceParams() : super(kVersions.last.si
ze); | 1430 _KeyboardServiceFactoryCreateKeyboardServiceParams() : super(kVersions.last.si
ze); |
1361 | 1431 |
| 1432 _KeyboardServiceFactoryCreateKeyboardServiceParams.init( |
| 1433 native_viewport_event_dispatcher_mojom.NativeViewportEventDispatcherInterfac
eRequest this.keyEventDispatcher, |
| 1434 KeyboardServiceInterfaceRequest this.serviceRequest |
| 1435 ) : super(kVersions.last.size); |
| 1436 |
1362 static _KeyboardServiceFactoryCreateKeyboardServiceParams deserialize(bindings
.Message message) { | 1437 static _KeyboardServiceFactoryCreateKeyboardServiceParams deserialize(bindings
.Message message) { |
1363 var decoder = new bindings.Decoder(message); | 1438 var decoder = new bindings.Decoder(message); |
1364 var result = decode(decoder); | 1439 var result = decode(decoder); |
1365 if (decoder.excessHandles != null) { | 1440 if (decoder.excessHandles != null) { |
1366 decoder.excessHandles.forEach((h) => h.close()); | 1441 decoder.excessHandles.forEach((h) => h.close()); |
1367 } | 1442 } |
1368 return result; | 1443 return result; |
1369 } | 1444 } |
1370 | 1445 |
1371 static _KeyboardServiceFactoryCreateKeyboardServiceParams decode(bindings.Deco
der decoder0) { | 1446 static _KeyboardServiceFactoryCreateKeyboardServiceParams decode(bindings.Deco
der decoder0) { |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1436 const int _keyboardClientMethodCommitCompletionName = 0; | 1511 const int _keyboardClientMethodCommitCompletionName = 0; |
1437 const int _keyboardClientMethodCommitCorrectionName = 1; | 1512 const int _keyboardClientMethodCommitCorrectionName = 1; |
1438 const int _keyboardClientMethodCommitTextName = 2; | 1513 const int _keyboardClientMethodCommitTextName = 2; |
1439 const int _keyboardClientMethodDeleteSurroundingTextName = 3; | 1514 const int _keyboardClientMethodDeleteSurroundingTextName = 3; |
1440 const int _keyboardClientMethodSetComposingRegionName = 4; | 1515 const int _keyboardClientMethodSetComposingRegionName = 4; |
1441 const int _keyboardClientMethodSetComposingTextName = 5; | 1516 const int _keyboardClientMethodSetComposingTextName = 5; |
1442 const int _keyboardClientMethodSetSelectionName = 6; | 1517 const int _keyboardClientMethodSetSelectionName = 6; |
1443 const int _keyboardClientMethodSubmitName = 7; | 1518 const int _keyboardClientMethodSubmitName = 7; |
1444 | 1519 |
1445 class _KeyboardClientServiceDescription implements service_describer.ServiceDesc
ription { | 1520 class _KeyboardClientServiceDescription implements service_describer.ServiceDesc
ription { |
1446 dynamic getTopLevelInterface([Function responseFactory]) => | 1521 void getTopLevelInterface(Function responder) { |
1447 responseFactory(null); | 1522 responder(null); |
| 1523 } |
1448 | 1524 |
1449 dynamic getTypeDefinition(String typeKey, [Function responseFactory]) => | 1525 void getTypeDefinition(String typeKey, Function responder) { |
1450 responseFactory(null); | 1526 responder(null); |
| 1527 } |
1451 | 1528 |
1452 dynamic getAllTypeDefinitions([Function responseFactory]) => | 1529 void getAllTypeDefinitions(Function responder) { |
1453 responseFactory(null); | 1530 responder(null); |
| 1531 } |
1454 } | 1532 } |
1455 | 1533 |
1456 abstract class KeyboardClient { | 1534 abstract class KeyboardClient { |
1457 static const String serviceName = null; | 1535 static const String serviceName = null; |
1458 | 1536 |
1459 static service_describer.ServiceDescription _cachedServiceDescription; | 1537 static service_describer.ServiceDescription _cachedServiceDescription; |
1460 static service_describer.ServiceDescription get serviceDescription { | 1538 static service_describer.ServiceDescription get serviceDescription { |
1461 if (_cachedServiceDescription == null) { | 1539 if (_cachedServiceDescription == null) { |
1462 _cachedServiceDescription = new _KeyboardClientServiceDescription(); | 1540 _cachedServiceDescription = new _KeyboardClientServiceDescription(); |
1463 } | 1541 } |
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1662 : super.fromHandle(handle, autoBegin: impl != null) { | 1740 : super.fromHandle(handle, autoBegin: impl != null) { |
1663 _impl = impl; | 1741 _impl = impl; |
1664 } | 1742 } |
1665 | 1743 |
1666 _KeyboardClientStubControl.unbound([this._impl]) : super.unbound(); | 1744 _KeyboardClientStubControl.unbound([this._impl]) : super.unbound(); |
1667 | 1745 |
1668 String get serviceName => KeyboardClient.serviceName; | 1746 String get serviceName => KeyboardClient.serviceName; |
1669 | 1747 |
1670 | 1748 |
1671 | 1749 |
1672 dynamic handleMessage(bindings.ServiceMessage message) { | 1750 void handleMessage(bindings.ServiceMessage message) { |
1673 if (bindings.ControlMessageHandler.isControlMessage(message)) { | 1751 if (bindings.ControlMessageHandler.isControlMessage(message)) { |
1674 return bindings.ControlMessageHandler.handleMessage(this, | 1752 bindings.ControlMessageHandler.handleMessage( |
1675 0, | 1753 this, 0, message); |
1676 message); | 1754 return; |
1677 } | 1755 } |
1678 if (_impl == null) { | 1756 if (_impl == null) { |
1679 throw new core.MojoApiError("$this has no implementation set"); | 1757 throw new core.MojoApiError("$this has no implementation set"); |
1680 } | 1758 } |
1681 switch (message.header.type) { | 1759 switch (message.header.type) { |
1682 case _keyboardClientMethodCommitCompletionName: | 1760 case _keyboardClientMethodCommitCompletionName: |
1683 var params = _KeyboardClientCommitCompletionParams.deserialize( | 1761 var params = _KeyboardClientCommitCompletionParams.deserialize( |
1684 message.payload); | 1762 message.payload); |
1685 _impl.commitCompletion(params.completion); | 1763 _impl.commitCompletion(params.completion); |
1686 break; | 1764 break; |
(...skipping 29 matching lines...) Expand all Loading... |
1716 break; | 1794 break; |
1717 case _keyboardClientMethodSubmitName: | 1795 case _keyboardClientMethodSubmitName: |
1718 var params = _KeyboardClientSubmitParams.deserialize( | 1796 var params = _KeyboardClientSubmitParams.deserialize( |
1719 message.payload); | 1797 message.payload); |
1720 _impl.submit(params.action); | 1798 _impl.submit(params.action); |
1721 break; | 1799 break; |
1722 default: | 1800 default: |
1723 throw new bindings.MojoCodecError("Unexpected message name"); | 1801 throw new bindings.MojoCodecError("Unexpected message name"); |
1724 break; | 1802 break; |
1725 } | 1803 } |
1726 return null; | |
1727 } | 1804 } |
1728 | 1805 |
1729 KeyboardClient get impl => _impl; | 1806 KeyboardClient get impl => _impl; |
1730 set impl(KeyboardClient d) { | 1807 set impl(KeyboardClient d) { |
1731 if (d == null) { | 1808 if (d == null) { |
1732 throw new core.MojoApiError("$this: Cannot set a null implementation"); | 1809 throw new core.MojoApiError("$this: Cannot set a null implementation"); |
1733 } | 1810 } |
1734 if (isBound && (_impl == null)) { | 1811 if (isBound && (_impl == null)) { |
1735 beginHandlingEvents(); | 1812 beginHandlingEvents(); |
1736 } | 1813 } |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1803 } | 1880 } |
1804 } | 1881 } |
1805 | 1882 |
1806 const int _keyboardServiceMethodShowName = 0; | 1883 const int _keyboardServiceMethodShowName = 0; |
1807 const int _keyboardServiceMethodShowByRequestName = 1; | 1884 const int _keyboardServiceMethodShowByRequestName = 1; |
1808 const int _keyboardServiceMethodHideName = 2; | 1885 const int _keyboardServiceMethodHideName = 2; |
1809 const int _keyboardServiceMethodSetTextName = 3; | 1886 const int _keyboardServiceMethodSetTextName = 3; |
1810 const int _keyboardServiceMethodSetSelectionName = 4; | 1887 const int _keyboardServiceMethodSetSelectionName = 4; |
1811 | 1888 |
1812 class _KeyboardServiceServiceDescription implements service_describer.ServiceDes
cription { | 1889 class _KeyboardServiceServiceDescription implements service_describer.ServiceDes
cription { |
1813 dynamic getTopLevelInterface([Function responseFactory]) => | 1890 void getTopLevelInterface(Function responder) { |
1814 responseFactory(null); | 1891 responder(null); |
| 1892 } |
1815 | 1893 |
1816 dynamic getTypeDefinition(String typeKey, [Function responseFactory]) => | 1894 void getTypeDefinition(String typeKey, Function responder) { |
1817 responseFactory(null); | 1895 responder(null); |
| 1896 } |
1818 | 1897 |
1819 dynamic getAllTypeDefinitions([Function responseFactory]) => | 1898 void getAllTypeDefinitions(Function responder) { |
1820 responseFactory(null); | 1899 responder(null); |
| 1900 } |
1821 } | 1901 } |
1822 | 1902 |
1823 abstract class KeyboardService { | 1903 abstract class KeyboardService { |
1824 static const String serviceName = "keyboard::KeyboardService"; | 1904 static const String serviceName = "keyboard::KeyboardService"; |
1825 | 1905 |
1826 static service_describer.ServiceDescription _cachedServiceDescription; | 1906 static service_describer.ServiceDescription _cachedServiceDescription; |
1827 static service_describer.ServiceDescription get serviceDescription { | 1907 static service_describer.ServiceDescription get serviceDescription { |
1828 if (_cachedServiceDescription == null) { | 1908 if (_cachedServiceDescription == null) { |
1829 _cachedServiceDescription = new _KeyboardServiceServiceDescription(); | 1909 _cachedServiceDescription = new _KeyboardServiceServiceDescription(); |
1830 } | 1910 } |
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1991 : super.fromHandle(handle, autoBegin: impl != null) { | 2071 : super.fromHandle(handle, autoBegin: impl != null) { |
1992 _impl = impl; | 2072 _impl = impl; |
1993 } | 2073 } |
1994 | 2074 |
1995 _KeyboardServiceStubControl.unbound([this._impl]) : super.unbound(); | 2075 _KeyboardServiceStubControl.unbound([this._impl]) : super.unbound(); |
1996 | 2076 |
1997 String get serviceName => KeyboardService.serviceName; | 2077 String get serviceName => KeyboardService.serviceName; |
1998 | 2078 |
1999 | 2079 |
2000 | 2080 |
2001 dynamic handleMessage(bindings.ServiceMessage message) { | 2081 void handleMessage(bindings.ServiceMessage message) { |
2002 if (bindings.ControlMessageHandler.isControlMessage(message)) { | 2082 if (bindings.ControlMessageHandler.isControlMessage(message)) { |
2003 return bindings.ControlMessageHandler.handleMessage(this, | 2083 bindings.ControlMessageHandler.handleMessage( |
2004 0, | 2084 this, 0, message); |
2005 message); | 2085 return; |
2006 } | 2086 } |
2007 if (_impl == null) { | 2087 if (_impl == null) { |
2008 throw new core.MojoApiError("$this has no implementation set"); | 2088 throw new core.MojoApiError("$this has no implementation set"); |
2009 } | 2089 } |
2010 switch (message.header.type) { | 2090 switch (message.header.type) { |
2011 case _keyboardServiceMethodShowName: | 2091 case _keyboardServiceMethodShowName: |
2012 var params = _KeyboardServiceShowParams.deserialize( | 2092 var params = _KeyboardServiceShowParams.deserialize( |
2013 message.payload); | 2093 message.payload); |
2014 _impl.show(params.client, params.type); | 2094 _impl.show(params.client, params.type); |
2015 break; | 2095 break; |
(...skipping 10 matching lines...) Expand all Loading... |
2026 break; | 2106 break; |
2027 case _keyboardServiceMethodSetSelectionName: | 2107 case _keyboardServiceMethodSetSelectionName: |
2028 var params = _KeyboardServiceSetSelectionParams.deserialize( | 2108 var params = _KeyboardServiceSetSelectionParams.deserialize( |
2029 message.payload); | 2109 message.payload); |
2030 _impl.setSelection(params.start, params.end); | 2110 _impl.setSelection(params.start, params.end); |
2031 break; | 2111 break; |
2032 default: | 2112 default: |
2033 throw new bindings.MojoCodecError("Unexpected message name"); | 2113 throw new bindings.MojoCodecError("Unexpected message name"); |
2034 break; | 2114 break; |
2035 } | 2115 } |
2036 return null; | |
2037 } | 2116 } |
2038 | 2117 |
2039 KeyboardService get impl => _impl; | 2118 KeyboardService get impl => _impl; |
2040 set impl(KeyboardService d) { | 2119 set impl(KeyboardService d) { |
2041 if (d == null) { | 2120 if (d == null) { |
2042 throw new core.MojoApiError("$this: Cannot set a null implementation"); | 2121 throw new core.MojoApiError("$this: Cannot set a null implementation"); |
2043 } | 2122 } |
2044 if (isBound && (_impl == null)) { | 2123 if (isBound && (_impl == null)) { |
2045 beginHandlingEvents(); | 2124 beginHandlingEvents(); |
2046 } | 2125 } |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2100 return impl.setText(text); | 2179 return impl.setText(text); |
2101 } | 2180 } |
2102 void setSelection(int start, int end) { | 2181 void setSelection(int start, int end) { |
2103 return impl.setSelection(start, end); | 2182 return impl.setSelection(start, end); |
2104 } | 2183 } |
2105 } | 2184 } |
2106 | 2185 |
2107 const int _keyboardServiceFactoryMethodCreateKeyboardServiceName = 0; | 2186 const int _keyboardServiceFactoryMethodCreateKeyboardServiceName = 0; |
2108 | 2187 |
2109 class _KeyboardServiceFactoryServiceDescription implements service_describer.Ser
viceDescription { | 2188 class _KeyboardServiceFactoryServiceDescription implements service_describer.Ser
viceDescription { |
2110 dynamic getTopLevelInterface([Function responseFactory]) => | 2189 void getTopLevelInterface(Function responder) { |
2111 responseFactory(null); | 2190 responder(null); |
| 2191 } |
2112 | 2192 |
2113 dynamic getTypeDefinition(String typeKey, [Function responseFactory]) => | 2193 void getTypeDefinition(String typeKey, Function responder) { |
2114 responseFactory(null); | 2194 responder(null); |
| 2195 } |
2115 | 2196 |
2116 dynamic getAllTypeDefinitions([Function responseFactory]) => | 2197 void getAllTypeDefinitions(Function responder) { |
2117 responseFactory(null); | 2198 responder(null); |
| 2199 } |
2118 } | 2200 } |
2119 | 2201 |
2120 abstract class KeyboardServiceFactory { | 2202 abstract class KeyboardServiceFactory { |
2121 static const String serviceName = "keyboard::KeyboardServiceFactory"; | 2203 static const String serviceName = "keyboard::KeyboardServiceFactory"; |
2122 | 2204 |
2123 static service_describer.ServiceDescription _cachedServiceDescription; | 2205 static service_describer.ServiceDescription _cachedServiceDescription; |
2124 static service_describer.ServiceDescription get serviceDescription { | 2206 static service_describer.ServiceDescription get serviceDescription { |
2125 if (_cachedServiceDescription == null) { | 2207 if (_cachedServiceDescription == null) { |
2126 _cachedServiceDescription = new _KeyboardServiceFactoryServiceDescription(
); | 2208 _cachedServiceDescription = new _KeyboardServiceFactoryServiceDescription(
); |
2127 } | 2209 } |
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2245 : super.fromHandle(handle, autoBegin: impl != null) { | 2327 : super.fromHandle(handle, autoBegin: impl != null) { |
2246 _impl = impl; | 2328 _impl = impl; |
2247 } | 2329 } |
2248 | 2330 |
2249 _KeyboardServiceFactoryStubControl.unbound([this._impl]) : super.unbound(); | 2331 _KeyboardServiceFactoryStubControl.unbound([this._impl]) : super.unbound(); |
2250 | 2332 |
2251 String get serviceName => KeyboardServiceFactory.serviceName; | 2333 String get serviceName => KeyboardServiceFactory.serviceName; |
2252 | 2334 |
2253 | 2335 |
2254 | 2336 |
2255 dynamic handleMessage(bindings.ServiceMessage message) { | 2337 void handleMessage(bindings.ServiceMessage message) { |
2256 if (bindings.ControlMessageHandler.isControlMessage(message)) { | 2338 if (bindings.ControlMessageHandler.isControlMessage(message)) { |
2257 return bindings.ControlMessageHandler.handleMessage(this, | 2339 bindings.ControlMessageHandler.handleMessage( |
2258 0, | 2340 this, 0, message); |
2259 message); | 2341 return; |
2260 } | 2342 } |
2261 if (_impl == null) { | 2343 if (_impl == null) { |
2262 throw new core.MojoApiError("$this has no implementation set"); | 2344 throw new core.MojoApiError("$this has no implementation set"); |
2263 } | 2345 } |
2264 switch (message.header.type) { | 2346 switch (message.header.type) { |
2265 case _keyboardServiceFactoryMethodCreateKeyboardServiceName: | 2347 case _keyboardServiceFactoryMethodCreateKeyboardServiceName: |
2266 var params = _KeyboardServiceFactoryCreateKeyboardServiceParams.deserial
ize( | 2348 var params = _KeyboardServiceFactoryCreateKeyboardServiceParams.deserial
ize( |
2267 message.payload); | 2349 message.payload); |
2268 _impl.createKeyboardService(params.keyEventDispatcher, params.serviceReq
uest); | 2350 _impl.createKeyboardService(params.keyEventDispatcher, params.serviceReq
uest); |
2269 break; | 2351 break; |
2270 default: | 2352 default: |
2271 throw new bindings.MojoCodecError("Unexpected message name"); | 2353 throw new bindings.MojoCodecError("Unexpected message name"); |
2272 break; | 2354 break; |
2273 } | 2355 } |
2274 return null; | |
2275 } | 2356 } |
2276 | 2357 |
2277 KeyboardServiceFactory get impl => _impl; | 2358 KeyboardServiceFactory get impl => _impl; |
2278 set impl(KeyboardServiceFactory d) { | 2359 set impl(KeyboardServiceFactory d) { |
2279 if (d == null) { | 2360 if (d == null) { |
2280 throw new core.MojoApiError("$this: Cannot set a null implementation"); | 2361 throw new core.MojoApiError("$this: Cannot set a null implementation"); |
2281 } | 2362 } |
2282 if (isBound && (_impl == null)) { | 2363 if (isBound && (_impl == null)) { |
2283 beginHandlingEvents(); | 2364 beginHandlingEvents(); |
2284 } | 2365 } |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2325 } | 2406 } |
2326 | 2407 |
2327 | 2408 |
2328 void createKeyboardService(native_viewport_event_dispatcher_mojom.NativeViewpo
rtEventDispatcherInterfaceRequest keyEventDispatcher, KeyboardServiceInterfaceRe
quest serviceRequest) { | 2409 void createKeyboardService(native_viewport_event_dispatcher_mojom.NativeViewpo
rtEventDispatcherInterfaceRequest keyEventDispatcher, KeyboardServiceInterfaceRe
quest serviceRequest) { |
2329 return impl.createKeyboardService(keyEventDispatcher, serviceRequest); | 2410 return impl.createKeyboardService(keyEventDispatcher, serviceRequest); |
2330 } | 2411 } |
2331 } | 2412 } |
2332 | 2413 |
2333 | 2414 |
2334 | 2415 |
OLD | NEW |