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._wrap(ptr) : super._wrap(ptr) {} | |
9 | |
10 DOMFileSystem get filesystem() { return LevelDom.wrapDOMFileSystem(_ptr.filesy
stem); } | |
11 | |
12 String get fullPath() { return _ptr.fullPath; } | |
13 | |
14 bool get isDirectory() { return _ptr.isDirectory; } | |
15 | |
16 bool get isFile() { return _ptr.isFile; } | |
17 | |
18 String get name() { return _ptr.name; } | |
19 | |
20 void copyTo(DirectoryEntry parent, [String name, EntryCallback successCallback
, ErrorCallback errorCallback]) { | |
21 if (name === null) { | |
22 if (successCallback === null) { | |
23 if (errorCallback === null) { | |
24 _ptr.copyTo(LevelDom.unwrap(parent)); | |
25 return; | |
26 } | |
27 } | |
28 } else { | |
29 if (successCallback === null) { | |
30 if (errorCallback === null) { | |
31 _ptr.copyTo(LevelDom.unwrap(parent), name); | |
32 return; | |
33 } | |
34 } else { | |
35 if (errorCallback === null) { | |
36 _ptr.copyTo(LevelDom.unwrap(parent), name, successCallback); | |
37 return; | |
38 } else { | |
39 _ptr.copyTo(LevelDom.unwrap(parent), name, successCallback, LevelDom.u
nwrap(errorCallback)); | |
40 return; | |
41 } | |
42 } | |
43 } | |
44 throw "Incorrect number or type of arguments"; | |
45 } | |
46 | |
47 void getMetadata([MetadataCallback successCallback, ErrorCallback errorCallbac
k]) { | |
48 if (successCallback === null) { | |
49 if (errorCallback === null) { | |
50 _ptr.getMetadata(); | |
51 return; | |
52 } | |
53 } else { | |
54 if (errorCallback === null) { | |
55 _ptr.getMetadata(successCallback); | |
56 return; | |
57 } else { | |
58 _ptr.getMetadata(successCallback, LevelDom.unwrap(errorCallback)); | |
59 return; | |
60 } | |
61 } | |
62 throw "Incorrect number or type of arguments"; | |
63 } | |
64 | |
65 void getParent([EntryCallback successCallback, ErrorCallback errorCallback]) { | |
66 if (successCallback === null) { | |
67 if (errorCallback === null) { | |
68 _ptr.getParent(); | |
69 return; | |
70 } | |
71 } else { | |
72 if (errorCallback === null) { | |
73 _ptr.getParent(successCallback); | |
74 return; | |
75 } else { | |
76 _ptr.getParent(successCallback, LevelDom.unwrap(errorCallback)); | |
77 return; | |
78 } | |
79 } | |
80 throw "Incorrect number or type of arguments"; | |
81 } | |
82 | |
83 void moveTo(DirectoryEntry parent, [String name, EntryCallback successCallback
, ErrorCallback errorCallback]) { | |
84 if (name === null) { | |
85 if (successCallback === null) { | |
86 if (errorCallback === null) { | |
87 _ptr.moveTo(LevelDom.unwrap(parent)); | |
88 return; | |
89 } | |
90 } | |
91 } else { | |
92 if (successCallback === null) { | |
93 if (errorCallback === null) { | |
94 _ptr.moveTo(LevelDom.unwrap(parent), name); | |
95 return; | |
96 } | |
97 } else { | |
98 if (errorCallback === null) { | |
99 _ptr.moveTo(LevelDom.unwrap(parent), name, successCallback); | |
100 return; | |
101 } else { | |
102 _ptr.moveTo(LevelDom.unwrap(parent), name, successCallback, LevelDom.u
nwrap(errorCallback)); | |
103 return; | |
104 } | |
105 } | |
106 } | |
107 throw "Incorrect number or type of arguments"; | |
108 } | |
109 | |
110 void remove([VoidCallback successCallback, ErrorCallback errorCallback]) { | |
111 if (successCallback === null) { | |
112 if (errorCallback === null) { | |
113 _ptr.remove(); | |
114 return; | |
115 } | |
116 } else { | |
117 if (errorCallback === null) { | |
118 _ptr.remove(LevelDom.unwrap(successCallback)); | |
119 return; | |
120 } else { | |
121 _ptr.remove(LevelDom.unwrap(successCallback), LevelDom.unwrap(errorCallb
ack)); | |
122 return; | |
123 } | |
124 } | |
125 throw "Incorrect number or type of arguments"; | |
126 } | |
127 | |
128 String toURL() { | |
129 return _ptr.toURL(); | |
130 } | |
131 } | |
OLD | NEW |