| 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 activity_mojom; | 5 library activity_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/bindings/types/mojom_types.mojom.dart' as mojom_types; |
| 12 import 'package:mojo/mojo/bindings/types/service_describer.mojom.dart' as servic
e_describer; |
| 11 | 13 |
| 12 class SystemUiVisibility extends bindings.MojoEnum { | 14 class SystemUiVisibility extends bindings.MojoEnum { |
| 13 static const SystemUiVisibility standard = const SystemUiVisibility._(0); | 15 static const SystemUiVisibility standard = const SystemUiVisibility._(0); |
| 14 static const SystemUiVisibility fullscreen = const SystemUiVisibility._(1); | 16 static const SystemUiVisibility fullscreen = const SystemUiVisibility._(1); |
| 15 static const SystemUiVisibility immersive = const SystemUiVisibility._(2); | 17 static const SystemUiVisibility immersive = const SystemUiVisibility._(2); |
| 16 | 18 |
| 17 const SystemUiVisibility._(int v) : super(v); | 19 const SystemUiVisibility._(int v) : super(v); |
| 18 | 20 |
| 19 static const Map<String, SystemUiVisibility> valuesMap = const { | 21 static const Map<String, SystemUiVisibility> valuesMap = const { |
| 20 "standard": standard, | 22 "standard": standard, |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 } | 55 } |
| 54 | 56 |
| 55 String toString() { | 57 String toString() { |
| 56 switch(this) { | 58 switch(this) { |
| 57 case standard: | 59 case standard: |
| 58 return 'SystemUiVisibility.standard'; | 60 return 'SystemUiVisibility.standard'; |
| 59 case fullscreen: | 61 case fullscreen: |
| 60 return 'SystemUiVisibility.fullscreen'; | 62 return 'SystemUiVisibility.fullscreen'; |
| 61 case immersive: | 63 case immersive: |
| 62 return 'SystemUiVisibility.immersive'; | 64 return 'SystemUiVisibility.immersive'; |
| 65 default: |
| 66 return null; |
| 63 } | 67 } |
| 64 } | 68 } |
| 65 | 69 |
| 66 int toJson() => mojoEnumValue; | 70 int toJson() => mojoEnumValue; |
| 67 } | 71 } |
| 68 | 72 |
| 73 |
| 74 |
| 69 class ScreenOrientation extends bindings.MojoEnum { | 75 class ScreenOrientation extends bindings.MojoEnum { |
| 70 static const ScreenOrientation unspecified = const ScreenOrientation._(0); | 76 static const ScreenOrientation unspecified = const ScreenOrientation._(0); |
| 71 static const ScreenOrientation landscape = const ScreenOrientation._(1); | 77 static const ScreenOrientation landscape = const ScreenOrientation._(1); |
| 72 static const ScreenOrientation portrait = const ScreenOrientation._(2); | 78 static const ScreenOrientation portrait = const ScreenOrientation._(2); |
| 73 static const ScreenOrientation nosensor = const ScreenOrientation._(3); | 79 static const ScreenOrientation nosensor = const ScreenOrientation._(3); |
| 74 | 80 |
| 75 const ScreenOrientation._(int v) : super(v); | 81 const ScreenOrientation._(int v) : super(v); |
| 76 | 82 |
| 77 static const Map<String, ScreenOrientation> valuesMap = const { | 83 static const Map<String, ScreenOrientation> valuesMap = const { |
| 78 "unspecified": unspecified, | 84 "unspecified": unspecified, |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 117 String toString() { | 123 String toString() { |
| 118 switch(this) { | 124 switch(this) { |
| 119 case unspecified: | 125 case unspecified: |
| 120 return 'ScreenOrientation.unspecified'; | 126 return 'ScreenOrientation.unspecified'; |
| 121 case landscape: | 127 case landscape: |
| 122 return 'ScreenOrientation.landscape'; | 128 return 'ScreenOrientation.landscape'; |
| 123 case portrait: | 129 case portrait: |
| 124 return 'ScreenOrientation.portrait'; | 130 return 'ScreenOrientation.portrait'; |
| 125 case nosensor: | 131 case nosensor: |
| 126 return 'ScreenOrientation.nosensor'; | 132 return 'ScreenOrientation.nosensor'; |
| 133 default: |
| 134 return null; |
| 127 } | 135 } |
| 128 } | 136 } |
| 129 | 137 |
| 130 int toJson() => mojoEnumValue; | 138 int toJson() => mojoEnumValue; |
| 131 } | 139 } |
| 132 | 140 |
| 141 |
| 142 |
| 133 class HapticFeedbackType extends bindings.MojoEnum { | 143 class HapticFeedbackType extends bindings.MojoEnum { |
| 134 static const HapticFeedbackType longPress = const HapticFeedbackType._(0); | 144 static const HapticFeedbackType longPress = const HapticFeedbackType._(0); |
| 135 static const HapticFeedbackType virtualKey = const HapticFeedbackType._(1); | 145 static const HapticFeedbackType virtualKey = const HapticFeedbackType._(1); |
| 136 static const HapticFeedbackType keyboardTap = const HapticFeedbackType._(2); | 146 static const HapticFeedbackType keyboardTap = const HapticFeedbackType._(2); |
| 137 static const HapticFeedbackType clockTick = const HapticFeedbackType._(3); | 147 static const HapticFeedbackType clockTick = const HapticFeedbackType._(3); |
| 138 | 148 |
| 139 const HapticFeedbackType._(int v) : super(v); | 149 const HapticFeedbackType._(int v) : super(v); |
| 140 | 150 |
| 141 static const Map<String, HapticFeedbackType> valuesMap = const { | 151 static const Map<String, HapticFeedbackType> valuesMap = const { |
| 142 "longPress": longPress, | 152 "longPress": longPress, |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 181 String toString() { | 191 String toString() { |
| 182 switch(this) { | 192 switch(this) { |
| 183 case longPress: | 193 case longPress: |
| 184 return 'HapticFeedbackType.longPress'; | 194 return 'HapticFeedbackType.longPress'; |
| 185 case virtualKey: | 195 case virtualKey: |
| 186 return 'HapticFeedbackType.virtualKey'; | 196 return 'HapticFeedbackType.virtualKey'; |
| 187 case keyboardTap: | 197 case keyboardTap: |
| 188 return 'HapticFeedbackType.keyboardTap'; | 198 return 'HapticFeedbackType.keyboardTap'; |
| 189 case clockTick: | 199 case clockTick: |
| 190 return 'HapticFeedbackType.clockTick'; | 200 return 'HapticFeedbackType.clockTick'; |
| 201 default: |
| 202 return null; |
| 191 } | 203 } |
| 192 } | 204 } |
| 193 | 205 |
| 194 int toJson() => mojoEnumValue; | 206 int toJson() => mojoEnumValue; |
| 195 } | 207 } |
| 196 | 208 |
| 209 |
| 210 |
| 197 class AuralFeedbackType extends bindings.MojoEnum { | 211 class AuralFeedbackType extends bindings.MojoEnum { |
| 198 static const AuralFeedbackType click = const AuralFeedbackType._(0); | 212 static const AuralFeedbackType click = const AuralFeedbackType._(0); |
| 199 static const AuralFeedbackType navigationLeft = const AuralFeedbackType._(1); | 213 static const AuralFeedbackType navigationLeft = const AuralFeedbackType._(1); |
| 200 static const AuralFeedbackType navigationUp = const AuralFeedbackType._(2); | 214 static const AuralFeedbackType navigationUp = const AuralFeedbackType._(2); |
| 201 static const AuralFeedbackType navigationRight = const AuralFeedbackType._(3); | 215 static const AuralFeedbackType navigationRight = const AuralFeedbackType._(3); |
| 202 static const AuralFeedbackType navigationDown = const AuralFeedbackType._(4); | 216 static const AuralFeedbackType navigationDown = const AuralFeedbackType._(4); |
| 203 | 217 |
| 204 const AuralFeedbackType._(int v) : super(v); | 218 const AuralFeedbackType._(int v) : super(v); |
| 205 | 219 |
| 206 static const Map<String, AuralFeedbackType> valuesMap = const { | 220 static const Map<String, AuralFeedbackType> valuesMap = const { |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 252 case click: | 266 case click: |
| 253 return 'AuralFeedbackType.click'; | 267 return 'AuralFeedbackType.click'; |
| 254 case navigationLeft: | 268 case navigationLeft: |
| 255 return 'AuralFeedbackType.navigationLeft'; | 269 return 'AuralFeedbackType.navigationLeft'; |
| 256 case navigationUp: | 270 case navigationUp: |
| 257 return 'AuralFeedbackType.navigationUp'; | 271 return 'AuralFeedbackType.navigationUp'; |
| 258 case navigationRight: | 272 case navigationRight: |
| 259 return 'AuralFeedbackType.navigationRight'; | 273 return 'AuralFeedbackType.navigationRight'; |
| 260 case navigationDown: | 274 case navigationDown: |
| 261 return 'AuralFeedbackType.navigationDown'; | 275 return 'AuralFeedbackType.navigationDown'; |
| 276 default: |
| 277 return null; |
| 262 } | 278 } |
| 263 } | 279 } |
| 264 | 280 |
| 265 int toJson() => mojoEnumValue; | 281 int toJson() => mojoEnumValue; |
| 266 } | 282 } |
| 267 | 283 |
| 268 | 284 |
| 269 | 285 |
| 286 |
| 287 |
| 270 class StringExtra extends bindings.Struct { | 288 class StringExtra extends bindings.Struct { |
| 271 static const List<bindings.StructDataHeader> kVersions = const [ | 289 static const List<bindings.StructDataHeader> kVersions = const [ |
| 272 const bindings.StructDataHeader(24, 0) | 290 const bindings.StructDataHeader(24, 0) |
| 273 ]; | 291 ]; |
| 274 String name = null; | 292 String name = null; |
| 275 String value = null; | 293 String value = null; |
| 276 | 294 |
| 277 StringExtra() : super(kVersions.last.size); | 295 StringExtra() : super(kVersions.last.size); |
| 278 | 296 |
| 279 static StringExtra deserialize(bindings.Message message) { | 297 static StringExtra deserialize(bindings.Message message) { |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 336 | 354 |
| 337 Map toJson() { | 355 Map toJson() { |
| 338 Map map = new Map(); | 356 Map map = new Map(); |
| 339 map["name"] = name; | 357 map["name"] = name; |
| 340 map["value"] = value; | 358 map["value"] = value; |
| 341 return map; | 359 return map; |
| 342 } | 360 } |
| 343 } | 361 } |
| 344 | 362 |
| 345 | 363 |
| 364 |
| 365 |
| 346 class ComponentName extends bindings.Struct { | 366 class ComponentName extends bindings.Struct { |
| 347 static const List<bindings.StructDataHeader> kVersions = const [ | 367 static const List<bindings.StructDataHeader> kVersions = const [ |
| 348 const bindings.StructDataHeader(24, 0) | 368 const bindings.StructDataHeader(24, 0) |
| 349 ]; | 369 ]; |
| 350 String packageName = null; | 370 String packageName = null; |
| 351 String className = null; | 371 String className = null; |
| 352 | 372 |
| 353 ComponentName() : super(kVersions.last.size); | 373 ComponentName() : super(kVersions.last.size); |
| 354 | 374 |
| 355 static ComponentName deserialize(bindings.Message message) { | 375 static ComponentName deserialize(bindings.Message message) { |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 412 | 432 |
| 413 Map toJson() { | 433 Map toJson() { |
| 414 Map map = new Map(); | 434 Map map = new Map(); |
| 415 map["packageName"] = packageName; | 435 map["packageName"] = packageName; |
| 416 map["className"] = className; | 436 map["className"] = className; |
| 417 return map; | 437 return map; |
| 418 } | 438 } |
| 419 } | 439 } |
| 420 | 440 |
| 421 | 441 |
| 442 |
| 443 |
| 422 class Intent extends bindings.Struct { | 444 class Intent extends bindings.Struct { |
| 423 static const List<bindings.StructDataHeader> kVersions = const [ | 445 static const List<bindings.StructDataHeader> kVersions = const [ |
| 424 const bindings.StructDataHeader(56, 0) | 446 const bindings.StructDataHeader(56, 0) |
| 425 ]; | 447 ]; |
| 426 String action = null; | 448 String action = null; |
| 427 String url = null; | 449 String url = null; |
| 428 int flags = 0; | 450 int flags = 0; |
| 429 ComponentName component = null; | 451 ComponentName component = null; |
| 430 List<StringExtra> stringExtras = null; | 452 List<StringExtra> stringExtras = null; |
| 431 String type = null; | 453 String type = null; |
| (...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 544 map["url"] = url; | 566 map["url"] = url; |
| 545 map["flags"] = flags; | 567 map["flags"] = flags; |
| 546 map["component"] = component; | 568 map["component"] = component; |
| 547 map["stringExtras"] = stringExtras; | 569 map["stringExtras"] = stringExtras; |
| 548 map["type"] = type; | 570 map["type"] = type; |
| 549 return map; | 571 return map; |
| 550 } | 572 } |
| 551 } | 573 } |
| 552 | 574 |
| 553 | 575 |
| 576 |
| 577 |
| 554 class TaskDescription extends bindings.Struct { | 578 class TaskDescription extends bindings.Struct { |
| 555 static const List<bindings.StructDataHeader> kVersions = const [ | 579 static const List<bindings.StructDataHeader> kVersions = const [ |
| 556 const bindings.StructDataHeader(24, 0) | 580 const bindings.StructDataHeader(24, 0) |
| 557 ]; | 581 ]; |
| 558 String label = null; | 582 String label = null; |
| 559 int primaryColor = 0; | 583 int primaryColor = 0; |
| 560 | 584 |
| 561 TaskDescription() : super(kVersions.last.size); | 585 TaskDescription() : super(kVersions.last.size); |
| 562 | 586 |
| 563 static TaskDescription deserialize(bindings.Message message) { | 587 static TaskDescription deserialize(bindings.Message message) { |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 620 | 644 |
| 621 Map toJson() { | 645 Map toJson() { |
| 622 Map map = new Map(); | 646 Map map = new Map(); |
| 623 map["label"] = label; | 647 map["label"] = label; |
| 624 map["primaryColor"] = primaryColor; | 648 map["primaryColor"] = primaryColor; |
| 625 return map; | 649 return map; |
| 626 } | 650 } |
| 627 } | 651 } |
| 628 | 652 |
| 629 | 653 |
| 654 |
| 655 |
| 630 class _ActivityGetUserFeedbackParams extends bindings.Struct { | 656 class _ActivityGetUserFeedbackParams extends bindings.Struct { |
| 631 static const List<bindings.StructDataHeader> kVersions = const [ | 657 static const List<bindings.StructDataHeader> kVersions = const [ |
| 632 const bindings.StructDataHeader(16, 0) | 658 const bindings.StructDataHeader(16, 0) |
| 633 ]; | 659 ]; |
| 634 Object userFeedback = null; | 660 Object userFeedback = null; |
| 635 | 661 |
| 636 _ActivityGetUserFeedbackParams() : super(kVersions.last.size); | 662 _ActivityGetUserFeedbackParams() : super(kVersions.last.size); |
| 637 | 663 |
| 638 static _ActivityGetUserFeedbackParams deserialize(bindings.Message message) { | 664 static _ActivityGetUserFeedbackParams deserialize(bindings.Message message) { |
| 639 var decoder = new bindings.Decoder(message); | 665 var decoder = new bindings.Decoder(message); |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 686 "userFeedback: $userFeedback" ")"; | 712 "userFeedback: $userFeedback" ")"; |
| 687 } | 713 } |
| 688 | 714 |
| 689 Map toJson() { | 715 Map toJson() { |
| 690 throw new bindings.MojoCodecError( | 716 throw new bindings.MojoCodecError( |
| 691 'Object containing handles cannot be encoded to JSON.'); | 717 'Object containing handles cannot be encoded to JSON.'); |
| 692 } | 718 } |
| 693 } | 719 } |
| 694 | 720 |
| 695 | 721 |
| 722 |
| 723 |
| 696 class _ActivityStartActivityParams extends bindings.Struct { | 724 class _ActivityStartActivityParams extends bindings.Struct { |
| 697 static const List<bindings.StructDataHeader> kVersions = const [ | 725 static const List<bindings.StructDataHeader> kVersions = const [ |
| 698 const bindings.StructDataHeader(16, 0) | 726 const bindings.StructDataHeader(16, 0) |
| 699 ]; | 727 ]; |
| 700 Intent intent = null; | 728 Intent intent = null; |
| 701 | 729 |
| 702 _ActivityStartActivityParams() : super(kVersions.last.size); | 730 _ActivityStartActivityParams() : super(kVersions.last.size); |
| 703 | 731 |
| 704 static _ActivityStartActivityParams deserialize(bindings.Message message) { | 732 static _ActivityStartActivityParams deserialize(bindings.Message message) { |
| 705 var decoder = new bindings.Decoder(message); | 733 var decoder = new bindings.Decoder(message); |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 754 } | 782 } |
| 755 | 783 |
| 756 Map toJson() { | 784 Map toJson() { |
| 757 Map map = new Map(); | 785 Map map = new Map(); |
| 758 map["intent"] = intent; | 786 map["intent"] = intent; |
| 759 return map; | 787 return map; |
| 760 } | 788 } |
| 761 } | 789 } |
| 762 | 790 |
| 763 | 791 |
| 792 |
| 793 |
| 764 class _ActivityFinishCurrentActivityParams extends bindings.Struct { | 794 class _ActivityFinishCurrentActivityParams extends bindings.Struct { |
| 765 static const List<bindings.StructDataHeader> kVersions = const [ | 795 static const List<bindings.StructDataHeader> kVersions = const [ |
| 766 const bindings.StructDataHeader(8, 0) | 796 const bindings.StructDataHeader(8, 0) |
| 767 ]; | 797 ]; |
| 768 | 798 |
| 769 _ActivityFinishCurrentActivityParams() : super(kVersions.last.size); | 799 _ActivityFinishCurrentActivityParams() : super(kVersions.last.size); |
| 770 | 800 |
| 771 static _ActivityFinishCurrentActivityParams deserialize(bindings.Message messa
ge) { | 801 static _ActivityFinishCurrentActivityParams deserialize(bindings.Message messa
ge) { |
| 772 var decoder = new bindings.Decoder(message); | 802 var decoder = new bindings.Decoder(message); |
| 773 var result = decode(decoder); | 803 var result = decode(decoder); |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 812 return "_ActivityFinishCurrentActivityParams("")"; | 842 return "_ActivityFinishCurrentActivityParams("")"; |
| 813 } | 843 } |
| 814 | 844 |
| 815 Map toJson() { | 845 Map toJson() { |
| 816 Map map = new Map(); | 846 Map map = new Map(); |
| 817 return map; | 847 return map; |
| 818 } | 848 } |
| 819 } | 849 } |
| 820 | 850 |
| 821 | 851 |
| 852 |
| 853 |
| 822 class _ActivitySetTaskDescriptionParams extends bindings.Struct { | 854 class _ActivitySetTaskDescriptionParams extends bindings.Struct { |
| 823 static const List<bindings.StructDataHeader> kVersions = const [ | 855 static const List<bindings.StructDataHeader> kVersions = const [ |
| 824 const bindings.StructDataHeader(16, 0) | 856 const bindings.StructDataHeader(16, 0) |
| 825 ]; | 857 ]; |
| 826 TaskDescription description = null; | 858 TaskDescription description = null; |
| 827 | 859 |
| 828 _ActivitySetTaskDescriptionParams() : super(kVersions.last.size); | 860 _ActivitySetTaskDescriptionParams() : super(kVersions.last.size); |
| 829 | 861 |
| 830 static _ActivitySetTaskDescriptionParams deserialize(bindings.Message message)
{ | 862 static _ActivitySetTaskDescriptionParams deserialize(bindings.Message message)
{ |
| 831 var decoder = new bindings.Decoder(message); | 863 var decoder = new bindings.Decoder(message); |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 880 } | 912 } |
| 881 | 913 |
| 882 Map toJson() { | 914 Map toJson() { |
| 883 Map map = new Map(); | 915 Map map = new Map(); |
| 884 map["description"] = description; | 916 map["description"] = description; |
| 885 return map; | 917 return map; |
| 886 } | 918 } |
| 887 } | 919 } |
| 888 | 920 |
| 889 | 921 |
| 922 |
| 923 |
| 890 class _ActivitySetSystemUiVisibilityParams extends bindings.Struct { | 924 class _ActivitySetSystemUiVisibilityParams extends bindings.Struct { |
| 891 static const List<bindings.StructDataHeader> kVersions = const [ | 925 static const List<bindings.StructDataHeader> kVersions = const [ |
| 892 const bindings.StructDataHeader(16, 0) | 926 const bindings.StructDataHeader(16, 0) |
| 893 ]; | 927 ]; |
| 894 SystemUiVisibility visibility = null; | 928 SystemUiVisibility visibility = null; |
| 895 | 929 |
| 896 _ActivitySetSystemUiVisibilityParams() : super(kVersions.last.size); | 930 _ActivitySetSystemUiVisibilityParams() : super(kVersions.last.size); |
| 897 | 931 |
| 898 static _ActivitySetSystemUiVisibilityParams deserialize(bindings.Message messa
ge) { | 932 static _ActivitySetSystemUiVisibilityParams deserialize(bindings.Message messa
ge) { |
| 899 var decoder = new bindings.Decoder(message); | 933 var decoder = new bindings.Decoder(message); |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 951 } | 985 } |
| 952 | 986 |
| 953 Map toJson() { | 987 Map toJson() { |
| 954 Map map = new Map(); | 988 Map map = new Map(); |
| 955 map["visibility"] = visibility; | 989 map["visibility"] = visibility; |
| 956 return map; | 990 return map; |
| 957 } | 991 } |
| 958 } | 992 } |
| 959 | 993 |
| 960 | 994 |
| 995 |
| 996 |
| 961 class _ActivitySetRequestedOrientationParams extends bindings.Struct { | 997 class _ActivitySetRequestedOrientationParams extends bindings.Struct { |
| 962 static const List<bindings.StructDataHeader> kVersions = const [ | 998 static const List<bindings.StructDataHeader> kVersions = const [ |
| 963 const bindings.StructDataHeader(16, 0) | 999 const bindings.StructDataHeader(16, 0) |
| 964 ]; | 1000 ]; |
| 965 ScreenOrientation orientation = null; | 1001 ScreenOrientation orientation = null; |
| 966 | 1002 |
| 967 _ActivitySetRequestedOrientationParams() : super(kVersions.last.size); | 1003 _ActivitySetRequestedOrientationParams() : super(kVersions.last.size); |
| 968 | 1004 |
| 969 static _ActivitySetRequestedOrientationParams deserialize(bindings.Message mes
sage) { | 1005 static _ActivitySetRequestedOrientationParams deserialize(bindings.Message mes
sage) { |
| 970 var decoder = new bindings.Decoder(message); | 1006 var decoder = new bindings.Decoder(message); |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1022 } | 1058 } |
| 1023 | 1059 |
| 1024 Map toJson() { | 1060 Map toJson() { |
| 1025 Map map = new Map(); | 1061 Map map = new Map(); |
| 1026 map["orientation"] = orientation; | 1062 map["orientation"] = orientation; |
| 1027 return map; | 1063 return map; |
| 1028 } | 1064 } |
| 1029 } | 1065 } |
| 1030 | 1066 |
| 1031 | 1067 |
| 1068 |
| 1069 |
| 1032 class _PathServiceGetAppDataDirParams extends bindings.Struct { | 1070 class _PathServiceGetAppDataDirParams extends bindings.Struct { |
| 1033 static const List<bindings.StructDataHeader> kVersions = const [ | 1071 static const List<bindings.StructDataHeader> kVersions = const [ |
| 1034 const bindings.StructDataHeader(8, 0) | 1072 const bindings.StructDataHeader(8, 0) |
| 1035 ]; | 1073 ]; |
| 1036 | 1074 |
| 1037 _PathServiceGetAppDataDirParams() : super(kVersions.last.size); | 1075 _PathServiceGetAppDataDirParams() : super(kVersions.last.size); |
| 1038 | 1076 |
| 1039 static _PathServiceGetAppDataDirParams deserialize(bindings.Message message) { | 1077 static _PathServiceGetAppDataDirParams deserialize(bindings.Message message) { |
| 1040 var decoder = new bindings.Decoder(message); | 1078 var decoder = new bindings.Decoder(message); |
| 1041 var result = decode(decoder); | 1079 var result = decode(decoder); |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1080 return "_PathServiceGetAppDataDirParams("")"; | 1118 return "_PathServiceGetAppDataDirParams("")"; |
| 1081 } | 1119 } |
| 1082 | 1120 |
| 1083 Map toJson() { | 1121 Map toJson() { |
| 1084 Map map = new Map(); | 1122 Map map = new Map(); |
| 1085 return map; | 1123 return map; |
| 1086 } | 1124 } |
| 1087 } | 1125 } |
| 1088 | 1126 |
| 1089 | 1127 |
| 1128 |
| 1129 |
| 1090 class PathServiceGetAppDataDirResponseParams extends bindings.Struct { | 1130 class PathServiceGetAppDataDirResponseParams extends bindings.Struct { |
| 1091 static const List<bindings.StructDataHeader> kVersions = const [ | 1131 static const List<bindings.StructDataHeader> kVersions = const [ |
| 1092 const bindings.StructDataHeader(16, 0) | 1132 const bindings.StructDataHeader(16, 0) |
| 1093 ]; | 1133 ]; |
| 1094 String path = null; | 1134 String path = null; |
| 1095 | 1135 |
| 1096 PathServiceGetAppDataDirResponseParams() : super(kVersions.last.size); | 1136 PathServiceGetAppDataDirResponseParams() : super(kVersions.last.size); |
| 1097 | 1137 |
| 1098 static PathServiceGetAppDataDirResponseParams deserialize(bindings.Message mes
sage) { | 1138 static PathServiceGetAppDataDirResponseParams deserialize(bindings.Message mes
sage) { |
| 1099 var decoder = new bindings.Decoder(message); | 1139 var decoder = new bindings.Decoder(message); |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1147 } | 1187 } |
| 1148 | 1188 |
| 1149 Map toJson() { | 1189 Map toJson() { |
| 1150 Map map = new Map(); | 1190 Map map = new Map(); |
| 1151 map["path"] = path; | 1191 map["path"] = path; |
| 1152 return map; | 1192 return map; |
| 1153 } | 1193 } |
| 1154 } | 1194 } |
| 1155 | 1195 |
| 1156 | 1196 |
| 1197 |
| 1198 |
| 1157 class _PathServiceGetFilesDirParams extends bindings.Struct { | 1199 class _PathServiceGetFilesDirParams extends bindings.Struct { |
| 1158 static const List<bindings.StructDataHeader> kVersions = const [ | 1200 static const List<bindings.StructDataHeader> kVersions = const [ |
| 1159 const bindings.StructDataHeader(8, 0) | 1201 const bindings.StructDataHeader(8, 0) |
| 1160 ]; | 1202 ]; |
| 1161 | 1203 |
| 1162 _PathServiceGetFilesDirParams() : super(kVersions.last.size); | 1204 _PathServiceGetFilesDirParams() : super(kVersions.last.size); |
| 1163 | 1205 |
| 1164 static _PathServiceGetFilesDirParams deserialize(bindings.Message message) { | 1206 static _PathServiceGetFilesDirParams deserialize(bindings.Message message) { |
| 1165 var decoder = new bindings.Decoder(message); | 1207 var decoder = new bindings.Decoder(message); |
| 1166 var result = decode(decoder); | 1208 var result = decode(decoder); |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1205 return "_PathServiceGetFilesDirParams("")"; | 1247 return "_PathServiceGetFilesDirParams("")"; |
| 1206 } | 1248 } |
| 1207 | 1249 |
| 1208 Map toJson() { | 1250 Map toJson() { |
| 1209 Map map = new Map(); | 1251 Map map = new Map(); |
| 1210 return map; | 1252 return map; |
| 1211 } | 1253 } |
| 1212 } | 1254 } |
| 1213 | 1255 |
| 1214 | 1256 |
| 1257 |
| 1258 |
| 1215 class PathServiceGetFilesDirResponseParams extends bindings.Struct { | 1259 class PathServiceGetFilesDirResponseParams extends bindings.Struct { |
| 1216 static const List<bindings.StructDataHeader> kVersions = const [ | 1260 static const List<bindings.StructDataHeader> kVersions = const [ |
| 1217 const bindings.StructDataHeader(16, 0) | 1261 const bindings.StructDataHeader(16, 0) |
| 1218 ]; | 1262 ]; |
| 1219 String path = null; | 1263 String path = null; |
| 1220 | 1264 |
| 1221 PathServiceGetFilesDirResponseParams() : super(kVersions.last.size); | 1265 PathServiceGetFilesDirResponseParams() : super(kVersions.last.size); |
| 1222 | 1266 |
| 1223 static PathServiceGetFilesDirResponseParams deserialize(bindings.Message messa
ge) { | 1267 static PathServiceGetFilesDirResponseParams deserialize(bindings.Message messa
ge) { |
| 1224 var decoder = new bindings.Decoder(message); | 1268 var decoder = new bindings.Decoder(message); |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1272 } | 1316 } |
| 1273 | 1317 |
| 1274 Map toJson() { | 1318 Map toJson() { |
| 1275 Map map = new Map(); | 1319 Map map = new Map(); |
| 1276 map["path"] = path; | 1320 map["path"] = path; |
| 1277 return map; | 1321 return map; |
| 1278 } | 1322 } |
| 1279 } | 1323 } |
| 1280 | 1324 |
| 1281 | 1325 |
| 1326 |
| 1327 |
| 1282 class _PathServiceGetCacheDirParams extends bindings.Struct { | 1328 class _PathServiceGetCacheDirParams extends bindings.Struct { |
| 1283 static const List<bindings.StructDataHeader> kVersions = const [ | 1329 static const List<bindings.StructDataHeader> kVersions = const [ |
| 1284 const bindings.StructDataHeader(8, 0) | 1330 const bindings.StructDataHeader(8, 0) |
| 1285 ]; | 1331 ]; |
| 1286 | 1332 |
| 1287 _PathServiceGetCacheDirParams() : super(kVersions.last.size); | 1333 _PathServiceGetCacheDirParams() : super(kVersions.last.size); |
| 1288 | 1334 |
| 1289 static _PathServiceGetCacheDirParams deserialize(bindings.Message message) { | 1335 static _PathServiceGetCacheDirParams deserialize(bindings.Message message) { |
| 1290 var decoder = new bindings.Decoder(message); | 1336 var decoder = new bindings.Decoder(message); |
| 1291 var result = decode(decoder); | 1337 var result = decode(decoder); |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1330 return "_PathServiceGetCacheDirParams("")"; | 1376 return "_PathServiceGetCacheDirParams("")"; |
| 1331 } | 1377 } |
| 1332 | 1378 |
| 1333 Map toJson() { | 1379 Map toJson() { |
| 1334 Map map = new Map(); | 1380 Map map = new Map(); |
| 1335 return map; | 1381 return map; |
| 1336 } | 1382 } |
| 1337 } | 1383 } |
| 1338 | 1384 |
| 1339 | 1385 |
| 1386 |
| 1387 |
| 1340 class PathServiceGetCacheDirResponseParams extends bindings.Struct { | 1388 class PathServiceGetCacheDirResponseParams extends bindings.Struct { |
| 1341 static const List<bindings.StructDataHeader> kVersions = const [ | 1389 static const List<bindings.StructDataHeader> kVersions = const [ |
| 1342 const bindings.StructDataHeader(16, 0) | 1390 const bindings.StructDataHeader(16, 0) |
| 1343 ]; | 1391 ]; |
| 1344 String path = null; | 1392 String path = null; |
| 1345 | 1393 |
| 1346 PathServiceGetCacheDirResponseParams() : super(kVersions.last.size); | 1394 PathServiceGetCacheDirResponseParams() : super(kVersions.last.size); |
| 1347 | 1395 |
| 1348 static PathServiceGetCacheDirResponseParams deserialize(bindings.Message messa
ge) { | 1396 static PathServiceGetCacheDirResponseParams deserialize(bindings.Message messa
ge) { |
| 1349 var decoder = new bindings.Decoder(message); | 1397 var decoder = new bindings.Decoder(message); |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1397 } | 1445 } |
| 1398 | 1446 |
| 1399 Map toJson() { | 1447 Map toJson() { |
| 1400 Map map = new Map(); | 1448 Map map = new Map(); |
| 1401 map["path"] = path; | 1449 map["path"] = path; |
| 1402 return map; | 1450 return map; |
| 1403 } | 1451 } |
| 1404 } | 1452 } |
| 1405 | 1453 |
| 1406 | 1454 |
| 1455 |
| 1456 |
| 1407 class _UserFeedbackPerformHapticFeedbackParams extends bindings.Struct { | 1457 class _UserFeedbackPerformHapticFeedbackParams extends bindings.Struct { |
| 1408 static const List<bindings.StructDataHeader> kVersions = const [ | 1458 static const List<bindings.StructDataHeader> kVersions = const [ |
| 1409 const bindings.StructDataHeader(16, 0) | 1459 const bindings.StructDataHeader(16, 0) |
| 1410 ]; | 1460 ]; |
| 1411 HapticFeedbackType type = null; | 1461 HapticFeedbackType type = null; |
| 1412 | 1462 |
| 1413 _UserFeedbackPerformHapticFeedbackParams() : super(kVersions.last.size); | 1463 _UserFeedbackPerformHapticFeedbackParams() : super(kVersions.last.size); |
| 1414 | 1464 |
| 1415 static _UserFeedbackPerformHapticFeedbackParams deserialize(bindings.Message m
essage) { | 1465 static _UserFeedbackPerformHapticFeedbackParams deserialize(bindings.Message m
essage) { |
| 1416 var decoder = new bindings.Decoder(message); | 1466 var decoder = new bindings.Decoder(message); |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1468 } | 1518 } |
| 1469 | 1519 |
| 1470 Map toJson() { | 1520 Map toJson() { |
| 1471 Map map = new Map(); | 1521 Map map = new Map(); |
| 1472 map["type"] = type; | 1522 map["type"] = type; |
| 1473 return map; | 1523 return map; |
| 1474 } | 1524 } |
| 1475 } | 1525 } |
| 1476 | 1526 |
| 1477 | 1527 |
| 1528 |
| 1529 |
| 1478 class _UserFeedbackPerformAuralFeedbackParams extends bindings.Struct { | 1530 class _UserFeedbackPerformAuralFeedbackParams extends bindings.Struct { |
| 1479 static const List<bindings.StructDataHeader> kVersions = const [ | 1531 static const List<bindings.StructDataHeader> kVersions = const [ |
| 1480 const bindings.StructDataHeader(16, 0) | 1532 const bindings.StructDataHeader(16, 0) |
| 1481 ]; | 1533 ]; |
| 1482 AuralFeedbackType type = null; | 1534 AuralFeedbackType type = null; |
| 1483 | 1535 |
| 1484 _UserFeedbackPerformAuralFeedbackParams() : super(kVersions.last.size); | 1536 _UserFeedbackPerformAuralFeedbackParams() : super(kVersions.last.size); |
| 1485 | 1537 |
| 1486 static _UserFeedbackPerformAuralFeedbackParams deserialize(bindings.Message me
ssage) { | 1538 static _UserFeedbackPerformAuralFeedbackParams deserialize(bindings.Message me
ssage) { |
| 1487 var decoder = new bindings.Decoder(message); | 1539 var decoder = new bindings.Decoder(message); |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1538 "type: $type" ")"; | 1590 "type: $type" ")"; |
| 1539 } | 1591 } |
| 1540 | 1592 |
| 1541 Map toJson() { | 1593 Map toJson() { |
| 1542 Map map = new Map(); | 1594 Map map = new Map(); |
| 1543 map["type"] = type; | 1595 map["type"] = type; |
| 1544 return map; | 1596 return map; |
| 1545 } | 1597 } |
| 1546 } | 1598 } |
| 1547 | 1599 |
| 1600 |
| 1601 |
| 1602 |
| 1548 const int _Activity_getUserFeedbackName = 0; | 1603 const int _Activity_getUserFeedbackName = 0; |
| 1549 const int _Activity_startActivityName = 1; | 1604 const int _Activity_startActivityName = 1; |
| 1550 const int _Activity_finishCurrentActivityName = 2; | 1605 const int _Activity_finishCurrentActivityName = 2; |
| 1551 const int _Activity_setTaskDescriptionName = 3; | 1606 const int _Activity_setTaskDescriptionName = 3; |
| 1552 const int _Activity_setSystemUiVisibilityName = 4; | 1607 const int _Activity_setSystemUiVisibilityName = 4; |
| 1553 const int _Activity_setRequestedOrientationName = 5; | 1608 const int _Activity_setRequestedOrientationName = 5; |
| 1554 | 1609 |
| 1610 |
| 1611 |
| 1612 class _ActivityServiceDescription implements service_describer.ServiceDescriptio
n { |
| 1613 dynamic getTopLevelInterface([Function responseFactory]) => null; |
| 1614 |
| 1615 dynamic getTypeDefinition(String typeKey, [Function responseFactory]) => null; |
| 1616 |
| 1617 dynamic getAllTypeDefinitions([Function responseFactory]) => null; |
| 1618 } |
| 1619 |
| 1555 abstract class Activity { | 1620 abstract class Activity { |
| 1556 static const String serviceName = "activity::Activity"; | 1621 static const String serviceName = "activity::Activity"; |
| 1557 void getUserFeedback(Object userFeedback); | 1622 void getUserFeedback(Object userFeedback); |
| 1558 void startActivity(Intent intent); | 1623 void startActivity(Intent intent); |
| 1559 void finishCurrentActivity(); | 1624 void finishCurrentActivity(); |
| 1560 void setTaskDescription(TaskDescription description); | 1625 void setTaskDescription(TaskDescription description); |
| 1561 void setSystemUiVisibility(SystemUiVisibility visibility); | 1626 void setSystemUiVisibility(SystemUiVisibility visibility); |
| 1562 void setRequestedOrientation(ScreenOrientation orientation); | 1627 void setRequestedOrientation(ScreenOrientation orientation); |
| 1563 } | 1628 } |
| 1564 | 1629 |
| 1565 | 1630 |
| 1566 class _ActivityProxyImpl extends bindings.Proxy { | 1631 class _ActivityProxyImpl extends bindings.Proxy { |
| 1567 _ActivityProxyImpl.fromEndpoint( | 1632 _ActivityProxyImpl.fromEndpoint( |
| 1568 core.MojoMessagePipeEndpoint endpoint) : super.fromEndpoint(endpoint); | 1633 core.MojoMessagePipeEndpoint endpoint) : super.fromEndpoint(endpoint); |
| 1569 | 1634 |
| 1570 _ActivityProxyImpl.fromHandle(core.MojoHandle handle) : | 1635 _ActivityProxyImpl.fromHandle(core.MojoHandle handle) : |
| 1571 super.fromHandle(handle); | 1636 super.fromHandle(handle); |
| 1572 | 1637 |
| 1573 _ActivityProxyImpl.unbound() : super.unbound(); | 1638 _ActivityProxyImpl.unbound() : super.unbound(); |
| 1574 | 1639 |
| 1575 static _ActivityProxyImpl newFromEndpoint( | 1640 static _ActivityProxyImpl newFromEndpoint( |
| 1576 core.MojoMessagePipeEndpoint endpoint) { | 1641 core.MojoMessagePipeEndpoint endpoint) { |
| 1577 assert(endpoint.setDescription("For _ActivityProxyImpl")); | 1642 assert(endpoint.setDescription("For _ActivityProxyImpl")); |
| 1578 return new _ActivityProxyImpl.fromEndpoint(endpoint); | 1643 return new _ActivityProxyImpl.fromEndpoint(endpoint); |
| 1579 } | 1644 } |
| 1580 | 1645 |
| 1646 service_describer.ServiceDescription get serviceDescription => |
| 1647 new _ActivityServiceDescription(); |
| 1648 |
| 1581 void handleResponse(bindings.ServiceMessage message) { | 1649 void handleResponse(bindings.ServiceMessage message) { |
| 1582 switch (message.header.type) { | 1650 switch (message.header.type) { |
| 1583 default: | 1651 default: |
| 1584 proxyError("Unexpected message type: ${message.header.type}"); | 1652 proxyError("Unexpected message type: ${message.header.type}"); |
| 1585 close(immediate: true); | 1653 close(immediate: true); |
| 1586 break; | 1654 break; |
| 1587 } | 1655 } |
| 1588 } | 1656 } |
| 1589 | 1657 |
| 1590 String toString() { | 1658 String toString() { |
| (...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1783 assert(_impl == null); | 1851 assert(_impl == null); |
| 1784 _impl = d; | 1852 _impl = d; |
| 1785 } | 1853 } |
| 1786 | 1854 |
| 1787 String toString() { | 1855 String toString() { |
| 1788 var superString = super.toString(); | 1856 var superString = super.toString(); |
| 1789 return "ActivityStub($superString)"; | 1857 return "ActivityStub($superString)"; |
| 1790 } | 1858 } |
| 1791 | 1859 |
| 1792 int get version => 0; | 1860 int get version => 0; |
| 1861 |
| 1862 service_describer.ServiceDescription get serviceDescription => |
| 1863 new _ActivityServiceDescription(); |
| 1793 } | 1864 } |
| 1794 | 1865 |
| 1795 const int _PathService_getAppDataDirName = 0; | 1866 const int _PathService_getAppDataDirName = 0; |
| 1796 const int _PathService_getFilesDirName = 1; | 1867 const int _PathService_getFilesDirName = 1; |
| 1797 const int _PathService_getCacheDirName = 2; | 1868 const int _PathService_getCacheDirName = 2; |
| 1798 | 1869 |
| 1870 |
| 1871 |
| 1872 class _PathServiceServiceDescription implements service_describer.ServiceDescrip
tion { |
| 1873 dynamic getTopLevelInterface([Function responseFactory]) => null; |
| 1874 |
| 1875 dynamic getTypeDefinition(String typeKey, [Function responseFactory]) => null; |
| 1876 |
| 1877 dynamic getAllTypeDefinitions([Function responseFactory]) => null; |
| 1878 } |
| 1879 |
| 1799 abstract class PathService { | 1880 abstract class PathService { |
| 1800 static const String serviceName = "activity::PathService"; | 1881 static const String serviceName = "activity::PathService"; |
| 1801 dynamic getAppDataDir([Function responseFactory = null]); | 1882 dynamic getAppDataDir([Function responseFactory = null]); |
| 1802 dynamic getFilesDir([Function responseFactory = null]); | 1883 dynamic getFilesDir([Function responseFactory = null]); |
| 1803 dynamic getCacheDir([Function responseFactory = null]); | 1884 dynamic getCacheDir([Function responseFactory = null]); |
| 1804 } | 1885 } |
| 1805 | 1886 |
| 1806 | 1887 |
| 1807 class _PathServiceProxyImpl extends bindings.Proxy { | 1888 class _PathServiceProxyImpl extends bindings.Proxy { |
| 1808 _PathServiceProxyImpl.fromEndpoint( | 1889 _PathServiceProxyImpl.fromEndpoint( |
| 1809 core.MojoMessagePipeEndpoint endpoint) : super.fromEndpoint(endpoint); | 1890 core.MojoMessagePipeEndpoint endpoint) : super.fromEndpoint(endpoint); |
| 1810 | 1891 |
| 1811 _PathServiceProxyImpl.fromHandle(core.MojoHandle handle) : | 1892 _PathServiceProxyImpl.fromHandle(core.MojoHandle handle) : |
| 1812 super.fromHandle(handle); | 1893 super.fromHandle(handle); |
| 1813 | 1894 |
| 1814 _PathServiceProxyImpl.unbound() : super.unbound(); | 1895 _PathServiceProxyImpl.unbound() : super.unbound(); |
| 1815 | 1896 |
| 1816 static _PathServiceProxyImpl newFromEndpoint( | 1897 static _PathServiceProxyImpl newFromEndpoint( |
| 1817 core.MojoMessagePipeEndpoint endpoint) { | 1898 core.MojoMessagePipeEndpoint endpoint) { |
| 1818 assert(endpoint.setDescription("For _PathServiceProxyImpl")); | 1899 assert(endpoint.setDescription("For _PathServiceProxyImpl")); |
| 1819 return new _PathServiceProxyImpl.fromEndpoint(endpoint); | 1900 return new _PathServiceProxyImpl.fromEndpoint(endpoint); |
| 1820 } | 1901 } |
| 1821 | 1902 |
| 1903 service_describer.ServiceDescription get serviceDescription => |
| 1904 new _PathServiceServiceDescription(); |
| 1905 |
| 1822 void handleResponse(bindings.ServiceMessage message) { | 1906 void handleResponse(bindings.ServiceMessage message) { |
| 1823 switch (message.header.type) { | 1907 switch (message.header.type) { |
| 1824 case _PathService_getAppDataDirName: | 1908 case _PathService_getAppDataDirName: |
| 1825 var r = PathServiceGetAppDataDirResponseParams.deserialize( | 1909 var r = PathServiceGetAppDataDirResponseParams.deserialize( |
| 1826 message.payload); | 1910 message.payload); |
| 1827 if (!message.header.hasRequestId) { | 1911 if (!message.header.hasRequestId) { |
| 1828 proxyError("Expected a message with a valid request Id."); | 1912 proxyError("Expected a message with a valid request Id."); |
| 1829 return; | 1913 return; |
| 1830 } | 1914 } |
| 1831 Completer c = completerMap[message.header.requestId]; | 1915 Completer c = completerMap[message.header.requestId]; |
| (...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2106 assert(_impl == null); | 2190 assert(_impl == null); |
| 2107 _impl = d; | 2191 _impl = d; |
| 2108 } | 2192 } |
| 2109 | 2193 |
| 2110 String toString() { | 2194 String toString() { |
| 2111 var superString = super.toString(); | 2195 var superString = super.toString(); |
| 2112 return "PathServiceStub($superString)"; | 2196 return "PathServiceStub($superString)"; |
| 2113 } | 2197 } |
| 2114 | 2198 |
| 2115 int get version => 0; | 2199 int get version => 0; |
| 2200 |
| 2201 service_describer.ServiceDescription get serviceDescription => |
| 2202 new _PathServiceServiceDescription(); |
| 2116 } | 2203 } |
| 2117 | 2204 |
| 2118 const int _UserFeedback_performHapticFeedbackName = 0; | 2205 const int _UserFeedback_performHapticFeedbackName = 0; |
| 2119 const int _UserFeedback_performAuralFeedbackName = 1; | 2206 const int _UserFeedback_performAuralFeedbackName = 1; |
| 2120 | 2207 |
| 2208 |
| 2209 |
| 2210 class _UserFeedbackServiceDescription implements service_describer.ServiceDescri
ption { |
| 2211 dynamic getTopLevelInterface([Function responseFactory]) => null; |
| 2212 |
| 2213 dynamic getTypeDefinition(String typeKey, [Function responseFactory]) => null; |
| 2214 |
| 2215 dynamic getAllTypeDefinitions([Function responseFactory]) => null; |
| 2216 } |
| 2217 |
| 2121 abstract class UserFeedback { | 2218 abstract class UserFeedback { |
| 2122 static const String serviceName = null; | 2219 static const String serviceName = null; |
| 2123 void performHapticFeedback(HapticFeedbackType type); | 2220 void performHapticFeedback(HapticFeedbackType type); |
| 2124 void performAuralFeedback(AuralFeedbackType type); | 2221 void performAuralFeedback(AuralFeedbackType type); |
| 2125 } | 2222 } |
| 2126 | 2223 |
| 2127 | 2224 |
| 2128 class _UserFeedbackProxyImpl extends bindings.Proxy { | 2225 class _UserFeedbackProxyImpl extends bindings.Proxy { |
| 2129 _UserFeedbackProxyImpl.fromEndpoint( | 2226 _UserFeedbackProxyImpl.fromEndpoint( |
| 2130 core.MojoMessagePipeEndpoint endpoint) : super.fromEndpoint(endpoint); | 2227 core.MojoMessagePipeEndpoint endpoint) : super.fromEndpoint(endpoint); |
| 2131 | 2228 |
| 2132 _UserFeedbackProxyImpl.fromHandle(core.MojoHandle handle) : | 2229 _UserFeedbackProxyImpl.fromHandle(core.MojoHandle handle) : |
| 2133 super.fromHandle(handle); | 2230 super.fromHandle(handle); |
| 2134 | 2231 |
| 2135 _UserFeedbackProxyImpl.unbound() : super.unbound(); | 2232 _UserFeedbackProxyImpl.unbound() : super.unbound(); |
| 2136 | 2233 |
| 2137 static _UserFeedbackProxyImpl newFromEndpoint( | 2234 static _UserFeedbackProxyImpl newFromEndpoint( |
| 2138 core.MojoMessagePipeEndpoint endpoint) { | 2235 core.MojoMessagePipeEndpoint endpoint) { |
| 2139 assert(endpoint.setDescription("For _UserFeedbackProxyImpl")); | 2236 assert(endpoint.setDescription("For _UserFeedbackProxyImpl")); |
| 2140 return new _UserFeedbackProxyImpl.fromEndpoint(endpoint); | 2237 return new _UserFeedbackProxyImpl.fromEndpoint(endpoint); |
| 2141 } | 2238 } |
| 2142 | 2239 |
| 2240 service_describer.ServiceDescription get serviceDescription => |
| 2241 new _UserFeedbackServiceDescription(); |
| 2242 |
| 2143 void handleResponse(bindings.ServiceMessage message) { | 2243 void handleResponse(bindings.ServiceMessage message) { |
| 2144 switch (message.header.type) { | 2244 switch (message.header.type) { |
| 2145 default: | 2245 default: |
| 2146 proxyError("Unexpected message type: ${message.header.type}"); | 2246 proxyError("Unexpected message type: ${message.header.type}"); |
| 2147 close(immediate: true); | 2247 close(immediate: true); |
| 2148 break; | 2248 break; |
| 2149 } | 2249 } |
| 2150 } | 2250 } |
| 2151 | 2251 |
| 2152 String toString() { | 2252 String toString() { |
| (...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2290 assert(_impl == null); | 2390 assert(_impl == null); |
| 2291 _impl = d; | 2391 _impl = d; |
| 2292 } | 2392 } |
| 2293 | 2393 |
| 2294 String toString() { | 2394 String toString() { |
| 2295 var superString = super.toString(); | 2395 var superString = super.toString(); |
| 2296 return "UserFeedbackStub($superString)"; | 2396 return "UserFeedbackStub($superString)"; |
| 2297 } | 2397 } |
| 2298 | 2398 |
| 2299 int get version => 0; | 2399 int get version => 0; |
| 2400 |
| 2401 service_describer.ServiceDescription get serviceDescription => |
| 2402 new _UserFeedbackServiceDescription(); |
| 2300 } | 2403 } |
| 2301 | 2404 |
| 2302 | 2405 |
| 2406 |
| OLD | NEW |