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

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

Issue 1539673003: Generate Mojom Types in Dart (Take 2) (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Update to master and regenerate mojoms 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 notifications_mojom; 5 library notifications_mojom;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 import 'dart:collection';
8 9
9 import 'package:mojo/bindings.dart' as bindings; 10 import 'package:mojo/bindings.dart' as bindings;
10 import 'package:mojo/core.dart' as core; 11 import 'package:mojo/core.dart' as core;
12 import 'package:mojo/mojo/bindings/types/mojom_types.mojom.dart' as mojom_types;
13 import 'package:mojo/mojo/bindings/types/service_describer.mojom.dart' as servic e_describer;
11 14
12 15
13 16
14 class NotificationData extends bindings.Struct { 17 class NotificationData extends bindings.Struct {
15 static const List<bindings.StructDataHeader> kVersions = const [ 18 static const List<bindings.StructDataHeader> kVersions = const [
16 const bindings.StructDataHeader(32, 0) 19 const bindings.StructDataHeader(32, 0)
17 ]; 20 ];
18 String title = null; 21 String title = null;
19 String text = null; 22 String text = null;
20 bool playSound = false; 23 bool playSound = false;
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 Map toJson() { 108 Map toJson() {
106 Map map = new Map(); 109 Map map = new Map();
107 map["title"] = title; 110 map["title"] = title;
108 map["text"] = text; 111 map["text"] = text;
109 map["playSound"] = playSound; 112 map["playSound"] = playSound;
110 map["vibrate"] = vibrate; 113 map["vibrate"] = vibrate;
111 map["setLights"] = setLights; 114 map["setLights"] = setLights;
112 return map; 115 return map;
113 } 116 }
114 } 117 }
118 mojom_types.MojomStruct _notifications_NotificationData__() {
119 return new mojom_types.MojomStruct()
120 ..declData = (new mojom_types.DeclarationData()
121 ..shortName = 'NotificationData'
122 ..fullIdentifier = 'notifications.NotificationData')
123 ..fields = <mojom_types.StructField>[
124 new mojom_types.StructField()
125 ..declData = (new mojom_types.DeclarationData()..shortName = 'Title')
126 ..type = (new mojom_types.Type()
127 ..stringType = (new mojom_types.StringType()..nullable = true)),
128
129 new mojom_types.StructField()
130 ..declData = (new mojom_types.DeclarationData()..shortName = 'Text')
131 ..type = (new mojom_types.Type()
132 ..stringType = (new mojom_types.StringType()..nullable = true)),
133
134 new mojom_types.StructField()
135 ..declData = (new mojom_types.DeclarationData()..shortName = 'PlaySound' )
136 ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.bo ol),
137
138 new mojom_types.StructField()
139 ..declData = (new mojom_types.DeclarationData()..shortName = 'Vibrate')
140 ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.bo ol),
141
142 new mojom_types.StructField()
143 ..declData = (new mojom_types.DeclarationData()..shortName = 'SetLights' )
144 ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.bo ol),
145 ];
146 }
115 147
116 148
117 class _NotificationClientOnSelectedParams extends bindings.Struct { 149 class _NotificationClientOnSelectedParams extends bindings.Struct {
118 static const List<bindings.StructDataHeader> kVersions = const [ 150 static const List<bindings.StructDataHeader> kVersions = const [
119 const bindings.StructDataHeader(8, 0) 151 const bindings.StructDataHeader(8, 0)
120 ]; 152 ];
121 153
122 _NotificationClientOnSelectedParams() : super(kVersions.last.size); 154 _NotificationClientOnSelectedParams() : super(kVersions.last.size);
123 155
124 static _NotificationClientOnSelectedParams deserialize(bindings.Message messag e) { 156 static _NotificationClientOnSelectedParams deserialize(bindings.Message messag e) {
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 195
164 String toString() { 196 String toString() {
165 return "_NotificationClientOnSelectedParams("")"; 197 return "_NotificationClientOnSelectedParams("")";
166 } 198 }
167 199
168 Map toJson() { 200 Map toJson() {
169 Map map = new Map(); 201 Map map = new Map();
170 return map; 202 return map;
171 } 203 }
172 } 204 }
205 mojom_types.MojomStruct _notifications_NotificationClient_OnSelected_Params__() {
206 return new mojom_types.MojomStruct()
207 ..declData = (new mojom_types.DeclarationData()
208 ..shortName = '_NotificationClientOnSelectedParams'
209 ..fullIdentifier = 'notifications._NotificationClientOnSelectedParams')
210 ..fields = <mojom_types.StructField>[];
211 }
173 212
174 213
175 class _NotificationClientOnDismissedParams extends bindings.Struct { 214 class _NotificationClientOnDismissedParams extends bindings.Struct {
176 static const List<bindings.StructDataHeader> kVersions = const [ 215 static const List<bindings.StructDataHeader> kVersions = const [
177 const bindings.StructDataHeader(8, 0) 216 const bindings.StructDataHeader(8, 0)
178 ]; 217 ];
179 218
180 _NotificationClientOnDismissedParams() : super(kVersions.last.size); 219 _NotificationClientOnDismissedParams() : super(kVersions.last.size);
181 220
182 static _NotificationClientOnDismissedParams deserialize(bindings.Message messa ge) { 221 static _NotificationClientOnDismissedParams deserialize(bindings.Message messa ge) {
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
221 260
222 String toString() { 261 String toString() {
223 return "_NotificationClientOnDismissedParams("")"; 262 return "_NotificationClientOnDismissedParams("")";
224 } 263 }
225 264
226 Map toJson() { 265 Map toJson() {
227 Map map = new Map(); 266 Map map = new Map();
228 return map; 267 return map;
229 } 268 }
230 } 269 }
270 mojom_types.MojomStruct _notifications_NotificationClient_OnDismissed_Params__() {
271 return new mojom_types.MojomStruct()
272 ..declData = (new mojom_types.DeclarationData()
273 ..shortName = '_NotificationClientOnDismissedParams'
274 ..fullIdentifier = 'notifications._NotificationClientOnDismissedParams')
275 ..fields = <mojom_types.StructField>[];
276 }
231 277
232 278
233 class _NotificationUpdateParams extends bindings.Struct { 279 class _NotificationUpdateParams extends bindings.Struct {
234 static const List<bindings.StructDataHeader> kVersions = const [ 280 static const List<bindings.StructDataHeader> kVersions = const [
235 const bindings.StructDataHeader(16, 0) 281 const bindings.StructDataHeader(16, 0)
236 ]; 282 ];
237 NotificationData notificationData = null; 283 NotificationData notificationData = null;
238 284
239 _NotificationUpdateParams() : super(kVersions.last.size); 285 _NotificationUpdateParams() : super(kVersions.last.size);
240 286
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
289 return "_NotificationUpdateParams(" 335 return "_NotificationUpdateParams("
290 "notificationData: $notificationData" ")"; 336 "notificationData: $notificationData" ")";
291 } 337 }
292 338
293 Map toJson() { 339 Map toJson() {
294 Map map = new Map(); 340 Map map = new Map();
295 map["notificationData"] = notificationData; 341 map["notificationData"] = notificationData;
296 return map; 342 return map;
297 } 343 }
298 } 344 }
345 mojom_types.MojomStruct _notifications_Notification_Update_Params__() {
346 return new mojom_types.MojomStruct()
347 ..declData = (new mojom_types.DeclarationData()
348 ..shortName = '_NotificationUpdateParams'
349 ..fullIdentifier = 'notifications._NotificationUpdateParams')
350 ..fields = <mojom_types.StructField>[
351 new mojom_types.StructField()
352 ..declData = (new mojom_types.DeclarationData()..shortName = 'Notificati onData')
353 ..type = (new mojom_types.Type()
354 ..typeReference = (new mojom_types.TypeReference()
355
356 ..identifier = '_notifications_NotificationData__'
357 ..typeKey = '_notifications_NotificationData__'
358 )),
359 ];
360 }
299 361
300 362
301 class _NotificationCancelParams extends bindings.Struct { 363 class _NotificationCancelParams extends bindings.Struct {
302 static const List<bindings.StructDataHeader> kVersions = const [ 364 static const List<bindings.StructDataHeader> kVersions = const [
303 const bindings.StructDataHeader(8, 0) 365 const bindings.StructDataHeader(8, 0)
304 ]; 366 ];
305 367
306 _NotificationCancelParams() : super(kVersions.last.size); 368 _NotificationCancelParams() : super(kVersions.last.size);
307 369
308 static _NotificationCancelParams deserialize(bindings.Message message) { 370 static _NotificationCancelParams deserialize(bindings.Message message) {
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
347 409
348 String toString() { 410 String toString() {
349 return "_NotificationCancelParams("")"; 411 return "_NotificationCancelParams("")";
350 } 412 }
351 413
352 Map toJson() { 414 Map toJson() {
353 Map map = new Map(); 415 Map map = new Map();
354 return map; 416 return map;
355 } 417 }
356 } 418 }
419 mojom_types.MojomStruct _notifications_Notification_Cancel_Params__() {
420 return new mojom_types.MojomStruct()
421 ..declData = (new mojom_types.DeclarationData()
422 ..shortName = '_NotificationCancelParams'
423 ..fullIdentifier = 'notifications._NotificationCancelParams')
424 ..fields = <mojom_types.StructField>[];
425 }
357 426
358 427
359 class _NotificationServicePostParams extends bindings.Struct { 428 class _NotificationServicePostParams extends bindings.Struct {
360 static const List<bindings.StructDataHeader> kVersions = const [ 429 static const List<bindings.StructDataHeader> kVersions = const [
361 const bindings.StructDataHeader(32, 0) 430 const bindings.StructDataHeader(32, 0)
362 ]; 431 ];
363 NotificationData notificationData = null; 432 NotificationData notificationData = null;
364 Object client = null; 433 Object client = null;
365 Object notification = null; 434 Object notification = null;
366 435
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
430 "notificationData: $notificationData" ", " 499 "notificationData: $notificationData" ", "
431 "client: $client" ", " 500 "client: $client" ", "
432 "notification: $notification" ")"; 501 "notification: $notification" ")";
433 } 502 }
434 503
435 Map toJson() { 504 Map toJson() {
436 throw new bindings.MojoCodecError( 505 throw new bindings.MojoCodecError(
437 'Object containing handles cannot be encoded to JSON.'); 506 'Object containing handles cannot be encoded to JSON.');
438 } 507 }
439 } 508 }
509 mojom_types.MojomStruct _notifications_NotificationService_Post_Params__() {
510 return new mojom_types.MojomStruct()
511 ..declData = (new mojom_types.DeclarationData()
512 ..shortName = '_NotificationServicePostParams'
513 ..fullIdentifier = 'notifications._NotificationServicePostParams')
514 ..fields = <mojom_types.StructField>[
515 new mojom_types.StructField()
516 ..declData = (new mojom_types.DeclarationData()..shortName = 'Notificati onData')
517 ..type = (new mojom_types.Type()
518 ..typeReference = (new mojom_types.TypeReference()
519
520 ..identifier = '_notifications_NotificationData__'
521 ..typeKey = '_notifications_NotificationData__'
522 )),
523
524 new mojom_types.StructField()
525 ..declData = (new mojom_types.DeclarationData()..shortName = 'Client')
526 ..type = (new mojom_types.Type()
527 ..typeReference = (new mojom_types.TypeReference()
528 ..nullable = true
529
530
531 ..identifier = '_notifications_NotificationClient__'
532 ..typeKey = '_notifications_NotificationClient__'
533 )),
534
535 new mojom_types.StructField()
536 ..declData = (new mojom_types.DeclarationData()..shortName = 'Notificati on')
537 ..type = (new mojom_types.Type()
538 ..typeReference = (new mojom_types.TypeReference()
539 ..nullable = true
540
541
542 ..isInterfaceRequest = true
543 ..identifier = '_notifications_Notification__'
544 ..typeKey = '_notifications_Notification__'
545 )),
546 ];
547 }
548
440 549
441 const int _NotificationClient_onSelectedName = 0; 550 const int _NotificationClient_onSelectedName = 0;
442 const int _NotificationClient_onDismissedName = 1; 551 const int _NotificationClient_onDismissedName = 1;
443 552
553 mojom_types.MojomInterface _notifications_NotificationClient__() {
554 return new mojom_types.MojomInterface()
555 ..declData = (new mojom_types.DeclarationData()
556 ..shortName = 'NotificationClient'
557 ..fullIdentifier = 'notifications.NotificationClient')
558 ..interfaceName = 'NotificationClient'
559 ..methods = <int, mojom_types.MojomMethod>{
560 _NotificationClient_onSelectedName: new mojom_types.MojomMethod()
561 ..declData = (new mojom_types.DeclarationData()..shortName = 'OnSelected ')
562 ..ordinal = _NotificationClient_onSelectedName..parameters = _notificati ons_NotificationClient_OnSelected_Params__(),_NotificationClient_onDismissedName : new mojom_types.MojomMethod()
563 ..declData = (new mojom_types.DeclarationData()..shortName = 'OnDismisse d')
564 ..ordinal = _NotificationClient_onDismissedName..parameters = _notificat ions_NotificationClient_OnDismissed_Params__(),
565 };
566 }
567
568 class _NotificationClientServiceDescription implements service_describer.Service Description {
569 dynamic getTopLevelInterface([Function responseFactory = null]) {
570 return _notifications_NotificationClient__();
571 }
572 dynamic getTypeDefinition(String typeKey,[Function responseFactory = null]) {
573 return getAllMojomTypeDefinitions()[typeKey];
574 }
575 dynamic getAllTypeDefinitions([Function responseFactory = null]) {
576 return getAllMojomTypeDefinitions();
577 }
578 }
579
444 abstract class NotificationClient { 580 abstract class NotificationClient {
445 static const String serviceName = null; 581 static const String serviceName = null;
446 void onSelected(); 582 void onSelected();
447 void onDismissed(); 583 void onDismissed();
448 } 584 }
449 585
450 586
451 class _NotificationClientProxyImpl extends bindings.Proxy { 587 class _NotificationClientProxyImpl extends bindings.Proxy {
452 _NotificationClientProxyImpl.fromEndpoint( 588 _NotificationClientProxyImpl.fromEndpoint(
453 core.MojoMessagePipeEndpoint endpoint) : super.fromEndpoint(endpoint); 589 core.MojoMessagePipeEndpoint endpoint) : super.fromEndpoint(endpoint);
454 590
455 _NotificationClientProxyImpl.fromHandle(core.MojoHandle handle) : 591 _NotificationClientProxyImpl.fromHandle(core.MojoHandle handle) :
456 super.fromHandle(handle); 592 super.fromHandle(handle);
457 593
458 _NotificationClientProxyImpl.unbound() : super.unbound(); 594 _NotificationClientProxyImpl.unbound() : super.unbound();
459 595
460 static _NotificationClientProxyImpl newFromEndpoint( 596 static _NotificationClientProxyImpl newFromEndpoint(
461 core.MojoMessagePipeEndpoint endpoint) { 597 core.MojoMessagePipeEndpoint endpoint) {
462 assert(endpoint.setDescription("For _NotificationClientProxyImpl")); 598 assert(endpoint.setDescription("For _NotificationClientProxyImpl"));
463 return new _NotificationClientProxyImpl.fromEndpoint(endpoint); 599 return new _NotificationClientProxyImpl.fromEndpoint(endpoint);
464 } 600 }
465 601
602 service_describer.ServiceDescription get serviceDescription =>
603 new _NotificationClientServiceDescription();
604
466 void handleResponse(bindings.ServiceMessage message) { 605 void handleResponse(bindings.ServiceMessage message) {
467 switch (message.header.type) { 606 switch (message.header.type) {
468 default: 607 default:
469 proxyError("Unexpected message type: ${message.header.type}"); 608 proxyError("Unexpected message type: ${message.header.type}");
470 close(immediate: true); 609 close(immediate: true);
471 break; 610 break;
472 } 611 }
473 } 612 }
474 613
475 String toString() { 614 String toString() {
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
611 assert(_impl == null); 750 assert(_impl == null);
612 _impl = d; 751 _impl = d;
613 } 752 }
614 753
615 String toString() { 754 String toString() {
616 var superString = super.toString(); 755 var superString = super.toString();
617 return "NotificationClientStub($superString)"; 756 return "NotificationClientStub($superString)";
618 } 757 }
619 758
620 int get version => 0; 759 int get version => 0;
760
761
762 service_describer.ServiceDescription get serviceDescription =>
763 new _NotificationClientServiceDescription();
621 } 764 }
622 765
623 const int _Notification_updateName = 0; 766 const int _Notification_updateName = 0;
624 const int _Notification_cancelName = 1; 767 const int _Notification_cancelName = 1;
625 768
769 mojom_types.MojomInterface _notifications_Notification__() {
770 return new mojom_types.MojomInterface()
771 ..declData = (new mojom_types.DeclarationData()
772 ..shortName = 'Notification'
773 ..fullIdentifier = 'notifications.Notification')
774 ..interfaceName = 'Notification'
775 ..methods = <int, mojom_types.MojomMethod>{
776 _Notification_updateName: new mojom_types.MojomMethod()
777 ..declData = (new mojom_types.DeclarationData()..shortName = 'Update')
778 ..ordinal = _Notification_updateName..parameters = _notifications_Notifi cation_Update_Params__(),_Notification_cancelName: new mojom_types.MojomMethod()
779 ..declData = (new mojom_types.DeclarationData()..shortName = 'Cancel')
780 ..ordinal = _Notification_cancelName..parameters = _notifications_Notifi cation_Cancel_Params__(),
781 };
782 }
783
784 class _NotificationServiceDescription implements service_describer.ServiceDescri ption {
785 dynamic getTopLevelInterface([Function responseFactory = null]) {
786 return _notifications_Notification__();
787 }
788 dynamic getTypeDefinition(String typeKey,[Function responseFactory = null]) {
789 return getAllMojomTypeDefinitions()[typeKey];
790 }
791 dynamic getAllTypeDefinitions([Function responseFactory = null]) {
792 return getAllMojomTypeDefinitions();
793 }
794 }
795
626 abstract class Notification { 796 abstract class Notification {
627 static const String serviceName = null; 797 static const String serviceName = null;
628 void update(NotificationData notificationData); 798 void update(NotificationData notificationData);
629 void cancel(); 799 void cancel();
630 } 800 }
631 801
632 802
633 class _NotificationProxyImpl extends bindings.Proxy { 803 class _NotificationProxyImpl extends bindings.Proxy {
634 _NotificationProxyImpl.fromEndpoint( 804 _NotificationProxyImpl.fromEndpoint(
635 core.MojoMessagePipeEndpoint endpoint) : super.fromEndpoint(endpoint); 805 core.MojoMessagePipeEndpoint endpoint) : super.fromEndpoint(endpoint);
636 806
637 _NotificationProxyImpl.fromHandle(core.MojoHandle handle) : 807 _NotificationProxyImpl.fromHandle(core.MojoHandle handle) :
638 super.fromHandle(handle); 808 super.fromHandle(handle);
639 809
640 _NotificationProxyImpl.unbound() : super.unbound(); 810 _NotificationProxyImpl.unbound() : super.unbound();
641 811
642 static _NotificationProxyImpl newFromEndpoint( 812 static _NotificationProxyImpl newFromEndpoint(
643 core.MojoMessagePipeEndpoint endpoint) { 813 core.MojoMessagePipeEndpoint endpoint) {
644 assert(endpoint.setDescription("For _NotificationProxyImpl")); 814 assert(endpoint.setDescription("For _NotificationProxyImpl"));
645 return new _NotificationProxyImpl.fromEndpoint(endpoint); 815 return new _NotificationProxyImpl.fromEndpoint(endpoint);
646 } 816 }
647 817
818 service_describer.ServiceDescription get serviceDescription =>
819 new _NotificationServiceDescription();
820
648 void handleResponse(bindings.ServiceMessage message) { 821 void handleResponse(bindings.ServiceMessage message) {
649 switch (message.header.type) { 822 switch (message.header.type) {
650 default: 823 default:
651 proxyError("Unexpected message type: ${message.header.type}"); 824 proxyError("Unexpected message type: ${message.header.type}");
652 close(immediate: true); 825 close(immediate: true);
653 break; 826 break;
654 } 827 }
655 } 828 }
656 829
657 String toString() { 830 String toString() {
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
794 assert(_impl == null); 967 assert(_impl == null);
795 _impl = d; 968 _impl = d;
796 } 969 }
797 970
798 String toString() { 971 String toString() {
799 var superString = super.toString(); 972 var superString = super.toString();
800 return "NotificationStub($superString)"; 973 return "NotificationStub($superString)";
801 } 974 }
802 975
803 int get version => 0; 976 int get version => 0;
977
978
979 service_describer.ServiceDescription get serviceDescription =>
980 new _NotificationServiceDescription();
804 } 981 }
805 982
806 const int _NotificationService_postName = 0; 983 const int _NotificationService_postName = 0;
807 984
985 mojom_types.MojomInterface _notifications_NotificationService__() {
986 return new mojom_types.MojomInterface()
987 ..declData = (new mojom_types.DeclarationData()
988 ..shortName = 'NotificationService'
989 ..fullIdentifier = 'notifications.NotificationService')
990 ..interfaceName = 'NotificationService'
991 ..methods = <int, mojom_types.MojomMethod>{
992 _NotificationService_postName: new mojom_types.MojomMethod()
993 ..declData = (new mojom_types.DeclarationData()..shortName = 'Post')
994 ..ordinal = _NotificationService_postName..parameters = _notifications_N otificationService_Post_Params__(),
995 };
996 }
997
998 class _NotificationServiceServiceDescription implements service_describer.Servic eDescription {
999 dynamic getTopLevelInterface([Function responseFactory = null]) {
1000 return _notifications_NotificationService__();
1001 }
1002 dynamic getTypeDefinition(String typeKey,[Function responseFactory = null]) {
1003 return getAllMojomTypeDefinitions()[typeKey];
1004 }
1005 dynamic getAllTypeDefinitions([Function responseFactory = null]) {
1006 return getAllMojomTypeDefinitions();
1007 }
1008 }
1009
808 abstract class NotificationService { 1010 abstract class NotificationService {
809 static const String serviceName = "notifications::NotificationService"; 1011 static const String serviceName = "notifications::NotificationService";
810 void post(NotificationData notificationData, Object client, Object notificatio n); 1012 void post(NotificationData notificationData, Object client, Object notificatio n);
811 } 1013 }
812 1014
813 1015
814 class _NotificationServiceProxyImpl extends bindings.Proxy { 1016 class _NotificationServiceProxyImpl extends bindings.Proxy {
815 _NotificationServiceProxyImpl.fromEndpoint( 1017 _NotificationServiceProxyImpl.fromEndpoint(
816 core.MojoMessagePipeEndpoint endpoint) : super.fromEndpoint(endpoint); 1018 core.MojoMessagePipeEndpoint endpoint) : super.fromEndpoint(endpoint);
817 1019
818 _NotificationServiceProxyImpl.fromHandle(core.MojoHandle handle) : 1020 _NotificationServiceProxyImpl.fromHandle(core.MojoHandle handle) :
819 super.fromHandle(handle); 1021 super.fromHandle(handle);
820 1022
821 _NotificationServiceProxyImpl.unbound() : super.unbound(); 1023 _NotificationServiceProxyImpl.unbound() : super.unbound();
822 1024
823 static _NotificationServiceProxyImpl newFromEndpoint( 1025 static _NotificationServiceProxyImpl newFromEndpoint(
824 core.MojoMessagePipeEndpoint endpoint) { 1026 core.MojoMessagePipeEndpoint endpoint) {
825 assert(endpoint.setDescription("For _NotificationServiceProxyImpl")); 1027 assert(endpoint.setDescription("For _NotificationServiceProxyImpl"));
826 return new _NotificationServiceProxyImpl.fromEndpoint(endpoint); 1028 return new _NotificationServiceProxyImpl.fromEndpoint(endpoint);
827 } 1029 }
828 1030
1031 service_describer.ServiceDescription get serviceDescription =>
1032 new _NotificationServiceServiceDescription();
1033
829 void handleResponse(bindings.ServiceMessage message) { 1034 void handleResponse(bindings.ServiceMessage message) {
830 switch (message.header.type) { 1035 switch (message.header.type) {
831 default: 1036 default:
832 proxyError("Unexpected message type: ${message.header.type}"); 1037 proxyError("Unexpected message type: ${message.header.type}");
833 close(immediate: true); 1038 close(immediate: true);
834 break; 1039 break;
835 } 1040 }
836 } 1041 }
837 1042
838 String toString() { 1043 String toString() {
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
964 assert(_impl == null); 1169 assert(_impl == null);
965 _impl = d; 1170 _impl = d;
966 } 1171 }
967 1172
968 String toString() { 1173 String toString() {
969 var superString = super.toString(); 1174 var superString = super.toString();
970 return "NotificationServiceStub($superString)"; 1175 return "NotificationServiceStub($superString)";
971 } 1176 }
972 1177
973 int get version => 0; 1178 int get version => 0;
1179
1180
1181 service_describer.ServiceDescription get serviceDescription =>
1182 new _NotificationServiceServiceDescription();
974 } 1183 }
975 1184
976 1185
1186
1187
1188
1189
1190
1191 Map<String, mojom_types.UserDefinedType> _initDescriptions() {
1192 var map = new HashMap<String, mojom_types.UserDefinedType>();
1193 map["_notifications_NotificationData__"] =
1194 new mojom_types.UserDefinedType()
1195 ..structType = _notifications_NotificationData__();
1196 map["_notifications_NotificationClient_OnSelected_Params__"] =
1197 new mojom_types.UserDefinedType()
1198 ..structType = _notifications_NotificationClient_OnSelected_Params__();
1199 map["_notifications_NotificationClient_OnDismissed_Params__"] =
1200 new mojom_types.UserDefinedType()
1201 ..structType = _notifications_NotificationClient_OnDismissed_Params__();
1202 map["_notifications_Notification_Update_Params__"] =
1203 new mojom_types.UserDefinedType()
1204 ..structType = _notifications_Notification_Update_Params__();
1205 map["_notifications_Notification_Cancel_Params__"] =
1206 new mojom_types.UserDefinedType()
1207 ..structType = _notifications_Notification_Cancel_Params__();
1208 map["_notifications_NotificationService_Post_Params__"] =
1209 new mojom_types.UserDefinedType()
1210 ..structType = _notifications_NotificationService_Post_Params__();
1211 map["_notifications_NotificationClient__"] =
1212 new mojom_types.UserDefinedType()
1213 ..interfaceType = _notifications_NotificationClient__();
1214 map["_notifications_Notification__"] =
1215 new mojom_types.UserDefinedType()
1216 ..interfaceType = _notifications_Notification__();
1217 map["_notifications_NotificationService__"] =
1218 new mojom_types.UserDefinedType()
1219 ..interfaceType = _notifications_NotificationService__();
1220
1221 return map;
1222 }
1223
1224 var _MojomDesc;
1225 Map<String, mojom_types.UserDefinedType> getAllMojomTypeDefinitions() {
1226 if (_MojomDesc == null) {
1227 _MojomDesc = _initDescriptions();
1228 }
1229 return _MojomDesc;
1230 }
1231
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698