| 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 // DO NOT EDIT | 5 // DO NOT EDIT |
| 6 // Auto-generated Dart DOM implementation. | 6 // Auto-generated Dart DOM implementation. |
| 7 | 7 |
| 8 | 8 |
| 9 function native__AbstractWorkerWrappingImplementation__get__AbstractWorker_onerr
or(_this) { | 9 function native__AbstractWorkerWrappingImplementation__get__AbstractWorker_onerr
or(_this) { |
| 10 try { | 10 try { |
| (...skipping 26183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 26194 } | 26194 } |
| 26195 | 26195 |
| 26196 function native__WorkerContextWrappingImplementation__setInterval(_this, callbac
k, timeout) { | 26196 function native__WorkerContextWrappingImplementation__setInterval(_this, callbac
k, timeout) { |
| 26197 return __dom_native_TimeoutHander_method(_this, callback, timeout, 'setInterva
l'); | 26197 return __dom_native_TimeoutHander_method(_this, callback, timeout, 'setInterva
l'); |
| 26198 } | 26198 } |
| 26199 | 26199 |
| 26200 function native__WorkerContextWrappingImplementation__setTimeout(_this, callback
, timeout) { | 26200 function native__WorkerContextWrappingImplementation__setTimeout(_this, callback
, timeout) { |
| 26201 return __dom_native_TimeoutHander_method(_this, callback, timeout, 'setTimeout
'); | 26201 return __dom_native_TimeoutHander_method(_this, callback, timeout, 'setTimeout
'); |
| 26202 } | 26202 } |
| 26203 | 26203 |
| 26204 function native__DOMWindowWrappingImplementation__createFileReader(_this) { | |
| 26205 try { | |
| 26206 return __dom_wrap(new FileReader()); | |
| 26207 } catch (e) { | |
| 26208 throw __dom_wrap_exception(e); | |
| 26209 } | |
| 26210 } | |
| 26211 | |
| 26212 function native__DOMWindowWrappingImplementation__createWebKitCSSMatrix(_this) { | |
| 26213 try { | |
| 26214 return __dom_wrap(new WebKitCSSMatrix()); | |
| 26215 } catch (e) { | |
| 26216 throw __dom_wrap_exception(e); | |
| 26217 } | |
| 26218 } | |
| 26219 | |
| 26220 function native__DOMWindowWrappingImplementation__createWebKitCSSMatrix_2(_this,
cssValue) { | |
| 26221 try { | |
| 26222 return __dom_wrap(new WebKitCSSMatrix(__dom_unwrap(cssValue))); | |
| 26223 } catch (e) { | |
| 26224 throw __dom_wrap_exception(e); | |
| 26225 } | |
| 26226 } | |
| 26227 | |
| 26228 function native__DOMWindowWrappingImplementation__createWebKitPoint(_this, x, y)
{ | |
| 26229 try { | |
| 26230 return __dom_wrap(new WebKitPoint(x, y)); | |
| 26231 } catch (e) { | |
| 26232 throw __dom_wrap_exception(e); | |
| 26233 } | |
| 26234 } | |
| 26235 | |
| 26236 function native__DOMWindowWrappingImplementation__createXMLHttpRequest(_this) { | |
| 26237 try { | |
| 26238 return __dom_wrap(new XMLHttpRequest()); | |
| 26239 } catch (e) { | |
| 26240 throw __dom_wrap_exception(e); | |
| 26241 } | |
| 26242 } | |
| 26243 | |
| 26244 function native__CanvasRenderingContext2DWrappingImplementation__setFillStyle(_t
his, color_OR_gradient_OR_pattern) { | 26204 function native__CanvasRenderingContext2DWrappingImplementation__setFillStyle(_t
his, color_OR_gradient_OR_pattern) { |
| 26245 try { | 26205 try { |
| 26246 _this.$dom.fillStyle = __dom_unwrap(color_OR_gradient_OR_pattern); | 26206 _this.$dom.fillStyle = __dom_unwrap(color_OR_gradient_OR_pattern); |
| 26247 } catch (e) { | 26207 } catch (e) { |
| 26248 throw __dom_wrap_exception(e); | 26208 throw __dom_wrap_exception(e); |
| 26249 } | 26209 } |
| 26250 } | 26210 } |
| 26251 | 26211 |
| 26252 function native__CanvasRenderingContext2DWrappingImplementation__setFillStyle_2(
_this, color_OR_gradient_OR_pattern) { | 26212 function native__CanvasRenderingContext2DWrappingImplementation__setFillStyle_2(
_this, color_OR_gradient_OR_pattern) { |
| 26253 try { | 26213 try { |
| (...skipping 583 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 26837 function native__NativeDomGlobalProperties_getWindow() { | 26797 function native__NativeDomGlobalProperties_getWindow() { |
| 26838 // TODO: Should the window be obtained from an isolate? | 26798 // TODO: Should the window be obtained from an isolate? |
| 26839 return __dom_wrap(window); | 26799 return __dom_wrap(window); |
| 26840 } | 26800 } |
| 26841 | 26801 |
| 26842 // Declared in src/GlobalProperties.dart | 26802 // Declared in src/GlobalProperties.dart |
| 26843 function native__NativeDomGlobalProperties_getDocument() { | 26803 function native__NativeDomGlobalProperties_getDocument() { |
| 26844 // TODO: Should the window be obtained from an isolate? | 26804 // TODO: Should the window be obtained from an isolate? |
| 26845 return __dom_wrap(window.document); | 26805 return __dom_wrap(window.document); |
| 26846 } | 26806 } |
| OLD | NEW |