| 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..dcaf308d4f58b0cfc4e0bccd389253d0a3841982 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
|
| @@ -5,9 +5,12 @@
|
| library process_mojom;
|
|
|
| import 'dart:async';
|
| +import 'dart:collection';
|
|
|
| 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;
|
|
|
| @@ -161,6 +164,77 @@ class _ProcessSpawnParams extends bindings.Struct {
|
| 'Object containing handles cannot be encoded to JSON.');
|
| }
|
| }
|
| +mojom_types.MojomStruct _process_Process_Spawn_Params__() {
|
| + return new mojom_types.MojomStruct()
|
| + ..declData = (new mojom_types.DeclarationData()
|
| + ..shortName = '_ProcessSpawnParams'
|
| + ..fullIdentifier = 'native_support._ProcessSpawnParams')
|
| + ..fields = <mojom_types.StructField>[
|
| + new mojom_types.StructField()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'Path')
|
| + ..type = (new mojom_types.Type()..arrayType = (new mojom_types.ArrayType()
|
| + ..elementType = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.uint8))),
|
| +
|
| + new mojom_types.StructField()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'Argv')
|
| + ..type = (new mojom_types.Type()..arrayType = (new mojom_types.ArrayType()
|
| + ..nullable = true
|
| +
|
| + ..elementType = (new mojom_types.Type()..arrayType = (new mojom_types.ArrayType()
|
| + ..elementType = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.uint8))))),
|
| +
|
| + new mojom_types.StructField()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'Envp')
|
| + ..type = (new mojom_types.Type()..arrayType = (new mojom_types.ArrayType()
|
| + ..nullable = true
|
| +
|
| + ..elementType = (new mojom_types.Type()..arrayType = (new mojom_types.ArrayType()
|
| + ..elementType = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.uint8))))),
|
| +
|
| + new mojom_types.StructField()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'StdinFile')
|
| + ..type = (new mojom_types.Type()
|
| + ..typeReference = (new mojom_types.TypeReference()
|
| + ..nullable = true
|
| +
|
| +
|
| + ..identifier = '_file_File__'
|
| + ..typeKey = '_file_File__'
|
| + )),
|
| +
|
| + new mojom_types.StructField()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'StdoutFile')
|
| + ..type = (new mojom_types.Type()
|
| + ..typeReference = (new mojom_types.TypeReference()
|
| + ..nullable = true
|
| +
|
| +
|
| + ..identifier = '_file_File__'
|
| + ..typeKey = '_file_File__'
|
| + )),
|
| +
|
| + new mojom_types.StructField()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'StderrFile')
|
| + ..type = (new mojom_types.Type()
|
| + ..typeReference = (new mojom_types.TypeReference()
|
| + ..nullable = true
|
| +
|
| +
|
| + ..identifier = '_file_File__'
|
| + ..typeKey = '_file_File__'
|
| + )),
|
| +
|
| + new mojom_types.StructField()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'ProcessController')
|
| + ..type = (new mojom_types.Type()
|
| + ..typeReference = (new mojom_types.TypeReference()
|
| +
|
| + ..isInterfaceRequest = true
|
| + ..identifier = '_process_ProcessController__'
|
| + ..typeKey = '_process_ProcessController__'
|
| + )),
|
| + ];
|
| +}
|
|
|
|
|
| class ProcessSpawnResponseParams extends bindings.Struct {
|
| @@ -232,6 +306,22 @@ class ProcessSpawnResponseParams extends bindings.Struct {
|
| return map;
|
| }
|
| }
|
| +mojom_types.MojomStruct _process_Process_Spawn_ResponseParams__() {
|
| + return new mojom_types.MojomStruct()
|
| + ..declData = (new mojom_types.DeclarationData()
|
| + ..shortName = 'ProcessSpawnResponseParams'
|
| + ..fullIdentifier = 'native_support.ProcessSpawnResponseParams')
|
| + ..fields = <mojom_types.StructField>[
|
| + new mojom_types.StructField()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'Error')
|
| + ..type = (new mojom_types.Type()
|
| + ..typeReference = (new mojom_types.TypeReference()
|
| +
|
| + ..identifier = '_types_Error__'
|
| + ..typeKey = '_types_Error__'
|
| + )),
|
| + ];
|
| +}
|
|
|
|
|
| class _ProcessSpawnWithTerminalParams extends bindings.Struct {
|
| @@ -366,6 +456,53 @@ class _ProcessSpawnWithTerminalParams extends bindings.Struct {
|
| 'Object containing handles cannot be encoded to JSON.');
|
| }
|
| }
|
| +mojom_types.MojomStruct _process_Process_SpawnWithTerminal_Params__() {
|
| + return new mojom_types.MojomStruct()
|
| + ..declData = (new mojom_types.DeclarationData()
|
| + ..shortName = '_ProcessSpawnWithTerminalParams'
|
| + ..fullIdentifier = 'native_support._ProcessSpawnWithTerminalParams')
|
| + ..fields = <mojom_types.StructField>[
|
| + new mojom_types.StructField()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'Path')
|
| + ..type = (new mojom_types.Type()..arrayType = (new mojom_types.ArrayType()
|
| + ..elementType = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.uint8))),
|
| +
|
| + new mojom_types.StructField()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'Argv')
|
| + ..type = (new mojom_types.Type()..arrayType = (new mojom_types.ArrayType()
|
| + ..nullable = true
|
| +
|
| + ..elementType = (new mojom_types.Type()..arrayType = (new mojom_types.ArrayType()
|
| + ..elementType = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.uint8))))),
|
| +
|
| + new mojom_types.StructField()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'Envp')
|
| + ..type = (new mojom_types.Type()..arrayType = (new mojom_types.ArrayType()
|
| + ..nullable = true
|
| +
|
| + ..elementType = (new mojom_types.Type()..arrayType = (new mojom_types.ArrayType()
|
| + ..elementType = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.uint8))))),
|
| +
|
| + new mojom_types.StructField()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'TerminalFile')
|
| + ..type = (new mojom_types.Type()
|
| + ..typeReference = (new mojom_types.TypeReference()
|
| +
|
| + ..identifier = '_file_File__'
|
| + ..typeKey = '_file_File__'
|
| + )),
|
| +
|
| + new mojom_types.StructField()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'ProcessController')
|
| + ..type = (new mojom_types.Type()
|
| + ..typeReference = (new mojom_types.TypeReference()
|
| +
|
| + ..isInterfaceRequest = true
|
| + ..identifier = '_process_ProcessController__'
|
| + ..typeKey = '_process_ProcessController__'
|
| + )),
|
| + ];
|
| +}
|
|
|
|
|
| class ProcessSpawnWithTerminalResponseParams extends bindings.Struct {
|
| @@ -437,6 +574,22 @@ class ProcessSpawnWithTerminalResponseParams extends bindings.Struct {
|
| return map;
|
| }
|
| }
|
| +mojom_types.MojomStruct _process_Process_SpawnWithTerminal_ResponseParams__() {
|
| + return new mojom_types.MojomStruct()
|
| + ..declData = (new mojom_types.DeclarationData()
|
| + ..shortName = 'ProcessSpawnWithTerminalResponseParams'
|
| + ..fullIdentifier = 'native_support.ProcessSpawnWithTerminalResponseParams')
|
| + ..fields = <mojom_types.StructField>[
|
| + new mojom_types.StructField()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'Error')
|
| + ..type = (new mojom_types.Type()
|
| + ..typeReference = (new mojom_types.TypeReference()
|
| +
|
| + ..identifier = '_types_Error__'
|
| + ..typeKey = '_types_Error__'
|
| + )),
|
| + ];
|
| +}
|
|
|
|
|
| class _ProcessControllerWaitParams extends bindings.Struct {
|
| @@ -495,6 +648,13 @@ class _ProcessControllerWaitParams extends bindings.Struct {
|
| return map;
|
| }
|
| }
|
| +mojom_types.MojomStruct _process_ProcessController_Wait_Params__() {
|
| + return new mojom_types.MojomStruct()
|
| + ..declData = (new mojom_types.DeclarationData()
|
| + ..shortName = '_ProcessControllerWaitParams'
|
| + ..fullIdentifier = 'native_support._ProcessControllerWaitParams')
|
| + ..fields = <mojom_types.StructField>[];
|
| +}
|
|
|
|
|
| class ProcessControllerWaitResponseParams extends bindings.Struct {
|
| @@ -575,6 +735,26 @@ class ProcessControllerWaitResponseParams extends bindings.Struct {
|
| return map;
|
| }
|
| }
|
| +mojom_types.MojomStruct _process_ProcessController_Wait_ResponseParams__() {
|
| + return new mojom_types.MojomStruct()
|
| + ..declData = (new mojom_types.DeclarationData()
|
| + ..shortName = 'ProcessControllerWaitResponseParams'
|
| + ..fullIdentifier = 'native_support.ProcessControllerWaitResponseParams')
|
| + ..fields = <mojom_types.StructField>[
|
| + new mojom_types.StructField()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'Error')
|
| + ..type = (new mojom_types.Type()
|
| + ..typeReference = (new mojom_types.TypeReference()
|
| +
|
| + ..identifier = '_types_Error__'
|
| + ..typeKey = '_types_Error__'
|
| + )),
|
| +
|
| + new mojom_types.StructField()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'ExitStatus')
|
| + ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.int32),
|
| + ];
|
| +}
|
|
|
|
|
| class _ProcessControllerKillParams extends bindings.Struct {
|
| @@ -642,6 +822,17 @@ class _ProcessControllerKillParams extends bindings.Struct {
|
| return map;
|
| }
|
| }
|
| +mojom_types.MojomStruct _process_ProcessController_Kill_Params__() {
|
| + return new mojom_types.MojomStruct()
|
| + ..declData = (new mojom_types.DeclarationData()
|
| + ..shortName = '_ProcessControllerKillParams'
|
| + ..fullIdentifier = 'native_support._ProcessControllerKillParams')
|
| + ..fields = <mojom_types.StructField>[
|
| + new mojom_types.StructField()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'Signal')
|
| + ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.int32),
|
| + ];
|
| +}
|
|
|
|
|
| class ProcessControllerKillResponseParams extends bindings.Struct {
|
| @@ -713,10 +904,56 @@ class ProcessControllerKillResponseParams extends bindings.Struct {
|
| return map;
|
| }
|
| }
|
| +mojom_types.MojomStruct _process_ProcessController_Kill_ResponseParams__() {
|
| + return new mojom_types.MojomStruct()
|
| + ..declData = (new mojom_types.DeclarationData()
|
| + ..shortName = 'ProcessControllerKillResponseParams'
|
| + ..fullIdentifier = 'native_support.ProcessControllerKillResponseParams')
|
| + ..fields = <mojom_types.StructField>[
|
| + new mojom_types.StructField()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'Error')
|
| + ..type = (new mojom_types.Type()
|
| + ..typeReference = (new mojom_types.TypeReference()
|
| +
|
| + ..identifier = '_types_Error__'
|
| + ..typeKey = '_types_Error__'
|
| + )),
|
| + ];
|
| +}
|
| +
|
|
|
| const int _Process_spawnName = 0;
|
| const int _Process_spawnWithTerminalName = 1;
|
|
|
| +mojom_types.MojomInterface _process_Process__() {
|
| + return new mojom_types.MojomInterface()
|
| + ..declData = (new mojom_types.DeclarationData()
|
| + ..shortName = 'Process'
|
| + ..fullIdentifier = 'native_support.Process')
|
| + ..interfaceName = 'Process'
|
| + ..methods = <int, mojom_types.MojomMethod>{
|
| +_Process_spawnName: new mojom_types.MojomMethod()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'Spawn')
|
| + ..ordinal = _Process_spawnName
|
| + ..responseParams = _process_Process_Spawn_ResponseParams__()..parameters = _process_Process_Spawn_Params__(),_Process_spawnWithTerminalName: new mojom_types.MojomMethod()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'SpawnWithTerminal')
|
| + ..ordinal = _Process_spawnWithTerminalName
|
| + ..responseParams = _process_Process_SpawnWithTerminal_ResponseParams__()..parameters = _process_Process_SpawnWithTerminal_Params__(),
|
| + };
|
| +}
|
| +
|
| +class _ProcessServiceDescription implements service_describer.ServiceDescription {
|
| +dynamic getTopLevelInterface([Function responseFactory = null]) {
|
| + return _process_Process__();
|
| + }
|
| + dynamic getTypeDefinition(String typeKey,[Function responseFactory = null]) {
|
| + return getAllMojomTypeDefinitions()[typeKey];
|
| + }
|
| + dynamic getAllTypeDefinitions([Function responseFactory = null]) {
|
| + return getAllMojomTypeDefinitions();
|
| + }
|
| +}
|
| +
|
| 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 +976,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 +1230,44 @@ 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;
|
|
|
| +mojom_types.MojomInterface _process_ProcessController__() {
|
| + return new mojom_types.MojomInterface()
|
| + ..declData = (new mojom_types.DeclarationData()
|
| + ..shortName = 'ProcessController'
|
| + ..fullIdentifier = 'native_support.ProcessController')
|
| + ..interfaceName = 'ProcessController'
|
| + ..methods = <int, mojom_types.MojomMethod>{
|
| +_ProcessController_waitName: new mojom_types.MojomMethod()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'Wait')
|
| + ..ordinal = _ProcessController_waitName
|
| + ..responseParams = _process_ProcessController_Wait_ResponseParams__()..parameters = _process_ProcessController_Wait_Params__(),_ProcessController_killName: new mojom_types.MojomMethod()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'Kill')
|
| + ..ordinal = _ProcessController_killName
|
| + ..responseParams = _process_ProcessController_Kill_ResponseParams__()..parameters = _process_ProcessController_Kill_Params__(),
|
| + };
|
| +}
|
| +
|
| +class _ProcessControllerServiceDescription implements service_describer.ServiceDescription {
|
| +dynamic getTopLevelInterface([Function responseFactory = null]) {
|
| + return _process_ProcessController__();
|
| + }
|
| + dynamic getTypeDefinition(String typeKey,[Function responseFactory = null]) {
|
| + return getAllMojomTypeDefinitions()[typeKey];
|
| + }
|
| + dynamic getAllTypeDefinitions([Function responseFactory = null]) {
|
| + return getAllMojomTypeDefinitions();
|
| + }
|
| +}
|
| +
|
| abstract class ProcessController {
|
| static const String serviceName = null;
|
| dynamic wait([Function responseFactory = null]);
|
| @@ -1017,6 +1290,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 +1534,65 @@ class ProcessControllerStub extends bindings.Stub {
|
| }
|
|
|
| int get version => 0;
|
| +
|
| +
|
| + service_describer.ServiceDescription get serviceDescription =>
|
| + new _ProcessControllerServiceDescription();
|
| }
|
|
|
|
|
| +
|
| +
|
| +
|
| +
|
| +
|
| +Map<String, mojom_types.UserDefinedType> _initDescriptions() {
|
| + var map = new HashMap<String, mojom_types.UserDefinedType>();
|
| +map["_process_Process_Spawn_Params__"] =
|
| + new mojom_types.UserDefinedType()
|
| + ..structType = _process_Process_Spawn_Params__();
|
| +map["_process_Process_Spawn_ResponseParams__"] =
|
| + new mojom_types.UserDefinedType()
|
| + ..structType = _process_Process_Spawn_ResponseParams__();
|
| +map["_process_Process_SpawnWithTerminal_Params__"] =
|
| + new mojom_types.UserDefinedType()
|
| + ..structType = _process_Process_SpawnWithTerminal_Params__();
|
| +map["_process_Process_SpawnWithTerminal_ResponseParams__"] =
|
| + new mojom_types.UserDefinedType()
|
| + ..structType = _process_Process_SpawnWithTerminal_ResponseParams__();
|
| +map["_process_ProcessController_Wait_Params__"] =
|
| + new mojom_types.UserDefinedType()
|
| + ..structType = _process_ProcessController_Wait_Params__();
|
| +map["_process_ProcessController_Wait_ResponseParams__"] =
|
| + new mojom_types.UserDefinedType()
|
| + ..structType = _process_ProcessController_Wait_ResponseParams__();
|
| +map["_process_ProcessController_Kill_Params__"] =
|
| + new mojom_types.UserDefinedType()
|
| + ..structType = _process_ProcessController_Kill_Params__();
|
| +map["_process_ProcessController_Kill_ResponseParams__"] =
|
| + new mojom_types.UserDefinedType()
|
| + ..structType = _process_ProcessController_Kill_ResponseParams__();
|
| +map["_process_Process__"] =
|
| + new mojom_types.UserDefinedType()
|
| + ..interfaceType = _process_Process__();
|
| +map["_process_ProcessController__"] =
|
| + new mojom_types.UserDefinedType()
|
| + ..interfaceType = _process_ProcessController__();
|
| +file_mojom.getAllMojomTypeDefinitions().forEach((String s, mojom_types.UserDefinedType udt) {
|
| + map[s] = udt;
|
| +});
|
| +types_mojom.getAllMojomTypeDefinitions().forEach((String s, mojom_types.UserDefinedType udt) {
|
| + map[s] = udt;
|
| +});
|
| +
|
| + return map;
|
| +}
|
| +
|
| +var _MojomDesc;
|
| +Map<String, mojom_types.UserDefinedType> getAllMojomTypeDefinitions() {
|
| + if (_MojomDesc == null) {
|
| + _MojomDesc = _initDescriptions();
|
| + }
|
| + return _MojomDesc;
|
| +}
|
| +
|
|
|