| 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 _WorkerContextWrappingImplementation extends DOMWrapperBase implements Wor
kerContext { | |
| 8 _WorkerContextWrappingImplementation() : super() {} | |
| 9 | |
| 10 static create__WorkerContextWrappingImplementation() native { | |
| 11 return new _WorkerContextWrappingImplementation(); | |
| 12 } | |
| 13 | |
| 14 WorkerLocation get location() { return _get_location(this); } | |
| 15 static WorkerLocation _get_location(var _this) native; | |
| 16 | |
| 17 WorkerNavigator get navigator() { return _get_navigator(this); } | |
| 18 static WorkerNavigator _get_navigator(var _this) native; | |
| 19 | |
| 20 EventListener get onerror() { return _get_onerror(this); } | |
| 21 static EventListener _get_onerror(var _this) native; | |
| 22 | |
| 23 void set onerror(EventListener value) { _set_onerror(this, value); } | |
| 24 static void _set_onerror(var _this, EventListener value) native; | |
| 25 | |
| 26 WorkerContext get self() { return _get_self(this); } | |
| 27 static WorkerContext _get_self(var _this) native; | |
| 28 | |
| 29 IDBFactory get webkitIndexedDB() { return _get_webkitIndexedDB(this); } | |
| 30 static IDBFactory _get_webkitIndexedDB(var _this) native; | |
| 31 | |
| 32 NotificationCenter get webkitNotifications() { return _get_webkitNotifications
(this); } | |
| 33 static NotificationCenter _get_webkitNotifications(var _this) native; | |
| 34 | |
| 35 void addEventListener(String type, EventListener listener, [bool useCapture =
null]) { | |
| 36 if (useCapture === null) { | |
| 37 _addEventListener(this, type, listener); | |
| 38 return; | |
| 39 } else { | |
| 40 _addEventListener_2(this, type, listener, useCapture); | |
| 41 return; | |
| 42 } | |
| 43 } | |
| 44 static void _addEventListener(receiver, type, listener) native; | |
| 45 static void _addEventListener_2(receiver, type, listener, useCapture) native; | |
| 46 | |
| 47 void clearInterval(int handle) { | |
| 48 _clearInterval(this, handle); | |
| 49 return; | |
| 50 } | |
| 51 static void _clearInterval(receiver, handle) native; | |
| 52 | |
| 53 void clearTimeout(int handle) { | |
| 54 _clearTimeout(this, handle); | |
| 55 return; | |
| 56 } | |
| 57 static void _clearTimeout(receiver, handle) native; | |
| 58 | |
| 59 void close() { | |
| 60 _close(this); | |
| 61 return; | |
| 62 } | |
| 63 static void _close(receiver) native; | |
| 64 | |
| 65 bool dispatchEvent(Event evt) { | |
| 66 return _dispatchEvent(this, evt); | |
| 67 } | |
| 68 static bool _dispatchEvent(receiver, evt) native; | |
| 69 | |
| 70 void importScripts() { | |
| 71 _importScripts(this); | |
| 72 return; | |
| 73 } | |
| 74 static void _importScripts(receiver) native; | |
| 75 | |
| 76 Database openDatabase(String name, String version, String displayName, int est
imatedSize, [DatabaseCallback creationCallback = null]) { | |
| 77 return _openDatabase(this, name, version, displayName, estimatedSize, creati
onCallback); | |
| 78 } | |
| 79 static Database _openDatabase(receiver, name, version, displayName, estimatedS
ize, creationCallback) native; | |
| 80 | |
| 81 DatabaseSync openDatabaseSync(String name, String version, String displayName,
int estimatedSize, [DatabaseCallback creationCallback = null]) { | |
| 82 return _openDatabaseSync(this, name, version, displayName, estimatedSize, cr
eationCallback); | |
| 83 } | |
| 84 static DatabaseSync _openDatabaseSync(receiver, name, version, displayName, es
timatedSize, creationCallback) native; | |
| 85 | |
| 86 void removeEventListener(String type, EventListener listener, [bool useCapture
= null]) { | |
| 87 if (useCapture === null) { | |
| 88 _removeEventListener(this, type, listener); | |
| 89 return; | |
| 90 } else { | |
| 91 _removeEventListener_2(this, type, listener, useCapture); | |
| 92 return; | |
| 93 } | |
| 94 } | |
| 95 static void _removeEventListener(receiver, type, listener) native; | |
| 96 static void _removeEventListener_2(receiver, type, listener, useCapture) nativ
e; | |
| 97 | |
| 98 int setInterval(TimeoutHandler handler, int timeout) { | |
| 99 return _setInterval(this, handler, timeout); | |
| 100 } | |
| 101 static int _setInterval(receiver, handler, timeout) native; | |
| 102 | |
| 103 int setTimeout(TimeoutHandler handler, int timeout) { | |
| 104 return _setTimeout(this, handler, timeout); | |
| 105 } | |
| 106 static int _setTimeout(receiver, handler, timeout) native; | |
| 107 | |
| 108 void webkitRequestFileSystem(int type, int size, [FileSystemCallback successCa
llback = null, ErrorCallback errorCallback = null]) { | |
| 109 _webkitRequestFileSystem(this, type, size, successCallback, errorCallback); | |
| 110 return; | |
| 111 } | |
| 112 static void _webkitRequestFileSystem(receiver, type, size, successCallback, er
rorCallback) native; | |
| 113 | |
| 114 DOMFileSystemSync webkitRequestFileSystemSync(int type, int size) { | |
| 115 return _webkitRequestFileSystemSync(this, type, size); | |
| 116 } | |
| 117 static DOMFileSystemSync _webkitRequestFileSystemSync(receiver, type, size) na
tive; | |
| 118 | |
| 119 EntrySync webkitResolveLocalFileSystemSyncURL(String url) { | |
| 120 return _webkitResolveLocalFileSystemSyncURL(this, url); | |
| 121 } | |
| 122 static EntrySync _webkitResolveLocalFileSystemSyncURL(receiver, url) native; | |
| 123 | |
| 124 void webkitResolveLocalFileSystemURL(String url, [EntryCallback successCallbac
k = null, ErrorCallback errorCallback = null]) { | |
| 125 _webkitResolveLocalFileSystemURL(this, url, successCallback, errorCallback); | |
| 126 return; | |
| 127 } | |
| 128 static void _webkitResolveLocalFileSystemURL(receiver, url, successCallback, e
rrorCallback) native; | |
| 129 | |
| 130 String get typeName() { return "WorkerContext"; } | |
| 131 } | |
| OLD | NEW |