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

Unified Diff: client/html/generated/html/dartium/WorkerContext.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/WorkerContext.dart
diff --git a/client/html/generated/html/dartium/WorkerContext.dart b/client/html/generated/html/dartium/WorkerContext.dart
new file mode 100644
index 0000000000000000000000000000000000000000..589e64defd7ceee246c4dcc730ca33da9ee77930
--- /dev/null
+++ b/client/html/generated/html/dartium/WorkerContext.dart
@@ -0,0 +1,130 @@
+
+class _WorkerContextImpl extends _DOMTypeBase implements WorkerContext {
+ _WorkerContextImpl._wrap(ptr) : super._wrap(ptr);
+
+ WorkerLocation get location() => _wrap(_ptr.location);
+
+ WorkerNavigator get navigator() => _wrap(_ptr.navigator);
+
+ EventListener get onerror() => _wrap(_ptr.onerror);
+
+ void set onerror(EventListener value) { _ptr.onerror = _unwrap(value); }
+
+ WorkerContext get self() => _wrap(_ptr.self);
+
+ IDBFactory get webkitIndexedDB() => _wrap(_ptr.webkitIndexedDB);
+
+ NotificationCenter get webkitNotifications() => _wrap(_ptr.webkitNotifications);
+
+ void addEventListener(String type, EventListener listener, [bool useCapture = null]) {
+ if (useCapture === null) {
+ _ptr.addEventListener(_unwrap(type), _unwrap(listener));
+ return;
+ } else {
+ _ptr.addEventListener(_unwrap(type), _unwrap(listener), _unwrap(useCapture));
+ return;
+ }
+ }
+
+ void clearInterval(int handle) {
+ _ptr.clearInterval(_unwrap(handle));
+ return;
+ }
+
+ void clearTimeout(int handle) {
+ _ptr.clearTimeout(_unwrap(handle));
+ return;
+ }
+
+ void close() {
+ _ptr.close();
+ return;
+ }
+
+ bool dispatchEvent(Event evt) {
+ return _wrap(_ptr.dispatchEvent(_unwrap(evt)));
+ }
+
+ void importScripts() {
+ _ptr.importScripts();
+ return;
+ }
+
+ Database openDatabase(String name, String version, String displayName, int estimatedSize, [DatabaseCallback creationCallback = null]) {
+ if (creationCallback === null) {
+ return _wrap(_ptr.openDatabase(_unwrap(name), _unwrap(version), _unwrap(displayName), _unwrap(estimatedSize)));
+ } else {
+ return _wrap(_ptr.openDatabase(_unwrap(name), _unwrap(version), _unwrap(displayName), _unwrap(estimatedSize), _unwrap(creationCallback)));
+ }
+ }
+
+ DatabaseSync openDatabaseSync(String name, String version, String displayName, int estimatedSize, [DatabaseCallback creationCallback = null]) {
+ if (creationCallback === null) {
+ return _wrap(_ptr.openDatabaseSync(_unwrap(name), _unwrap(version), _unwrap(displayName), _unwrap(estimatedSize)));
+ } else {
+ return _wrap(_ptr.openDatabaseSync(_unwrap(name), _unwrap(version), _unwrap(displayName), _unwrap(estimatedSize), _unwrap(creationCallback)));
+ }
+ }
+
+ void removeEventListener(String type, EventListener listener, [bool useCapture = null]) {
+ if (useCapture === null) {
+ _ptr.removeEventListener(_unwrap(type), _unwrap(listener));
+ return;
+ } else {
+ _ptr.removeEventListener(_unwrap(type), _unwrap(listener), _unwrap(useCapture));
+ return;
+ }
+ }
+
+ int setInterval(TimeoutHandler handler, int timeout) {
+ return _wrap(_ptr.setInterval(_unwrap(handler), _unwrap(timeout)));
+ }
+
+ int setTimeout(TimeoutHandler handler, int timeout) {
+ return _wrap(_ptr.setTimeout(_unwrap(handler), _unwrap(timeout)));
+ }
+
+ void webkitRequestFileSystem(int type, int size, [FileSystemCallback successCallback = null, ErrorCallback errorCallback = null]) {
+ if (successCallback === null) {
+ if (errorCallback === null) {
+ _ptr.webkitRequestFileSystem(_unwrap(type), _unwrap(size));
+ return;
+ }
+ } else {
+ if (errorCallback === null) {
+ _ptr.webkitRequestFileSystem(_unwrap(type), _unwrap(size), _unwrap(successCallback));
+ return;
+ } else {
+ _ptr.webkitRequestFileSystem(_unwrap(type), _unwrap(size), _unwrap(successCallback), _unwrap(errorCallback));
+ return;
+ }
+ }
+ throw "Incorrect number or type of arguments";
+ }
+
+ DOMFileSystemSync webkitRequestFileSystemSync(int type, int size) {
+ return _wrap(_ptr.webkitRequestFileSystemSync(_unwrap(type), _unwrap(size)));
+ }
+
+ EntrySync webkitResolveLocalFileSystemSyncURL(String url) {
+ return _wrap(_ptr.webkitResolveLocalFileSystemSyncURL(_unwrap(url)));
+ }
+
+ void webkitResolveLocalFileSystemURL(String url, [EntryCallback successCallback = null, ErrorCallback errorCallback = null]) {
+ if (successCallback === null) {
+ if (errorCallback === null) {
+ _ptr.webkitResolveLocalFileSystemURL(_unwrap(url));
+ return;
+ }
+ } else {
+ if (errorCallback === null) {
+ _ptr.webkitResolveLocalFileSystemURL(_unwrap(url), _unwrap(successCallback));
+ return;
+ } else {
+ _ptr.webkitResolveLocalFileSystemURL(_unwrap(url), _unwrap(successCallback), _unwrap(errorCallback));
+ return;
+ }
+ }
+ throw "Incorrect number or type of arguments";
+ }
+}

Powered by Google App Engine
This is Rietveld 408576698