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 file_mojom; | 5 library file_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 2377 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2388 const int _File_truncateName = 8; | 2388 const int _File_truncateName = 8; |
2389 const int _File_touchName = 9; | 2389 const int _File_touchName = 9; |
2390 const int _File_dupName = 10; | 2390 const int _File_dupName = 10; |
2391 const int _File_reopenName = 11; | 2391 const int _File_reopenName = 11; |
2392 const int _File_asBufferName = 12; | 2392 const int _File_asBufferName = 12; |
2393 const int _File_ioctlName = 13; | 2393 const int _File_ioctlName = 13; |
2394 | 2394 |
2395 | 2395 |
2396 | 2396 |
2397 class _FileServiceDescription implements service_describer.ServiceDescription { | 2397 class _FileServiceDescription implements service_describer.ServiceDescription { |
2398 dynamic getTopLevelInterface([Function responseFactory]) => null; | 2398 dynamic getTopLevelInterface([Function responseFactory]) => |
| 2399 responseFactory(null); |
2399 | 2400 |
2400 dynamic getTypeDefinition(String typeKey, [Function responseFactory]) => null; | 2401 dynamic getTypeDefinition(String typeKey, [Function responseFactory]) => |
| 2402 responseFactory(null); |
2401 | 2403 |
2402 dynamic getAllTypeDefinitions([Function responseFactory]) => null; | 2404 dynamic getAllTypeDefinitions([Function responseFactory]) => |
| 2405 responseFactory(null); |
2403 } | 2406 } |
2404 | 2407 |
2405 abstract class File { | 2408 abstract class File { |
2406 static const String serviceName = null; | 2409 static const String serviceName = null; |
2407 dynamic close([Function responseFactory = null]); | 2410 dynamic close([Function responseFactory = null]); |
2408 dynamic read(int numBytesToRead,int offset,types_mojom.Whence whence,[Function
responseFactory = null]); | 2411 dynamic read(int numBytesToRead,int offset,types_mojom.Whence whence,[Function
responseFactory = null]); |
2409 dynamic write(List<int> bytesToWrite,int offset,types_mojom.Whence whence,[Fun
ction responseFactory = null]); | 2412 dynamic write(List<int> bytesToWrite,int offset,types_mojom.Whence whence,[Fun
ction responseFactory = null]); |
2410 dynamic readToStream(core.MojoDataPipeProducer source,int offset,types_mojom.W
hence whence,int numBytesToRead,[Function responseFactory = null]); | 2413 dynamic readToStream(core.MojoDataPipeProducer source,int offset,types_mojom.W
hence whence,int numBytesToRead,[Function responseFactory = null]); |
2411 dynamic writeFromStream(core.MojoDataPipeConsumer sink,int offset,types_mojom.
Whence whence,[Function responseFactory = null]); | 2414 dynamic writeFromStream(core.MojoDataPipeConsumer sink,int offset,types_mojom.
Whence whence,[Function responseFactory = null]); |
2412 dynamic tell([Function responseFactory = null]); | 2415 dynamic tell([Function responseFactory = null]); |
(...skipping 949 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3362 _impl = d; | 3365 _impl = d; |
3363 } | 3366 } |
3364 | 3367 |
3365 String toString() { | 3368 String toString() { |
3366 var superString = super.toString(); | 3369 var superString = super.toString(); |
3367 return "FileStub($superString)"; | 3370 return "FileStub($superString)"; |
3368 } | 3371 } |
3369 | 3372 |
3370 int get version => 0; | 3373 int get version => 0; |
3371 | 3374 |
3372 service_describer.ServiceDescription get serviceDescription => | 3375 static service_describer.ServiceDescription _cachedServiceDescription; |
3373 new _FileServiceDescription(); | 3376 static service_describer.ServiceDescription get serviceDescription { |
| 3377 if (_cachedServiceDescription == null) { |
| 3378 _cachedServiceDescription = new _FileServiceDescription(); |
| 3379 } |
| 3380 return _cachedServiceDescription; |
| 3381 } |
3374 } | 3382 } |
3375 | 3383 |
3376 | 3384 |
3377 | 3385 |
OLD | NEW |