| OLD | NEW |
| 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 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 | 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. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 // WARNING: Do not edit - generated code. | 5 // WARNING: Do not edit - generated code. |
| 6 | 6 |
| 7 class DirectoryEntryWrappingImplementation extends EntryWrappingImplementation i
mplements DirectoryEntry { | 7 class DirectoryEntryWrappingImplementation extends EntryWrappingImplementation i
mplements DirectoryEntry { |
| 8 DirectoryEntryWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | 8 DirectoryEntryWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} |
| 9 | 9 |
| 10 DirectoryReader createReader() { | 10 DirectoryReader createReader() { |
| 11 return LevelDom.wrapDirectoryReader(_ptr.createReader()); | 11 return LevelDom.wrapDirectoryReader(_ptr.createReader()); |
| 12 } | 12 } |
| 13 | 13 |
| 14 void getDirectory(String path, [Flags flags = null, EntryCallback successCallb
ack = null, ErrorCallback errorCallback = null]) { | 14 void getDirectory(String path, [Flags flags, EntryCallback successCallback, Er
rorCallback errorCallback]) { |
| 15 if (flags === null) { | 15 if (flags === null) { |
| 16 if (successCallback === null) { | 16 if (successCallback === null) { |
| 17 if (errorCallback === null) { | 17 if (errorCallback === null) { |
| 18 _ptr.getDirectory(path); | 18 _ptr.getDirectory(path); |
| 19 return; | 19 return; |
| 20 } | 20 } |
| 21 } | 21 } |
| 22 } else { | 22 } else { |
| 23 if (successCallback === null) { | 23 if (successCallback === null) { |
| 24 if (errorCallback === null) { | 24 if (errorCallback === null) { |
| 25 _ptr.getDirectory(path, LevelDom.unwrap(flags)); | 25 _ptr.getDirectory(path, LevelDom.unwrap(flags)); |
| 26 return; | 26 return; |
| 27 } | 27 } |
| 28 } else { | 28 } else { |
| 29 if (errorCallback === null) { | 29 if (errorCallback === null) { |
| 30 _ptr.getDirectory(path, LevelDom.unwrap(flags), LevelDom.unwrap(succes
sCallback)); | 30 _ptr.getDirectory(path, LevelDom.unwrap(flags), successCallback); |
| 31 return; | 31 return; |
| 32 } else { | 32 } else { |
| 33 _ptr.getDirectory(path, LevelDom.unwrap(flags), LevelDom.unwrap(succes
sCallback), LevelDom.unwrap(errorCallback)); | 33 _ptr.getDirectory(path, LevelDom.unwrap(flags), successCallback, Level
Dom.unwrap(errorCallback)); |
| 34 return; | 34 return; |
| 35 } | 35 } |
| 36 } | 36 } |
| 37 } | 37 } |
| 38 throw "Incorrect number or type of arguments"; | 38 throw "Incorrect number or type of arguments"; |
| 39 } | 39 } |
| 40 | 40 |
| 41 void getFile(String path, [Flags flags = null, EntryCallback successCallback =
null, ErrorCallback errorCallback = null]) { | 41 void getFile(String path, [Flags flags, EntryCallback successCallback, ErrorCa
llback errorCallback]) { |
| 42 if (flags === null) { | 42 if (flags === null) { |
| 43 if (successCallback === null) { | 43 if (successCallback === null) { |
| 44 if (errorCallback === null) { | 44 if (errorCallback === null) { |
| 45 _ptr.getFile(path); | 45 _ptr.getFile(path); |
| 46 return; | 46 return; |
| 47 } | 47 } |
| 48 } | 48 } |
| 49 } else { | 49 } else { |
| 50 if (successCallback === null) { | 50 if (successCallback === null) { |
| 51 if (errorCallback === null) { | 51 if (errorCallback === null) { |
| 52 _ptr.getFile(path, LevelDom.unwrap(flags)); | 52 _ptr.getFile(path, LevelDom.unwrap(flags)); |
| 53 return; | 53 return; |
| 54 } | 54 } |
| 55 } else { | 55 } else { |
| 56 if (errorCallback === null) { | 56 if (errorCallback === null) { |
| 57 _ptr.getFile(path, LevelDom.unwrap(flags), LevelDom.unwrap(successCall
back)); | 57 _ptr.getFile(path, LevelDom.unwrap(flags), successCallback); |
| 58 return; | 58 return; |
| 59 } else { | 59 } else { |
| 60 _ptr.getFile(path, LevelDom.unwrap(flags), LevelDom.unwrap(successCall
back), LevelDom.unwrap(errorCallback)); | 60 _ptr.getFile(path, LevelDom.unwrap(flags), successCallback, LevelDom.u
nwrap(errorCallback)); |
| 61 return; | 61 return; |
| 62 } | 62 } |
| 63 } | 63 } |
| 64 } | 64 } |
| 65 throw "Incorrect number or type of arguments"; | 65 throw "Incorrect number or type of arguments"; |
| 66 } | 66 } |
| 67 | 67 |
| 68 void removeRecursively([VoidCallback successCallback = null, ErrorCallback err
orCallback = null]) { | 68 void removeRecursively([VoidCallback successCallback, ErrorCallback errorCallb
ack]) { |
| 69 if (successCallback === null) { | 69 if (successCallback === null) { |
| 70 if (errorCallback === null) { | 70 if (errorCallback === null) { |
| 71 _ptr.removeRecursively(); | 71 _ptr.removeRecursively(); |
| 72 return; | 72 return; |
| 73 } | 73 } |
| 74 } else { | 74 } else { |
| 75 if (errorCallback === null) { | 75 if (errorCallback === null) { |
| 76 _ptr.removeRecursively(LevelDom.unwrap(successCallback)); | 76 _ptr.removeRecursively(LevelDom.unwrap(successCallback)); |
| 77 return; | 77 return; |
| 78 } else { | 78 } else { |
| 79 _ptr.removeRecursively(LevelDom.unwrap(successCallback), LevelDom.unwrap
(errorCallback)); | 79 _ptr.removeRecursively(LevelDom.unwrap(successCallback), LevelDom.unwrap
(errorCallback)); |
| 80 return; | 80 return; |
| 81 } | 81 } |
| 82 } | 82 } |
| 83 throw "Incorrect number or type of arguments"; | 83 throw "Incorrect number or type of arguments"; |
| 84 } | 84 } |
| 85 } | 85 } |
| OLD | NEW |