| OLD | NEW |
| 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 process_mojom; | 5 library process_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 807 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 818 | 818 |
| 819 | 819 |
| 820 | 820 |
| 821 | 821 |
| 822 const int _Process_spawnName = 0; | 822 const int _Process_spawnName = 0; |
| 823 const int _Process_spawnWithTerminalName = 1; | 823 const int _Process_spawnWithTerminalName = 1; |
| 824 | 824 |
| 825 | 825 |
| 826 | 826 |
| 827 class _ProcessServiceDescription implements service_describer.ServiceDescription
{ | 827 class _ProcessServiceDescription implements service_describer.ServiceDescription
{ |
| 828 dynamic getTopLevelInterface([Function responseFactory]) => null; | 828 dynamic getTopLevelInterface([Function responseFactory]) => |
| 829 responseFactory(null); |
| 829 | 830 |
| 830 dynamic getTypeDefinition(String typeKey, [Function responseFactory]) => null; | 831 dynamic getTypeDefinition(String typeKey, [Function responseFactory]) => |
| 832 responseFactory(null); |
| 831 | 833 |
| 832 dynamic getAllTypeDefinitions([Function responseFactory]) => null; | 834 dynamic getAllTypeDefinitions([Function responseFactory]) => |
| 835 responseFactory(null); |
| 833 } | 836 } |
| 834 | 837 |
| 835 abstract class Process { | 838 abstract class Process { |
| 836 static const String serviceName = "native_support::Process"; | 839 static const String serviceName = "native_support::Process"; |
| 837 dynamic spawn(List<int> path,List<List<int>> argv,List<List<int>> envp,Object
stdinFile,Object stdoutFile,Object stderrFile,Object processController,[Function
responseFactory = null]); | 840 dynamic spawn(List<int> path,List<List<int>> argv,List<List<int>> envp,Object
stdinFile,Object stdoutFile,Object stderrFile,Object processController,[Function
responseFactory = null]); |
| 838 dynamic spawnWithTerminal(List<int> path,List<List<int>> argv,List<List<int>>
envp,Object terminalFile,Object processController,[Function responseFactory = nu
ll]); | 841 dynamic spawnWithTerminal(List<int> path,List<List<int>> argv,List<List<int>>
envp,Object terminalFile,Object processController,[Function responseFactory = nu
ll]); |
| 839 } | 842 } |
| 840 | 843 |
| 841 | 844 |
| 842 class _ProcessProxyImpl extends bindings.Proxy { | 845 class _ProcessProxyImpl extends bindings.Proxy { |
| (...skipping 259 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1102 _impl = d; | 1105 _impl = d; |
| 1103 } | 1106 } |
| 1104 | 1107 |
| 1105 String toString() { | 1108 String toString() { |
| 1106 var superString = super.toString(); | 1109 var superString = super.toString(); |
| 1107 return "ProcessStub($superString)"; | 1110 return "ProcessStub($superString)"; |
| 1108 } | 1111 } |
| 1109 | 1112 |
| 1110 int get version => 0; | 1113 int get version => 0; |
| 1111 | 1114 |
| 1112 service_describer.ServiceDescription get serviceDescription => | 1115 static service_describer.ServiceDescription get serviceDescription => |
| 1113 new _ProcessServiceDescription(); | 1116 new _ProcessServiceDescription(); |
| 1114 } | 1117 } |
| 1115 | 1118 |
| 1116 const int _ProcessController_waitName = 0; | 1119 const int _ProcessController_waitName = 0; |
| 1117 const int _ProcessController_killName = 1; | 1120 const int _ProcessController_killName = 1; |
| 1118 | 1121 |
| 1119 | 1122 |
| 1120 | 1123 |
| 1121 class _ProcessControllerServiceDescription implements service_describer.ServiceD
escription { | 1124 class _ProcessControllerServiceDescription implements service_describer.ServiceD
escription { |
| 1122 dynamic getTopLevelInterface([Function responseFactory]) => null; | 1125 dynamic getTopLevelInterface([Function responseFactory]) => |
| 1126 responseFactory(null); |
| 1123 | 1127 |
| 1124 dynamic getTypeDefinition(String typeKey, [Function responseFactory]) => null; | 1128 dynamic getTypeDefinition(String typeKey, [Function responseFactory]) => |
| 1129 responseFactory(null); |
| 1125 | 1130 |
| 1126 dynamic getAllTypeDefinitions([Function responseFactory]) => null; | 1131 dynamic getAllTypeDefinitions([Function responseFactory]) => |
| 1132 responseFactory(null); |
| 1127 } | 1133 } |
| 1128 | 1134 |
| 1129 abstract class ProcessController { | 1135 abstract class ProcessController { |
| 1130 static const String serviceName = null; | 1136 static const String serviceName = null; |
| 1131 dynamic wait([Function responseFactory = null]); | 1137 dynamic wait([Function responseFactory = null]); |
| 1132 dynamic kill(int signal,[Function responseFactory = null]); | 1138 dynamic kill(int signal,[Function responseFactory = null]); |
| 1133 } | 1139 } |
| 1134 | 1140 |
| 1135 | 1141 |
| 1136 class _ProcessControllerProxyImpl extends bindings.Proxy { | 1142 class _ProcessControllerProxyImpl extends bindings.Proxy { |
| (...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1386 _impl = d; | 1392 _impl = d; |
| 1387 } | 1393 } |
| 1388 | 1394 |
| 1389 String toString() { | 1395 String toString() { |
| 1390 var superString = super.toString(); | 1396 var superString = super.toString(); |
| 1391 return "ProcessControllerStub($superString)"; | 1397 return "ProcessControllerStub($superString)"; |
| 1392 } | 1398 } |
| 1393 | 1399 |
| 1394 int get version => 0; | 1400 int get version => 0; |
| 1395 | 1401 |
| 1396 service_describer.ServiceDescription get serviceDescription => | 1402 static service_describer.ServiceDescription get serviceDescription => |
| 1397 new _ProcessControllerServiceDescription(); | 1403 new _ProcessControllerServiceDescription(); |
| 1398 } | 1404 } |
| 1399 | 1405 |
| 1400 | 1406 |
| 1401 | 1407 |
| OLD | NEW |