| 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 _EntryWrappingImplementation extends DOMWrapperBase implements Entry { | |
| 8 _EntryWrappingImplementation() : super() {} | |
| 9 | |
| 10 static create__EntryWrappingImplementation() native { | |
| 11 return new _EntryWrappingImplementation(); | |
| 12 } | |
| 13 | |
| 14 DOMFileSystem get filesystem() { return _get_filesystem(this); } | |
| 15 static DOMFileSystem _get_filesystem(var _this) native; | |
| 16 | |
| 17 String get fullPath() { return _get_fullPath(this); } | |
| 18 static String _get_fullPath(var _this) native; | |
| 19 | |
| 20 bool get isDirectory() { return _get_isDirectory(this); } | |
| 21 static bool _get_isDirectory(var _this) native; | |
| 22 | |
| 23 bool get isFile() { return _get_isFile(this); } | |
| 24 static bool _get_isFile(var _this) native; | |
| 25 | |
| 26 String get name() { return _get_name(this); } | |
| 27 static String _get_name(var _this) native; | |
| 28 | |
| 29 void copyTo(DirectoryEntry parent, [String name = null, EntryCallback successC
allback = null, ErrorCallback errorCallback = null]) { | |
| 30 if (name === null) { | |
| 31 if (successCallback === null) { | |
| 32 if (errorCallback === null) { | |
| 33 _copyTo(this, parent); | |
| 34 return; | |
| 35 } | |
| 36 } | |
| 37 } else { | |
| 38 _copyTo_2(this, parent, name, successCallback, errorCallback); | |
| 39 return; | |
| 40 } | |
| 41 throw "Incorrect number or type of arguments"; | |
| 42 } | |
| 43 static void _copyTo(receiver, parent) native; | |
| 44 static void _copyTo_2(receiver, parent, name, successCallback, errorCallback)
native; | |
| 45 | |
| 46 void getMetadata(MetadataCallback successCallback, [ErrorCallback errorCallbac
k = null]) { | |
| 47 _getMetadata(this, successCallback, errorCallback); | |
| 48 return; | |
| 49 } | |
| 50 static void _getMetadata(receiver, successCallback, errorCallback) native; | |
| 51 | |
| 52 void getParent([EntryCallback successCallback = null, ErrorCallback errorCallb
ack = null]) { | |
| 53 _getParent(this, successCallback, errorCallback); | |
| 54 return; | |
| 55 } | |
| 56 static void _getParent(receiver, successCallback, errorCallback) native; | |
| 57 | |
| 58 void moveTo(DirectoryEntry parent, [String name = null, EntryCallback successC
allback = null, ErrorCallback errorCallback = null]) { | |
| 59 if (name === null) { | |
| 60 if (successCallback === null) { | |
| 61 if (errorCallback === null) { | |
| 62 _moveTo(this, parent); | |
| 63 return; | |
| 64 } | |
| 65 } | |
| 66 } else { | |
| 67 _moveTo_2(this, parent, name, successCallback, errorCallback); | |
| 68 return; | |
| 69 } | |
| 70 throw "Incorrect number or type of arguments"; | |
| 71 } | |
| 72 static void _moveTo(receiver, parent) native; | |
| 73 static void _moveTo_2(receiver, parent, name, successCallback, errorCallback)
native; | |
| 74 | |
| 75 void remove(VoidCallback successCallback, [ErrorCallback errorCallback = null]
) { | |
| 76 _remove(this, successCallback, errorCallback); | |
| 77 return; | |
| 78 } | |
| 79 static void _remove(receiver, successCallback, errorCallback) native; | |
| 80 | |
| 81 String toURL() { | |
| 82 return _toURL(this); | |
| 83 } | |
| 84 static String _toURL(receiver) native; | |
| 85 | |
| 86 String get typeName() { return "Entry"; } | |
| 87 } | |
| OLD | NEW |