| 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 _cachedServiceDescription; |
| 1113 new _ProcessServiceDescription(); | 1116 static service_describer.ServiceDescription get serviceDescription { |
| 1117 if (_cachedServiceDescription == null) { |
| 1118 _cachedServiceDescription = new _ProcessServiceDescription(); |
| 1119 } |
| 1120 return _cachedServiceDescription; |
| 1121 } |
| 1114 } | 1122 } |
| 1115 | 1123 |
| 1116 const int _ProcessController_waitName = 0; | 1124 const int _ProcessController_waitName = 0; |
| 1117 const int _ProcessController_killName = 1; | 1125 const int _ProcessController_killName = 1; |
| 1118 | 1126 |
| 1119 | 1127 |
| 1120 | 1128 |
| 1121 class _ProcessControllerServiceDescription implements service_describer.ServiceD
escription { | 1129 class _ProcessControllerServiceDescription implements service_describer.ServiceD
escription { |
| 1122 dynamic getTopLevelInterface([Function responseFactory]) => null; | 1130 dynamic getTopLevelInterface([Function responseFactory]) => |
| 1131 responseFactory(null); |
| 1123 | 1132 |
| 1124 dynamic getTypeDefinition(String typeKey, [Function responseFactory]) => null; | 1133 dynamic getTypeDefinition(String typeKey, [Function responseFactory]) => |
| 1134 responseFactory(null); |
| 1125 | 1135 |
| 1126 dynamic getAllTypeDefinitions([Function responseFactory]) => null; | 1136 dynamic getAllTypeDefinitions([Function responseFactory]) => |
| 1137 responseFactory(null); |
| 1127 } | 1138 } |
| 1128 | 1139 |
| 1129 abstract class ProcessController { | 1140 abstract class ProcessController { |
| 1130 static const String serviceName = null; | 1141 static const String serviceName = null; |
| 1131 dynamic wait([Function responseFactory = null]); | 1142 dynamic wait([Function responseFactory = null]); |
| 1132 dynamic kill(int signal,[Function responseFactory = null]); | 1143 dynamic kill(int signal,[Function responseFactory = null]); |
| 1133 } | 1144 } |
| 1134 | 1145 |
| 1135 | 1146 |
| 1136 class _ProcessControllerProxyImpl extends bindings.Proxy { | 1147 class _ProcessControllerProxyImpl extends bindings.Proxy { |
| (...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1386 _impl = d; | 1397 _impl = d; |
| 1387 } | 1398 } |
| 1388 | 1399 |
| 1389 String toString() { | 1400 String toString() { |
| 1390 var superString = super.toString(); | 1401 var superString = super.toString(); |
| 1391 return "ProcessControllerStub($superString)"; | 1402 return "ProcessControllerStub($superString)"; |
| 1392 } | 1403 } |
| 1393 | 1404 |
| 1394 int get version => 0; | 1405 int get version => 0; |
| 1395 | 1406 |
| 1396 service_describer.ServiceDescription get serviceDescription => | 1407 static service_describer.ServiceDescription _cachedServiceDescription; |
| 1397 new _ProcessControllerServiceDescription(); | 1408 static service_describer.ServiceDescription get serviceDescription { |
| 1409 if (_cachedServiceDescription == null) { |
| 1410 _cachedServiceDescription = new _ProcessControllerServiceDescription(); |
| 1411 } |
| 1412 return _cachedServiceDescription; |
| 1413 } |
| 1398 } | 1414 } |
| 1399 | 1415 |
| 1400 | 1416 |
| 1401 | 1417 |
| OLD | NEW |