OLD | NEW |
| (Empty) |
1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
2 // for details. All rights reserved. Use of this source code is governed by a | |
3 // BSD-style license that can be found in the LICENSE file. | |
4 | |
5 // WARNING: Do not edit - generated code. | |
6 | |
7 class _DirectoryEntryWrappingImplementation extends _EntryWrappingImplementation
implements DirectoryEntry { | |
8 _DirectoryEntryWrappingImplementation() : super() {} | |
9 | |
10 static create__DirectoryEntryWrappingImplementation() native { | |
11 return new _DirectoryEntryWrappingImplementation(); | |
12 } | |
13 | |
14 DirectoryReader createReader() { | |
15 return _createReader(this); | |
16 } | |
17 static DirectoryReader _createReader(receiver) native; | |
18 | |
19 void getDirectory(String path, [Object flags = null, EntryCallback successCall
back = null, ErrorCallback errorCallback = null]) { | |
20 if (flags === null) { | |
21 if (successCallback === null) { | |
22 if (errorCallback === null) { | |
23 _getDirectory(this, path); | |
24 return; | |
25 } | |
26 } | |
27 } else { | |
28 _getDirectory_2(this, path, flags, successCallback, errorCallback); | |
29 return; | |
30 } | |
31 throw "Incorrect number or type of arguments"; | |
32 } | |
33 static void _getDirectory(receiver, path) native; | |
34 static void _getDirectory_2(receiver, path, flags, successCallback, errorCallb
ack) native; | |
35 | |
36 void getFile(String path, [Object flags = null, EntryCallback successCallback
= null, ErrorCallback errorCallback = null]) { | |
37 if (flags === null) { | |
38 if (successCallback === null) { | |
39 if (errorCallback === null) { | |
40 _getFile(this, path); | |
41 return; | |
42 } | |
43 } | |
44 } else { | |
45 _getFile_2(this, path, flags, successCallback, errorCallback); | |
46 return; | |
47 } | |
48 throw "Incorrect number or type of arguments"; | |
49 } | |
50 static void _getFile(receiver, path) native; | |
51 static void _getFile_2(receiver, path, flags, successCallback, errorCallback)
native; | |
52 | |
53 void removeRecursively(VoidCallback successCallback, [ErrorCallback errorCallb
ack = null]) { | |
54 _removeRecursively(this, successCallback, errorCallback); | |
55 return; | |
56 } | |
57 static void _removeRecursively(receiver, successCallback, errorCallback) nativ
e; | |
58 | |
59 String get typeName() { return "DirectoryEntry"; } | |
60 } | |
OLD | NEW |