| OLD | NEW |
| 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 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 | 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. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 // WARNING: Do not edit - generated code. | 5 // WARNING: Do not edit - generated code. |
| 6 | 6 |
| 7 class _WorkerContextWrappingImplementation extends DOMWrapperBase implements Wor
kerContext { | 7 class _WorkerContextWrappingImplementation extends DOMWrapperBase implements Wor
kerContext { |
| 8 _WorkerContextWrappingImplementation() : super() {} | 8 _WorkerContextWrappingImplementation() : super() {} |
| 9 | 9 |
| 10 static create__WorkerContextWrappingImplementation() native { | 10 static create__WorkerContextWrappingImplementation() native { |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 return _dispatchEvent(this, evt); | 69 return _dispatchEvent(this, evt); |
| 70 } | 70 } |
| 71 static bool _dispatchEvent(receiver, evt) native; | 71 static bool _dispatchEvent(receiver, evt) native; |
| 72 | 72 |
| 73 void importScripts() { | 73 void importScripts() { |
| 74 _importScripts(this); | 74 _importScripts(this); |
| 75 return; | 75 return; |
| 76 } | 76 } |
| 77 static void _importScripts(receiver) native; | 77 static void _importScripts(receiver) native; |
| 78 | 78 |
| 79 Database openDatabase(String name, String version, String displayName, int est
imatedSize, [DatabaseCallback creationCallback = null]) { |
| 80 if (creationCallback === null) { |
| 81 return _openDatabase(this, name, version, displayName, estimatedSize); |
| 82 } else { |
| 83 return _openDatabase_2(this, name, version, displayName, estimatedSize, cr
eationCallback); |
| 84 } |
| 85 } |
| 86 static Database _openDatabase(receiver, name, version, displayName, estimatedS
ize) native; |
| 87 static Database _openDatabase_2(receiver, name, version, displayName, estimate
dSize, creationCallback) native; |
| 88 |
| 89 DatabaseSync openDatabaseSync(String name, String version, String displayName,
int estimatedSize, [DatabaseCallback creationCallback = null]) { |
| 90 if (creationCallback === null) { |
| 91 return _openDatabaseSync(this, name, version, displayName, estimatedSize); |
| 92 } else { |
| 93 return _openDatabaseSync_2(this, name, version, displayName, estimatedSize
, creationCallback); |
| 94 } |
| 95 } |
| 96 static DatabaseSync _openDatabaseSync(receiver, name, version, displayName, es
timatedSize) native; |
| 97 static DatabaseSync _openDatabaseSync_2(receiver, name, version, displayName,
estimatedSize, creationCallback) native; |
| 98 |
| 79 void removeEventListener(String type, EventListener listener, [bool useCapture
= null]) { | 99 void removeEventListener(String type, EventListener listener, [bool useCapture
= null]) { |
| 80 if (useCapture === null) { | 100 if (useCapture === null) { |
| 81 _removeEventListener(this, type, listener); | 101 _removeEventListener(this, type, listener); |
| 82 return; | 102 return; |
| 83 } else { | 103 } else { |
| 84 _removeEventListener_2(this, type, listener, useCapture); | 104 _removeEventListener_2(this, type, listener, useCapture); |
| 85 return; | 105 return; |
| 86 } | 106 } |
| 87 } | 107 } |
| 88 static void _removeEventListener(receiver, type, listener) native; | 108 static void _removeEventListener(receiver, type, listener) native; |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 145 } | 165 } |
| 146 } | 166 } |
| 147 throw "Incorrect number or type of arguments"; | 167 throw "Incorrect number or type of arguments"; |
| 148 } | 168 } |
| 149 static void _webkitResolveLocalFileSystemURL(receiver, url) native; | 169 static void _webkitResolveLocalFileSystemURL(receiver, url) native; |
| 150 static void _webkitResolveLocalFileSystemURL_2(receiver, url, successCallback)
native; | 170 static void _webkitResolveLocalFileSystemURL_2(receiver, url, successCallback)
native; |
| 151 static void _webkitResolveLocalFileSystemURL_3(receiver, url, successCallback,
errorCallback) native; | 171 static void _webkitResolveLocalFileSystemURL_3(receiver, url, successCallback,
errorCallback) native; |
| 152 | 172 |
| 153 String get typeName() { return "WorkerContext"; } | 173 String get typeName() { return "WorkerContext"; } |
| 154 } | 174 } |
| OLD | NEW |