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

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

Issue 1648803006: Expose Service Describer in Dart mojo package (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Address zra's feedback Created 4 years, 10 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 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;
(...skipping 486 matching lines...) Expand 10 before | Expand all | Expand 10 after
497 497
498 498
499 499
500 500
501 const int _NotificationClient_onSelectedName = 0; 501 const int _NotificationClient_onSelectedName = 0;
502 const int _NotificationClient_onDismissedName = 1; 502 const int _NotificationClient_onDismissedName = 1;
503 503
504 504
505 505
506 class _NotificationClientServiceDescription implements service_describer.Service Description { 506 class _NotificationClientServiceDescription implements service_describer.Service Description {
507 dynamic getTopLevelInterface([Function responseFactory]) => null; 507 dynamic getTopLevelInterface([Function responseFactory]) =>
508 responseFactory(null);
508 509
509 dynamic getTypeDefinition(String typeKey, [Function responseFactory]) => null; 510 dynamic getTypeDefinition(String typeKey, [Function responseFactory]) =>
511 responseFactory(null);
510 512
511 dynamic getAllTypeDefinitions([Function responseFactory]) => null; 513 dynamic getAllTypeDefinitions([Function responseFactory]) =>
514 responseFactory(null);
512 } 515 }
513 516
514 abstract class NotificationClient { 517 abstract class NotificationClient {
515 static const String serviceName = null; 518 static const String serviceName = null;
516 void onSelected(); 519 void onSelected();
517 void onDismissed(); 520 void onDismissed();
518 } 521 }
519 522
520 523
521 class _NotificationClientProxyImpl extends bindings.Proxy { 524 class _NotificationClientProxyImpl extends bindings.Proxy {
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
685 _impl = d; 688 _impl = d;
686 } 689 }
687 690
688 String toString() { 691 String toString() {
689 var superString = super.toString(); 692 var superString = super.toString();
690 return "NotificationClientStub($superString)"; 693 return "NotificationClientStub($superString)";
691 } 694 }
692 695
693 int get version => 0; 696 int get version => 0;
694 697
695 service_describer.ServiceDescription get serviceDescription => 698 static service_describer.ServiceDescription _cachedServiceDescription;
696 new _NotificationClientServiceDescription(); 699 static service_describer.ServiceDescription get serviceDescription {
700 if (_cachedServiceDescription == null) {
701 _cachedServiceDescription = new _NotificationClientServiceDescription();
702 }
703 return _cachedServiceDescription;
704 }
697 } 705 }
698 706
699 const int _Notification_updateName = 0; 707 const int _Notification_updateName = 0;
700 const int _Notification_cancelName = 1; 708 const int _Notification_cancelName = 1;
701 709
702 710
703 711
704 class _NotificationServiceDescription implements service_describer.ServiceDescri ption { 712 class _NotificationServiceDescription implements service_describer.ServiceDescri ption {
705 dynamic getTopLevelInterface([Function responseFactory]) => null; 713 dynamic getTopLevelInterface([Function responseFactory]) =>
714 responseFactory(null);
706 715
707 dynamic getTypeDefinition(String typeKey, [Function responseFactory]) => null; 716 dynamic getTypeDefinition(String typeKey, [Function responseFactory]) =>
717 responseFactory(null);
708 718
709 dynamic getAllTypeDefinitions([Function responseFactory]) => null; 719 dynamic getAllTypeDefinitions([Function responseFactory]) =>
720 responseFactory(null);
710 } 721 }
711 722
712 abstract class Notification { 723 abstract class Notification {
713 static const String serviceName = null; 724 static const String serviceName = null;
714 void update(NotificationData notificationData); 725 void update(NotificationData notificationData);
715 void cancel(); 726 void cancel();
716 } 727 }
717 728
718 729
719 class _NotificationProxyImpl extends bindings.Proxy { 730 class _NotificationProxyImpl extends bindings.Proxy {
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
884 _impl = d; 895 _impl = d;
885 } 896 }
886 897
887 String toString() { 898 String toString() {
888 var superString = super.toString(); 899 var superString = super.toString();
889 return "NotificationStub($superString)"; 900 return "NotificationStub($superString)";
890 } 901 }
891 902
892 int get version => 0; 903 int get version => 0;
893 904
894 service_describer.ServiceDescription get serviceDescription => 905 static service_describer.ServiceDescription _cachedServiceDescription;
895 new _NotificationServiceDescription(); 906 static service_describer.ServiceDescription get serviceDescription {
907 if (_cachedServiceDescription == null) {
908 _cachedServiceDescription = new _NotificationServiceDescription();
909 }
910 return _cachedServiceDescription;
911 }
896 } 912 }
897 913
898 const int _NotificationService_postName = 0; 914 const int _NotificationService_postName = 0;
899 915
900 916
901 917
902 class _NotificationServiceServiceDescription implements service_describer.Servic eDescription { 918 class _NotificationServiceServiceDescription implements service_describer.Servic eDescription {
903 dynamic getTopLevelInterface([Function responseFactory]) => null; 919 dynamic getTopLevelInterface([Function responseFactory]) =>
920 responseFactory(null);
904 921
905 dynamic getTypeDefinition(String typeKey, [Function responseFactory]) => null; 922 dynamic getTypeDefinition(String typeKey, [Function responseFactory]) =>
923 responseFactory(null);
906 924
907 dynamic getAllTypeDefinitions([Function responseFactory]) => null; 925 dynamic getAllTypeDefinitions([Function responseFactory]) =>
926 responseFactory(null);
908 } 927 }
909 928
910 abstract class NotificationService { 929 abstract class NotificationService {
911 static const String serviceName = "notifications::NotificationService"; 930 static const String serviceName = "notifications::NotificationService";
912 void post(NotificationData notificationData, Object client, Object notificatio n); 931 void post(NotificationData notificationData, Object client, Object notificatio n);
913 } 932 }
914 933
915 934
916 class _NotificationServiceProxyImpl extends bindings.Proxy { 935 class _NotificationServiceProxyImpl extends bindings.Proxy {
917 _NotificationServiceProxyImpl.fromEndpoint( 936 _NotificationServiceProxyImpl.fromEndpoint(
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
1070 _impl = d; 1089 _impl = d;
1071 } 1090 }
1072 1091
1073 String toString() { 1092 String toString() {
1074 var superString = super.toString(); 1093 var superString = super.toString();
1075 return "NotificationServiceStub($superString)"; 1094 return "NotificationServiceStub($superString)";
1076 } 1095 }
1077 1096
1078 int get version => 0; 1097 int get version => 0;
1079 1098
1080 service_describer.ServiceDescription get serviceDescription => 1099 static service_describer.ServiceDescription _cachedServiceDescription;
1081 new _NotificationServiceServiceDescription(); 1100 static service_describer.ServiceDescription get serviceDescription {
1101 if (_cachedServiceDescription == null) {
1102 _cachedServiceDescription = new _NotificationServiceServiceDescription();
1103 }
1104 return _cachedServiceDescription;
1105 }
1082 } 1106 }
1083 1107
1084 1108
1085 1109
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698