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

Unified Diff: mojo/dart/packages/mojo_services/lib/mojo/media/timeline_controller.mojom.dart

Issue 2008553006: Add 'Flog' formatted logging to mojo/services (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 4 years, 7 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 side-by-side diff with in-line comments
Download patch
Index: mojo/dart/packages/mojo_services/lib/mojo/media/timeline_controller.mojom.dart
diff --git a/mojo/dart/packages/mojo_services/lib/mojo/media/timeline_controller.mojom.dart b/mojo/dart/packages/mojo_services/lib/mojo/media/timeline_controller.mojom.dart
index 8ea67ec11484b30903adedfd2417447580b70a92..a457963ed2382743c8b894c37f8802e4f618aa66 100644
--- a/mojo/dart/packages/mojo_services/lib/mojo/media/timeline_controller.mojom.dart
+++ b/mojo/dart/packages/mojo_services/lib/mojo/media/timeline_controller.mojom.dart
@@ -485,8 +485,46 @@ class _MediaTimelineControllerServiceDescription implements service_describer.Se
abstract class MediaTimelineController {
static const String serviceName = null;
- void addControlSite(Object controlSite);
- void getControlSite(Object controlSite);
+
+ static service_describer.ServiceDescription _cachedServiceDescription;
+ static service_describer.ServiceDescription get serviceDescription {
+ if (_cachedServiceDescription == null) {
+ _cachedServiceDescription = new _MediaTimelineControllerServiceDescription();
+ }
+ return _cachedServiceDescription;
+ }
+
+ static MediaTimelineControllerProxy connectToService(
+ bindings.ServiceConnector s, String url, [String serviceName]) {
+ MediaTimelineControllerProxy p = new MediaTimelineControllerProxy.unbound();
+ String name = serviceName ?? MediaTimelineController.serviceName;
+ if ((name == null) || name.isEmpty) {
+ throw new core.MojoApiError(
+ "If an interface has no ServiceName, then one must be provided.");
+ }
+ s.connectToService(url, p, name);
+ return p;
+ }
+ void addControlSite(MediaTimelineControlSiteInterface controlSite);
+ void getControlSite(MediaTimelineControlSiteInterfaceRequest controlSite);
+}
+
+abstract class MediaTimelineControllerInterface
+ implements bindings.MojoInterface<MediaTimelineController>,
+ MediaTimelineController {
+ factory MediaTimelineControllerInterface([MediaTimelineController impl]) =>
+ new MediaTimelineControllerStub.unbound(impl);
+ factory MediaTimelineControllerInterface.fromEndpoint(
+ core.MojoMessagePipeEndpoint endpoint,
+ [MediaTimelineController impl]) =>
+ new MediaTimelineControllerStub.fromEndpoint(endpoint, impl);
+}
+
+abstract class MediaTimelineControllerInterfaceRequest
+ implements bindings.MojoInterface<MediaTimelineController>,
+ MediaTimelineController {
+ factory MediaTimelineControllerInterfaceRequest() =>
+ new MediaTimelineControllerProxy.unbound();
}
class _MediaTimelineControllerProxyControl
@@ -555,7 +593,7 @@ class MediaTimelineControllerProxy
ctrl.sendMessage(params,
_mediaTimelineControllerMethodAddControlSiteName);
}
- void getControlSite(Object controlSite) {
+ void getControlSite(MediaTimelineControlSiteInterfaceRequest controlSite) {
if (!ctrl.isBound) {
ctrl.proxyError("The Proxy is closed.");
return;
@@ -671,7 +709,7 @@ class MediaTimelineControllerStub
void addControlSite(MediaTimelineControlSiteInterface controlSite) {
return impl.addControlSite(controlSite);
}
- void getControlSite(Object controlSite) {
+ void getControlSite(MediaTimelineControlSiteInterfaceRequest controlSite) {
return impl.getControlSite(controlSite);
}
}
« no previous file with comments | « mojo/dart/packages/mojo_services/lib/mojo/media/rate_control.mojom.dart ('k') | mojo/services/flog/cpp/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698