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