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 | 6 |
7 import 'dart:async'; | 7 import 'dart:async'; |
| 8 import 'dart:collection'; |
8 | 9 |
9 import 'package:mojo/bindings.dart' as bindings; | 10 import 'package:mojo/bindings.dart' as bindings; |
10 import 'package:mojo/core.dart' as core; | 11 import 'package:mojo/core.dart' as core; |
| 12 import 'package:mojo/mojo/bindings/types/mojom_types.mojom.dart' as mojom_types; |
| 13 import 'package:mojo/mojo/bindings/types/service_describer.mojom.dart' as servic
e_describer; |
11 import 'package:mojo_services/mojo/native_viewport.mojom.dart' as native_viewpor
t_mojom; | 14 import 'package:mojo_services/mojo/native_viewport.mojom.dart' as native_viewpor
t_mojom; |
12 | |
13 class SubmitAction extends bindings.MojoEnum { | 15 class SubmitAction extends bindings.MojoEnum { |
14 static const SubmitAction done = const SubmitAction._(0); | 16 static const SubmitAction done = const SubmitAction._(0); |
15 | 17 |
16 const SubmitAction._(int v) : super(v); | 18 const SubmitAction._(int v) : super(v); |
17 | 19 |
18 static const Map<String, SubmitAction> valuesMap = const { | 20 static const Map<String, SubmitAction> valuesMap = const { |
19 "done": done, | 21 "done": done, |
20 }; | 22 }; |
21 static const List<SubmitAction> values = const [ | 23 static const List<SubmitAction> values = const [ |
22 done, | 24 done, |
(...skipping 17 matching lines...) Expand all Loading... |
40 throw new bindings.MojoCodecError( | 42 throw new bindings.MojoCodecError( |
41 'Bad value $v for enum SubmitAction.'); | 43 'Bad value $v for enum SubmitAction.'); |
42 } | 44 } |
43 return result; | 45 return result; |
44 } | 46 } |
45 | 47 |
46 String toString() { | 48 String toString() { |
47 switch(this) { | 49 switch(this) { |
48 case done: | 50 case done: |
49 return 'SubmitAction.done'; | 51 return 'SubmitAction.done'; |
| 52 default: |
| 53 return null; |
50 } | 54 } |
51 } | 55 } |
52 | 56 |
53 int toJson() => mojoEnumValue; | 57 int toJson() => mojoEnumValue; |
54 } | 58 } |
55 | 59 |
| 60 mojom_types.MojomEnum _keyboard_SubmitAction__() { |
| 61 return new mojom_types.MojomEnum() |
| 62 ..declData = (new mojom_types.DeclarationData() |
| 63 ..shortName = 'SubmitAction' |
| 64 ..fullIdentifier = 'keyboard.SubmitAction') |
| 65 ..values = <mojom_types.EnumValue>[new mojom_types.EnumValue() |
| 66 ..declData = (new mojom_types.DeclarationData()..shortName = 'Done') |
| 67 ..enumTypeKey = '_keyboard_SubmitAction__' |
| 68 ..intValue = 0,]; |
| 69 } |
56 class KeyboardType extends bindings.MojoEnum { | 70 class KeyboardType extends bindings.MojoEnum { |
57 static const KeyboardType text = const KeyboardType._(0); | 71 static const KeyboardType text = const KeyboardType._(0); |
58 static const KeyboardType number = const KeyboardType._(1); | 72 static const KeyboardType number = const KeyboardType._(1); |
59 static const KeyboardType phone = const KeyboardType._(2); | 73 static const KeyboardType phone = const KeyboardType._(2); |
60 static const KeyboardType datetime = const KeyboardType._(3); | 74 static const KeyboardType datetime = const KeyboardType._(3); |
61 | 75 |
62 const KeyboardType._(int v) : super(v); | 76 const KeyboardType._(int v) : super(v); |
63 | 77 |
64 static const Map<String, KeyboardType> valuesMap = const { | 78 static const Map<String, KeyboardType> valuesMap = const { |
65 "text": text, | 79 "text": text, |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
104 String toString() { | 118 String toString() { |
105 switch(this) { | 119 switch(this) { |
106 case text: | 120 case text: |
107 return 'KeyboardType.text'; | 121 return 'KeyboardType.text'; |
108 case number: | 122 case number: |
109 return 'KeyboardType.number'; | 123 return 'KeyboardType.number'; |
110 case phone: | 124 case phone: |
111 return 'KeyboardType.phone'; | 125 return 'KeyboardType.phone'; |
112 case datetime: | 126 case datetime: |
113 return 'KeyboardType.datetime'; | 127 return 'KeyboardType.datetime'; |
| 128 default: |
| 129 return null; |
114 } | 130 } |
115 } | 131 } |
116 | 132 |
117 int toJson() => mojoEnumValue; | 133 int toJson() => mojoEnumValue; |
118 } | 134 } |
119 | 135 |
| 136 mojom_types.MojomEnum _keyboard_KeyboardType__() { |
| 137 return new mojom_types.MojomEnum() |
| 138 ..declData = (new mojom_types.DeclarationData() |
| 139 ..shortName = 'KeyboardType' |
| 140 ..fullIdentifier = 'keyboard.KeyboardType') |
| 141 ..values = <mojom_types.EnumValue>[new mojom_types.EnumValue() |
| 142 ..declData = (new mojom_types.DeclarationData()..shortName = 'Text') |
| 143 ..enumTypeKey = '_keyboard_KeyboardType__' |
| 144 ..intValue = 0,new mojom_types.EnumValue() |
| 145 ..declData = (new mojom_types.DeclarationData()..shortName = 'Number') |
| 146 ..enumTypeKey = '_keyboard_KeyboardType__' |
| 147 ..intValue = 1,new mojom_types.EnumValue() |
| 148 ..declData = (new mojom_types.DeclarationData()..shortName = 'Phone') |
| 149 ..enumTypeKey = '_keyboard_KeyboardType__' |
| 150 ..intValue = 2,new mojom_types.EnumValue() |
| 151 ..declData = (new mojom_types.DeclarationData()..shortName = 'Datetime') |
| 152 ..enumTypeKey = '_keyboard_KeyboardType__' |
| 153 ..intValue = 3,]; |
| 154 } |
| 155 |
120 | 156 |
121 | 157 |
122 class CompletionData extends bindings.Struct { | 158 class CompletionData extends bindings.Struct { |
123 static const List<bindings.StructDataHeader> kVersions = const [ | 159 static const List<bindings.StructDataHeader> kVersions = const [ |
124 const bindings.StructDataHeader(40, 0) | 160 const bindings.StructDataHeader(40, 0) |
125 ]; | 161 ]; |
126 int id = 0; | 162 int id = 0; |
127 int position = 0; | 163 int position = 0; |
128 String text = null; | 164 String text = null; |
129 String label = null; | 165 String label = null; |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
204 | 240 |
205 Map toJson() { | 241 Map toJson() { |
206 Map map = new Map(); | 242 Map map = new Map(); |
207 map["id"] = id; | 243 map["id"] = id; |
208 map["position"] = position; | 244 map["position"] = position; |
209 map["text"] = text; | 245 map["text"] = text; |
210 map["label"] = label; | 246 map["label"] = label; |
211 return map; | 247 return map; |
212 } | 248 } |
213 } | 249 } |
| 250 mojom_types.MojomStruct _keyboard_CompletionData__() { |
| 251 return new mojom_types.MojomStruct() |
| 252 ..declData = (new mojom_types.DeclarationData() |
| 253 ..shortName = 'CompletionData' |
| 254 ..fullIdentifier = 'keyboard.CompletionData') |
| 255 ..fields = <mojom_types.StructField>[ |
| 256 new mojom_types.StructField() |
| 257 ..declData = (new mojom_types.DeclarationData()..shortName = 'Id') |
| 258 ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.in
t64), |
| 259 |
| 260 new mojom_types.StructField() |
| 261 ..declData = (new mojom_types.DeclarationData()..shortName = 'Position') |
| 262 ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.in
t32), |
| 263 |
| 264 new mojom_types.StructField() |
| 265 ..declData = (new mojom_types.DeclarationData()..shortName = 'Text') |
| 266 ..type = (new mojom_types.Type() |
| 267 ..stringType = (new mojom_types.StringType()..nullable = false)), |
| 268 |
| 269 new mojom_types.StructField() |
| 270 ..declData = (new mojom_types.DeclarationData()..shortName = 'Label') |
| 271 ..type = (new mojom_types.Type() |
| 272 ..stringType = (new mojom_types.StringType()..nullable = false)), |
| 273 ]; |
| 274 } |
214 | 275 |
215 | 276 |
216 class CorrectionData extends bindings.Struct { | 277 class CorrectionData extends bindings.Struct { |
217 static const List<bindings.StructDataHeader> kVersions = const [ | 278 static const List<bindings.StructDataHeader> kVersions = const [ |
218 const bindings.StructDataHeader(32, 0) | 279 const bindings.StructDataHeader(32, 0) |
219 ]; | 280 ]; |
220 int offset = 0; | 281 int offset = 0; |
221 String oldText = null; | 282 String oldText = null; |
222 String newText = null; | 283 String newText = null; |
223 | 284 |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
289 } | 350 } |
290 | 351 |
291 Map toJson() { | 352 Map toJson() { |
292 Map map = new Map(); | 353 Map map = new Map(); |
293 map["offset"] = offset; | 354 map["offset"] = offset; |
294 map["oldText"] = oldText; | 355 map["oldText"] = oldText; |
295 map["newText"] = newText; | 356 map["newText"] = newText; |
296 return map; | 357 return map; |
297 } | 358 } |
298 } | 359 } |
| 360 mojom_types.MojomStruct _keyboard_CorrectionData__() { |
| 361 return new mojom_types.MojomStruct() |
| 362 ..declData = (new mojom_types.DeclarationData() |
| 363 ..shortName = 'CorrectionData' |
| 364 ..fullIdentifier = 'keyboard.CorrectionData') |
| 365 ..fields = <mojom_types.StructField>[ |
| 366 new mojom_types.StructField() |
| 367 ..declData = (new mojom_types.DeclarationData()..shortName = 'Offset') |
| 368 ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.in
t32), |
| 369 |
| 370 new mojom_types.StructField() |
| 371 ..declData = (new mojom_types.DeclarationData()..shortName = 'OldText') |
| 372 ..type = (new mojom_types.Type() |
| 373 ..stringType = (new mojom_types.StringType()..nullable = false)), |
| 374 |
| 375 new mojom_types.StructField() |
| 376 ..declData = (new mojom_types.DeclarationData()..shortName = 'NewText') |
| 377 ..type = (new mojom_types.Type() |
| 378 ..stringType = (new mojom_types.StringType()..nullable = false)), |
| 379 ]; |
| 380 } |
299 | 381 |
300 | 382 |
301 class _KeyboardClientCommitCompletionParams extends bindings.Struct { | 383 class _KeyboardClientCommitCompletionParams extends bindings.Struct { |
302 static const List<bindings.StructDataHeader> kVersions = const [ | 384 static const List<bindings.StructDataHeader> kVersions = const [ |
303 const bindings.StructDataHeader(16, 0) | 385 const bindings.StructDataHeader(16, 0) |
304 ]; | 386 ]; |
305 CompletionData completion = null; | 387 CompletionData completion = null; |
306 | 388 |
307 _KeyboardClientCommitCompletionParams() : super(kVersions.last.size); | 389 _KeyboardClientCommitCompletionParams() : super(kVersions.last.size); |
308 | 390 |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
357 return "_KeyboardClientCommitCompletionParams(" | 439 return "_KeyboardClientCommitCompletionParams(" |
358 "completion: $completion" ")"; | 440 "completion: $completion" ")"; |
359 } | 441 } |
360 | 442 |
361 Map toJson() { | 443 Map toJson() { |
362 Map map = new Map(); | 444 Map map = new Map(); |
363 map["completion"] = completion; | 445 map["completion"] = completion; |
364 return map; | 446 return map; |
365 } | 447 } |
366 } | 448 } |
| 449 mojom_types.MojomStruct _keyboard_KeyboardClient_CommitCompletion_Params__() { |
| 450 return new mojom_types.MojomStruct() |
| 451 ..declData = (new mojom_types.DeclarationData() |
| 452 ..shortName = '_KeyboardClientCommitCompletionParams' |
| 453 ..fullIdentifier = 'keyboard._KeyboardClientCommitCompletionParams') |
| 454 ..fields = <mojom_types.StructField>[ |
| 455 new mojom_types.StructField() |
| 456 ..declData = (new mojom_types.DeclarationData()..shortName = 'Completion
') |
| 457 ..type = (new mojom_types.Type() |
| 458 ..typeReference = (new mojom_types.TypeReference() |
| 459 |
| 460 ..identifier = '_keyboard_CompletionData__' |
| 461 ..typeKey = '_keyboard_CompletionData__' |
| 462 )), |
| 463 ]; |
| 464 } |
367 | 465 |
368 | 466 |
369 class _KeyboardClientCommitCorrectionParams extends bindings.Struct { | 467 class _KeyboardClientCommitCorrectionParams extends bindings.Struct { |
370 static const List<bindings.StructDataHeader> kVersions = const [ | 468 static const List<bindings.StructDataHeader> kVersions = const [ |
371 const bindings.StructDataHeader(16, 0) | 469 const bindings.StructDataHeader(16, 0) |
372 ]; | 470 ]; |
373 CorrectionData correction = null; | 471 CorrectionData correction = null; |
374 | 472 |
375 _KeyboardClientCommitCorrectionParams() : super(kVersions.last.size); | 473 _KeyboardClientCommitCorrectionParams() : super(kVersions.last.size); |
376 | 474 |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
425 return "_KeyboardClientCommitCorrectionParams(" | 523 return "_KeyboardClientCommitCorrectionParams(" |
426 "correction: $correction" ")"; | 524 "correction: $correction" ")"; |
427 } | 525 } |
428 | 526 |
429 Map toJson() { | 527 Map toJson() { |
430 Map map = new Map(); | 528 Map map = new Map(); |
431 map["correction"] = correction; | 529 map["correction"] = correction; |
432 return map; | 530 return map; |
433 } | 531 } |
434 } | 532 } |
| 533 mojom_types.MojomStruct _keyboard_KeyboardClient_CommitCorrection_Params__() { |
| 534 return new mojom_types.MojomStruct() |
| 535 ..declData = (new mojom_types.DeclarationData() |
| 536 ..shortName = '_KeyboardClientCommitCorrectionParams' |
| 537 ..fullIdentifier = 'keyboard._KeyboardClientCommitCorrectionParams') |
| 538 ..fields = <mojom_types.StructField>[ |
| 539 new mojom_types.StructField() |
| 540 ..declData = (new mojom_types.DeclarationData()..shortName = 'Correction
') |
| 541 ..type = (new mojom_types.Type() |
| 542 ..typeReference = (new mojom_types.TypeReference() |
| 543 |
| 544 ..identifier = '_keyboard_CorrectionData__' |
| 545 ..typeKey = '_keyboard_CorrectionData__' |
| 546 )), |
| 547 ]; |
| 548 } |
435 | 549 |
436 | 550 |
437 class _KeyboardClientCommitTextParams extends bindings.Struct { | 551 class _KeyboardClientCommitTextParams extends bindings.Struct { |
438 static const List<bindings.StructDataHeader> kVersions = const [ | 552 static const List<bindings.StructDataHeader> kVersions = const [ |
439 const bindings.StructDataHeader(24, 0) | 553 const bindings.StructDataHeader(24, 0) |
440 ]; | 554 ]; |
441 String text = null; | 555 String text = null; |
442 int newCursorPosition = 0; | 556 int newCursorPosition = 0; |
443 | 557 |
444 _KeyboardClientCommitTextParams() : super(kVersions.last.size); | 558 _KeyboardClientCommitTextParams() : super(kVersions.last.size); |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
501 "newCursorPosition: $newCursorPosition" ")"; | 615 "newCursorPosition: $newCursorPosition" ")"; |
502 } | 616 } |
503 | 617 |
504 Map toJson() { | 618 Map toJson() { |
505 Map map = new Map(); | 619 Map map = new Map(); |
506 map["text"] = text; | 620 map["text"] = text; |
507 map["newCursorPosition"] = newCursorPosition; | 621 map["newCursorPosition"] = newCursorPosition; |
508 return map; | 622 return map; |
509 } | 623 } |
510 } | 624 } |
| 625 mojom_types.MojomStruct _keyboard_KeyboardClient_CommitText_Params__() { |
| 626 return new mojom_types.MojomStruct() |
| 627 ..declData = (new mojom_types.DeclarationData() |
| 628 ..shortName = '_KeyboardClientCommitTextParams' |
| 629 ..fullIdentifier = 'keyboard._KeyboardClientCommitTextParams') |
| 630 ..fields = <mojom_types.StructField>[ |
| 631 new mojom_types.StructField() |
| 632 ..declData = (new mojom_types.DeclarationData()..shortName = 'Text') |
| 633 ..type = (new mojom_types.Type() |
| 634 ..stringType = (new mojom_types.StringType()..nullable = false)), |
| 635 |
| 636 new mojom_types.StructField() |
| 637 ..declData = (new mojom_types.DeclarationData()..shortName = 'NewCursorP
osition') |
| 638 ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.in
t32), |
| 639 ]; |
| 640 } |
511 | 641 |
512 | 642 |
513 class _KeyboardClientDeleteSurroundingTextParams extends bindings.Struct { | 643 class _KeyboardClientDeleteSurroundingTextParams extends bindings.Struct { |
514 static const List<bindings.StructDataHeader> kVersions = const [ | 644 static const List<bindings.StructDataHeader> kVersions = const [ |
515 const bindings.StructDataHeader(16, 0) | 645 const bindings.StructDataHeader(16, 0) |
516 ]; | 646 ]; |
517 int beforeLength = 0; | 647 int beforeLength = 0; |
518 int afterLength = 0; | 648 int afterLength = 0; |
519 | 649 |
520 _KeyboardClientDeleteSurroundingTextParams() : super(kVersions.last.size); | 650 _KeyboardClientDeleteSurroundingTextParams() : super(kVersions.last.size); |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
577 "afterLength: $afterLength" ")"; | 707 "afterLength: $afterLength" ")"; |
578 } | 708 } |
579 | 709 |
580 Map toJson() { | 710 Map toJson() { |
581 Map map = new Map(); | 711 Map map = new Map(); |
582 map["beforeLength"] = beforeLength; | 712 map["beforeLength"] = beforeLength; |
583 map["afterLength"] = afterLength; | 713 map["afterLength"] = afterLength; |
584 return map; | 714 return map; |
585 } | 715 } |
586 } | 716 } |
| 717 mojom_types.MojomStruct _keyboard_KeyboardClient_DeleteSurroundingText_Params__(
) { |
| 718 return new mojom_types.MojomStruct() |
| 719 ..declData = (new mojom_types.DeclarationData() |
| 720 ..shortName = '_KeyboardClientDeleteSurroundingTextParams' |
| 721 ..fullIdentifier = 'keyboard._KeyboardClientDeleteSurroundingTextParams') |
| 722 ..fields = <mojom_types.StructField>[ |
| 723 new mojom_types.StructField() |
| 724 ..declData = (new mojom_types.DeclarationData()..shortName = 'BeforeLeng
th') |
| 725 ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.in
t32), |
| 726 |
| 727 new mojom_types.StructField() |
| 728 ..declData = (new mojom_types.DeclarationData()..shortName = 'AfterLengt
h') |
| 729 ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.in
t32), |
| 730 ]; |
| 731 } |
587 | 732 |
588 | 733 |
589 class _KeyboardClientSetComposingRegionParams extends bindings.Struct { | 734 class _KeyboardClientSetComposingRegionParams extends bindings.Struct { |
590 static const List<bindings.StructDataHeader> kVersions = const [ | 735 static const List<bindings.StructDataHeader> kVersions = const [ |
591 const bindings.StructDataHeader(16, 0) | 736 const bindings.StructDataHeader(16, 0) |
592 ]; | 737 ]; |
593 int start = 0; | 738 int start = 0; |
594 int end = 0; | 739 int end = 0; |
595 | 740 |
596 _KeyboardClientSetComposingRegionParams() : super(kVersions.last.size); | 741 _KeyboardClientSetComposingRegionParams() : super(kVersions.last.size); |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
653 "end: $end" ")"; | 798 "end: $end" ")"; |
654 } | 799 } |
655 | 800 |
656 Map toJson() { | 801 Map toJson() { |
657 Map map = new Map(); | 802 Map map = new Map(); |
658 map["start"] = start; | 803 map["start"] = start; |
659 map["end"] = end; | 804 map["end"] = end; |
660 return map; | 805 return map; |
661 } | 806 } |
662 } | 807 } |
| 808 mojom_types.MojomStruct _keyboard_KeyboardClient_SetComposingRegion_Params__() { |
| 809 return new mojom_types.MojomStruct() |
| 810 ..declData = (new mojom_types.DeclarationData() |
| 811 ..shortName = '_KeyboardClientSetComposingRegionParams' |
| 812 ..fullIdentifier = 'keyboard._KeyboardClientSetComposingRegionParams') |
| 813 ..fields = <mojom_types.StructField>[ |
| 814 new mojom_types.StructField() |
| 815 ..declData = (new mojom_types.DeclarationData()..shortName = 'Start') |
| 816 ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.in
t32), |
| 817 |
| 818 new mojom_types.StructField() |
| 819 ..declData = (new mojom_types.DeclarationData()..shortName = 'End') |
| 820 ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.in
t32), |
| 821 ]; |
| 822 } |
663 | 823 |
664 | 824 |
665 class _KeyboardClientSetComposingTextParams extends bindings.Struct { | 825 class _KeyboardClientSetComposingTextParams extends bindings.Struct { |
666 static const List<bindings.StructDataHeader> kVersions = const [ | 826 static const List<bindings.StructDataHeader> kVersions = const [ |
667 const bindings.StructDataHeader(24, 0) | 827 const bindings.StructDataHeader(24, 0) |
668 ]; | 828 ]; |
669 String text = null; | 829 String text = null; |
670 int newCursorPosition = 0; | 830 int newCursorPosition = 0; |
671 | 831 |
672 _KeyboardClientSetComposingTextParams() : super(kVersions.last.size); | 832 _KeyboardClientSetComposingTextParams() : super(kVersions.last.size); |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
729 "newCursorPosition: $newCursorPosition" ")"; | 889 "newCursorPosition: $newCursorPosition" ")"; |
730 } | 890 } |
731 | 891 |
732 Map toJson() { | 892 Map toJson() { |
733 Map map = new Map(); | 893 Map map = new Map(); |
734 map["text"] = text; | 894 map["text"] = text; |
735 map["newCursorPosition"] = newCursorPosition; | 895 map["newCursorPosition"] = newCursorPosition; |
736 return map; | 896 return map; |
737 } | 897 } |
738 } | 898 } |
| 899 mojom_types.MojomStruct _keyboard_KeyboardClient_SetComposingText_Params__() { |
| 900 return new mojom_types.MojomStruct() |
| 901 ..declData = (new mojom_types.DeclarationData() |
| 902 ..shortName = '_KeyboardClientSetComposingTextParams' |
| 903 ..fullIdentifier = 'keyboard._KeyboardClientSetComposingTextParams') |
| 904 ..fields = <mojom_types.StructField>[ |
| 905 new mojom_types.StructField() |
| 906 ..declData = (new mojom_types.DeclarationData()..shortName = 'Text') |
| 907 ..type = (new mojom_types.Type() |
| 908 ..stringType = (new mojom_types.StringType()..nullable = false)), |
| 909 |
| 910 new mojom_types.StructField() |
| 911 ..declData = (new mojom_types.DeclarationData()..shortName = 'NewCursorP
osition') |
| 912 ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.in
t32), |
| 913 ]; |
| 914 } |
739 | 915 |
740 | 916 |
741 class _KeyboardClientSetSelectionParams extends bindings.Struct { | 917 class _KeyboardClientSetSelectionParams extends bindings.Struct { |
742 static const List<bindings.StructDataHeader> kVersions = const [ | 918 static const List<bindings.StructDataHeader> kVersions = const [ |
743 const bindings.StructDataHeader(16, 0) | 919 const bindings.StructDataHeader(16, 0) |
744 ]; | 920 ]; |
745 int start = 0; | 921 int start = 0; |
746 int end = 0; | 922 int end = 0; |
747 | 923 |
748 _KeyboardClientSetSelectionParams() : super(kVersions.last.size); | 924 _KeyboardClientSetSelectionParams() : super(kVersions.last.size); |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
805 "end: $end" ")"; | 981 "end: $end" ")"; |
806 } | 982 } |
807 | 983 |
808 Map toJson() { | 984 Map toJson() { |
809 Map map = new Map(); | 985 Map map = new Map(); |
810 map["start"] = start; | 986 map["start"] = start; |
811 map["end"] = end; | 987 map["end"] = end; |
812 return map; | 988 return map; |
813 } | 989 } |
814 } | 990 } |
| 991 mojom_types.MojomStruct _keyboard_KeyboardClient_SetSelection_Params__() { |
| 992 return new mojom_types.MojomStruct() |
| 993 ..declData = (new mojom_types.DeclarationData() |
| 994 ..shortName = '_KeyboardClientSetSelectionParams' |
| 995 ..fullIdentifier = 'keyboard._KeyboardClientSetSelectionParams') |
| 996 ..fields = <mojom_types.StructField>[ |
| 997 new mojom_types.StructField() |
| 998 ..declData = (new mojom_types.DeclarationData()..shortName = 'Start') |
| 999 ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.in
t32), |
| 1000 |
| 1001 new mojom_types.StructField() |
| 1002 ..declData = (new mojom_types.DeclarationData()..shortName = 'End') |
| 1003 ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.in
t32), |
| 1004 ]; |
| 1005 } |
815 | 1006 |
816 | 1007 |
817 class _KeyboardClientSubmitParams extends bindings.Struct { | 1008 class _KeyboardClientSubmitParams extends bindings.Struct { |
818 static const List<bindings.StructDataHeader> kVersions = const [ | 1009 static const List<bindings.StructDataHeader> kVersions = const [ |
819 const bindings.StructDataHeader(16, 0) | 1010 const bindings.StructDataHeader(16, 0) |
820 ]; | 1011 ]; |
821 SubmitAction action = null; | 1012 SubmitAction action = null; |
822 | 1013 |
823 _KeyboardClientSubmitParams() : super(kVersions.last.size); | 1014 _KeyboardClientSubmitParams() : super(kVersions.last.size); |
824 | 1015 |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
876 return "_KeyboardClientSubmitParams(" | 1067 return "_KeyboardClientSubmitParams(" |
877 "action: $action" ")"; | 1068 "action: $action" ")"; |
878 } | 1069 } |
879 | 1070 |
880 Map toJson() { | 1071 Map toJson() { |
881 Map map = new Map(); | 1072 Map map = new Map(); |
882 map["action"] = action; | 1073 map["action"] = action; |
883 return map; | 1074 return map; |
884 } | 1075 } |
885 } | 1076 } |
| 1077 mojom_types.MojomStruct _keyboard_KeyboardClient_Submit_Params__() { |
| 1078 return new mojom_types.MojomStruct() |
| 1079 ..declData = (new mojom_types.DeclarationData() |
| 1080 ..shortName = '_KeyboardClientSubmitParams' |
| 1081 ..fullIdentifier = 'keyboard._KeyboardClientSubmitParams') |
| 1082 ..fields = <mojom_types.StructField>[ |
| 1083 new mojom_types.StructField() |
| 1084 ..declData = (new mojom_types.DeclarationData()..shortName = 'Action') |
| 1085 ..type = (new mojom_types.Type() |
| 1086 ..typeReference = (new mojom_types.TypeReference() |
| 1087 |
| 1088 ..identifier = '_keyboard_SubmitAction__' |
| 1089 ..typeKey = '_keyboard_SubmitAction__' |
| 1090 )), |
| 1091 ]; |
| 1092 } |
886 | 1093 |
887 | 1094 |
888 class _KeyboardServiceShowParams extends bindings.Struct { | 1095 class _KeyboardServiceShowParams extends bindings.Struct { |
889 static const List<bindings.StructDataHeader> kVersions = const [ | 1096 static const List<bindings.StructDataHeader> kVersions = const [ |
890 const bindings.StructDataHeader(24, 0) | 1097 const bindings.StructDataHeader(24, 0) |
891 ]; | 1098 ]; |
892 Object client = null; | 1099 Object client = null; |
893 KeyboardType type = null; | 1100 KeyboardType type = null; |
894 | 1101 |
895 _KeyboardServiceShowParams() : super(kVersions.last.size); | 1102 _KeyboardServiceShowParams() : super(kVersions.last.size); |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
954 return "_KeyboardServiceShowParams(" | 1161 return "_KeyboardServiceShowParams(" |
955 "client: $client" ", " | 1162 "client: $client" ", " |
956 "type: $type" ")"; | 1163 "type: $type" ")"; |
957 } | 1164 } |
958 | 1165 |
959 Map toJson() { | 1166 Map toJson() { |
960 throw new bindings.MojoCodecError( | 1167 throw new bindings.MojoCodecError( |
961 'Object containing handles cannot be encoded to JSON.'); | 1168 'Object containing handles cannot be encoded to JSON.'); |
962 } | 1169 } |
963 } | 1170 } |
| 1171 mojom_types.MojomStruct _keyboard_KeyboardService_Show_Params__() { |
| 1172 return new mojom_types.MojomStruct() |
| 1173 ..declData = (new mojom_types.DeclarationData() |
| 1174 ..shortName = '_KeyboardServiceShowParams' |
| 1175 ..fullIdentifier = 'keyboard._KeyboardServiceShowParams') |
| 1176 ..fields = <mojom_types.StructField>[ |
| 1177 new mojom_types.StructField() |
| 1178 ..declData = (new mojom_types.DeclarationData()..shortName = 'Client') |
| 1179 ..type = (new mojom_types.Type() |
| 1180 ..typeReference = (new mojom_types.TypeReference() |
| 1181 |
| 1182 ..identifier = '_keyboard_KeyboardClient__' |
| 1183 ..typeKey = '_keyboard_KeyboardClient__' |
| 1184 )), |
| 1185 |
| 1186 new mojom_types.StructField() |
| 1187 ..declData = (new mojom_types.DeclarationData()..shortName = 'Type') |
| 1188 ..type = (new mojom_types.Type() |
| 1189 ..typeReference = (new mojom_types.TypeReference() |
| 1190 |
| 1191 ..identifier = '_keyboard_KeyboardType__' |
| 1192 ..typeKey = '_keyboard_KeyboardType__' |
| 1193 )), |
| 1194 ]; |
| 1195 } |
964 | 1196 |
965 | 1197 |
966 class _KeyboardServiceShowByRequestParams extends bindings.Struct { | 1198 class _KeyboardServiceShowByRequestParams extends bindings.Struct { |
967 static const List<bindings.StructDataHeader> kVersions = const [ | 1199 static const List<bindings.StructDataHeader> kVersions = const [ |
968 const bindings.StructDataHeader(8, 0) | 1200 const bindings.StructDataHeader(8, 0) |
969 ]; | 1201 ]; |
970 | 1202 |
971 _KeyboardServiceShowByRequestParams() : super(kVersions.last.size); | 1203 _KeyboardServiceShowByRequestParams() : super(kVersions.last.size); |
972 | 1204 |
973 static _KeyboardServiceShowByRequestParams deserialize(bindings.Message messag
e) { | 1205 static _KeyboardServiceShowByRequestParams deserialize(bindings.Message messag
e) { |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1012 | 1244 |
1013 String toString() { | 1245 String toString() { |
1014 return "_KeyboardServiceShowByRequestParams("")"; | 1246 return "_KeyboardServiceShowByRequestParams("")"; |
1015 } | 1247 } |
1016 | 1248 |
1017 Map toJson() { | 1249 Map toJson() { |
1018 Map map = new Map(); | 1250 Map map = new Map(); |
1019 return map; | 1251 return map; |
1020 } | 1252 } |
1021 } | 1253 } |
| 1254 mojom_types.MojomStruct _keyboard_KeyboardService_ShowByRequest_Params__() { |
| 1255 return new mojom_types.MojomStruct() |
| 1256 ..declData = (new mojom_types.DeclarationData() |
| 1257 ..shortName = '_KeyboardServiceShowByRequestParams' |
| 1258 ..fullIdentifier = 'keyboard._KeyboardServiceShowByRequestParams') |
| 1259 ..fields = <mojom_types.StructField>[]; |
| 1260 } |
1022 | 1261 |
1023 | 1262 |
1024 class _KeyboardServiceHideParams extends bindings.Struct { | 1263 class _KeyboardServiceHideParams extends bindings.Struct { |
1025 static const List<bindings.StructDataHeader> kVersions = const [ | 1264 static const List<bindings.StructDataHeader> kVersions = const [ |
1026 const bindings.StructDataHeader(8, 0) | 1265 const bindings.StructDataHeader(8, 0) |
1027 ]; | 1266 ]; |
1028 | 1267 |
1029 _KeyboardServiceHideParams() : super(kVersions.last.size); | 1268 _KeyboardServiceHideParams() : super(kVersions.last.size); |
1030 | 1269 |
1031 static _KeyboardServiceHideParams deserialize(bindings.Message message) { | 1270 static _KeyboardServiceHideParams deserialize(bindings.Message message) { |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1070 | 1309 |
1071 String toString() { | 1310 String toString() { |
1072 return "_KeyboardServiceHideParams("")"; | 1311 return "_KeyboardServiceHideParams("")"; |
1073 } | 1312 } |
1074 | 1313 |
1075 Map toJson() { | 1314 Map toJson() { |
1076 Map map = new Map(); | 1315 Map map = new Map(); |
1077 return map; | 1316 return map; |
1078 } | 1317 } |
1079 } | 1318 } |
| 1319 mojom_types.MojomStruct _keyboard_KeyboardService_Hide_Params__() { |
| 1320 return new mojom_types.MojomStruct() |
| 1321 ..declData = (new mojom_types.DeclarationData() |
| 1322 ..shortName = '_KeyboardServiceHideParams' |
| 1323 ..fullIdentifier = 'keyboard._KeyboardServiceHideParams') |
| 1324 ..fields = <mojom_types.StructField>[]; |
| 1325 } |
1080 | 1326 |
1081 | 1327 |
1082 class _KeyboardServiceSetTextParams extends bindings.Struct { | 1328 class _KeyboardServiceSetTextParams extends bindings.Struct { |
1083 static const List<bindings.StructDataHeader> kVersions = const [ | 1329 static const List<bindings.StructDataHeader> kVersions = const [ |
1084 const bindings.StructDataHeader(16, 0) | 1330 const bindings.StructDataHeader(16, 0) |
1085 ]; | 1331 ]; |
1086 String text = null; | 1332 String text = null; |
1087 | 1333 |
1088 _KeyboardServiceSetTextParams() : super(kVersions.last.size); | 1334 _KeyboardServiceSetTextParams() : super(kVersions.last.size); |
1089 | 1335 |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1137 return "_KeyboardServiceSetTextParams(" | 1383 return "_KeyboardServiceSetTextParams(" |
1138 "text: $text" ")"; | 1384 "text: $text" ")"; |
1139 } | 1385 } |
1140 | 1386 |
1141 Map toJson() { | 1387 Map toJson() { |
1142 Map map = new Map(); | 1388 Map map = new Map(); |
1143 map["text"] = text; | 1389 map["text"] = text; |
1144 return map; | 1390 return map; |
1145 } | 1391 } |
1146 } | 1392 } |
| 1393 mojom_types.MojomStruct _keyboard_KeyboardService_SetText_Params__() { |
| 1394 return new mojom_types.MojomStruct() |
| 1395 ..declData = (new mojom_types.DeclarationData() |
| 1396 ..shortName = '_KeyboardServiceSetTextParams' |
| 1397 ..fullIdentifier = 'keyboard._KeyboardServiceSetTextParams') |
| 1398 ..fields = <mojom_types.StructField>[ |
| 1399 new mojom_types.StructField() |
| 1400 ..declData = (new mojom_types.DeclarationData()..shortName = 'Text') |
| 1401 ..type = (new mojom_types.Type() |
| 1402 ..stringType = (new mojom_types.StringType()..nullable = false)), |
| 1403 ]; |
| 1404 } |
1147 | 1405 |
1148 | 1406 |
1149 class _KeyboardServiceSetSelectionParams extends bindings.Struct { | 1407 class _KeyboardServiceSetSelectionParams extends bindings.Struct { |
1150 static const List<bindings.StructDataHeader> kVersions = const [ | 1408 static const List<bindings.StructDataHeader> kVersions = const [ |
1151 const bindings.StructDataHeader(16, 0) | 1409 const bindings.StructDataHeader(16, 0) |
1152 ]; | 1410 ]; |
1153 int start = 0; | 1411 int start = 0; |
1154 int end = 0; | 1412 int end = 0; |
1155 | 1413 |
1156 _KeyboardServiceSetSelectionParams() : super(kVersions.last.size); | 1414 _KeyboardServiceSetSelectionParams() : super(kVersions.last.size); |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1213 "end: $end" ")"; | 1471 "end: $end" ")"; |
1214 } | 1472 } |
1215 | 1473 |
1216 Map toJson() { | 1474 Map toJson() { |
1217 Map map = new Map(); | 1475 Map map = new Map(); |
1218 map["start"] = start; | 1476 map["start"] = start; |
1219 map["end"] = end; | 1477 map["end"] = end; |
1220 return map; | 1478 return map; |
1221 } | 1479 } |
1222 } | 1480 } |
| 1481 mojom_types.MojomStruct _keyboard_KeyboardService_SetSelection_Params__() { |
| 1482 return new mojom_types.MojomStruct() |
| 1483 ..declData = (new mojom_types.DeclarationData() |
| 1484 ..shortName = '_KeyboardServiceSetSelectionParams' |
| 1485 ..fullIdentifier = 'keyboard._KeyboardServiceSetSelectionParams') |
| 1486 ..fields = <mojom_types.StructField>[ |
| 1487 new mojom_types.StructField() |
| 1488 ..declData = (new mojom_types.DeclarationData()..shortName = 'Start') |
| 1489 ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.in
t32), |
| 1490 |
| 1491 new mojom_types.StructField() |
| 1492 ..declData = (new mojom_types.DeclarationData()..shortName = 'End') |
| 1493 ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.in
t32), |
| 1494 ]; |
| 1495 } |
1223 | 1496 |
1224 | 1497 |
1225 class _KeyboardServiceFactoryCreateKeyboardServiceParams extends bindings.Struct
{ | 1498 class _KeyboardServiceFactoryCreateKeyboardServiceParams extends bindings.Struct
{ |
1226 static const List<bindings.StructDataHeader> kVersions = const [ | 1499 static const List<bindings.StructDataHeader> kVersions = const [ |
1227 const bindings.StructDataHeader(16, 0) | 1500 const bindings.StructDataHeader(16, 0) |
1228 ]; | 1501 ]; |
1229 Object keyEventDispatcher = null; | 1502 Object keyEventDispatcher = null; |
1230 Object serviceRequest = null; | 1503 Object serviceRequest = null; |
1231 | 1504 |
1232 _KeyboardServiceFactoryCreateKeyboardServiceParams() : super(kVersions.last.si
ze); | 1505 _KeyboardServiceFactoryCreateKeyboardServiceParams() : super(kVersions.last.si
ze); |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1287 return "_KeyboardServiceFactoryCreateKeyboardServiceParams(" | 1560 return "_KeyboardServiceFactoryCreateKeyboardServiceParams(" |
1288 "keyEventDispatcher: $keyEventDispatcher" ", " | 1561 "keyEventDispatcher: $keyEventDispatcher" ", " |
1289 "serviceRequest: $serviceRequest" ")"; | 1562 "serviceRequest: $serviceRequest" ")"; |
1290 } | 1563 } |
1291 | 1564 |
1292 Map toJson() { | 1565 Map toJson() { |
1293 throw new bindings.MojoCodecError( | 1566 throw new bindings.MojoCodecError( |
1294 'Object containing handles cannot be encoded to JSON.'); | 1567 'Object containing handles cannot be encoded to JSON.'); |
1295 } | 1568 } |
1296 } | 1569 } |
| 1570 mojom_types.MojomStruct _keyboard_KeyboardServiceFactory_CreateKeyboardService_P
arams__() { |
| 1571 return new mojom_types.MojomStruct() |
| 1572 ..declData = (new mojom_types.DeclarationData() |
| 1573 ..shortName = '_KeyboardServiceFactoryCreateKeyboardServiceParams' |
| 1574 ..fullIdentifier = 'keyboard._KeyboardServiceFactoryCreateKeyboardServiceP
arams') |
| 1575 ..fields = <mojom_types.StructField>[ |
| 1576 new mojom_types.StructField() |
| 1577 ..declData = (new mojom_types.DeclarationData()..shortName = 'KeyEventDi
spatcher') |
| 1578 ..type = (new mojom_types.Type() |
| 1579 ..typeReference = (new mojom_types.TypeReference() |
| 1580 |
| 1581 ..isInterfaceRequest = true |
| 1582 ..identifier = '_native_viewport_NativeViewportEventDispatcher__' |
| 1583 ..typeKey = '_native_viewport_NativeViewportEventDispatcher__' |
| 1584 )), |
| 1585 |
| 1586 new mojom_types.StructField() |
| 1587 ..declData = (new mojom_types.DeclarationData()..shortName = 'ServiceReq
uest') |
| 1588 ..type = (new mojom_types.Type() |
| 1589 ..typeReference = (new mojom_types.TypeReference() |
| 1590 |
| 1591 ..isInterfaceRequest = true |
| 1592 ..identifier = '_keyboard_KeyboardService__' |
| 1593 ..typeKey = '_keyboard_KeyboardService__' |
| 1594 )), |
| 1595 ]; |
| 1596 } |
| 1597 |
1297 | 1598 |
1298 const int _KeyboardClient_commitCompletionName = 0; | 1599 const int _KeyboardClient_commitCompletionName = 0; |
1299 const int _KeyboardClient_commitCorrectionName = 1; | 1600 const int _KeyboardClient_commitCorrectionName = 1; |
1300 const int _KeyboardClient_commitTextName = 2; | 1601 const int _KeyboardClient_commitTextName = 2; |
1301 const int _KeyboardClient_deleteSurroundingTextName = 3; | 1602 const int _KeyboardClient_deleteSurroundingTextName = 3; |
1302 const int _KeyboardClient_setComposingRegionName = 4; | 1603 const int _KeyboardClient_setComposingRegionName = 4; |
1303 const int _KeyboardClient_setComposingTextName = 5; | 1604 const int _KeyboardClient_setComposingTextName = 5; |
1304 const int _KeyboardClient_setSelectionName = 6; | 1605 const int _KeyboardClient_setSelectionName = 6; |
1305 const int _KeyboardClient_submitName = 7; | 1606 const int _KeyboardClient_submitName = 7; |
1306 | 1607 |
| 1608 mojom_types.MojomInterface _keyboard_KeyboardClient__() { |
| 1609 return new mojom_types.MojomInterface() |
| 1610 ..declData = (new mojom_types.DeclarationData() |
| 1611 ..shortName = 'KeyboardClient' |
| 1612 ..fullIdentifier = 'keyboard.KeyboardClient') |
| 1613 ..interfaceName = 'KeyboardClient' |
| 1614 ..methods = <int, mojom_types.MojomMethod>{ |
| 1615 _KeyboardClient_commitCompletionName: new mojom_types.MojomMethod() |
| 1616 ..declData = (new mojom_types.DeclarationData()..shortName = 'CommitComp
letion') |
| 1617 ..ordinal = _KeyboardClient_commitCompletionName..parameters = _keyboard
_KeyboardClient_CommitCompletion_Params__(),_KeyboardClient_commitCorrectionName
: new mojom_types.MojomMethod() |
| 1618 ..declData = (new mojom_types.DeclarationData()..shortName = 'CommitCorr
ection') |
| 1619 ..ordinal = _KeyboardClient_commitCorrectionName..parameters = _keyboard
_KeyboardClient_CommitCorrection_Params__(),_KeyboardClient_commitTextName: new
mojom_types.MojomMethod() |
| 1620 ..declData = (new mojom_types.DeclarationData()..shortName = 'CommitText
') |
| 1621 ..ordinal = _KeyboardClient_commitTextName..parameters = _keyboard_Keybo
ardClient_CommitText_Params__(),_KeyboardClient_deleteSurroundingTextName: new m
ojom_types.MojomMethod() |
| 1622 ..declData = (new mojom_types.DeclarationData()..shortName = 'DeleteSurr
oundingText') |
| 1623 ..ordinal = _KeyboardClient_deleteSurroundingTextName..parameters = _key
board_KeyboardClient_DeleteSurroundingText_Params__(),_KeyboardClient_setComposi
ngRegionName: new mojom_types.MojomMethod() |
| 1624 ..declData = (new mojom_types.DeclarationData()..shortName = 'SetComposi
ngRegion') |
| 1625 ..ordinal = _KeyboardClient_setComposingRegionName..parameters = _keyboa
rd_KeyboardClient_SetComposingRegion_Params__(),_KeyboardClient_setComposingText
Name: new mojom_types.MojomMethod() |
| 1626 ..declData = (new mojom_types.DeclarationData()..shortName = 'SetComposi
ngText') |
| 1627 ..ordinal = _KeyboardClient_setComposingTextName..parameters = _keyboard
_KeyboardClient_SetComposingText_Params__(),_KeyboardClient_setSelectionName: ne
w mojom_types.MojomMethod() |
| 1628 ..declData = (new mojom_types.DeclarationData()..shortName = 'SetSelecti
on') |
| 1629 ..ordinal = _KeyboardClient_setSelectionName..parameters = _keyboard_Key
boardClient_SetSelection_Params__(),_KeyboardClient_submitName: new mojom_types.
MojomMethod() |
| 1630 ..declData = (new mojom_types.DeclarationData()..shortName = 'Submit') |
| 1631 ..ordinal = _KeyboardClient_submitName..parameters = _keyboard_KeyboardC
lient_Submit_Params__(), |
| 1632 }; |
| 1633 } |
| 1634 |
| 1635 class _KeyboardClientServiceDescription implements service_describer.ServiceDesc
ription { |
| 1636 dynamic getTopLevelInterface([Function responseFactory = null]) { |
| 1637 return _keyboard_KeyboardClient__(); |
| 1638 } |
| 1639 dynamic getTypeDefinition(String typeKey,[Function responseFactory = null]) { |
| 1640 return getAllMojomTypeDefinitions()[typeKey]; |
| 1641 } |
| 1642 dynamic getAllTypeDefinitions([Function responseFactory = null]) { |
| 1643 return getAllMojomTypeDefinitions(); |
| 1644 } |
| 1645 } |
| 1646 |
1307 abstract class KeyboardClient { | 1647 abstract class KeyboardClient { |
1308 static const String serviceName = null; | 1648 static const String serviceName = null; |
1309 void commitCompletion(CompletionData completion); | 1649 void commitCompletion(CompletionData completion); |
1310 void commitCorrection(CorrectionData correction); | 1650 void commitCorrection(CorrectionData correction); |
1311 void commitText(String text, int newCursorPosition); | 1651 void commitText(String text, int newCursorPosition); |
1312 void deleteSurroundingText(int beforeLength, int afterLength); | 1652 void deleteSurroundingText(int beforeLength, int afterLength); |
1313 void setComposingRegion(int start, int end); | 1653 void setComposingRegion(int start, int end); |
1314 void setComposingText(String text, int newCursorPosition); | 1654 void setComposingText(String text, int newCursorPosition); |
1315 void setSelection(int start, int end); | 1655 void setSelection(int start, int end); |
1316 void submit(SubmitAction action); | 1656 void submit(SubmitAction action); |
1317 } | 1657 } |
1318 | 1658 |
1319 | 1659 |
1320 class _KeyboardClientProxyImpl extends bindings.Proxy { | 1660 class _KeyboardClientProxyImpl extends bindings.Proxy { |
1321 _KeyboardClientProxyImpl.fromEndpoint( | 1661 _KeyboardClientProxyImpl.fromEndpoint( |
1322 core.MojoMessagePipeEndpoint endpoint) : super.fromEndpoint(endpoint); | 1662 core.MojoMessagePipeEndpoint endpoint) : super.fromEndpoint(endpoint); |
1323 | 1663 |
1324 _KeyboardClientProxyImpl.fromHandle(core.MojoHandle handle) : | 1664 _KeyboardClientProxyImpl.fromHandle(core.MojoHandle handle) : |
1325 super.fromHandle(handle); | 1665 super.fromHandle(handle); |
1326 | 1666 |
1327 _KeyboardClientProxyImpl.unbound() : super.unbound(); | 1667 _KeyboardClientProxyImpl.unbound() : super.unbound(); |
1328 | 1668 |
1329 static _KeyboardClientProxyImpl newFromEndpoint( | 1669 static _KeyboardClientProxyImpl newFromEndpoint( |
1330 core.MojoMessagePipeEndpoint endpoint) { | 1670 core.MojoMessagePipeEndpoint endpoint) { |
1331 assert(endpoint.setDescription("For _KeyboardClientProxyImpl")); | 1671 assert(endpoint.setDescription("For _KeyboardClientProxyImpl")); |
1332 return new _KeyboardClientProxyImpl.fromEndpoint(endpoint); | 1672 return new _KeyboardClientProxyImpl.fromEndpoint(endpoint); |
1333 } | 1673 } |
1334 | 1674 |
| 1675 service_describer.ServiceDescription get serviceDescription => |
| 1676 new _KeyboardClientServiceDescription(); |
| 1677 |
1335 void handleResponse(bindings.ServiceMessage message) { | 1678 void handleResponse(bindings.ServiceMessage message) { |
1336 switch (message.header.type) { | 1679 switch (message.header.type) { |
1337 default: | 1680 default: |
1338 proxyError("Unexpected message type: ${message.header.type}"); | 1681 proxyError("Unexpected message type: ${message.header.type}"); |
1339 close(immediate: true); | 1682 close(immediate: true); |
1340 break; | 1683 break; |
1341 } | 1684 } |
1342 } | 1685 } |
1343 | 1686 |
1344 String toString() { | 1687 String toString() { |
(...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1571 assert(_impl == null); | 1914 assert(_impl == null); |
1572 _impl = d; | 1915 _impl = d; |
1573 } | 1916 } |
1574 | 1917 |
1575 String toString() { | 1918 String toString() { |
1576 var superString = super.toString(); | 1919 var superString = super.toString(); |
1577 return "KeyboardClientStub($superString)"; | 1920 return "KeyboardClientStub($superString)"; |
1578 } | 1921 } |
1579 | 1922 |
1580 int get version => 0; | 1923 int get version => 0; |
| 1924 |
| 1925 |
| 1926 service_describer.ServiceDescription get serviceDescription => |
| 1927 new _KeyboardClientServiceDescription(); |
1581 } | 1928 } |
1582 | 1929 |
1583 const int _KeyboardService_showName = 0; | 1930 const int _KeyboardService_showName = 0; |
1584 const int _KeyboardService_showByRequestName = 1; | 1931 const int _KeyboardService_showByRequestName = 1; |
1585 const int _KeyboardService_hideName = 2; | 1932 const int _KeyboardService_hideName = 2; |
1586 const int _KeyboardService_setTextName = 3; | 1933 const int _KeyboardService_setTextName = 3; |
1587 const int _KeyboardService_setSelectionName = 4; | 1934 const int _KeyboardService_setSelectionName = 4; |
1588 | 1935 |
| 1936 mojom_types.MojomInterface _keyboard_KeyboardService__() { |
| 1937 return new mojom_types.MojomInterface() |
| 1938 ..declData = (new mojom_types.DeclarationData() |
| 1939 ..shortName = 'KeyboardService' |
| 1940 ..fullIdentifier = 'keyboard.KeyboardService') |
| 1941 ..interfaceName = 'KeyboardService' |
| 1942 ..methods = <int, mojom_types.MojomMethod>{ |
| 1943 _KeyboardService_showName: new mojom_types.MojomMethod() |
| 1944 ..declData = (new mojom_types.DeclarationData()..shortName = 'Show') |
| 1945 ..ordinal = _KeyboardService_showName..parameters = _keyboard_KeyboardSe
rvice_Show_Params__(),_KeyboardService_showByRequestName: new mojom_types.MojomM
ethod() |
| 1946 ..declData = (new mojom_types.DeclarationData()..shortName = 'ShowByRequ
est') |
| 1947 ..ordinal = _KeyboardService_showByRequestName..parameters = _keyboard_K
eyboardService_ShowByRequest_Params__(),_KeyboardService_hideName: new mojom_typ
es.MojomMethod() |
| 1948 ..declData = (new mojom_types.DeclarationData()..shortName = 'Hide') |
| 1949 ..ordinal = _KeyboardService_hideName..parameters = _keyboard_KeyboardSe
rvice_Hide_Params__(),_KeyboardService_setTextName: new mojom_types.MojomMethod(
) |
| 1950 ..declData = (new mojom_types.DeclarationData()..shortName = 'SetText') |
| 1951 ..ordinal = _KeyboardService_setTextName..parameters = _keyboard_Keyboar
dService_SetText_Params__(),_KeyboardService_setSelectionName: new mojom_types.M
ojomMethod() |
| 1952 ..declData = (new mojom_types.DeclarationData()..shortName = 'SetSelecti
on') |
| 1953 ..ordinal = _KeyboardService_setSelectionName..parameters = _keyboard_Ke
yboardService_SetSelection_Params__(), |
| 1954 }; |
| 1955 } |
| 1956 |
| 1957 class _KeyboardServiceServiceDescription implements service_describer.ServiceDes
cription { |
| 1958 dynamic getTopLevelInterface([Function responseFactory = null]) { |
| 1959 return _keyboard_KeyboardService__(); |
| 1960 } |
| 1961 dynamic getTypeDefinition(String typeKey,[Function responseFactory = null]) { |
| 1962 return getAllMojomTypeDefinitions()[typeKey]; |
| 1963 } |
| 1964 dynamic getAllTypeDefinitions([Function responseFactory = null]) { |
| 1965 return getAllMojomTypeDefinitions(); |
| 1966 } |
| 1967 } |
| 1968 |
1589 abstract class KeyboardService { | 1969 abstract class KeyboardService { |
1590 static const String serviceName = "keyboard::KeyboardService"; | 1970 static const String serviceName = "keyboard::KeyboardService"; |
1591 void show(Object client, KeyboardType type); | 1971 void show(Object client, KeyboardType type); |
1592 void showByRequest(); | 1972 void showByRequest(); |
1593 void hide(); | 1973 void hide(); |
1594 void setText(String text); | 1974 void setText(String text); |
1595 void setSelection(int start, int end); | 1975 void setSelection(int start, int end); |
1596 } | 1976 } |
1597 | 1977 |
1598 | 1978 |
1599 class _KeyboardServiceProxyImpl extends bindings.Proxy { | 1979 class _KeyboardServiceProxyImpl extends bindings.Proxy { |
1600 _KeyboardServiceProxyImpl.fromEndpoint( | 1980 _KeyboardServiceProxyImpl.fromEndpoint( |
1601 core.MojoMessagePipeEndpoint endpoint) : super.fromEndpoint(endpoint); | 1981 core.MojoMessagePipeEndpoint endpoint) : super.fromEndpoint(endpoint); |
1602 | 1982 |
1603 _KeyboardServiceProxyImpl.fromHandle(core.MojoHandle handle) : | 1983 _KeyboardServiceProxyImpl.fromHandle(core.MojoHandle handle) : |
1604 super.fromHandle(handle); | 1984 super.fromHandle(handle); |
1605 | 1985 |
1606 _KeyboardServiceProxyImpl.unbound() : super.unbound(); | 1986 _KeyboardServiceProxyImpl.unbound() : super.unbound(); |
1607 | 1987 |
1608 static _KeyboardServiceProxyImpl newFromEndpoint( | 1988 static _KeyboardServiceProxyImpl newFromEndpoint( |
1609 core.MojoMessagePipeEndpoint endpoint) { | 1989 core.MojoMessagePipeEndpoint endpoint) { |
1610 assert(endpoint.setDescription("For _KeyboardServiceProxyImpl")); | 1990 assert(endpoint.setDescription("For _KeyboardServiceProxyImpl")); |
1611 return new _KeyboardServiceProxyImpl.fromEndpoint(endpoint); | 1991 return new _KeyboardServiceProxyImpl.fromEndpoint(endpoint); |
1612 } | 1992 } |
1613 | 1993 |
| 1994 service_describer.ServiceDescription get serviceDescription => |
| 1995 new _KeyboardServiceServiceDescription(); |
| 1996 |
1614 void handleResponse(bindings.ServiceMessage message) { | 1997 void handleResponse(bindings.ServiceMessage message) { |
1615 switch (message.header.type) { | 1998 switch (message.header.type) { |
1616 default: | 1999 default: |
1617 proxyError("Unexpected message type: ${message.header.type}"); | 2000 proxyError("Unexpected message type: ${message.header.type}"); |
1618 close(immediate: true); | 2001 close(immediate: true); |
1619 break; | 2002 break; |
1620 } | 2003 } |
1621 } | 2004 } |
1622 | 2005 |
1623 String toString() { | 2006 String toString() { |
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1803 assert(_impl == null); | 2186 assert(_impl == null); |
1804 _impl = d; | 2187 _impl = d; |
1805 } | 2188 } |
1806 | 2189 |
1807 String toString() { | 2190 String toString() { |
1808 var superString = super.toString(); | 2191 var superString = super.toString(); |
1809 return "KeyboardServiceStub($superString)"; | 2192 return "KeyboardServiceStub($superString)"; |
1810 } | 2193 } |
1811 | 2194 |
1812 int get version => 0; | 2195 int get version => 0; |
| 2196 |
| 2197 |
| 2198 service_describer.ServiceDescription get serviceDescription => |
| 2199 new _KeyboardServiceServiceDescription(); |
1813 } | 2200 } |
1814 | 2201 |
1815 const int _KeyboardServiceFactory_createKeyboardServiceName = 0; | 2202 const int _KeyboardServiceFactory_createKeyboardServiceName = 0; |
1816 | 2203 |
| 2204 mojom_types.MojomInterface _keyboard_KeyboardServiceFactory__() { |
| 2205 return new mojom_types.MojomInterface() |
| 2206 ..declData = (new mojom_types.DeclarationData() |
| 2207 ..shortName = 'KeyboardServiceFactory' |
| 2208 ..fullIdentifier = 'keyboard.KeyboardServiceFactory') |
| 2209 ..interfaceName = 'KeyboardServiceFactory' |
| 2210 ..methods = <int, mojom_types.MojomMethod>{ |
| 2211 _KeyboardServiceFactory_createKeyboardServiceName: new mojom_types.MojomMethod() |
| 2212 ..declData = (new mojom_types.DeclarationData()..shortName = 'CreateKeyb
oardService') |
| 2213 ..ordinal = _KeyboardServiceFactory_createKeyboardServiceName..parameter
s = _keyboard_KeyboardServiceFactory_CreateKeyboardService_Params__(), |
| 2214 }; |
| 2215 } |
| 2216 |
| 2217 class _KeyboardServiceFactoryServiceDescription implements service_describer.Ser
viceDescription { |
| 2218 dynamic getTopLevelInterface([Function responseFactory = null]) { |
| 2219 return _keyboard_KeyboardServiceFactory__(); |
| 2220 } |
| 2221 dynamic getTypeDefinition(String typeKey,[Function responseFactory = null]) { |
| 2222 return getAllMojomTypeDefinitions()[typeKey]; |
| 2223 } |
| 2224 dynamic getAllTypeDefinitions([Function responseFactory = null]) { |
| 2225 return getAllMojomTypeDefinitions(); |
| 2226 } |
| 2227 } |
| 2228 |
1817 abstract class KeyboardServiceFactory { | 2229 abstract class KeyboardServiceFactory { |
1818 static const String serviceName = "keyboard::KeyboardServiceFactory"; | 2230 static const String serviceName = "keyboard::KeyboardServiceFactory"; |
1819 void createKeyboardService(Object keyEventDispatcher, Object serviceRequest); | 2231 void createKeyboardService(Object keyEventDispatcher, Object serviceRequest); |
1820 } | 2232 } |
1821 | 2233 |
1822 | 2234 |
1823 class _KeyboardServiceFactoryProxyImpl extends bindings.Proxy { | 2235 class _KeyboardServiceFactoryProxyImpl extends bindings.Proxy { |
1824 _KeyboardServiceFactoryProxyImpl.fromEndpoint( | 2236 _KeyboardServiceFactoryProxyImpl.fromEndpoint( |
1825 core.MojoMessagePipeEndpoint endpoint) : super.fromEndpoint(endpoint); | 2237 core.MojoMessagePipeEndpoint endpoint) : super.fromEndpoint(endpoint); |
1826 | 2238 |
1827 _KeyboardServiceFactoryProxyImpl.fromHandle(core.MojoHandle handle) : | 2239 _KeyboardServiceFactoryProxyImpl.fromHandle(core.MojoHandle handle) : |
1828 super.fromHandle(handle); | 2240 super.fromHandle(handle); |
1829 | 2241 |
1830 _KeyboardServiceFactoryProxyImpl.unbound() : super.unbound(); | 2242 _KeyboardServiceFactoryProxyImpl.unbound() : super.unbound(); |
1831 | 2243 |
1832 static _KeyboardServiceFactoryProxyImpl newFromEndpoint( | 2244 static _KeyboardServiceFactoryProxyImpl newFromEndpoint( |
1833 core.MojoMessagePipeEndpoint endpoint) { | 2245 core.MojoMessagePipeEndpoint endpoint) { |
1834 assert(endpoint.setDescription("For _KeyboardServiceFactoryProxyImpl")); | 2246 assert(endpoint.setDescription("For _KeyboardServiceFactoryProxyImpl")); |
1835 return new _KeyboardServiceFactoryProxyImpl.fromEndpoint(endpoint); | 2247 return new _KeyboardServiceFactoryProxyImpl.fromEndpoint(endpoint); |
1836 } | 2248 } |
1837 | 2249 |
| 2250 service_describer.ServiceDescription get serviceDescription => |
| 2251 new _KeyboardServiceFactoryServiceDescription(); |
| 2252 |
1838 void handleResponse(bindings.ServiceMessage message) { | 2253 void handleResponse(bindings.ServiceMessage message) { |
1839 switch (message.header.type) { | 2254 switch (message.header.type) { |
1840 default: | 2255 default: |
1841 proxyError("Unexpected message type: ${message.header.type}"); | 2256 proxyError("Unexpected message type: ${message.header.type}"); |
1842 close(immediate: true); | 2257 close(immediate: true); |
1843 break; | 2258 break; |
1844 } | 2259 } |
1845 } | 2260 } |
1846 | 2261 |
1847 String toString() { | 2262 String toString() { |
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1972 assert(_impl == null); | 2387 assert(_impl == null); |
1973 _impl = d; | 2388 _impl = d; |
1974 } | 2389 } |
1975 | 2390 |
1976 String toString() { | 2391 String toString() { |
1977 var superString = super.toString(); | 2392 var superString = super.toString(); |
1978 return "KeyboardServiceFactoryStub($superString)"; | 2393 return "KeyboardServiceFactoryStub($superString)"; |
1979 } | 2394 } |
1980 | 2395 |
1981 int get version => 0; | 2396 int get version => 0; |
| 2397 |
| 2398 |
| 2399 service_describer.ServiceDescription get serviceDescription => |
| 2400 new _KeyboardServiceFactoryServiceDescription(); |
1982 } | 2401 } |
1983 | 2402 |
1984 | 2403 |
| 2404 |
| 2405 |
| 2406 |
| 2407 |
| 2408 |
| 2409 Map<String, mojom_types.UserDefinedType> _initDescriptions() { |
| 2410 var map = new HashMap<String, mojom_types.UserDefinedType>(); |
| 2411 map["_keyboard_SubmitAction__"] = |
| 2412 new mojom_types.UserDefinedType() |
| 2413 ..enumType = _keyboard_SubmitAction__(); |
| 2414 map["_keyboard_KeyboardType__"] = |
| 2415 new mojom_types.UserDefinedType() |
| 2416 ..enumType = _keyboard_KeyboardType__(); |
| 2417 map["_keyboard_CompletionData__"] = |
| 2418 new mojom_types.UserDefinedType() |
| 2419 ..structType = _keyboard_CompletionData__(); |
| 2420 map["_keyboard_CorrectionData__"] = |
| 2421 new mojom_types.UserDefinedType() |
| 2422 ..structType = _keyboard_CorrectionData__(); |
| 2423 map["_keyboard_KeyboardClient_CommitCompletion_Params__"] = |
| 2424 new mojom_types.UserDefinedType() |
| 2425 ..structType = _keyboard_KeyboardClient_CommitCompletion_Params__(); |
| 2426 map["_keyboard_KeyboardClient_CommitCorrection_Params__"] = |
| 2427 new mojom_types.UserDefinedType() |
| 2428 ..structType = _keyboard_KeyboardClient_CommitCorrection_Params__(); |
| 2429 map["_keyboard_KeyboardClient_CommitText_Params__"] = |
| 2430 new mojom_types.UserDefinedType() |
| 2431 ..structType = _keyboard_KeyboardClient_CommitText_Params__(); |
| 2432 map["_keyboard_KeyboardClient_DeleteSurroundingText_Params__"] = |
| 2433 new mojom_types.UserDefinedType() |
| 2434 ..structType = _keyboard_KeyboardClient_DeleteSurroundingText_Params__(); |
| 2435 map["_keyboard_KeyboardClient_SetComposingRegion_Params__"] = |
| 2436 new mojom_types.UserDefinedType() |
| 2437 ..structType = _keyboard_KeyboardClient_SetComposingRegion_Params__(); |
| 2438 map["_keyboard_KeyboardClient_SetComposingText_Params__"] = |
| 2439 new mojom_types.UserDefinedType() |
| 2440 ..structType = _keyboard_KeyboardClient_SetComposingText_Params__(); |
| 2441 map["_keyboard_KeyboardClient_SetSelection_Params__"] = |
| 2442 new mojom_types.UserDefinedType() |
| 2443 ..structType = _keyboard_KeyboardClient_SetSelection_Params__(); |
| 2444 map["_keyboard_KeyboardClient_Submit_Params__"] = |
| 2445 new mojom_types.UserDefinedType() |
| 2446 ..structType = _keyboard_KeyboardClient_Submit_Params__(); |
| 2447 map["_keyboard_KeyboardService_Show_Params__"] = |
| 2448 new mojom_types.UserDefinedType() |
| 2449 ..structType = _keyboard_KeyboardService_Show_Params__(); |
| 2450 map["_keyboard_KeyboardService_ShowByRequest_Params__"] = |
| 2451 new mojom_types.UserDefinedType() |
| 2452 ..structType = _keyboard_KeyboardService_ShowByRequest_Params__(); |
| 2453 map["_keyboard_KeyboardService_Hide_Params__"] = |
| 2454 new mojom_types.UserDefinedType() |
| 2455 ..structType = _keyboard_KeyboardService_Hide_Params__(); |
| 2456 map["_keyboard_KeyboardService_SetText_Params__"] = |
| 2457 new mojom_types.UserDefinedType() |
| 2458 ..structType = _keyboard_KeyboardService_SetText_Params__(); |
| 2459 map["_keyboard_KeyboardService_SetSelection_Params__"] = |
| 2460 new mojom_types.UserDefinedType() |
| 2461 ..structType = _keyboard_KeyboardService_SetSelection_Params__(); |
| 2462 map["_keyboard_KeyboardServiceFactory_CreateKeyboardService_Params__"] = |
| 2463 new mojom_types.UserDefinedType() |
| 2464 ..structType = _keyboard_KeyboardServiceFactory_CreateKeyboardService_Para
ms__(); |
| 2465 map["_keyboard_KeyboardClient__"] = |
| 2466 new mojom_types.UserDefinedType() |
| 2467 ..interfaceType = _keyboard_KeyboardClient__(); |
| 2468 map["_keyboard_KeyboardService__"] = |
| 2469 new mojom_types.UserDefinedType() |
| 2470 ..interfaceType = _keyboard_KeyboardService__(); |
| 2471 map["_keyboard_KeyboardServiceFactory__"] = |
| 2472 new mojom_types.UserDefinedType() |
| 2473 ..interfaceType = _keyboard_KeyboardServiceFactory__(); |
| 2474 native_viewport_mojom.getAllMojomTypeDefinitions().forEach((String s, mojom_type
s.UserDefinedType udt) { |
| 2475 map[s] = udt; |
| 2476 }); |
| 2477 |
| 2478 return map; |
| 2479 } |
| 2480 |
| 2481 var _MojomDesc; |
| 2482 Map<String, mojom_types.UserDefinedType> getAllMojomTypeDefinitions() { |
| 2483 if (_MojomDesc == null) { |
| 2484 _MojomDesc = _initDescriptions(); |
| 2485 } |
| 2486 return _MojomDesc; |
| 2487 } |
| 2488 |
OLD | NEW |