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

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: 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 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 get serviceDescription =>
961 new _SceneServiceDescription(); 964 new _SceneServiceDescription();
962 } 965 }
963 966
964 const int _SceneListener_onResourceUnavailableName = 0; 967 const int _SceneListener_onResourceUnavailableName = 0;
965 968
966 969
967 970
968 class _SceneListenerServiceDescription implements service_describer.ServiceDescr iption { 971 class _SceneListenerServiceDescription implements service_describer.ServiceDescr iption {
969 dynamic getTopLevelInterface([Function responseFactory]) => null; 972 dynamic getTopLevelInterface([Function responseFactory]) =>
973 responseFactory(null);
970 974
971 dynamic getTypeDefinition(String typeKey, [Function responseFactory]) => null; 975 dynamic getTypeDefinition(String typeKey, [Function responseFactory]) =>
976 responseFactory(null);
972 977
973 dynamic getAllTypeDefinitions([Function responseFactory]) => null; 978 dynamic getAllTypeDefinitions([Function responseFactory]) =>
979 responseFactory(null);
974 } 980 }
975 981
976 abstract class SceneListener { 982 abstract class SceneListener {
977 static const String serviceName = null; 983 static const String serviceName = null;
978 dynamic onResourceUnavailable(int resourceId,[Function responseFactory = null] ); 984 dynamic onResourceUnavailable(int resourceId,[Function responseFactory = null] );
979 } 985 }
980 986
981 987
982 class _SceneListenerProxyImpl extends bindings.Proxy { 988 class _SceneListenerProxyImpl extends bindings.Proxy {
983 _SceneListenerProxyImpl.fromEndpoint( 989 _SceneListenerProxyImpl.fromEndpoint(
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after
1175 _impl = d; 1181 _impl = d;
1176 } 1182 }
1177 1183
1178 String toString() { 1184 String toString() {
1179 var superString = super.toString(); 1185 var superString = super.toString();
1180 return "SceneListenerStub($superString)"; 1186 return "SceneListenerStub($superString)";
1181 } 1187 }
1182 1188
1183 int get version => 0; 1189 int get version => 0;
1184 1190
1185 service_describer.ServiceDescription get serviceDescription => 1191 static service_describer.ServiceDescription get serviceDescription =>
1186 new _SceneListenerServiceDescription(); 1192 new _SceneListenerServiceDescription();
1187 } 1193 }
1188 1194
1189 1195
1190 1196
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698