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

Unified Diff: mojo/dart/packages/mojo_services/lib/tracing/tracing.mojom.dart

Issue 2006093002: Dart: Futures -> Callbacks. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Move code from mojo_patch to proxy.dart 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/tracing/tracing.mojom.dart
diff --git a/mojo/dart/packages/mojo_services/lib/tracing/tracing.mojom.dart b/mojo/dart/packages/mojo_services/lib/tracing/tracing.mojom.dart
index 24cdc67355e3f16a2c6f90ff8ed171b1c61a093f..015fd7dba9d4d00d2b01f146cd4e708fa7231b2f 100644
--- a/mojo/dart/packages/mojo_services/lib/tracing/tracing.mojom.dart
+++ b/mojo/dart/packages/mojo_services/lib/tracing/tracing.mojom.dart
@@ -19,6 +19,11 @@ class _TraceProviderStartTracingParams extends bindings.Struct {
_TraceProviderStartTracingParams() : super(kVersions.last.size);
+ _TraceProviderStartTracingParams.init(
+ String this.categories,
+ TraceRecorderInterface this.recorder
+ ) : super(kVersions.last.size);
+
static _TraceProviderStartTracingParams deserialize(bindings.Message message) {
var decoder = new bindings.Decoder(message);
var result = decode(decoder);
@@ -101,6 +106,9 @@ class _TraceProviderStopTracingParams extends bindings.Struct {
_TraceProviderStopTracingParams() : super(kVersions.last.size);
+ _TraceProviderStopTracingParams.init(
+ ) : super(kVersions.last.size);
+
static _TraceProviderStopTracingParams deserialize(bindings.Message message) {
var decoder = new bindings.Decoder(message);
var result = decode(decoder);
@@ -160,6 +168,10 @@ class _TraceRecorderRecordParams extends bindings.Struct {
_TraceRecorderRecordParams() : super(kVersions.last.size);
+ _TraceRecorderRecordParams.init(
+ String this.json
+ ) : super(kVersions.last.size);
+
static _TraceRecorderRecordParams deserialize(bindings.Message message) {
var decoder = new bindings.Decoder(message);
var result = decode(decoder);
@@ -233,6 +245,11 @@ class _TraceCollectorStartParams extends bindings.Struct {
_TraceCollectorStartParams() : super(kVersions.last.size);
+ _TraceCollectorStartParams.init(
+ core.MojoDataPipeProducer this.stream,
+ String this.categories
+ ) : super(kVersions.last.size);
+
static _TraceCollectorStartParams deserialize(bindings.Message message) {
var decoder = new bindings.Decoder(message);
var result = decode(decoder);
@@ -315,6 +332,9 @@ class _TraceCollectorStopAndFlushParams extends bindings.Struct {
_TraceCollectorStopAndFlushParams() : super(kVersions.last.size);
+ _TraceCollectorStopAndFlushParams.init(
+ ) : super(kVersions.last.size);
+
static _TraceCollectorStopAndFlushParams deserialize(bindings.Message message) {
var decoder = new bindings.Decoder(message);
var result = decode(decoder);
@@ -369,14 +389,17 @@ const int _traceProviderMethodStartTracingName = 0;
const int _traceProviderMethodStopTracingName = 1;
class _TraceProviderServiceDescription implements service_describer.ServiceDescription {
- dynamic getTopLevelInterface([Function responseFactory]) =>
- responseFactory(null);
+ void getTopLevelInterface(Function responder) {
+ responder(null);
+ }
- dynamic getTypeDefinition(String typeKey, [Function responseFactory]) =>
- responseFactory(null);
+ void getTypeDefinition(String typeKey, Function responder) {
+ responder(null);
+ }
- dynamic getAllTypeDefinitions([Function responseFactory]) =>
- responseFactory(null);
+ void getAllTypeDefinitions(Function responder) {
+ responder(null);
+ }
}
abstract class TraceProvider {
@@ -524,11 +547,11 @@ class _TraceProviderStubControl
- dynamic handleMessage(bindings.ServiceMessage message) {
+ void handleMessage(bindings.ServiceMessage message) {
if (bindings.ControlMessageHandler.isControlMessage(message)) {
- return bindings.ControlMessageHandler.handleMessage(this,
- 0,
- message);
+ bindings.ControlMessageHandler.handleMessage(
+ this, 0, message);
+ return;
}
if (_impl == null) {
throw new core.MojoApiError("$this has no implementation set");
@@ -546,7 +569,6 @@ class _TraceProviderStubControl
throw new bindings.MojoCodecError("Unexpected message name");
break;
}
- return null;
}
TraceProvider get impl => _impl;
@@ -611,14 +633,17 @@ class TraceProviderStub
const int _traceRecorderMethodRecordName = 0;
class _TraceRecorderServiceDescription implements service_describer.ServiceDescription {
- dynamic getTopLevelInterface([Function responseFactory]) =>
- responseFactory(null);
+ void getTopLevelInterface(Function responder) {
+ responder(null);
+ }
- dynamic getTypeDefinition(String typeKey, [Function responseFactory]) =>
- responseFactory(null);
+ void getTypeDefinition(String typeKey, Function responder) {
+ responder(null);
+ }
- dynamic getAllTypeDefinitions([Function responseFactory]) =>
- responseFactory(null);
+ void getAllTypeDefinitions(Function responder) {
+ responder(null);
+ }
}
abstract class TraceRecorder {
@@ -755,11 +780,11 @@ class _TraceRecorderStubControl
- dynamic handleMessage(bindings.ServiceMessage message) {
+ void handleMessage(bindings.ServiceMessage message) {
if (bindings.ControlMessageHandler.isControlMessage(message)) {
- return bindings.ControlMessageHandler.handleMessage(this,
- 0,
- message);
+ bindings.ControlMessageHandler.handleMessage(
+ this, 0, message);
+ return;
}
if (_impl == null) {
throw new core.MojoApiError("$this has no implementation set");
@@ -774,7 +799,6 @@ class _TraceRecorderStubControl
throw new bindings.MojoCodecError("Unexpected message name");
break;
}
- return null;
}
TraceRecorder get impl => _impl;
@@ -837,14 +861,17 @@ const int _traceCollectorMethodStartName = 0;
const int _traceCollectorMethodStopAndFlushName = 1;
class _TraceCollectorServiceDescription implements service_describer.ServiceDescription {
- dynamic getTopLevelInterface([Function responseFactory]) =>
- responseFactory(null);
+ void getTopLevelInterface(Function responder) {
+ responder(null);
+ }
- dynamic getTypeDefinition(String typeKey, [Function responseFactory]) =>
- responseFactory(null);
+ void getTypeDefinition(String typeKey, Function responder) {
+ responder(null);
+ }
- dynamic getAllTypeDefinitions([Function responseFactory]) =>
- responseFactory(null);
+ void getAllTypeDefinitions(Function responder) {
+ responder(null);
+ }
}
abstract class TraceCollector {
@@ -992,11 +1019,11 @@ class _TraceCollectorStubControl
- dynamic handleMessage(bindings.ServiceMessage message) {
+ void handleMessage(bindings.ServiceMessage message) {
if (bindings.ControlMessageHandler.isControlMessage(message)) {
- return bindings.ControlMessageHandler.handleMessage(this,
- 0,
- message);
+ bindings.ControlMessageHandler.handleMessage(
+ this, 0, message);
+ return;
}
if (_impl == null) {
throw new core.MojoApiError("$this has no implementation set");
@@ -1014,7 +1041,6 @@ class _TraceCollectorStubControl
throw new bindings.MojoCodecError("Unexpected message name");
break;
}
- return null;
}
TraceCollector get impl => _impl;

Powered by Google App Engine
This is Rietveld 408576698