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 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
91 int setInterval(TimeoutHandler handler, int timeout) { | 91 int setInterval(TimeoutHandler handler, int timeout) { |
92 return _setInterval(this, handler, timeout); | 92 return _setInterval(this, handler, timeout); |
93 } | 93 } |
94 static int _setInterval(receiver, handler, timeout) native; | 94 static int _setInterval(receiver, handler, timeout) native; |
95 | 95 |
96 int setTimeout(TimeoutHandler handler, int timeout) { | 96 int setTimeout(TimeoutHandler handler, int timeout) { |
97 return _setTimeout(this, handler, timeout); | 97 return _setTimeout(this, handler, timeout); |
98 } | 98 } |
99 static int _setTimeout(receiver, handler, timeout) native; | 99 static int _setTimeout(receiver, handler, timeout) native; |
100 | 100 |
| 101 void webkitRequestFileSystem(int type, int size, [FileSystemCallback successCa
llback = null, ErrorCallback errorCallback = null]) { |
| 102 if (successCallback === null) { |
| 103 if (errorCallback === null) { |
| 104 _webkitRequestFileSystem(this, type, size); |
| 105 return; |
| 106 } |
| 107 } else { |
| 108 if (errorCallback === null) { |
| 109 _webkitRequestFileSystem_2(this, type, size, successCallback); |
| 110 return; |
| 111 } else { |
| 112 _webkitRequestFileSystem_3(this, type, size, successCallback, errorCallb
ack); |
| 113 return; |
| 114 } |
| 115 } |
| 116 throw "Incorrect number or type of arguments"; |
| 117 } |
| 118 static void _webkitRequestFileSystem(receiver, type, size) native; |
| 119 static void _webkitRequestFileSystem_2(receiver, type, size, successCallback)
native; |
| 120 static void _webkitRequestFileSystem_3(receiver, type, size, successCallback,
errorCallback) native; |
| 121 |
| 122 DOMFileSystemSync webkitRequestFileSystemSync(int type, int size) { |
| 123 return _webkitRequestFileSystemSync(this, type, size); |
| 124 } |
| 125 static DOMFileSystemSync _webkitRequestFileSystemSync(receiver, type, size) na
tive; |
| 126 |
| 127 EntrySync webkitResolveLocalFileSystemSyncURL(String url) { |
| 128 return _webkitResolveLocalFileSystemSyncURL(this, url); |
| 129 } |
| 130 static EntrySync _webkitResolveLocalFileSystemSyncURL(receiver, url) native; |
| 131 |
| 132 void webkitResolveLocalFileSystemURL(String url, [EntryCallback successCallbac
k = null, ErrorCallback errorCallback = null]) { |
| 133 if (successCallback === null) { |
| 134 if (errorCallback === null) { |
| 135 _webkitResolveLocalFileSystemURL(this, url); |
| 136 return; |
| 137 } |
| 138 } else { |
| 139 if (errorCallback === null) { |
| 140 _webkitResolveLocalFileSystemURL_2(this, url, successCallback); |
| 141 return; |
| 142 } else { |
| 143 _webkitResolveLocalFileSystemURL_3(this, url, successCallback, errorCall
back); |
| 144 return; |
| 145 } |
| 146 } |
| 147 throw "Incorrect number or type of arguments"; |
| 148 } |
| 149 static void _webkitResolveLocalFileSystemURL(receiver, url) native; |
| 150 static void _webkitResolveLocalFileSystemURL_2(receiver, url, successCallback)
native; |
| 151 static void _webkitResolveLocalFileSystemURL_3(receiver, url, successCallback,
errorCallback) native; |
| 152 |
101 String get typeName() { return "WorkerContext"; } | 153 String get typeName() { return "WorkerContext"; } |
102 } | 154 } |
OLD | NEW |