Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(66)

Side by Side Diff: mojo/dart/packages/mojo_services/lib/activity/activity.mojom.dart

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

Powered by Google App Engine
This is Rietveld 408576698