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

Unified 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, 10 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 side-by-side diff with in-line comments
Download patch
Index: client/html/generated/html/dartium/Entry.dart
diff --git a/client/html/generated/html/dartium/Entry.dart b/client/html/generated/html/dartium/Entry.dart
new file mode 100644
index 0000000000000000000000000000000000000000..89a196e893852f34ce7eb4b7eb714c9a1df98a06
--- /dev/null
+++ b/client/html/generated/html/dartium/Entry.dart
@@ -0,0 +1,110 @@
+
+class _EntryImpl extends _DOMTypeBase implements Entry {
+ _EntryImpl._wrap(ptr) : super._wrap(ptr);
+
+ DOMFileSystem get filesystem() => _wrap(_ptr.filesystem);
+
+ String get fullPath() => _wrap(_ptr.fullPath);
+
+ bool get isDirectory() => _wrap(_ptr.isDirectory);
+
+ bool get isFile() => _wrap(_ptr.isFile);
+
+ String get name() => _wrap(_ptr.name);
+
+ void copyTo(DirectoryEntry parent, [String name = null, EntryCallback successCallback = null, ErrorCallback errorCallback = null]) {
+ if (name === null) {
+ if (successCallback === null) {
+ if (errorCallback === null) {
+ _ptr.copyTo(_unwrap(parent));
+ return;
+ }
+ }
+ } else {
+ if (successCallback === null) {
+ if (errorCallback === null) {
+ _ptr.copyTo(_unwrap(parent), _unwrap(name));
+ return;
+ }
+ } else {
+ if (errorCallback === null) {
+ _ptr.copyTo(_unwrap(parent), _unwrap(name), _unwrap(successCallback));
+ return;
+ } else {
+ _ptr.copyTo(_unwrap(parent), _unwrap(name), _unwrap(successCallback), _unwrap(errorCallback));
+ return;
+ }
+ }
+ }
+ throw "Incorrect number or type of arguments";
+ }
+
+ void getMetadata(MetadataCallback successCallback, [ErrorCallback errorCallback = null]) {
+ if (errorCallback === null) {
+ _ptr.getMetadata(_unwrap(successCallback));
+ return;
+ } else {
+ _ptr.getMetadata(_unwrap(successCallback), _unwrap(errorCallback));
+ return;
+ }
+ }
+
+ void getParent([EntryCallback successCallback = null, ErrorCallback errorCallback = null]) {
+ if (successCallback === null) {
+ if (errorCallback === null) {
+ _ptr.getParent();
+ return;
+ }
+ } else {
+ if (errorCallback === null) {
+ _ptr.getParent(_unwrap(successCallback));
+ return;
+ } else {
+ _ptr.getParent(_unwrap(successCallback), _unwrap(errorCallback));
+ return;
+ }
+ }
+ throw "Incorrect number or type of arguments";
+ }
+
+ void moveTo(DirectoryEntry parent, [String name = null, EntryCallback successCallback = null, ErrorCallback errorCallback = null]) {
+ if (name === null) {
+ if (successCallback === null) {
+ if (errorCallback === null) {
+ _ptr.moveTo(_unwrap(parent));
+ return;
+ }
+ }
+ } else {
+ if (successCallback === null) {
+ if (errorCallback === null) {
+ _ptr.moveTo(_unwrap(parent), _unwrap(name));
+ return;
+ }
+ } else {
+ if (errorCallback === null) {
+ _ptr.moveTo(_unwrap(parent), _unwrap(name), _unwrap(successCallback));
+ return;
+ } else {
+ _ptr.moveTo(_unwrap(parent), _unwrap(name), _unwrap(successCallback), _unwrap(errorCallback));
+ return;
+ }
+ }
+ }
+ throw "Incorrect number or type of arguments";
+ }
+
+ void remove(VoidCallback successCallback, [ErrorCallback errorCallback = null]) {
+ if (errorCallback === null) {
+ _ptr.remove(_unwrap(successCallback));
+ return;
+ } else {
+ _ptr.remove(_unwrap(successCallback), _unwrap(errorCallback));
+ return;
+ }
+ }
+
+ String toURL() {
+ return _wrap(_ptr.toURL());
+ }
+}

Powered by Google App Engine
This is Rietveld 408576698