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

Unified Diff: mojo/dart/packages/mojo_services/lib/native_support/process.mojom.dart

Issue 1539673003: Generate Mojom Types in Dart (Take 2) (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Merge with master Created 4 years, 11 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/native_support/process.mojom.dart
diff --git a/mojo/dart/packages/mojo_services/lib/native_support/process.mojom.dart b/mojo/dart/packages/mojo_services/lib/native_support/process.mojom.dart
index 7e89fe51d27f80d8504e9d0e8956ddc47f747f1d..4138adfe1e50284f978fe67478aaa8473c7dc73e 100644
--- a/mojo/dart/packages/mojo_services/lib/native_support/process.mojom.dart
+++ b/mojo/dart/packages/mojo_services/lib/native_support/process.mojom.dart
@@ -8,6 +8,8 @@ import 'dart:async';
import 'package:mojo/bindings.dart' as bindings;
import 'package:mojo/core.dart' as core;
+import 'package:mojo/mojo/bindings/types/mojom_types.mojom.dart' as mojom_types;
+import 'package:mojo/mojo/bindings/types/service_describer.mojom.dart' as service_describer;
import 'package:mojo_services/mojo/files/file.mojom.dart' as file_mojom;
import 'package:mojo_services/mojo/files/types.mojom.dart' as types_mojom;
@@ -163,6 +165,8 @@ class _ProcessSpawnParams extends bindings.Struct {
}
+
+
class ProcessSpawnResponseParams extends bindings.Struct {
static const List<bindings.StructDataHeader> kVersions = const [
const bindings.StructDataHeader(16, 0)
@@ -234,6 +238,8 @@ class ProcessSpawnResponseParams extends bindings.Struct {
}
+
+
class _ProcessSpawnWithTerminalParams extends bindings.Struct {
static const List<bindings.StructDataHeader> kVersions = const [
const bindings.StructDataHeader(48, 0)
@@ -368,6 +374,8 @@ class _ProcessSpawnWithTerminalParams extends bindings.Struct {
}
+
+
class ProcessSpawnWithTerminalResponseParams extends bindings.Struct {
static const List<bindings.StructDataHeader> kVersions = const [
const bindings.StructDataHeader(16, 0)
@@ -439,6 +447,8 @@ class ProcessSpawnWithTerminalResponseParams extends bindings.Struct {
}
+
+
class _ProcessControllerWaitParams extends bindings.Struct {
static const List<bindings.StructDataHeader> kVersions = const [
const bindings.StructDataHeader(8, 0)
@@ -497,6 +507,8 @@ class _ProcessControllerWaitParams extends bindings.Struct {
}
+
+
class ProcessControllerWaitResponseParams extends bindings.Struct {
static const List<bindings.StructDataHeader> kVersions = const [
const bindings.StructDataHeader(16, 0)
@@ -577,6 +589,8 @@ class ProcessControllerWaitResponseParams extends bindings.Struct {
}
+
+
class _ProcessControllerKillParams extends bindings.Struct {
static const List<bindings.StructDataHeader> kVersions = const [
const bindings.StructDataHeader(16, 0)
@@ -644,6 +658,8 @@ class _ProcessControllerKillParams extends bindings.Struct {
}
+
+
class ProcessControllerKillResponseParams extends bindings.Struct {
static const List<bindings.StructDataHeader> kVersions = const [
const bindings.StructDataHeader(16, 0)
@@ -714,9 +730,22 @@ class ProcessControllerKillResponseParams extends bindings.Struct {
}
}
+
+
+
const int _Process_spawnName = 0;
const int _Process_spawnWithTerminalName = 1;
+
+
+class _ProcessServiceDescription implements service_describer.ServiceDescription {
+ dynamic getTopLevelInterface([Function responseFactory]) => null;
+
+ dynamic getTypeDefinition(String typeKey, [Function responseFactory]) => null;
+
+ dynamic getAllTypeDefinitions([Function responseFactory]) => null;
+}
+
abstract class Process {
static const String serviceName = "native_support::Process";
dynamic spawn(List<int> path,List<List<int>> argv,List<List<int>> envp,Object stdinFile,Object stdoutFile,Object stderrFile,Object processController,[Function responseFactory = null]);
@@ -739,6 +768,9 @@ class _ProcessProxyImpl extends bindings.Proxy {
return new _ProcessProxyImpl.fromEndpoint(endpoint);
}
+ service_describer.ServiceDescription get serviceDescription =>
+ new _ProcessServiceDescription();
+
void handleResponse(bindings.ServiceMessage message) {
switch (message.header.type) {
case _Process_spawnName:
@@ -990,11 +1022,24 @@ class ProcessStub extends bindings.Stub {
}
int get version => 0;
+
+ service_describer.ServiceDescription get serviceDescription =>
+ new _ProcessServiceDescription();
}
const int _ProcessController_waitName = 0;
const int _ProcessController_killName = 1;
+
+
+class _ProcessControllerServiceDescription implements service_describer.ServiceDescription {
+ dynamic getTopLevelInterface([Function responseFactory]) => null;
+
+ dynamic getTypeDefinition(String typeKey, [Function responseFactory]) => null;
+
+ dynamic getAllTypeDefinitions([Function responseFactory]) => null;
+}
+
abstract class ProcessController {
static const String serviceName = null;
dynamic wait([Function responseFactory = null]);
@@ -1017,6 +1062,9 @@ class _ProcessControllerProxyImpl extends bindings.Proxy {
return new _ProcessControllerProxyImpl.fromEndpoint(endpoint);
}
+ service_describer.ServiceDescription get serviceDescription =>
+ new _ProcessControllerServiceDescription();
+
void handleResponse(bindings.ServiceMessage message) {
switch (message.header.type) {
case _ProcessController_waitName:
@@ -1258,6 +1306,10 @@ class ProcessControllerStub extends bindings.Stub {
}
int get version => 0;
+
+ service_describer.ServiceDescription get serviceDescription =>
+ new _ProcessControllerServiceDescription();
}
+

Powered by Google App Engine
This is Rietveld 408576698