| 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 | 8 |
| 9 import 'package:mojo/bindings.dart' as bindings; | 9 import 'package:mojo/bindings.dart' as bindings; |
| 10 import 'package:mojo/core.dart' as core; | 10 import 'package:mojo/core.dart' as core; |
| 11 import 'package:mojo/mojo/mojom_types.mojom.dart' as mojom_types; |
| 12 import 'package:mojo/mojo/service_describer.mojom.dart' as service_describer; |
| 11 class SubmitAction extends bindings.MojoEnum { | 13 class SubmitAction extends bindings.MojoEnum { |
| 12 static const DONE = const SubmitAction._(0); | 14 static const DONE = const SubmitAction._(0); |
| 13 | 15 |
| 14 const SubmitAction._(int v) : super(v); | 16 const SubmitAction._(int v) : super(v); |
| 15 | 17 |
| 16 static const Map<String, SubmitAction> valuesMap = const { | 18 static const Map<String, SubmitAction> valuesMap = const { |
| 17 "DONE": DONE, | 19 "DONE": DONE, |
| 18 }; | 20 }; |
| 19 static const List<SubmitAction> values = const [ | 21 static const List<SubmitAction> values = const [ |
| 20 DONE, | 22 DONE, |
| (...skipping 17 matching lines...) Expand all Loading... |
| 38 throw new bindings.MojoCodecError( | 40 throw new bindings.MojoCodecError( |
| 39 'Bad value $v for enum SubmitAction.'); | 41 'Bad value $v for enum SubmitAction.'); |
| 40 } | 42 } |
| 41 return result; | 43 return result; |
| 42 } | 44 } |
| 43 | 45 |
| 44 String toString() { | 46 String toString() { |
| 45 switch(this) { | 47 switch(this) { |
| 46 case DONE: | 48 case DONE: |
| 47 return 'SubmitAction.DONE'; | 49 return 'SubmitAction.DONE'; |
| 50 default: |
| 51 return null; |
| 48 } | 52 } |
| 49 } | 53 } |
| 50 | 54 |
| 51 int toJson() => value; | 55 int toJson() => value; |
| 52 } | 56 } |
| 57 |
| 58 mojom_types.MojomEnum _keyboard_SubmitAction__() { |
| 59 return new mojom_types.MojomEnum() |
| 60 ..declData = (new mojom_types.DeclarationData()..shortName = "SubmitAction") |
| 61 ..values = <mojom_types.EnumValue>[new mojom_types.EnumValue() |
| 62 ..declData = (new mojom_types.DeclarationData()..shortName = "DONE") |
| 63 ..enumTypeKey = '_keyboard_SubmitAction__' |
| 64 ..intValue = 0,]; |
| 65 } |
| 53 class KeyboardType extends bindings.MojoEnum { | 66 class KeyboardType extends bindings.MojoEnum { |
| 54 static const TEXT = const KeyboardType._(0); | 67 static const TEXT = const KeyboardType._(0); |
| 55 static const NUMBER = const KeyboardType._(1); | 68 static const NUMBER = const KeyboardType._(1); |
| 56 static const PHONE = const KeyboardType._(2); | 69 static const PHONE = const KeyboardType._(2); |
| 57 static const DATETIME = const KeyboardType._(3); | 70 static const DATETIME = const KeyboardType._(3); |
| 58 | 71 |
| 59 const KeyboardType._(int v) : super(v); | 72 const KeyboardType._(int v) : super(v); |
| 60 | 73 |
| 61 static const Map<String, KeyboardType> valuesMap = const { | 74 static const Map<String, KeyboardType> valuesMap = const { |
| 62 "TEXT": TEXT, | 75 "TEXT": TEXT, |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 101 String toString() { | 114 String toString() { |
| 102 switch(this) { | 115 switch(this) { |
| 103 case TEXT: | 116 case TEXT: |
| 104 return 'KeyboardType.TEXT'; | 117 return 'KeyboardType.TEXT'; |
| 105 case NUMBER: | 118 case NUMBER: |
| 106 return 'KeyboardType.NUMBER'; | 119 return 'KeyboardType.NUMBER'; |
| 107 case PHONE: | 120 case PHONE: |
| 108 return 'KeyboardType.PHONE'; | 121 return 'KeyboardType.PHONE'; |
| 109 case DATETIME: | 122 case DATETIME: |
| 110 return 'KeyboardType.DATETIME'; | 123 return 'KeyboardType.DATETIME'; |
| 124 default: |
| 125 return null; |
| 111 } | 126 } |
| 112 } | 127 } |
| 113 | 128 |
| 114 int toJson() => value; | 129 int toJson() => value; |
| 115 } | 130 } |
| 116 | 131 |
| 132 mojom_types.MojomEnum _keyboard_KeyboardType__() { |
| 133 return new mojom_types.MojomEnum() |
| 134 ..declData = (new mojom_types.DeclarationData()..shortName = "KeyboardType") |
| 135 ..values = <mojom_types.EnumValue>[new mojom_types.EnumValue() |
| 136 ..declData = (new mojom_types.DeclarationData()..shortName = "TEXT") |
| 137 ..enumTypeKey = '_keyboard_KeyboardType__' |
| 138 ..intValue = 0,new mojom_types.EnumValue() |
| 139 ..declData = (new mojom_types.DeclarationData()..shortName = "NUMBER") |
| 140 ..enumTypeKey = '_keyboard_KeyboardType__' |
| 141 ..intValue = 1,new mojom_types.EnumValue() |
| 142 ..declData = (new mojom_types.DeclarationData()..shortName = "PHONE") |
| 143 ..enumTypeKey = '_keyboard_KeyboardType__' |
| 144 ..intValue = 2,new mojom_types.EnumValue() |
| 145 ..declData = (new mojom_types.DeclarationData()..shortName = "DATETIME") |
| 146 ..enumTypeKey = '_keyboard_KeyboardType__' |
| 147 ..intValue = 3,]; |
| 148 } |
| 149 |
| 117 | 150 |
| 118 | 151 |
| 119 class CompletionData extends bindings.Struct { | 152 class CompletionData extends bindings.Struct { |
| 120 static const List<bindings.StructDataHeader> kVersions = const [ | 153 static const List<bindings.StructDataHeader> kVersions = const [ |
| 121 const bindings.StructDataHeader(40, 0) | 154 const bindings.StructDataHeader(40, 0) |
| 122 ]; | 155 ]; |
| 123 int id = 0; | 156 int id = 0; |
| 124 int position = 0; | 157 int position = 0; |
| 125 String text = null; | 158 String text = null; |
| 126 String label = null; | 159 String label = null; |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 202 Map toJson() { | 235 Map toJson() { |
| 203 Map map = new Map(); | 236 Map map = new Map(); |
| 204 map["id"] = id; | 237 map["id"] = id; |
| 205 map["position"] = position; | 238 map["position"] = position; |
| 206 map["text"] = text; | 239 map["text"] = text; |
| 207 map["label"] = label; | 240 map["label"] = label; |
| 208 return map; | 241 return map; |
| 209 } | 242 } |
| 210 } | 243 } |
| 211 | 244 |
| 245 mojom_types.MojomStruct _keyboard_CompletionData__() { |
| 246 return new mojom_types.MojomStruct() |
| 247 ..declData = (new mojom_types.DeclarationData()..shortName = 'CompletionData
') |
| 248 ..fields = <mojom_types.StructField>[ |
| 249 new mojom_types.StructField() |
| 250 ..declData = (new mojom_types.DeclarationData()..shortName = 'Id') |
| 251 ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.IN
T64), |
| 252 |
| 253 new mojom_types.StructField() |
| 254 ..declData = (new mojom_types.DeclarationData()..shortName = 'Position') |
| 255 ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.IN
T32), |
| 256 |
| 257 new mojom_types.StructField() |
| 258 ..declData = (new mojom_types.DeclarationData()..shortName = 'Text') |
| 259 ..type = (new mojom_types.Type() |
| 260 ..stringType = (new mojom_types.StringType()..nullable = false)), |
| 261 |
| 262 new mojom_types.StructField() |
| 263 ..declData = (new mojom_types.DeclarationData()..shortName = 'Label') |
| 264 ..type = (new mojom_types.Type() |
| 265 ..stringType = (new mojom_types.StringType()..nullable = false)), |
| 266 ]; |
| 267 } |
| 268 |
| 212 | 269 |
| 213 class CorrectionData extends bindings.Struct { | 270 class CorrectionData extends bindings.Struct { |
| 214 static const List<bindings.StructDataHeader> kVersions = const [ | 271 static const List<bindings.StructDataHeader> kVersions = const [ |
| 215 const bindings.StructDataHeader(32, 0) | 272 const bindings.StructDataHeader(32, 0) |
| 216 ]; | 273 ]; |
| 217 int offset = 0; | 274 int offset = 0; |
| 218 String oldText = null; | 275 String oldText = null; |
| 219 String newText = null; | 276 String newText = null; |
| 220 | 277 |
| 221 CorrectionData() : super(kVersions.last.size); | 278 CorrectionData() : super(kVersions.last.size); |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 287 | 344 |
| 288 Map toJson() { | 345 Map toJson() { |
| 289 Map map = new Map(); | 346 Map map = new Map(); |
| 290 map["offset"] = offset; | 347 map["offset"] = offset; |
| 291 map["oldText"] = oldText; | 348 map["oldText"] = oldText; |
| 292 map["newText"] = newText; | 349 map["newText"] = newText; |
| 293 return map; | 350 return map; |
| 294 } | 351 } |
| 295 } | 352 } |
| 296 | 353 |
| 354 mojom_types.MojomStruct _keyboard_CorrectionData__() { |
| 355 return new mojom_types.MojomStruct() |
| 356 ..declData = (new mojom_types.DeclarationData()..shortName = 'CorrectionData
') |
| 357 ..fields = <mojom_types.StructField>[ |
| 358 new mojom_types.StructField() |
| 359 ..declData = (new mojom_types.DeclarationData()..shortName = 'Offset') |
| 360 ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.IN
T32), |
| 361 |
| 362 new mojom_types.StructField() |
| 363 ..declData = (new mojom_types.DeclarationData()..shortName = 'OldText') |
| 364 ..type = (new mojom_types.Type() |
| 365 ..stringType = (new mojom_types.StringType()..nullable = false)), |
| 366 |
| 367 new mojom_types.StructField() |
| 368 ..declData = (new mojom_types.DeclarationData()..shortName = 'NewText') |
| 369 ..type = (new mojom_types.Type() |
| 370 ..stringType = (new mojom_types.StringType()..nullable = false)), |
| 371 ]; |
| 372 } |
| 373 |
| 297 | 374 |
| 298 class KeyboardClientCommitCompletionParams extends bindings.Struct { | 375 class KeyboardClientCommitCompletionParams extends bindings.Struct { |
| 299 static const List<bindings.StructDataHeader> kVersions = const [ | 376 static const List<bindings.StructDataHeader> kVersions = const [ |
| 300 const bindings.StructDataHeader(16, 0) | 377 const bindings.StructDataHeader(16, 0) |
| 301 ]; | 378 ]; |
| 302 CompletionData completion = null; | 379 CompletionData completion = null; |
| 303 | 380 |
| 304 KeyboardClientCommitCompletionParams() : super(kVersions.last.size); | 381 KeyboardClientCommitCompletionParams() : super(kVersions.last.size); |
| 305 | 382 |
| 306 static KeyboardClientCommitCompletionParams deserialize(bindings.Message messa
ge) { | 383 static KeyboardClientCommitCompletionParams deserialize(bindings.Message messa
ge) { |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 355 "completion: $completion" ")"; | 432 "completion: $completion" ")"; |
| 356 } | 433 } |
| 357 | 434 |
| 358 Map toJson() { | 435 Map toJson() { |
| 359 Map map = new Map(); | 436 Map map = new Map(); |
| 360 map["completion"] = completion; | 437 map["completion"] = completion; |
| 361 return map; | 438 return map; |
| 362 } | 439 } |
| 363 } | 440 } |
| 364 | 441 |
| 442 mojom_types.MojomStruct _keyboard_KeyboardClient_CommitCompletion_Params__() { |
| 443 return new mojom_types.MojomStruct() |
| 444 ..declData = (new mojom_types.DeclarationData()..shortName = 'KeyboardClient
CommitCompletionParams') |
| 445 ..fields = <mojom_types.StructField>[ |
| 446 new mojom_types.StructField() |
| 447 ..declData = (new mojom_types.DeclarationData()..shortName = 'Completion
') |
| 448 ..type = (new mojom_types.Type() |
| 449 ..typeReference = (new mojom_types.TypeReference() |
| 450 |
| 451 ..identifier = '_keyboard_CompletionData__' |
| 452 ..typeKey = '_keyboard_CompletionData__' |
| 453 )), |
| 454 ]; |
| 455 } |
| 456 |
| 365 | 457 |
| 366 class KeyboardClientCommitCorrectionParams extends bindings.Struct { | 458 class KeyboardClientCommitCorrectionParams extends bindings.Struct { |
| 367 static const List<bindings.StructDataHeader> kVersions = const [ | 459 static const List<bindings.StructDataHeader> kVersions = const [ |
| 368 const bindings.StructDataHeader(16, 0) | 460 const bindings.StructDataHeader(16, 0) |
| 369 ]; | 461 ]; |
| 370 CorrectionData correction = null; | 462 CorrectionData correction = null; |
| 371 | 463 |
| 372 KeyboardClientCommitCorrectionParams() : super(kVersions.last.size); | 464 KeyboardClientCommitCorrectionParams() : super(kVersions.last.size); |
| 373 | 465 |
| 374 static KeyboardClientCommitCorrectionParams deserialize(bindings.Message messa
ge) { | 466 static KeyboardClientCommitCorrectionParams deserialize(bindings.Message messa
ge) { |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 423 "correction: $correction" ")"; | 515 "correction: $correction" ")"; |
| 424 } | 516 } |
| 425 | 517 |
| 426 Map toJson() { | 518 Map toJson() { |
| 427 Map map = new Map(); | 519 Map map = new Map(); |
| 428 map["correction"] = correction; | 520 map["correction"] = correction; |
| 429 return map; | 521 return map; |
| 430 } | 522 } |
| 431 } | 523 } |
| 432 | 524 |
| 525 mojom_types.MojomStruct _keyboard_KeyboardClient_CommitCorrection_Params__() { |
| 526 return new mojom_types.MojomStruct() |
| 527 ..declData = (new mojom_types.DeclarationData()..shortName = 'KeyboardClient
CommitCorrectionParams') |
| 528 ..fields = <mojom_types.StructField>[ |
| 529 new mojom_types.StructField() |
| 530 ..declData = (new mojom_types.DeclarationData()..shortName = 'Correction
') |
| 531 ..type = (new mojom_types.Type() |
| 532 ..typeReference = (new mojom_types.TypeReference() |
| 533 |
| 534 ..identifier = '_keyboard_CorrectionData__' |
| 535 ..typeKey = '_keyboard_CorrectionData__' |
| 536 )), |
| 537 ]; |
| 538 } |
| 539 |
| 433 | 540 |
| 434 class KeyboardClientCommitTextParams extends bindings.Struct { | 541 class KeyboardClientCommitTextParams extends bindings.Struct { |
| 435 static const List<bindings.StructDataHeader> kVersions = const [ | 542 static const List<bindings.StructDataHeader> kVersions = const [ |
| 436 const bindings.StructDataHeader(24, 0) | 543 const bindings.StructDataHeader(24, 0) |
| 437 ]; | 544 ]; |
| 438 String text = null; | 545 String text = null; |
| 439 int newCursorPosition = 0; | 546 int newCursorPosition = 0; |
| 440 | 547 |
| 441 KeyboardClientCommitTextParams() : super(kVersions.last.size); | 548 KeyboardClientCommitTextParams() : super(kVersions.last.size); |
| 442 | 549 |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 499 } | 606 } |
| 500 | 607 |
| 501 Map toJson() { | 608 Map toJson() { |
| 502 Map map = new Map(); | 609 Map map = new Map(); |
| 503 map["text"] = text; | 610 map["text"] = text; |
| 504 map["newCursorPosition"] = newCursorPosition; | 611 map["newCursorPosition"] = newCursorPosition; |
| 505 return map; | 612 return map; |
| 506 } | 613 } |
| 507 } | 614 } |
| 508 | 615 |
| 616 mojom_types.MojomStruct _keyboard_KeyboardClient_CommitText_Params__() { |
| 617 return new mojom_types.MojomStruct() |
| 618 ..declData = (new mojom_types.DeclarationData()..shortName = 'KeyboardClient
CommitTextParams') |
| 619 ..fields = <mojom_types.StructField>[ |
| 620 new mojom_types.StructField() |
| 621 ..declData = (new mojom_types.DeclarationData()..shortName = 'Text') |
| 622 ..type = (new mojom_types.Type() |
| 623 ..stringType = (new mojom_types.StringType()..nullable = false)), |
| 624 |
| 625 new mojom_types.StructField() |
| 626 ..declData = (new mojom_types.DeclarationData()..shortName = 'NewCursorP
osition') |
| 627 ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.IN
T32), |
| 628 ]; |
| 629 } |
| 630 |
| 509 | 631 |
| 510 class KeyboardClientDeleteSurroundingTextParams extends bindings.Struct { | 632 class KeyboardClientDeleteSurroundingTextParams extends bindings.Struct { |
| 511 static const List<bindings.StructDataHeader> kVersions = const [ | 633 static const List<bindings.StructDataHeader> kVersions = const [ |
| 512 const bindings.StructDataHeader(16, 0) | 634 const bindings.StructDataHeader(16, 0) |
| 513 ]; | 635 ]; |
| 514 int beforeLength = 0; | 636 int beforeLength = 0; |
| 515 int afterLength = 0; | 637 int afterLength = 0; |
| 516 | 638 |
| 517 KeyboardClientDeleteSurroundingTextParams() : super(kVersions.last.size); | 639 KeyboardClientDeleteSurroundingTextParams() : super(kVersions.last.size); |
| 518 | 640 |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 575 } | 697 } |
| 576 | 698 |
| 577 Map toJson() { | 699 Map toJson() { |
| 578 Map map = new Map(); | 700 Map map = new Map(); |
| 579 map["beforeLength"] = beforeLength; | 701 map["beforeLength"] = beforeLength; |
| 580 map["afterLength"] = afterLength; | 702 map["afterLength"] = afterLength; |
| 581 return map; | 703 return map; |
| 582 } | 704 } |
| 583 } | 705 } |
| 584 | 706 |
| 707 mojom_types.MojomStruct _keyboard_KeyboardClient_DeleteSurroundingText_Params__(
) { |
| 708 return new mojom_types.MojomStruct() |
| 709 ..declData = (new mojom_types.DeclarationData()..shortName = 'KeyboardClient
DeleteSurroundingTextParams') |
| 710 ..fields = <mojom_types.StructField>[ |
| 711 new mojom_types.StructField() |
| 712 ..declData = (new mojom_types.DeclarationData()..shortName = 'BeforeLeng
th') |
| 713 ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.IN
T32), |
| 714 |
| 715 new mojom_types.StructField() |
| 716 ..declData = (new mojom_types.DeclarationData()..shortName = 'AfterLengt
h') |
| 717 ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.IN
T32), |
| 718 ]; |
| 719 } |
| 720 |
| 585 | 721 |
| 586 class KeyboardClientSetComposingRegionParams extends bindings.Struct { | 722 class KeyboardClientSetComposingRegionParams extends bindings.Struct { |
| 587 static const List<bindings.StructDataHeader> kVersions = const [ | 723 static const List<bindings.StructDataHeader> kVersions = const [ |
| 588 const bindings.StructDataHeader(16, 0) | 724 const bindings.StructDataHeader(16, 0) |
| 589 ]; | 725 ]; |
| 590 int start = 0; | 726 int start = 0; |
| 591 int end = 0; | 727 int end = 0; |
| 592 | 728 |
| 593 KeyboardClientSetComposingRegionParams() : super(kVersions.last.size); | 729 KeyboardClientSetComposingRegionParams() : super(kVersions.last.size); |
| 594 | 730 |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 651 } | 787 } |
| 652 | 788 |
| 653 Map toJson() { | 789 Map toJson() { |
| 654 Map map = new Map(); | 790 Map map = new Map(); |
| 655 map["start"] = start; | 791 map["start"] = start; |
| 656 map["end"] = end; | 792 map["end"] = end; |
| 657 return map; | 793 return map; |
| 658 } | 794 } |
| 659 } | 795 } |
| 660 | 796 |
| 797 mojom_types.MojomStruct _keyboard_KeyboardClient_SetComposingRegion_Params__() { |
| 798 return new mojom_types.MojomStruct() |
| 799 ..declData = (new mojom_types.DeclarationData()..shortName = 'KeyboardClient
SetComposingRegionParams') |
| 800 ..fields = <mojom_types.StructField>[ |
| 801 new mojom_types.StructField() |
| 802 ..declData = (new mojom_types.DeclarationData()..shortName = 'Start') |
| 803 ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.IN
T32), |
| 804 |
| 805 new mojom_types.StructField() |
| 806 ..declData = (new mojom_types.DeclarationData()..shortName = 'End') |
| 807 ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.IN
T32), |
| 808 ]; |
| 809 } |
| 810 |
| 661 | 811 |
| 662 class KeyboardClientSetComposingTextParams extends bindings.Struct { | 812 class KeyboardClientSetComposingTextParams extends bindings.Struct { |
| 663 static const List<bindings.StructDataHeader> kVersions = const [ | 813 static const List<bindings.StructDataHeader> kVersions = const [ |
| 664 const bindings.StructDataHeader(24, 0) | 814 const bindings.StructDataHeader(24, 0) |
| 665 ]; | 815 ]; |
| 666 String text = null; | 816 String text = null; |
| 667 int newCursorPosition = 0; | 817 int newCursorPosition = 0; |
| 668 | 818 |
| 669 KeyboardClientSetComposingTextParams() : super(kVersions.last.size); | 819 KeyboardClientSetComposingTextParams() : super(kVersions.last.size); |
| 670 | 820 |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 727 } | 877 } |
| 728 | 878 |
| 729 Map toJson() { | 879 Map toJson() { |
| 730 Map map = new Map(); | 880 Map map = new Map(); |
| 731 map["text"] = text; | 881 map["text"] = text; |
| 732 map["newCursorPosition"] = newCursorPosition; | 882 map["newCursorPosition"] = newCursorPosition; |
| 733 return map; | 883 return map; |
| 734 } | 884 } |
| 735 } | 885 } |
| 736 | 886 |
| 887 mojom_types.MojomStruct _keyboard_KeyboardClient_SetComposingText_Params__() { |
| 888 return new mojom_types.MojomStruct() |
| 889 ..declData = (new mojom_types.DeclarationData()..shortName = 'KeyboardClient
SetComposingTextParams') |
| 890 ..fields = <mojom_types.StructField>[ |
| 891 new mojom_types.StructField() |
| 892 ..declData = (new mojom_types.DeclarationData()..shortName = 'Text') |
| 893 ..type = (new mojom_types.Type() |
| 894 ..stringType = (new mojom_types.StringType()..nullable = false)), |
| 895 |
| 896 new mojom_types.StructField() |
| 897 ..declData = (new mojom_types.DeclarationData()..shortName = 'NewCursorP
osition') |
| 898 ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.IN
T32), |
| 899 ]; |
| 900 } |
| 901 |
| 737 | 902 |
| 738 class KeyboardClientSetSelectionParams extends bindings.Struct { | 903 class KeyboardClientSetSelectionParams extends bindings.Struct { |
| 739 static const List<bindings.StructDataHeader> kVersions = const [ | 904 static const List<bindings.StructDataHeader> kVersions = const [ |
| 740 const bindings.StructDataHeader(16, 0) | 905 const bindings.StructDataHeader(16, 0) |
| 741 ]; | 906 ]; |
| 742 int start = 0; | 907 int start = 0; |
| 743 int end = 0; | 908 int end = 0; |
| 744 | 909 |
| 745 KeyboardClientSetSelectionParams() : super(kVersions.last.size); | 910 KeyboardClientSetSelectionParams() : super(kVersions.last.size); |
| 746 | 911 |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 803 } | 968 } |
| 804 | 969 |
| 805 Map toJson() { | 970 Map toJson() { |
| 806 Map map = new Map(); | 971 Map map = new Map(); |
| 807 map["start"] = start; | 972 map["start"] = start; |
| 808 map["end"] = end; | 973 map["end"] = end; |
| 809 return map; | 974 return map; |
| 810 } | 975 } |
| 811 } | 976 } |
| 812 | 977 |
| 978 mojom_types.MojomStruct _keyboard_KeyboardClient_SetSelection_Params__() { |
| 979 return new mojom_types.MojomStruct() |
| 980 ..declData = (new mojom_types.DeclarationData()..shortName = 'KeyboardClient
SetSelectionParams') |
| 981 ..fields = <mojom_types.StructField>[ |
| 982 new mojom_types.StructField() |
| 983 ..declData = (new mojom_types.DeclarationData()..shortName = 'Start') |
| 984 ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.IN
T32), |
| 985 |
| 986 new mojom_types.StructField() |
| 987 ..declData = (new mojom_types.DeclarationData()..shortName = 'End') |
| 988 ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.IN
T32), |
| 989 ]; |
| 990 } |
| 991 |
| 813 | 992 |
| 814 class KeyboardClientSubmitParams extends bindings.Struct { | 993 class KeyboardClientSubmitParams extends bindings.Struct { |
| 815 static const List<bindings.StructDataHeader> kVersions = const [ | 994 static const List<bindings.StructDataHeader> kVersions = const [ |
| 816 const bindings.StructDataHeader(16, 0) | 995 const bindings.StructDataHeader(16, 0) |
| 817 ]; | 996 ]; |
| 818 SubmitAction action = null; | 997 SubmitAction action = null; |
| 819 | 998 |
| 820 KeyboardClientSubmitParams() : super(kVersions.last.size); | 999 KeyboardClientSubmitParams() : super(kVersions.last.size); |
| 821 | 1000 |
| 822 static KeyboardClientSubmitParams deserialize(bindings.Message message) { | 1001 static KeyboardClientSubmitParams deserialize(bindings.Message message) { |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 874 "action: $action" ")"; | 1053 "action: $action" ")"; |
| 875 } | 1054 } |
| 876 | 1055 |
| 877 Map toJson() { | 1056 Map toJson() { |
| 878 Map map = new Map(); | 1057 Map map = new Map(); |
| 879 map["action"] = action; | 1058 map["action"] = action; |
| 880 return map; | 1059 return map; |
| 881 } | 1060 } |
| 882 } | 1061 } |
| 883 | 1062 |
| 1063 mojom_types.MojomStruct _keyboard_KeyboardClient_Submit_Params__() { |
| 1064 return new mojom_types.MojomStruct() |
| 1065 ..declData = (new mojom_types.DeclarationData()..shortName = 'KeyboardClient
SubmitParams') |
| 1066 ..fields = <mojom_types.StructField>[ |
| 1067 new mojom_types.StructField() |
| 1068 ..declData = (new mojom_types.DeclarationData()..shortName = 'Action') |
| 1069 ..type = (new mojom_types.Type() |
| 1070 ..typeReference = (new mojom_types.TypeReference() |
| 1071 |
| 1072 ..identifier = '_keyboard_SubmitAction__' |
| 1073 ..typeKey = '_keyboard_SubmitAction__' |
| 1074 )), |
| 1075 ]; |
| 1076 } |
| 1077 |
| 884 | 1078 |
| 885 class KeyboardServiceShowParams extends bindings.Struct { | 1079 class KeyboardServiceShowParams extends bindings.Struct { |
| 886 static const List<bindings.StructDataHeader> kVersions = const [ | 1080 static const List<bindings.StructDataHeader> kVersions = const [ |
| 887 const bindings.StructDataHeader(24, 0) | 1081 const bindings.StructDataHeader(24, 0) |
| 888 ]; | 1082 ]; |
| 889 Object client = null; | 1083 Object client = null; |
| 890 KeyboardType type = null; | 1084 KeyboardType type = null; |
| 891 | 1085 |
| 892 KeyboardServiceShowParams() : super(kVersions.last.size); | 1086 KeyboardServiceShowParams() : super(kVersions.last.size); |
| 893 | 1087 |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 952 "client: $client" ", " | 1146 "client: $client" ", " |
| 953 "type: $type" ")"; | 1147 "type: $type" ")"; |
| 954 } | 1148 } |
| 955 | 1149 |
| 956 Map toJson() { | 1150 Map toJson() { |
| 957 throw new bindings.MojoCodecError( | 1151 throw new bindings.MojoCodecError( |
| 958 'Object containing handles cannot be encoded to JSON.'); | 1152 'Object containing handles cannot be encoded to JSON.'); |
| 959 } | 1153 } |
| 960 } | 1154 } |
| 961 | 1155 |
| 1156 mojom_types.MojomStruct _keyboard_KeyboardService_Show_Params__() { |
| 1157 return new mojom_types.MojomStruct() |
| 1158 ..declData = (new mojom_types.DeclarationData()..shortName = 'KeyboardServic
eShowParams') |
| 1159 ..fields = <mojom_types.StructField>[ |
| 1160 new mojom_types.StructField() |
| 1161 ..declData = (new mojom_types.DeclarationData()..shortName = 'Client') |
| 1162 ..type = (new mojom_types.Type() |
| 1163 ..typeReference = (new mojom_types.TypeReference() |
| 1164 |
| 1165 ..identifier = '_keyboard_KeyboardClient__' |
| 1166 ..typeKey = '_keyboard_KeyboardClient__' |
| 1167 )), |
| 1168 |
| 1169 new mojom_types.StructField() |
| 1170 ..declData = (new mojom_types.DeclarationData()..shortName = 'Type') |
| 1171 ..type = (new mojom_types.Type() |
| 1172 ..typeReference = (new mojom_types.TypeReference() |
| 1173 |
| 1174 ..identifier = '_keyboard_KeyboardType__' |
| 1175 ..typeKey = '_keyboard_KeyboardType__' |
| 1176 )), |
| 1177 ]; |
| 1178 } |
| 1179 |
| 962 | 1180 |
| 963 class KeyboardServiceShowByRequestParams extends bindings.Struct { | 1181 class KeyboardServiceShowByRequestParams extends bindings.Struct { |
| 964 static const List<bindings.StructDataHeader> kVersions = const [ | 1182 static const List<bindings.StructDataHeader> kVersions = const [ |
| 965 const bindings.StructDataHeader(8, 0) | 1183 const bindings.StructDataHeader(8, 0) |
| 966 ]; | 1184 ]; |
| 967 | 1185 |
| 968 KeyboardServiceShowByRequestParams() : super(kVersions.last.size); | 1186 KeyboardServiceShowByRequestParams() : super(kVersions.last.size); |
| 969 | 1187 |
| 970 static KeyboardServiceShowByRequestParams deserialize(bindings.Message message
) { | 1188 static KeyboardServiceShowByRequestParams deserialize(bindings.Message message
) { |
| 971 var decoder = new bindings.Decoder(message); | 1189 var decoder = new bindings.Decoder(message); |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1010 String toString() { | 1228 String toString() { |
| 1011 return "KeyboardServiceShowByRequestParams("")"; | 1229 return "KeyboardServiceShowByRequestParams("")"; |
| 1012 } | 1230 } |
| 1013 | 1231 |
| 1014 Map toJson() { | 1232 Map toJson() { |
| 1015 Map map = new Map(); | 1233 Map map = new Map(); |
| 1016 return map; | 1234 return map; |
| 1017 } | 1235 } |
| 1018 } | 1236 } |
| 1019 | 1237 |
| 1238 mojom_types.MojomStruct _keyboard_KeyboardService_ShowByRequest_Params__() { |
| 1239 return new mojom_types.MojomStruct() |
| 1240 ..declData = (new mojom_types.DeclarationData()..shortName = 'KeyboardServic
eShowByRequestParams') |
| 1241 ..fields = <mojom_types.StructField>[]; |
| 1242 } |
| 1243 |
| 1020 | 1244 |
| 1021 class KeyboardServiceHideParams extends bindings.Struct { | 1245 class KeyboardServiceHideParams extends bindings.Struct { |
| 1022 static const List<bindings.StructDataHeader> kVersions = const [ | 1246 static const List<bindings.StructDataHeader> kVersions = const [ |
| 1023 const bindings.StructDataHeader(8, 0) | 1247 const bindings.StructDataHeader(8, 0) |
| 1024 ]; | 1248 ]; |
| 1025 | 1249 |
| 1026 KeyboardServiceHideParams() : super(kVersions.last.size); | 1250 KeyboardServiceHideParams() : super(kVersions.last.size); |
| 1027 | 1251 |
| 1028 static KeyboardServiceHideParams deserialize(bindings.Message message) { | 1252 static KeyboardServiceHideParams deserialize(bindings.Message message) { |
| 1029 var decoder = new bindings.Decoder(message); | 1253 var decoder = new bindings.Decoder(message); |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1068 String toString() { | 1292 String toString() { |
| 1069 return "KeyboardServiceHideParams("")"; | 1293 return "KeyboardServiceHideParams("")"; |
| 1070 } | 1294 } |
| 1071 | 1295 |
| 1072 Map toJson() { | 1296 Map toJson() { |
| 1073 Map map = new Map(); | 1297 Map map = new Map(); |
| 1074 return map; | 1298 return map; |
| 1075 } | 1299 } |
| 1076 } | 1300 } |
| 1077 | 1301 |
| 1302 mojom_types.MojomStruct _keyboard_KeyboardService_Hide_Params__() { |
| 1303 return new mojom_types.MojomStruct() |
| 1304 ..declData = (new mojom_types.DeclarationData()..shortName = 'KeyboardServic
eHideParams') |
| 1305 ..fields = <mojom_types.StructField>[]; |
| 1306 } |
| 1307 |
| 1078 | 1308 |
| 1079 class KeyboardServiceSetTextParams extends bindings.Struct { | 1309 class KeyboardServiceSetTextParams extends bindings.Struct { |
| 1080 static const List<bindings.StructDataHeader> kVersions = const [ | 1310 static const List<bindings.StructDataHeader> kVersions = const [ |
| 1081 const bindings.StructDataHeader(16, 0) | 1311 const bindings.StructDataHeader(16, 0) |
| 1082 ]; | 1312 ]; |
| 1083 String text = null; | 1313 String text = null; |
| 1084 | 1314 |
| 1085 KeyboardServiceSetTextParams() : super(kVersions.last.size); | 1315 KeyboardServiceSetTextParams() : super(kVersions.last.size); |
| 1086 | 1316 |
| 1087 static KeyboardServiceSetTextParams deserialize(bindings.Message message) { | 1317 static KeyboardServiceSetTextParams deserialize(bindings.Message message) { |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1135 "text: $text" ")"; | 1365 "text: $text" ")"; |
| 1136 } | 1366 } |
| 1137 | 1367 |
| 1138 Map toJson() { | 1368 Map toJson() { |
| 1139 Map map = new Map(); | 1369 Map map = new Map(); |
| 1140 map["text"] = text; | 1370 map["text"] = text; |
| 1141 return map; | 1371 return map; |
| 1142 } | 1372 } |
| 1143 } | 1373 } |
| 1144 | 1374 |
| 1375 mojom_types.MojomStruct _keyboard_KeyboardService_SetText_Params__() { |
| 1376 return new mojom_types.MojomStruct() |
| 1377 ..declData = (new mojom_types.DeclarationData()..shortName = 'KeyboardServic
eSetTextParams') |
| 1378 ..fields = <mojom_types.StructField>[ |
| 1379 new mojom_types.StructField() |
| 1380 ..declData = (new mojom_types.DeclarationData()..shortName = 'Text') |
| 1381 ..type = (new mojom_types.Type() |
| 1382 ..stringType = (new mojom_types.StringType()..nullable = false)), |
| 1383 ]; |
| 1384 } |
| 1385 |
| 1145 | 1386 |
| 1146 class KeyboardServiceSetSelectionParams extends bindings.Struct { | 1387 class KeyboardServiceSetSelectionParams extends bindings.Struct { |
| 1147 static const List<bindings.StructDataHeader> kVersions = const [ | 1388 static const List<bindings.StructDataHeader> kVersions = const [ |
| 1148 const bindings.StructDataHeader(16, 0) | 1389 const bindings.StructDataHeader(16, 0) |
| 1149 ]; | 1390 ]; |
| 1150 int start = 0; | 1391 int start = 0; |
| 1151 int end = 0; | 1392 int end = 0; |
| 1152 | 1393 |
| 1153 KeyboardServiceSetSelectionParams() : super(kVersions.last.size); | 1394 KeyboardServiceSetSelectionParams() : super(kVersions.last.size); |
| 1154 | 1395 |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1211 } | 1452 } |
| 1212 | 1453 |
| 1213 Map toJson() { | 1454 Map toJson() { |
| 1214 Map map = new Map(); | 1455 Map map = new Map(); |
| 1215 map["start"] = start; | 1456 map["start"] = start; |
| 1216 map["end"] = end; | 1457 map["end"] = end; |
| 1217 return map; | 1458 return map; |
| 1218 } | 1459 } |
| 1219 } | 1460 } |
| 1220 | 1461 |
| 1462 mojom_types.MojomStruct _keyboard_KeyboardService_SetSelection_Params__() { |
| 1463 return new mojom_types.MojomStruct() |
| 1464 ..declData = (new mojom_types.DeclarationData()..shortName = 'KeyboardServic
eSetSelectionParams') |
| 1465 ..fields = <mojom_types.StructField>[ |
| 1466 new mojom_types.StructField() |
| 1467 ..declData = (new mojom_types.DeclarationData()..shortName = 'Start') |
| 1468 ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.IN
T32), |
| 1469 |
| 1470 new mojom_types.StructField() |
| 1471 ..declData = (new mojom_types.DeclarationData()..shortName = 'End') |
| 1472 ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.IN
T32), |
| 1473 ]; |
| 1474 } |
| 1475 |
| 1476 |
| 1221 const int kKeyboardClient_commitCompletion_name = 0; | 1477 const int kKeyboardClient_commitCompletion_name = 0; |
| 1222 const int kKeyboardClient_commitCorrection_name = 1; | 1478 const int kKeyboardClient_commitCorrection_name = 1; |
| 1223 const int kKeyboardClient_commitText_name = 2; | 1479 const int kKeyboardClient_commitText_name = 2; |
| 1224 const int kKeyboardClient_deleteSurroundingText_name = 3; | 1480 const int kKeyboardClient_deleteSurroundingText_name = 3; |
| 1225 const int kKeyboardClient_setComposingRegion_name = 4; | 1481 const int kKeyboardClient_setComposingRegion_name = 4; |
| 1226 const int kKeyboardClient_setComposingText_name = 5; | 1482 const int kKeyboardClient_setComposingText_name = 5; |
| 1227 const int kKeyboardClient_setSelection_name = 6; | 1483 const int kKeyboardClient_setSelection_name = 6; |
| 1228 const int kKeyboardClient_submit_name = 7; | 1484 const int kKeyboardClient_submit_name = 7; |
| 1229 | 1485 |
| 1230 const String KeyboardClientName = | 1486 const String KeyboardClientName = |
| 1231 'keyboard::KeyboardClient'; | 1487 'keyboard::KeyboardClient'; |
| 1232 | 1488 |
| 1489 mojom_types.MojomInterface _keyboard_KeyboardClient__() { |
| 1490 return new mojom_types.MojomInterface() |
| 1491 ..declData = (new mojom_types.DeclarationData()..shortName = "KeyboardClient
") |
| 1492 ..interfaceName = "KeyboardClient" |
| 1493 ..methods = <int, mojom_types.MojomMethod>{ |
| 1494 kKeyboardClient_commitCompletion_name: new mojom_types.MojomMethod() |
| 1495 ..declData = (new mojom_types.DeclarationData()..shortName = "CommitComp
letion") |
| 1496 ..ordinal = kKeyboardClient_commitCompletion_name..parameters = _keyboar
d_KeyboardClient_CommitCompletion_Params__(),kKeyboardClient_commitCorrection_na
me: new mojom_types.MojomMethod() |
| 1497 ..declData = (new mojom_types.DeclarationData()..shortName = "CommitCorr
ection") |
| 1498 ..ordinal = kKeyboardClient_commitCorrection_name..parameters = _keyboar
d_KeyboardClient_CommitCorrection_Params__(),kKeyboardClient_commitText_name: ne
w mojom_types.MojomMethod() |
| 1499 ..declData = (new mojom_types.DeclarationData()..shortName = "CommitText
") |
| 1500 ..ordinal = kKeyboardClient_commitText_name..parameters = _keyboard_Keyb
oardClient_CommitText_Params__(),kKeyboardClient_deleteSurroundingText_name: new
mojom_types.MojomMethod() |
| 1501 ..declData = (new mojom_types.DeclarationData()..shortName = "DeleteSurr
oundingText") |
| 1502 ..ordinal = kKeyboardClient_deleteSurroundingText_name..parameters = _ke
yboard_KeyboardClient_DeleteSurroundingText_Params__(),kKeyboardClient_setCompos
ingRegion_name: new mojom_types.MojomMethod() |
| 1503 ..declData = (new mojom_types.DeclarationData()..shortName = "SetComposi
ngRegion") |
| 1504 ..ordinal = kKeyboardClient_setComposingRegion_name..parameters = _keybo
ard_KeyboardClient_SetComposingRegion_Params__(),kKeyboardClient_setComposingTex
t_name: new mojom_types.MojomMethod() |
| 1505 ..declData = (new mojom_types.DeclarationData()..shortName = "SetComposi
ngText") |
| 1506 ..ordinal = kKeyboardClient_setComposingText_name..parameters = _keyboar
d_KeyboardClient_SetComposingText_Params__(),kKeyboardClient_setSelection_name:
new mojom_types.MojomMethod() |
| 1507 ..declData = (new mojom_types.DeclarationData()..shortName = "SetSelecti
on") |
| 1508 ..ordinal = kKeyboardClient_setSelection_name..parameters = _keyboard_Ke
yboardClient_SetSelection_Params__(),kKeyboardClient_submit_name: new mojom_type
s.MojomMethod() |
| 1509 ..declData = (new mojom_types.DeclarationData()..shortName = "Submit") |
| 1510 ..ordinal = kKeyboardClient_submit_name..parameters = _keyboard_Keyboard
Client_Submit_Params__(), |
| 1511 }; |
| 1512 } |
| 1513 |
| 1514 class _KeyboardClientServiceDescription extends service_describer.ServiceDescrip
tion { |
| 1515 // Avoid infinite loop by overriding serviceDescription field. |
| 1516 final service_describer.ServiceDescription serviceDescription = null; |
| 1517 dynamic getTopLevelInterface([Function responseFactory = null]) { |
| 1518 return _keyboard_KeyboardClient__(); |
| 1519 } |
| 1520 dynamic getTypeDefinition(String typeKey,[Function responseFactory = null]) { |
| 1521 return getAllMojomTypeDefinitions()[typeKey]; |
| 1522 } |
| 1523 dynamic getAllTypeDefinitions([Function responseFactory = null]) { |
| 1524 return getAllMojomTypeDefinitions(); |
| 1525 } |
| 1526 } |
| 1527 |
| 1233 abstract class KeyboardClient { | 1528 abstract class KeyboardClient { |
| 1234 void commitCompletion(CompletionData completion); | 1529 void commitCompletion(CompletionData completion); |
| 1235 void commitCorrection(CorrectionData correction); | 1530 void commitCorrection(CorrectionData correction); |
| 1236 void commitText(String text, int newCursorPosition); | 1531 void commitText(String text, int newCursorPosition); |
| 1237 void deleteSurroundingText(int beforeLength, int afterLength); | 1532 void deleteSurroundingText(int beforeLength, int afterLength); |
| 1238 void setComposingRegion(int start, int end); | 1533 void setComposingRegion(int start, int end); |
| 1239 void setComposingText(String text, int newCursorPosition); | 1534 void setComposingText(String text, int newCursorPosition); |
| 1240 void setSelection(int start, int end); | 1535 void setSelection(int start, int end); |
| 1241 void submit(SubmitAction action); | 1536 void submit(SubmitAction action); |
| 1242 | 1537 |
| (...skipping 10 matching lines...) Expand all Loading... |
| 1253 KeyboardClientProxyImpl.unbound() : super.unbound(); | 1548 KeyboardClientProxyImpl.unbound() : super.unbound(); |
| 1254 | 1549 |
| 1255 static KeyboardClientProxyImpl newFromEndpoint( | 1550 static KeyboardClientProxyImpl newFromEndpoint( |
| 1256 core.MojoMessagePipeEndpoint endpoint) { | 1551 core.MojoMessagePipeEndpoint endpoint) { |
| 1257 assert(endpoint.setDescription("For KeyboardClientProxyImpl")); | 1552 assert(endpoint.setDescription("For KeyboardClientProxyImpl")); |
| 1258 return new KeyboardClientProxyImpl.fromEndpoint(endpoint); | 1553 return new KeyboardClientProxyImpl.fromEndpoint(endpoint); |
| 1259 } | 1554 } |
| 1260 | 1555 |
| 1261 String get name => KeyboardClientName; | 1556 String get name => KeyboardClientName; |
| 1262 | 1557 |
| 1558 service_describer.ServiceDescription get serviceDescription => |
| 1559 new _KeyboardClientServiceDescription(); |
| 1560 |
| 1263 void handleResponse(bindings.ServiceMessage message) { | 1561 void handleResponse(bindings.ServiceMessage message) { |
| 1264 switch (message.header.type) { | 1562 switch (message.header.type) { |
| 1265 default: | 1563 default: |
| 1266 proxyError("Unexpected message type: ${message.header.type}"); | 1564 proxyError("Unexpected message type: ${message.header.type}"); |
| 1267 close(immediate: true); | 1565 close(immediate: true); |
| 1268 break; | 1566 break; |
| 1269 } | 1567 } |
| 1270 } | 1568 } |
| 1271 | 1569 |
| 1272 String toString() { | 1570 String toString() { |
| (...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1508 assert(_impl == null); | 1806 assert(_impl == null); |
| 1509 _impl = d; | 1807 _impl = d; |
| 1510 } | 1808 } |
| 1511 | 1809 |
| 1512 String toString() { | 1810 String toString() { |
| 1513 var superString = super.toString(); | 1811 var superString = super.toString(); |
| 1514 return "KeyboardClientStub($superString)"; | 1812 return "KeyboardClientStub($superString)"; |
| 1515 } | 1813 } |
| 1516 | 1814 |
| 1517 int get version => 0; | 1815 int get version => 0; |
| 1816 |
| 1817 service_describer.ServiceDescription get serviceDescription => |
| 1818 new _KeyboardClientServiceDescription(); |
| 1518 } | 1819 } |
| 1519 | 1820 |
| 1520 const int kKeyboardService_show_name = 0; | 1821 const int kKeyboardService_show_name = 0; |
| 1521 const int kKeyboardService_showByRequest_name = 1; | 1822 const int kKeyboardService_showByRequest_name = 1; |
| 1522 const int kKeyboardService_hide_name = 2; | 1823 const int kKeyboardService_hide_name = 2; |
| 1523 const int kKeyboardService_setText_name = 3; | 1824 const int kKeyboardService_setText_name = 3; |
| 1524 const int kKeyboardService_setSelection_name = 4; | 1825 const int kKeyboardService_setSelection_name = 4; |
| 1525 | 1826 |
| 1526 const String KeyboardServiceName = | 1827 const String KeyboardServiceName = |
| 1527 'keyboard::KeyboardService'; | 1828 'keyboard::KeyboardService'; |
| 1528 | 1829 |
| 1830 mojom_types.MojomInterface _keyboard_KeyboardService__() { |
| 1831 return new mojom_types.MojomInterface() |
| 1832 ..declData = (new mojom_types.DeclarationData()..shortName = "KeyboardServic
e") |
| 1833 ..interfaceName = "KeyboardService" |
| 1834 ..methods = <int, mojom_types.MojomMethod>{ |
| 1835 kKeyboardService_show_name: new mojom_types.MojomMethod() |
| 1836 ..declData = (new mojom_types.DeclarationData()..shortName = "Show") |
| 1837 ..ordinal = kKeyboardService_show_name..parameters = _keyboard_KeyboardS
ervice_Show_Params__(),kKeyboardService_showByRequest_name: new mojom_types.Mojo
mMethod() |
| 1838 ..declData = (new mojom_types.DeclarationData()..shortName = "ShowByRequ
est") |
| 1839 ..ordinal = kKeyboardService_showByRequest_name..parameters = _keyboard_
KeyboardService_ShowByRequest_Params__(),kKeyboardService_hide_name: new mojom_t
ypes.MojomMethod() |
| 1840 ..declData = (new mojom_types.DeclarationData()..shortName = "Hide") |
| 1841 ..ordinal = kKeyboardService_hide_name..parameters = _keyboard_KeyboardS
ervice_Hide_Params__(),kKeyboardService_setText_name: new mojom_types.MojomMetho
d() |
| 1842 ..declData = (new mojom_types.DeclarationData()..shortName = "SetText") |
| 1843 ..ordinal = kKeyboardService_setText_name..parameters = _keyboard_Keyboa
rdService_SetText_Params__(),kKeyboardService_setSelection_name: new mojom_types
.MojomMethod() |
| 1844 ..declData = (new mojom_types.DeclarationData()..shortName = "SetSelecti
on") |
| 1845 ..ordinal = kKeyboardService_setSelection_name..parameters = _keyboard_K
eyboardService_SetSelection_Params__(), |
| 1846 }; |
| 1847 } |
| 1848 |
| 1849 class _KeyboardServiceServiceDescription extends service_describer.ServiceDescri
ption { |
| 1850 // Avoid infinite loop by overriding serviceDescription field. |
| 1851 final service_describer.ServiceDescription serviceDescription = null; |
| 1852 dynamic getTopLevelInterface([Function responseFactory = null]) { |
| 1853 return _keyboard_KeyboardService__(); |
| 1854 } |
| 1855 dynamic getTypeDefinition(String typeKey,[Function responseFactory = null]) { |
| 1856 return getAllMojomTypeDefinitions()[typeKey]; |
| 1857 } |
| 1858 dynamic getAllTypeDefinitions([Function responseFactory = null]) { |
| 1859 return getAllMojomTypeDefinitions(); |
| 1860 } |
| 1861 } |
| 1862 |
| 1529 abstract class KeyboardService { | 1863 abstract class KeyboardService { |
| 1530 void show(Object client, KeyboardType type); | 1864 void show(Object client, KeyboardType type); |
| 1531 void showByRequest(); | 1865 void showByRequest(); |
| 1532 void hide(); | 1866 void hide(); |
| 1533 void setText(String text); | 1867 void setText(String text); |
| 1534 void setSelection(int start, int end); | 1868 void setSelection(int start, int end); |
| 1535 | 1869 |
| 1536 } | 1870 } |
| 1537 | 1871 |
| 1538 | 1872 |
| 1539 class KeyboardServiceProxyImpl extends bindings.Proxy { | 1873 class KeyboardServiceProxyImpl extends bindings.Proxy { |
| 1540 KeyboardServiceProxyImpl.fromEndpoint( | 1874 KeyboardServiceProxyImpl.fromEndpoint( |
| 1541 core.MojoMessagePipeEndpoint endpoint) : super.fromEndpoint(endpoint); | 1875 core.MojoMessagePipeEndpoint endpoint) : super.fromEndpoint(endpoint); |
| 1542 | 1876 |
| 1543 KeyboardServiceProxyImpl.fromHandle(core.MojoHandle handle) : | 1877 KeyboardServiceProxyImpl.fromHandle(core.MojoHandle handle) : |
| 1544 super.fromHandle(handle); | 1878 super.fromHandle(handle); |
| 1545 | 1879 |
| 1546 KeyboardServiceProxyImpl.unbound() : super.unbound(); | 1880 KeyboardServiceProxyImpl.unbound() : super.unbound(); |
| 1547 | 1881 |
| 1548 static KeyboardServiceProxyImpl newFromEndpoint( | 1882 static KeyboardServiceProxyImpl newFromEndpoint( |
| 1549 core.MojoMessagePipeEndpoint endpoint) { | 1883 core.MojoMessagePipeEndpoint endpoint) { |
| 1550 assert(endpoint.setDescription("For KeyboardServiceProxyImpl")); | 1884 assert(endpoint.setDescription("For KeyboardServiceProxyImpl")); |
| 1551 return new KeyboardServiceProxyImpl.fromEndpoint(endpoint); | 1885 return new KeyboardServiceProxyImpl.fromEndpoint(endpoint); |
| 1552 } | 1886 } |
| 1553 | 1887 |
| 1554 String get name => KeyboardServiceName; | 1888 String get name => KeyboardServiceName; |
| 1555 | 1889 |
| 1890 service_describer.ServiceDescription get serviceDescription => |
| 1891 new _KeyboardServiceServiceDescription(); |
| 1892 |
| 1556 void handleResponse(bindings.ServiceMessage message) { | 1893 void handleResponse(bindings.ServiceMessage message) { |
| 1557 switch (message.header.type) { | 1894 switch (message.header.type) { |
| 1558 default: | 1895 default: |
| 1559 proxyError("Unexpected message type: ${message.header.type}"); | 1896 proxyError("Unexpected message type: ${message.header.type}"); |
| 1560 close(immediate: true); | 1897 close(immediate: true); |
| 1561 break; | 1898 break; |
| 1562 } | 1899 } |
| 1563 } | 1900 } |
| 1564 | 1901 |
| 1565 String toString() { | 1902 String toString() { |
| (...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1751 assert(_impl == null); | 2088 assert(_impl == null); |
| 1752 _impl = d; | 2089 _impl = d; |
| 1753 } | 2090 } |
| 1754 | 2091 |
| 1755 String toString() { | 2092 String toString() { |
| 1756 var superString = super.toString(); | 2093 var superString = super.toString(); |
| 1757 return "KeyboardServiceStub($superString)"; | 2094 return "KeyboardServiceStub($superString)"; |
| 1758 } | 2095 } |
| 1759 | 2096 |
| 1760 int get version => 0; | 2097 int get version => 0; |
| 2098 |
| 2099 service_describer.ServiceDescription get serviceDescription => |
| 2100 new _KeyboardServiceServiceDescription(); |
| 1761 } | 2101 } |
| 1762 | 2102 |
| 1763 | 2103 |
| 2104 |
| 2105 |
| 2106 |
| 2107 |
| 2108 |
| 2109 |
| 2110 var _MojomDesc__ = _initDescriptions(); |
| 2111 |
| 2112 Map<String, mojom_types.UserDefinedType> _initDescriptions() { |
| 2113 var map = new Map<String, mojom_types.UserDefinedType>(); |
| 2114 |
| 2115 map["_keyboard_SubmitAction__"] = |
| 2116 new mojom_types.UserDefinedType() |
| 2117 ..enumType = _keyboard_SubmitAction__(); |
| 2118 |
| 2119 |
| 2120 map["_keyboard_KeyboardType__"] = |
| 2121 new mojom_types.UserDefinedType() |
| 2122 ..enumType = _keyboard_KeyboardType__(); |
| 2123 |
| 2124 |
| 2125 map["_keyboard_CompletionData__"] = |
| 2126 new mojom_types.UserDefinedType() |
| 2127 ..structType = _keyboard_CompletionData__(); |
| 2128 |
| 2129 |
| 2130 |
| 2131 |
| 2132 |
| 2133 |
| 2134 |
| 2135 |
| 2136 |
| 2137 |
| 2138 |
| 2139 map["_keyboard_CorrectionData__"] = |
| 2140 new mojom_types.UserDefinedType() |
| 2141 ..structType = _keyboard_CorrectionData__(); |
| 2142 |
| 2143 |
| 2144 |
| 2145 |
| 2146 |
| 2147 |
| 2148 |
| 2149 |
| 2150 |
| 2151 map["_keyboard_KeyboardClient_CommitCompletion_Params__"] = |
| 2152 new mojom_types.UserDefinedType() |
| 2153 ..structType = _keyboard_KeyboardClient_CommitCompletion_Params__(); |
| 2154 |
| 2155 |
| 2156 |
| 2157 |
| 2158 |
| 2159 map["_keyboard_KeyboardClient_CommitCorrection_Params__"] = |
| 2160 new mojom_types.UserDefinedType() |
| 2161 ..structType = _keyboard_KeyboardClient_CommitCorrection_Params__(); |
| 2162 |
| 2163 |
| 2164 |
| 2165 |
| 2166 |
| 2167 map["_keyboard_KeyboardClient_CommitText_Params__"] = |
| 2168 new mojom_types.UserDefinedType() |
| 2169 ..structType = _keyboard_KeyboardClient_CommitText_Params__(); |
| 2170 |
| 2171 |
| 2172 |
| 2173 |
| 2174 |
| 2175 |
| 2176 |
| 2177 map["_keyboard_KeyboardClient_DeleteSurroundingText_Params__"] = |
| 2178 new mojom_types.UserDefinedType() |
| 2179 ..structType = _keyboard_KeyboardClient_DeleteSurroundingText_Params__(); |
| 2180 |
| 2181 |
| 2182 |
| 2183 |
| 2184 |
| 2185 |
| 2186 |
| 2187 map["_keyboard_KeyboardClient_SetComposingRegion_Params__"] = |
| 2188 new mojom_types.UserDefinedType() |
| 2189 ..structType = _keyboard_KeyboardClient_SetComposingRegion_Params__(); |
| 2190 |
| 2191 |
| 2192 |
| 2193 |
| 2194 |
| 2195 |
| 2196 |
| 2197 map["_keyboard_KeyboardClient_SetComposingText_Params__"] = |
| 2198 new mojom_types.UserDefinedType() |
| 2199 ..structType = _keyboard_KeyboardClient_SetComposingText_Params__(); |
| 2200 |
| 2201 |
| 2202 |
| 2203 |
| 2204 |
| 2205 |
| 2206 |
| 2207 map["_keyboard_KeyboardClient_SetSelection_Params__"] = |
| 2208 new mojom_types.UserDefinedType() |
| 2209 ..structType = _keyboard_KeyboardClient_SetSelection_Params__(); |
| 2210 |
| 2211 |
| 2212 |
| 2213 |
| 2214 |
| 2215 |
| 2216 |
| 2217 map["_keyboard_KeyboardClient_Submit_Params__"] = |
| 2218 new mojom_types.UserDefinedType() |
| 2219 ..structType = _keyboard_KeyboardClient_Submit_Params__(); |
| 2220 |
| 2221 |
| 2222 |
| 2223 |
| 2224 |
| 2225 map["_keyboard_KeyboardService_Show_Params__"] = |
| 2226 new mojom_types.UserDefinedType() |
| 2227 ..structType = _keyboard_KeyboardService_Show_Params__(); |
| 2228 |
| 2229 |
| 2230 map["_keyboard_KeyboardClient__"] = |
| 2231 new mojom_types.UserDefinedType() |
| 2232 ..interfaceType = _keyboard_KeyboardClient__(); |
| 2233 |
| 2234 |
| 2235 |
| 2236 |
| 2237 |
| 2238 |
| 2239 map["_keyboard_KeyboardService_ShowByRequest_Params__"] = |
| 2240 new mojom_types.UserDefinedType() |
| 2241 ..structType = _keyboard_KeyboardService_ShowByRequest_Params__(); |
| 2242 |
| 2243 |
| 2244 |
| 2245 map["_keyboard_KeyboardService_Hide_Params__"] = |
| 2246 new mojom_types.UserDefinedType() |
| 2247 ..structType = _keyboard_KeyboardService_Hide_Params__(); |
| 2248 |
| 2249 |
| 2250 |
| 2251 map["_keyboard_KeyboardService_SetText_Params__"] = |
| 2252 new mojom_types.UserDefinedType() |
| 2253 ..structType = _keyboard_KeyboardService_SetText_Params__(); |
| 2254 |
| 2255 |
| 2256 |
| 2257 |
| 2258 |
| 2259 map["_keyboard_KeyboardService_SetSelection_Params__"] = |
| 2260 new mojom_types.UserDefinedType() |
| 2261 ..structType = _keyboard_KeyboardService_SetSelection_Params__(); |
| 2262 |
| 2263 |
| 2264 |
| 2265 |
| 2266 |
| 2267 |
| 2268 |
| 2269 |
| 2270 map["_keyboard_KeyboardService__"] = |
| 2271 new mojom_types.UserDefinedType() |
| 2272 ..interfaceType = _keyboard_KeyboardService__(); |
| 2273 |
| 2274 return map; |
| 2275 } |
| 2276 |
| 2277 Map<String, mojom_types.UserDefinedType> getAllMojomTypeDefinitions() { |
| 2278 return _MojomDesc__; |
| 2279 } |
| 2280 |
| 2281 |
| OLD | NEW |