Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(247)

Side by Side Diff: client/html/generated/html/dartium/Entry.dart

Issue 9537001: Generate dart:html bindings for Dartium as well as Frog. All unittests now pass (or are disabled fo… (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1
2 class _EntryImpl extends _DOMTypeBase implements Entry {
3 _EntryImpl._wrap(ptr) : super._wrap(ptr);
4
5 DOMFileSystem get filesystem() => _wrap(_ptr.filesystem);
6
7 String get fullPath() => _wrap(_ptr.fullPath);
8
9 bool get isDirectory() => _wrap(_ptr.isDirectory);
10
11 bool get isFile() => _wrap(_ptr.isFile);
12
13 String get name() => _wrap(_ptr.name);
14
15 void copyTo(DirectoryEntry parent, [String name = null, EntryCallback successC allback = null, ErrorCallback errorCallback = null]) {
16 if (name === null) {
17 if (successCallback === null) {
18 if (errorCallback === null) {
19 _ptr.copyTo(_unwrap(parent));
20 return;
21 }
22 }
23 } else {
24 if (successCallback === null) {
25 if (errorCallback === null) {
26 _ptr.copyTo(_unwrap(parent), _unwrap(name));
27 return;
28 }
29 } else {
30 if (errorCallback === null) {
31 _ptr.copyTo(_unwrap(parent), _unwrap(name), _unwrap(successCallback));
32 return;
33 } else {
34 _ptr.copyTo(_unwrap(parent), _unwrap(name), _unwrap(successCallback), _unwrap(errorCallback));
35 return;
36 }
37 }
38 }
39 throw "Incorrect number or type of arguments";
40 }
41
42 void getMetadata(MetadataCallback successCallback, [ErrorCallback errorCallbac k = null]) {
43 if (errorCallback === null) {
44 _ptr.getMetadata(_unwrap(successCallback));
45 return;
46 } else {
47 _ptr.getMetadata(_unwrap(successCallback), _unwrap(errorCallback));
48 return;
49 }
50 }
51
52 void getParent([EntryCallback successCallback = null, ErrorCallback errorCallb ack = null]) {
53 if (successCallback === null) {
54 if (errorCallback === null) {
55 _ptr.getParent();
56 return;
57 }
58 } else {
59 if (errorCallback === null) {
60 _ptr.getParent(_unwrap(successCallback));
61 return;
62 } else {
63 _ptr.getParent(_unwrap(successCallback), _unwrap(errorCallback));
64 return;
65 }
66 }
67 throw "Incorrect number or type of arguments";
68 }
69
70 void moveTo(DirectoryEntry parent, [String name = null, EntryCallback successC allback = null, ErrorCallback errorCallback = null]) {
71 if (name === null) {
72 if (successCallback === null) {
73 if (errorCallback === null) {
74 _ptr.moveTo(_unwrap(parent));
75 return;
76 }
77 }
78 } else {
79 if (successCallback === null) {
80 if (errorCallback === null) {
81 _ptr.moveTo(_unwrap(parent), _unwrap(name));
82 return;
83 }
84 } else {
85 if (errorCallback === null) {
86 _ptr.moveTo(_unwrap(parent), _unwrap(name), _unwrap(successCallback));
87 return;
88 } else {
89 _ptr.moveTo(_unwrap(parent), _unwrap(name), _unwrap(successCallback), _unwrap(errorCallback));
90 return;
91 }
92 }
93 }
94 throw "Incorrect number or type of arguments";
95 }
96
97 void remove(VoidCallback successCallback, [ErrorCallback errorCallback = null] ) {
98 if (errorCallback === null) {
99 _ptr.remove(_unwrap(successCallback));
100 return;
101 } else {
102 _ptr.remove(_unwrap(successCallback), _unwrap(errorCallback));
103 return;
104 }
105 }
106
107 String toURL() {
108 return _wrap(_ptr.toURL());
109 }
110 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698