| 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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 case done: | 47 case done: |
| 48 return 'SubmitAction.done'; | 48 return 'SubmitAction.done'; |
| 49 default: | 49 default: |
| 50 return null; | 50 return null; |
| 51 } | 51 } |
| 52 } | 52 } |
| 53 | 53 |
| 54 int toJson() => mojoEnumValue; | 54 int toJson() => mojoEnumValue; |
| 55 } | 55 } |
| 56 | 56 |
| 57 | |
| 58 | |
| 59 class KeyboardType extends bindings.MojoEnum { | 57 class KeyboardType extends bindings.MojoEnum { |
| 60 static const KeyboardType text = const KeyboardType._(0); | 58 static const KeyboardType text = const KeyboardType._(0); |
| 61 static const KeyboardType number = const KeyboardType._(1); | 59 static const KeyboardType number = const KeyboardType._(1); |
| 62 static const KeyboardType phone = const KeyboardType._(2); | 60 static const KeyboardType phone = const KeyboardType._(2); |
| 63 static const KeyboardType datetime = const KeyboardType._(3); | 61 static const KeyboardType datetime = const KeyboardType._(3); |
| 64 | 62 |
| 65 const KeyboardType._(int v) : super(v); | 63 const KeyboardType._(int v) : super(v); |
| 66 | 64 |
| 67 static const Map<String, KeyboardType> valuesMap = const { | 65 static const Map<String, KeyboardType> valuesMap = const { |
| 68 "text": text, | 66 "text": text, |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 117 default: | 115 default: |
| 118 return null; | 116 return null; |
| 119 } | 117 } |
| 120 } | 118 } |
| 121 | 119 |
| 122 int toJson() => mojoEnumValue; | 120 int toJson() => mojoEnumValue; |
| 123 } | 121 } |
| 124 | 122 |
| 125 | 123 |
| 126 | 124 |
| 127 | |
| 128 | |
| 129 class CompletionData extends bindings.Struct { | 125 class CompletionData extends bindings.Struct { |
| 130 static const List<bindings.StructDataHeader> kVersions = const [ | 126 static const List<bindings.StructDataHeader> kVersions = const [ |
| 131 const bindings.StructDataHeader(40, 0) | 127 const bindings.StructDataHeader(40, 0) |
| 132 ]; | 128 ]; |
| 133 int id = 0; | 129 int id = 0; |
| 134 int position = 0; | 130 int position = 0; |
| 135 String text = null; | 131 String text = null; |
| 136 String label = null; | 132 String label = null; |
| 137 | 133 |
| 138 CompletionData() : super(kVersions.last.size); | 134 CompletionData() : super(kVersions.last.size); |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 233 Map map = new Map(); | 229 Map map = new Map(); |
| 234 map["id"] = id; | 230 map["id"] = id; |
| 235 map["position"] = position; | 231 map["position"] = position; |
| 236 map["text"] = text; | 232 map["text"] = text; |
| 237 map["label"] = label; | 233 map["label"] = label; |
| 238 return map; | 234 return map; |
| 239 } | 235 } |
| 240 } | 236 } |
| 241 | 237 |
| 242 | 238 |
| 243 | |
| 244 | |
| 245 class CorrectionData extends bindings.Struct { | 239 class CorrectionData extends bindings.Struct { |
| 246 static const List<bindings.StructDataHeader> kVersions = const [ | 240 static const List<bindings.StructDataHeader> kVersions = const [ |
| 247 const bindings.StructDataHeader(32, 0) | 241 const bindings.StructDataHeader(32, 0) |
| 248 ]; | 242 ]; |
| 249 int offset = 0; | 243 int offset = 0; |
| 250 String oldText = null; | 244 String oldText = null; |
| 251 String newText = null; | 245 String newText = null; |
| 252 | 246 |
| 253 CorrectionData() : super(kVersions.last.size); | 247 CorrectionData() : super(kVersions.last.size); |
| 254 | 248 |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 335 Map toJson() { | 329 Map toJson() { |
| 336 Map map = new Map(); | 330 Map map = new Map(); |
| 337 map["offset"] = offset; | 331 map["offset"] = offset; |
| 338 map["oldText"] = oldText; | 332 map["oldText"] = oldText; |
| 339 map["newText"] = newText; | 333 map["newText"] = newText; |
| 340 return map; | 334 return map; |
| 341 } | 335 } |
| 342 } | 336 } |
| 343 | 337 |
| 344 | 338 |
| 345 | |
| 346 | |
| 347 class _KeyboardClientCommitCompletionParams extends bindings.Struct { | 339 class _KeyboardClientCommitCompletionParams extends bindings.Struct { |
| 348 static const List<bindings.StructDataHeader> kVersions = const [ | 340 static const List<bindings.StructDataHeader> kVersions = const [ |
| 349 const bindings.StructDataHeader(16, 0) | 341 const bindings.StructDataHeader(16, 0) |
| 350 ]; | 342 ]; |
| 351 CompletionData completion = null; | 343 CompletionData completion = null; |
| 352 | 344 |
| 353 _KeyboardClientCommitCompletionParams() : super(kVersions.last.size); | 345 _KeyboardClientCommitCompletionParams() : super(kVersions.last.size); |
| 354 | 346 |
| 355 static _KeyboardClientCommitCompletionParams deserialize(bindings.Message mess
age) { | 347 static _KeyboardClientCommitCompletionParams deserialize(bindings.Message mess
age) { |
| 356 var decoder = new bindings.Decoder(message); | 348 var decoder = new bindings.Decoder(message); |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 410 } | 402 } |
| 411 | 403 |
| 412 Map toJson() { | 404 Map toJson() { |
| 413 Map map = new Map(); | 405 Map map = new Map(); |
| 414 map["completion"] = completion; | 406 map["completion"] = completion; |
| 415 return map; | 407 return map; |
| 416 } | 408 } |
| 417 } | 409 } |
| 418 | 410 |
| 419 | 411 |
| 420 | |
| 421 | |
| 422 class _KeyboardClientCommitCorrectionParams extends bindings.Struct { | 412 class _KeyboardClientCommitCorrectionParams extends bindings.Struct { |
| 423 static const List<bindings.StructDataHeader> kVersions = const [ | 413 static const List<bindings.StructDataHeader> kVersions = const [ |
| 424 const bindings.StructDataHeader(16, 0) | 414 const bindings.StructDataHeader(16, 0) |
| 425 ]; | 415 ]; |
| 426 CorrectionData correction = null; | 416 CorrectionData correction = null; |
| 427 | 417 |
| 428 _KeyboardClientCommitCorrectionParams() : super(kVersions.last.size); | 418 _KeyboardClientCommitCorrectionParams() : super(kVersions.last.size); |
| 429 | 419 |
| 430 static _KeyboardClientCommitCorrectionParams deserialize(bindings.Message mess
age) { | 420 static _KeyboardClientCommitCorrectionParams deserialize(bindings.Message mess
age) { |
| 431 var decoder = new bindings.Decoder(message); | 421 var decoder = new bindings.Decoder(message); |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 485 } | 475 } |
| 486 | 476 |
| 487 Map toJson() { | 477 Map toJson() { |
| 488 Map map = new Map(); | 478 Map map = new Map(); |
| 489 map["correction"] = correction; | 479 map["correction"] = correction; |
| 490 return map; | 480 return map; |
| 491 } | 481 } |
| 492 } | 482 } |
| 493 | 483 |
| 494 | 484 |
| 495 | |
| 496 | |
| 497 class _KeyboardClientCommitTextParams extends bindings.Struct { | 485 class _KeyboardClientCommitTextParams extends bindings.Struct { |
| 498 static const List<bindings.StructDataHeader> kVersions = const [ | 486 static const List<bindings.StructDataHeader> kVersions = const [ |
| 499 const bindings.StructDataHeader(24, 0) | 487 const bindings.StructDataHeader(24, 0) |
| 500 ]; | 488 ]; |
| 501 String text = null; | 489 String text = null; |
| 502 int newCursorPosition = 0; | 490 int newCursorPosition = 0; |
| 503 | 491 |
| 504 _KeyboardClientCommitTextParams() : super(kVersions.last.size); | 492 _KeyboardClientCommitTextParams() : super(kVersions.last.size); |
| 505 | 493 |
| 506 static _KeyboardClientCommitTextParams deserialize(bindings.Message message) { | 494 static _KeyboardClientCommitTextParams deserialize(bindings.Message message) { |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 573 | 561 |
| 574 Map toJson() { | 562 Map toJson() { |
| 575 Map map = new Map(); | 563 Map map = new Map(); |
| 576 map["text"] = text; | 564 map["text"] = text; |
| 577 map["newCursorPosition"] = newCursorPosition; | 565 map["newCursorPosition"] = newCursorPosition; |
| 578 return map; | 566 return map; |
| 579 } | 567 } |
| 580 } | 568 } |
| 581 | 569 |
| 582 | 570 |
| 583 | |
| 584 | |
| 585 class _KeyboardClientDeleteSurroundingTextParams extends bindings.Struct { | 571 class _KeyboardClientDeleteSurroundingTextParams extends bindings.Struct { |
| 586 static const List<bindings.StructDataHeader> kVersions = const [ | 572 static const List<bindings.StructDataHeader> kVersions = const [ |
| 587 const bindings.StructDataHeader(16, 0) | 573 const bindings.StructDataHeader(16, 0) |
| 588 ]; | 574 ]; |
| 589 int beforeLength = 0; | 575 int beforeLength = 0; |
| 590 int afterLength = 0; | 576 int afterLength = 0; |
| 591 | 577 |
| 592 _KeyboardClientDeleteSurroundingTextParams() : super(kVersions.last.size); | 578 _KeyboardClientDeleteSurroundingTextParams() : super(kVersions.last.size); |
| 593 | 579 |
| 594 static _KeyboardClientDeleteSurroundingTextParams deserialize(bindings.Message
message) { | 580 static _KeyboardClientDeleteSurroundingTextParams deserialize(bindings.Message
message) { |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 661 | 647 |
| 662 Map toJson() { | 648 Map toJson() { |
| 663 Map map = new Map(); | 649 Map map = new Map(); |
| 664 map["beforeLength"] = beforeLength; | 650 map["beforeLength"] = beforeLength; |
| 665 map["afterLength"] = afterLength; | 651 map["afterLength"] = afterLength; |
| 666 return map; | 652 return map; |
| 667 } | 653 } |
| 668 } | 654 } |
| 669 | 655 |
| 670 | 656 |
| 671 | |
| 672 | |
| 673 class _KeyboardClientSetComposingRegionParams extends bindings.Struct { | 657 class _KeyboardClientSetComposingRegionParams extends bindings.Struct { |
| 674 static const List<bindings.StructDataHeader> kVersions = const [ | 658 static const List<bindings.StructDataHeader> kVersions = const [ |
| 675 const bindings.StructDataHeader(16, 0) | 659 const bindings.StructDataHeader(16, 0) |
| 676 ]; | 660 ]; |
| 677 int start = 0; | 661 int start = 0; |
| 678 int end = 0; | 662 int end = 0; |
| 679 | 663 |
| 680 _KeyboardClientSetComposingRegionParams() : super(kVersions.last.size); | 664 _KeyboardClientSetComposingRegionParams() : super(kVersions.last.size); |
| 681 | 665 |
| 682 static _KeyboardClientSetComposingRegionParams deserialize(bindings.Message me
ssage) { | 666 static _KeyboardClientSetComposingRegionParams deserialize(bindings.Message me
ssage) { |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 749 | 733 |
| 750 Map toJson() { | 734 Map toJson() { |
| 751 Map map = new Map(); | 735 Map map = new Map(); |
| 752 map["start"] = start; | 736 map["start"] = start; |
| 753 map["end"] = end; | 737 map["end"] = end; |
| 754 return map; | 738 return map; |
| 755 } | 739 } |
| 756 } | 740 } |
| 757 | 741 |
| 758 | 742 |
| 759 | |
| 760 | |
| 761 class _KeyboardClientSetComposingTextParams extends bindings.Struct { | 743 class _KeyboardClientSetComposingTextParams extends bindings.Struct { |
| 762 static const List<bindings.StructDataHeader> kVersions = const [ | 744 static const List<bindings.StructDataHeader> kVersions = const [ |
| 763 const bindings.StructDataHeader(24, 0) | 745 const bindings.StructDataHeader(24, 0) |
| 764 ]; | 746 ]; |
| 765 String text = null; | 747 String text = null; |
| 766 int newCursorPosition = 0; | 748 int newCursorPosition = 0; |
| 767 | 749 |
| 768 _KeyboardClientSetComposingTextParams() : super(kVersions.last.size); | 750 _KeyboardClientSetComposingTextParams() : super(kVersions.last.size); |
| 769 | 751 |
| 770 static _KeyboardClientSetComposingTextParams deserialize(bindings.Message mess
age) { | 752 static _KeyboardClientSetComposingTextParams deserialize(bindings.Message mess
age) { |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 837 | 819 |
| 838 Map toJson() { | 820 Map toJson() { |
| 839 Map map = new Map(); | 821 Map map = new Map(); |
| 840 map["text"] = text; | 822 map["text"] = text; |
| 841 map["newCursorPosition"] = newCursorPosition; | 823 map["newCursorPosition"] = newCursorPosition; |
| 842 return map; | 824 return map; |
| 843 } | 825 } |
| 844 } | 826 } |
| 845 | 827 |
| 846 | 828 |
| 847 | |
| 848 | |
| 849 class _KeyboardClientSetSelectionParams extends bindings.Struct { | 829 class _KeyboardClientSetSelectionParams extends bindings.Struct { |
| 850 static const List<bindings.StructDataHeader> kVersions = const [ | 830 static const List<bindings.StructDataHeader> kVersions = const [ |
| 851 const bindings.StructDataHeader(16, 0) | 831 const bindings.StructDataHeader(16, 0) |
| 852 ]; | 832 ]; |
| 853 int start = 0; | 833 int start = 0; |
| 854 int end = 0; | 834 int end = 0; |
| 855 | 835 |
| 856 _KeyboardClientSetSelectionParams() : super(kVersions.last.size); | 836 _KeyboardClientSetSelectionParams() : super(kVersions.last.size); |
| 857 | 837 |
| 858 static _KeyboardClientSetSelectionParams deserialize(bindings.Message message)
{ | 838 static _KeyboardClientSetSelectionParams deserialize(bindings.Message message)
{ |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 925 | 905 |
| 926 Map toJson() { | 906 Map toJson() { |
| 927 Map map = new Map(); | 907 Map map = new Map(); |
| 928 map["start"] = start; | 908 map["start"] = start; |
| 929 map["end"] = end; | 909 map["end"] = end; |
| 930 return map; | 910 return map; |
| 931 } | 911 } |
| 932 } | 912 } |
| 933 | 913 |
| 934 | 914 |
| 935 | |
| 936 | |
| 937 class _KeyboardClientSubmitParams extends bindings.Struct { | 915 class _KeyboardClientSubmitParams extends bindings.Struct { |
| 938 static const List<bindings.StructDataHeader> kVersions = const [ | 916 static const List<bindings.StructDataHeader> kVersions = const [ |
| 939 const bindings.StructDataHeader(16, 0) | 917 const bindings.StructDataHeader(16, 0) |
| 940 ]; | 918 ]; |
| 941 SubmitAction action = null; | 919 SubmitAction action = null; |
| 942 | 920 |
| 943 _KeyboardClientSubmitParams() : super(kVersions.last.size); | 921 _KeyboardClientSubmitParams() : super(kVersions.last.size); |
| 944 | 922 |
| 945 static _KeyboardClientSubmitParams deserialize(bindings.Message message) { | 923 static _KeyboardClientSubmitParams deserialize(bindings.Message message) { |
| 946 var decoder = new bindings.Decoder(message); | 924 var decoder = new bindings.Decoder(message); |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1003 } | 981 } |
| 1004 | 982 |
| 1005 Map toJson() { | 983 Map toJson() { |
| 1006 Map map = new Map(); | 984 Map map = new Map(); |
| 1007 map["action"] = action; | 985 map["action"] = action; |
| 1008 return map; | 986 return map; |
| 1009 } | 987 } |
| 1010 } | 988 } |
| 1011 | 989 |
| 1012 | 990 |
| 1013 | |
| 1014 | |
| 1015 class _KeyboardServiceShowParams extends bindings.Struct { | 991 class _KeyboardServiceShowParams extends bindings.Struct { |
| 1016 static const List<bindings.StructDataHeader> kVersions = const [ | 992 static const List<bindings.StructDataHeader> kVersions = const [ |
| 1017 const bindings.StructDataHeader(24, 0) | 993 const bindings.StructDataHeader(24, 0) |
| 1018 ]; | 994 ]; |
| 1019 Object client = null; | 995 Object client = null; |
| 1020 KeyboardType type = null; | 996 KeyboardType type = null; |
| 1021 | 997 |
| 1022 _KeyboardServiceShowParams() : super(kVersions.last.size); | 998 _KeyboardServiceShowParams() : super(kVersions.last.size); |
| 1023 | 999 |
| 1024 static _KeyboardServiceShowParams deserialize(bindings.Message message) { | 1000 static _KeyboardServiceShowParams deserialize(bindings.Message message) { |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1093 "type: $type" ")"; | 1069 "type: $type" ")"; |
| 1094 } | 1070 } |
| 1095 | 1071 |
| 1096 Map toJson() { | 1072 Map toJson() { |
| 1097 throw new bindings.MojoCodecError( | 1073 throw new bindings.MojoCodecError( |
| 1098 'Object containing handles cannot be encoded to JSON.'); | 1074 'Object containing handles cannot be encoded to JSON.'); |
| 1099 } | 1075 } |
| 1100 } | 1076 } |
| 1101 | 1077 |
| 1102 | 1078 |
| 1103 | |
| 1104 | |
| 1105 class _KeyboardServiceShowByRequestParams extends bindings.Struct { | 1079 class _KeyboardServiceShowByRequestParams extends bindings.Struct { |
| 1106 static const List<bindings.StructDataHeader> kVersions = const [ | 1080 static const List<bindings.StructDataHeader> kVersions = const [ |
| 1107 const bindings.StructDataHeader(8, 0) | 1081 const bindings.StructDataHeader(8, 0) |
| 1108 ]; | 1082 ]; |
| 1109 | 1083 |
| 1110 _KeyboardServiceShowByRequestParams() : super(kVersions.last.size); | 1084 _KeyboardServiceShowByRequestParams() : super(kVersions.last.size); |
| 1111 | 1085 |
| 1112 static _KeyboardServiceShowByRequestParams deserialize(bindings.Message messag
e) { | 1086 static _KeyboardServiceShowByRequestParams deserialize(bindings.Message messag
e) { |
| 1113 var decoder = new bindings.Decoder(message); | 1087 var decoder = new bindings.Decoder(message); |
| 1114 var result = decode(decoder); | 1088 var result = decode(decoder); |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1153 return "_KeyboardServiceShowByRequestParams("")"; | 1127 return "_KeyboardServiceShowByRequestParams("")"; |
| 1154 } | 1128 } |
| 1155 | 1129 |
| 1156 Map toJson() { | 1130 Map toJson() { |
| 1157 Map map = new Map(); | 1131 Map map = new Map(); |
| 1158 return map; | 1132 return map; |
| 1159 } | 1133 } |
| 1160 } | 1134 } |
| 1161 | 1135 |
| 1162 | 1136 |
| 1163 | |
| 1164 | |
| 1165 class _KeyboardServiceHideParams extends bindings.Struct { | 1137 class _KeyboardServiceHideParams extends bindings.Struct { |
| 1166 static const List<bindings.StructDataHeader> kVersions = const [ | 1138 static const List<bindings.StructDataHeader> kVersions = const [ |
| 1167 const bindings.StructDataHeader(8, 0) | 1139 const bindings.StructDataHeader(8, 0) |
| 1168 ]; | 1140 ]; |
| 1169 | 1141 |
| 1170 _KeyboardServiceHideParams() : super(kVersions.last.size); | 1142 _KeyboardServiceHideParams() : super(kVersions.last.size); |
| 1171 | 1143 |
| 1172 static _KeyboardServiceHideParams deserialize(bindings.Message message) { | 1144 static _KeyboardServiceHideParams deserialize(bindings.Message message) { |
| 1173 var decoder = new bindings.Decoder(message); | 1145 var decoder = new bindings.Decoder(message); |
| 1174 var result = decode(decoder); | 1146 var result = decode(decoder); |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1213 return "_KeyboardServiceHideParams("")"; | 1185 return "_KeyboardServiceHideParams("")"; |
| 1214 } | 1186 } |
| 1215 | 1187 |
| 1216 Map toJson() { | 1188 Map toJson() { |
| 1217 Map map = new Map(); | 1189 Map map = new Map(); |
| 1218 return map; | 1190 return map; |
| 1219 } | 1191 } |
| 1220 } | 1192 } |
| 1221 | 1193 |
| 1222 | 1194 |
| 1223 | |
| 1224 | |
| 1225 class _KeyboardServiceSetTextParams extends bindings.Struct { | 1195 class _KeyboardServiceSetTextParams extends bindings.Struct { |
| 1226 static const List<bindings.StructDataHeader> kVersions = const [ | 1196 static const List<bindings.StructDataHeader> kVersions = const [ |
| 1227 const bindings.StructDataHeader(16, 0) | 1197 const bindings.StructDataHeader(16, 0) |
| 1228 ]; | 1198 ]; |
| 1229 String text = null; | 1199 String text = null; |
| 1230 | 1200 |
| 1231 _KeyboardServiceSetTextParams() : super(kVersions.last.size); | 1201 _KeyboardServiceSetTextParams() : super(kVersions.last.size); |
| 1232 | 1202 |
| 1233 static _KeyboardServiceSetTextParams deserialize(bindings.Message message) { | 1203 static _KeyboardServiceSetTextParams deserialize(bindings.Message message) { |
| 1234 var decoder = new bindings.Decoder(message); | 1204 var decoder = new bindings.Decoder(message); |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1287 } | 1257 } |
| 1288 | 1258 |
| 1289 Map toJson() { | 1259 Map toJson() { |
| 1290 Map map = new Map(); | 1260 Map map = new Map(); |
| 1291 map["text"] = text; | 1261 map["text"] = text; |
| 1292 return map; | 1262 return map; |
| 1293 } | 1263 } |
| 1294 } | 1264 } |
| 1295 | 1265 |
| 1296 | 1266 |
| 1297 | |
| 1298 | |
| 1299 class _KeyboardServiceSetSelectionParams extends bindings.Struct { | 1267 class _KeyboardServiceSetSelectionParams extends bindings.Struct { |
| 1300 static const List<bindings.StructDataHeader> kVersions = const [ | 1268 static const List<bindings.StructDataHeader> kVersions = const [ |
| 1301 const bindings.StructDataHeader(16, 0) | 1269 const bindings.StructDataHeader(16, 0) |
| 1302 ]; | 1270 ]; |
| 1303 int start = 0; | 1271 int start = 0; |
| 1304 int end = 0; | 1272 int end = 0; |
| 1305 | 1273 |
| 1306 _KeyboardServiceSetSelectionParams() : super(kVersions.last.size); | 1274 _KeyboardServiceSetSelectionParams() : super(kVersions.last.size); |
| 1307 | 1275 |
| 1308 static _KeyboardServiceSetSelectionParams deserialize(bindings.Message message
) { | 1276 static _KeyboardServiceSetSelectionParams deserialize(bindings.Message message
) { |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1375 | 1343 |
| 1376 Map toJson() { | 1344 Map toJson() { |
| 1377 Map map = new Map(); | 1345 Map map = new Map(); |
| 1378 map["start"] = start; | 1346 map["start"] = start; |
| 1379 map["end"] = end; | 1347 map["end"] = end; |
| 1380 return map; | 1348 return map; |
| 1381 } | 1349 } |
| 1382 } | 1350 } |
| 1383 | 1351 |
| 1384 | 1352 |
| 1385 | |
| 1386 | |
| 1387 class _KeyboardServiceFactoryCreateKeyboardServiceParams extends bindings.Struct
{ | 1353 class _KeyboardServiceFactoryCreateKeyboardServiceParams extends bindings.Struct
{ |
| 1388 static const List<bindings.StructDataHeader> kVersions = const [ | 1354 static const List<bindings.StructDataHeader> kVersions = const [ |
| 1389 const bindings.StructDataHeader(16, 0) | 1355 const bindings.StructDataHeader(16, 0) |
| 1390 ]; | 1356 ]; |
| 1391 Object keyEventDispatcher = null; | 1357 Object keyEventDispatcher = null; |
| 1392 Object serviceRequest = null; | 1358 Object serviceRequest = null; |
| 1393 | 1359 |
| 1394 _KeyboardServiceFactoryCreateKeyboardServiceParams() : super(kVersions.last.si
ze); | 1360 _KeyboardServiceFactoryCreateKeyboardServiceParams() : super(kVersions.last.si
ze); |
| 1395 | 1361 |
| 1396 static _KeyboardServiceFactoryCreateKeyboardServiceParams deserialize(bindings
.Message message) { | 1362 static _KeyboardServiceFactoryCreateKeyboardServiceParams deserialize(bindings
.Message message) { |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1460 "keyEventDispatcher: $keyEventDispatcher" ", " | 1426 "keyEventDispatcher: $keyEventDispatcher" ", " |
| 1461 "serviceRequest: $serviceRequest" ")"; | 1427 "serviceRequest: $serviceRequest" ")"; |
| 1462 } | 1428 } |
| 1463 | 1429 |
| 1464 Map toJson() { | 1430 Map toJson() { |
| 1465 throw new bindings.MojoCodecError( | 1431 throw new bindings.MojoCodecError( |
| 1466 'Object containing handles cannot be encoded to JSON.'); | 1432 'Object containing handles cannot be encoded to JSON.'); |
| 1467 } | 1433 } |
| 1468 } | 1434 } |
| 1469 | 1435 |
| 1470 | |
| 1471 | |
| 1472 | |
| 1473 const int _KeyboardClient_commitCompletionName = 0; | 1436 const int _KeyboardClient_commitCompletionName = 0; |
| 1474 const int _KeyboardClient_commitCorrectionName = 1; | 1437 const int _KeyboardClient_commitCorrectionName = 1; |
| 1475 const int _KeyboardClient_commitTextName = 2; | 1438 const int _KeyboardClient_commitTextName = 2; |
| 1476 const int _KeyboardClient_deleteSurroundingTextName = 3; | 1439 const int _KeyboardClient_deleteSurroundingTextName = 3; |
| 1477 const int _KeyboardClient_setComposingRegionName = 4; | 1440 const int _KeyboardClient_setComposingRegionName = 4; |
| 1478 const int _KeyboardClient_setComposingTextName = 5; | 1441 const int _KeyboardClient_setComposingTextName = 5; |
| 1479 const int _KeyboardClient_setSelectionName = 6; | 1442 const int _KeyboardClient_setSelectionName = 6; |
| 1480 const int _KeyboardClient_submitName = 7; | 1443 const int _KeyboardClient_submitName = 7; |
| 1481 | 1444 |
| 1482 | |
| 1483 | |
| 1484 class _KeyboardClientServiceDescription implements service_describer.ServiceDesc
ription { | 1445 class _KeyboardClientServiceDescription implements service_describer.ServiceDesc
ription { |
| 1485 dynamic getTopLevelInterface([Function responseFactory]) => | 1446 dynamic getTopLevelInterface([Function responseFactory]) => |
| 1486 responseFactory(null); | 1447 responseFactory(null); |
| 1487 | 1448 |
| 1488 dynamic getTypeDefinition(String typeKey, [Function responseFactory]) => | 1449 dynamic getTypeDefinition(String typeKey, [Function responseFactory]) => |
| 1489 responseFactory(null); | 1450 responseFactory(null); |
| 1490 | 1451 |
| 1491 dynamic getAllTypeDefinitions([Function responseFactory]) => | 1452 dynamic getAllTypeDefinitions([Function responseFactory]) => |
| 1492 responseFactory(null); | 1453 responseFactory(null); |
| 1493 } | 1454 } |
| (...skipping 284 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1778 return _cachedServiceDescription; | 1739 return _cachedServiceDescription; |
| 1779 } | 1740 } |
| 1780 } | 1741 } |
| 1781 | 1742 |
| 1782 const int _KeyboardService_showName = 0; | 1743 const int _KeyboardService_showName = 0; |
| 1783 const int _KeyboardService_showByRequestName = 1; | 1744 const int _KeyboardService_showByRequestName = 1; |
| 1784 const int _KeyboardService_hideName = 2; | 1745 const int _KeyboardService_hideName = 2; |
| 1785 const int _KeyboardService_setTextName = 3; | 1746 const int _KeyboardService_setTextName = 3; |
| 1786 const int _KeyboardService_setSelectionName = 4; | 1747 const int _KeyboardService_setSelectionName = 4; |
| 1787 | 1748 |
| 1788 | |
| 1789 | |
| 1790 class _KeyboardServiceServiceDescription implements service_describer.ServiceDes
cription { | 1749 class _KeyboardServiceServiceDescription implements service_describer.ServiceDes
cription { |
| 1791 dynamic getTopLevelInterface([Function responseFactory]) => | 1750 dynamic getTopLevelInterface([Function responseFactory]) => |
| 1792 responseFactory(null); | 1751 responseFactory(null); |
| 1793 | 1752 |
| 1794 dynamic getTypeDefinition(String typeKey, [Function responseFactory]) => | 1753 dynamic getTypeDefinition(String typeKey, [Function responseFactory]) => |
| 1795 responseFactory(null); | 1754 responseFactory(null); |
| 1796 | 1755 |
| 1797 dynamic getAllTypeDefinitions([Function responseFactory]) => | 1756 dynamic getAllTypeDefinitions([Function responseFactory]) => |
| 1798 responseFactory(null); | 1757 responseFactory(null); |
| 1799 } | 1758 } |
| (...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2026 static service_describer.ServiceDescription get serviceDescription { | 1985 static service_describer.ServiceDescription get serviceDescription { |
| 2027 if (_cachedServiceDescription == null) { | 1986 if (_cachedServiceDescription == null) { |
| 2028 _cachedServiceDescription = new _KeyboardServiceServiceDescription(); | 1987 _cachedServiceDescription = new _KeyboardServiceServiceDescription(); |
| 2029 } | 1988 } |
| 2030 return _cachedServiceDescription; | 1989 return _cachedServiceDescription; |
| 2031 } | 1990 } |
| 2032 } | 1991 } |
| 2033 | 1992 |
| 2034 const int _KeyboardServiceFactory_createKeyboardServiceName = 0; | 1993 const int _KeyboardServiceFactory_createKeyboardServiceName = 0; |
| 2035 | 1994 |
| 2036 | |
| 2037 | |
| 2038 class _KeyboardServiceFactoryServiceDescription implements service_describer.Ser
viceDescription { | 1995 class _KeyboardServiceFactoryServiceDescription implements service_describer.Ser
viceDescription { |
| 2039 dynamic getTopLevelInterface([Function responseFactory]) => | 1996 dynamic getTopLevelInterface([Function responseFactory]) => |
| 2040 responseFactory(null); | 1997 responseFactory(null); |
| 2041 | 1998 |
| 2042 dynamic getTypeDefinition(String typeKey, [Function responseFactory]) => | 1999 dynamic getTypeDefinition(String typeKey, [Function responseFactory]) => |
| 2043 responseFactory(null); | 2000 responseFactory(null); |
| 2044 | 2001 |
| 2045 dynamic getAllTypeDefinitions([Function responseFactory]) => | 2002 dynamic getAllTypeDefinitions([Function responseFactory]) => |
| 2046 responseFactory(null); | 2003 responseFactory(null); |
| 2047 } | 2004 } |
| (...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2219 static service_describer.ServiceDescription get serviceDescription { | 2176 static service_describer.ServiceDescription get serviceDescription { |
| 2220 if (_cachedServiceDescription == null) { | 2177 if (_cachedServiceDescription == null) { |
| 2221 _cachedServiceDescription = new _KeyboardServiceFactoryServiceDescription(
); | 2178 _cachedServiceDescription = new _KeyboardServiceFactoryServiceDescription(
); |
| 2222 } | 2179 } |
| 2223 return _cachedServiceDescription; | 2180 return _cachedServiceDescription; |
| 2224 } | 2181 } |
| 2225 } | 2182 } |
| 2226 | 2183 |
| 2227 | 2184 |
| 2228 | 2185 |
| OLD | NEW |