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

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: Rebase Retest and Update Mojoms 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 get serviceDescription =>
696 new _NotificationClientServiceDescription(); 699 new _NotificationClientServiceDescription();
697 } 700 }
698 701
699 const int _Notification_updateName = 0; 702 const int _Notification_updateName = 0;
700 const int _Notification_cancelName = 1; 703 const int _Notification_cancelName = 1;
701 704
702 705
703 706
704 class _NotificationServiceDescription implements service_describer.ServiceDescri ption { 707 class _NotificationServiceDescription implements service_describer.ServiceDescri ption {
705 dynamic getTopLevelInterface([Function responseFactory]) => null; 708 dynamic getTopLevelInterface([Function responseFactory]) =>
709 responseFactory(null);
706 710
707 dynamic getTypeDefinition(String typeKey, [Function responseFactory]) => null; 711 dynamic getTypeDefinition(String typeKey, [Function responseFactory]) =>
712 responseFactory(null);
708 713
709 dynamic getAllTypeDefinitions([Function responseFactory]) => null; 714 dynamic getAllTypeDefinitions([Function responseFactory]) =>
715 responseFactory(null);
710 } 716 }
711 717
712 abstract class Notification { 718 abstract class Notification {
713 static const String serviceName = null; 719 static const String serviceName = null;
714 void update(NotificationData notificationData); 720 void update(NotificationData notificationData);
715 void cancel(); 721 void cancel();
716 } 722 }
717 723
718 724
719 class _NotificationProxyImpl extends bindings.Proxy { 725 class _NotificationProxyImpl extends bindings.Proxy {
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
884 _impl = d; 890 _impl = d;
885 } 891 }
886 892
887 String toString() { 893 String toString() {
888 var superString = super.toString(); 894 var superString = super.toString();
889 return "NotificationStub($superString)"; 895 return "NotificationStub($superString)";
890 } 896 }
891 897
892 int get version => 0; 898 int get version => 0;
893 899
894 service_describer.ServiceDescription get serviceDescription => 900 static service_describer.ServiceDescription get serviceDescription =>
895 new _NotificationServiceDescription(); 901 new _NotificationServiceDescription();
896 } 902 }
897 903
898 const int _NotificationService_postName = 0; 904 const int _NotificationService_postName = 0;
899 905
900 906
901 907
902 class _NotificationServiceServiceDescription implements service_describer.Servic eDescription { 908 class _NotificationServiceServiceDescription implements service_describer.Servic eDescription {
903 dynamic getTopLevelInterface([Function responseFactory]) => null; 909 dynamic getTopLevelInterface([Function responseFactory]) =>
910 responseFactory(null);
904 911
905 dynamic getTypeDefinition(String typeKey, [Function responseFactory]) => null; 912 dynamic getTypeDefinition(String typeKey, [Function responseFactory]) =>
913 responseFactory(null);
906 914
907 dynamic getAllTypeDefinitions([Function responseFactory]) => null; 915 dynamic getAllTypeDefinitions([Function responseFactory]) =>
916 responseFactory(null);
908 } 917 }
909 918
910 abstract class NotificationService { 919 abstract class NotificationService {
911 static const String serviceName = "notifications::NotificationService"; 920 static const String serviceName = "notifications::NotificationService";
912 void post(NotificationData notificationData, Object client, Object notificatio n); 921 void post(NotificationData notificationData, Object client, Object notificatio n);
913 } 922 }
914 923
915 924
916 class _NotificationServiceProxyImpl extends bindings.Proxy { 925 class _NotificationServiceProxyImpl extends bindings.Proxy {
917 _NotificationServiceProxyImpl.fromEndpoint( 926 _NotificationServiceProxyImpl.fromEndpoint(
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
1070 _impl = d; 1079 _impl = d;
1071 } 1080 }
1072 1081
1073 String toString() { 1082 String toString() {
1074 var superString = super.toString(); 1083 var superString = super.toString();
1075 return "NotificationServiceStub($superString)"; 1084 return "NotificationServiceStub($superString)";
1076 } 1085 }
1077 1086
1078 int get version => 0; 1087 int get version => 0;
1079 1088
1080 service_describer.ServiceDescription get serviceDescription => 1089 static service_describer.ServiceDescription get serviceDescription =>
1081 new _NotificationServiceServiceDescription(); 1090 new _NotificationServiceServiceDescription();
1082 } 1091 }
1083 1092
1084 1093
1085 1094
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698