| 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_onerror(_this) { | 9 function native__AbstractWorkerWrappingImplementation__get_onerror(_this) { |
| 10 try { | 10 try { |
| (...skipping 26830 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 26841 } | 26841 } |
| 26842 | 26842 |
| 26843 function native__WorkerContextWrappingImplementation__setInterval(_this, callbac
k, timeout) { | 26843 function native__WorkerContextWrappingImplementation__setInterval(_this, callbac
k, timeout) { |
| 26844 return __dom_native_TimeoutHander_method(_this, callback, timeout, 'setInterva
l'); | 26844 return __dom_native_TimeoutHander_method(_this, callback, timeout, 'setInterva
l'); |
| 26845 } | 26845 } |
| 26846 | 26846 |
| 26847 function native__WorkerContextWrappingImplementation__setTimeout(_this, callback
, timeout) { | 26847 function native__WorkerContextWrappingImplementation__setTimeout(_this, callback
, timeout) { |
| 26848 return __dom_native_TimeoutHander_method(_this, callback, timeout, 'setTimeout
'); | 26848 return __dom_native_TimeoutHander_method(_this, callback, timeout, 'setTimeout
'); |
| 26849 } | 26849 } |
| 26850 | 26850 |
| 26851 function native__CanvasRenderingContext2DWrappingImplementation__setFillStyle(_t
his, color_OR_gradient_OR_pattern) { | |
| 26852 try { | |
| 26853 _this.$dom.fillStyle = __dom_unwrap(color_OR_gradient_OR_pattern); | |
| 26854 } catch (e) { | |
| 26855 throw __dom_wrap_exception(e); | |
| 26856 } | |
| 26857 } | |
| 26858 | |
| 26859 function native__CanvasRenderingContext2DWrappingImplementation__setFillStyle_2(
_this, color_OR_gradient_OR_pattern) { | |
| 26860 try { | |
| 26861 _this.$dom.fillStyle = __dom_unwrap(color_OR_gradient_OR_pattern); | |
| 26862 } catch (e) { | |
| 26863 throw __dom_wrap_exception(e); | |
| 26864 } | |
| 26865 } | |
| 26866 | |
| 26867 function native__CanvasRenderingContext2DWrappingImplementation__setFillStyle_3(
_this, color_OR_gradient_OR_pattern) { | |
| 26868 try { | |
| 26869 _this.$dom.fillStyle = __dom_unwrap(color_OR_gradient_OR_pattern); | |
| 26870 } catch (e) { | |
| 26871 throw __dom_wrap_exception(e); | |
| 26872 } | |
| 26873 } | |
| 26874 | |
| 26875 function native__CanvasRenderingContext2DWrappingImplementation__setStrokeStyle(
_this, color_OR_gradient_OR_pattern) { | |
| 26876 try { | |
| 26877 _this.$dom.strokeStyle = __dom_unwrap(color_OR_gradient_OR_pattern); | |
| 26878 } catch (e) { | |
| 26879 throw __dom_wrap_exception(e); | |
| 26880 } | |
| 26881 } | |
| 26882 | |
| 26883 function native__CanvasRenderingContext2DWrappingImplementation__setStrokeStyle_
2(_this, color_OR_gradient_OR_pattern) { | |
| 26884 try { | |
| 26885 _this.$dom.strokeStyle = __dom_unwrap(color_OR_gradient_OR_pattern); | |
| 26886 } catch (e) { | |
| 26887 throw __dom_wrap_exception(e); | |
| 26888 } | |
| 26889 } | |
| 26890 | |
| 26891 function native__CanvasRenderingContext2DWrappingImplementation__setStrokeStyle_
3(_this, color_OR_gradient_OR_pattern) { | |
| 26892 try { | |
| 26893 _this.$dom.strokeStyle = __dom_unwrap(color_OR_gradient_OR_pattern); | |
| 26894 } catch (e) { | |
| 26895 throw __dom_wrap_exception(e); | |
| 26896 } | |
| 26897 } | |
| 26898 | |
| 26899 function native__DOMWindowWrappingImplementation__get_localStorage(_this) { | 26851 function native__DOMWindowWrappingImplementation__get_localStorage(_this) { |
| 26900 var domWindow = _this.$dom; | 26852 var domWindow = _this.$dom; |
| 26901 try { | 26853 try { |
| 26902 var isolatetoken = __dom_isolate_token(); | 26854 var isolatetoken = __dom_isolate_token(); |
| 26903 var wrapper = __dom_get_cached('dart_storage', domWindow, isolatetoken); | 26855 var wrapper = __dom_get_cached('dart_storage', domWindow, isolatetoken); |
| 26904 if (wrapper) return wrapper; | 26856 if (wrapper) return wrapper; |
| 26905 wrapper = native__StorageWrappingImplementation_create__StorageWrappingImple
mentation(); | 26857 wrapper = native__StorageWrappingImplementation_create__StorageWrappingImple
mentation(); |
| 26906 wrapper.$dom = domWindow.localStorage; | 26858 wrapper.$dom = domWindow.localStorage; |
| 26907 __dom_set_cached('dart_storage', domWindow, isolatetoken, wrapper) | 26859 __dom_set_cached('dart_storage', domWindow, isolatetoken, wrapper) |
| 26908 return wrapper; | 26860 return wrapper; |
| (...skipping 547 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 27456 function native__NativeDomGlobalProperties_getWindow() { | 27408 function native__NativeDomGlobalProperties_getWindow() { |
| 27457 // TODO: Should the window be obtained from an isolate? | 27409 // TODO: Should the window be obtained from an isolate? |
| 27458 return __dom_wrap(window); | 27410 return __dom_wrap(window); |
| 27459 } | 27411 } |
| 27460 | 27412 |
| 27461 // Declared in src/GlobalProperties.dart | 27413 // Declared in src/GlobalProperties.dart |
| 27462 function native__NativeDomGlobalProperties_getDocument() { | 27414 function native__NativeDomGlobalProperties_getDocument() { |
| 27463 // TODO: Should the window be obtained from an isolate? | 27415 // TODO: Should the window be obtained from an isolate? |
| 27464 return __dom_wrap(window.document); | 27416 return __dom_wrap(window.document); |
| 27465 } | 27417 } |
| OLD | NEW |