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

Side by Side Diff: mojo/dart/packages/mojo_services/lib/mojo/gfx/composition/scenes.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 scenes_mojom; 5 library scenes_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 719 matching lines...) Expand 10 before | Expand all | Expand 10 after
730 730
731 731
732 const int _Scene_setListenerName = 0; 732 const int _Scene_setListenerName = 0;
733 const int _Scene_updateName = 1; 733 const int _Scene_updateName = 1;
734 const int _Scene_publishName = 2; 734 const int _Scene_publishName = 2;
735 const int _Scene_getSchedulerName = 3; 735 const int _Scene_getSchedulerName = 3;
736 736
737 737
738 738
739 class _SceneServiceDescription implements service_describer.ServiceDescription { 739 class _SceneServiceDescription implements service_describer.ServiceDescription {
740 dynamic getTopLevelInterface([Function responseFactory]) => null; 740 dynamic getTopLevelInterface([Function responseFactory]) =>
741 responseFactory(null);
741 742
742 dynamic getTypeDefinition(String typeKey, [Function responseFactory]) => null; 743 dynamic getTypeDefinition(String typeKey, [Function responseFactory]) =>
744 responseFactory(null);
743 745
744 dynamic getAllTypeDefinitions([Function responseFactory]) => null; 746 dynamic getAllTypeDefinitions([Function responseFactory]) =>
747 responseFactory(null);
745 } 748 }
746 749
747 abstract class Scene { 750 abstract class Scene {
748 static const String serviceName = null; 751 static const String serviceName = null;
749 void setListener(Object listener); 752 void setListener(Object listener);
750 void update(SceneUpdate update); 753 void update(SceneUpdate update);
751 void publish(SceneMetadata metadata); 754 void publish(SceneMetadata metadata);
752 void getScheduler(Object scheduler); 755 void getScheduler(Object scheduler);
753 } 756 }
754 757
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after
950 _impl = d; 953 _impl = d;
951 } 954 }
952 955
953 String toString() { 956 String toString() {
954 var superString = super.toString(); 957 var superString = super.toString();
955 return "SceneStub($superString)"; 958 return "SceneStub($superString)";
956 } 959 }
957 960
958 int get version => 0; 961 int get version => 0;
959 962
960 service_describer.ServiceDescription get serviceDescription => 963 static service_describer.ServiceDescription _cachedServiceDescription;
961 new _SceneServiceDescription(); 964 static service_describer.ServiceDescription get serviceDescription {
965 if (_cachedServiceDescription == null) {
966 _cachedServiceDescription = new _SceneServiceDescription();
967 }
968 return _cachedServiceDescription;
969 }
962 } 970 }
963 971
964 const int _SceneListener_onResourceUnavailableName = 0; 972 const int _SceneListener_onResourceUnavailableName = 0;
965 973
966 974
967 975
968 class _SceneListenerServiceDescription implements service_describer.ServiceDescr iption { 976 class _SceneListenerServiceDescription implements service_describer.ServiceDescr iption {
969 dynamic getTopLevelInterface([Function responseFactory]) => null; 977 dynamic getTopLevelInterface([Function responseFactory]) =>
978 responseFactory(null);
970 979
971 dynamic getTypeDefinition(String typeKey, [Function responseFactory]) => null; 980 dynamic getTypeDefinition(String typeKey, [Function responseFactory]) =>
981 responseFactory(null);
972 982
973 dynamic getAllTypeDefinitions([Function responseFactory]) => null; 983 dynamic getAllTypeDefinitions([Function responseFactory]) =>
984 responseFactory(null);
974 } 985 }
975 986
976 abstract class SceneListener { 987 abstract class SceneListener {
977 static const String serviceName = null; 988 static const String serviceName = null;
978 dynamic onResourceUnavailable(int resourceId,[Function responseFactory = null] ); 989 dynamic onResourceUnavailable(int resourceId,[Function responseFactory = null] );
979 } 990 }
980 991
981 992
982 class _SceneListenerProxyImpl extends bindings.Proxy { 993 class _SceneListenerProxyImpl extends bindings.Proxy {
983 _SceneListenerProxyImpl.fromEndpoint( 994 _SceneListenerProxyImpl.fromEndpoint(
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after
1175 _impl = d; 1186 _impl = d;
1176 } 1187 }
1177 1188
1178 String toString() { 1189 String toString() {
1179 var superString = super.toString(); 1190 var superString = super.toString();
1180 return "SceneListenerStub($superString)"; 1191 return "SceneListenerStub($superString)";
1181 } 1192 }
1182 1193
1183 int get version => 0; 1194 int get version => 0;
1184 1195
1185 service_describer.ServiceDescription get serviceDescription => 1196 static service_describer.ServiceDescription _cachedServiceDescription;
1186 new _SceneListenerServiceDescription(); 1197 static service_describer.ServiceDescription get serviceDescription {
1198 if (_cachedServiceDescription == null) {
1199 _cachedServiceDescription = new _SceneListenerServiceDescription();
1200 }
1201 return _cachedServiceDescription;
1202 }
1187 } 1203 }
1188 1204
1189 1205
1190 1206
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698