| 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 $!CODE | 8 $!CODE |
| 9 | 9 |
| 10 function __dom_native_TimeoutHander_method(_this, callback, timeout, operation)
{ | 10 function __dom_native_TimeoutHander_method(_this, callback, timeout, operation)
{ |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 73 } | 73 } |
| 74 | 74 |
| 75 function native__CanvasRenderingContext2DWrappingImplementation__setStrokeStyle_
3(_this, color_OR_gradient_OR_pattern) { | 75 function native__CanvasRenderingContext2DWrappingImplementation__setStrokeStyle_
3(_this, color_OR_gradient_OR_pattern) { |
| 76 try { | 76 try { |
| 77 _this.$dom.strokeStyle = __dom_unwrap(color_OR_gradient_OR_pattern); | 77 _this.$dom.strokeStyle = __dom_unwrap(color_OR_gradient_OR_pattern); |
| 78 } catch (e) { | 78 } catch (e) { |
| 79 throw __dom_wrap_exception(e); | 79 throw __dom_wrap_exception(e); |
| 80 } | 80 } |
| 81 } | 81 } |
| 82 | 82 |
| 83 function native__DOMWindowWrappingImplementation__get__DOMWindow_localStorage(_t
his) { | 83 function native__DOMWindowWrappingImplementation__get_localStorage(_this) { |
| 84 var domWindow = _this.$dom; | 84 var domWindow = _this.$dom; |
| 85 try { | 85 try { |
| 86 var isolatetoken = __dom_isolate_token(); | 86 var isolatetoken = __dom_isolate_token(); |
| 87 var wrapper = __dom_get_cached('dart_storage', domWindow, isolatetoken); | 87 var wrapper = __dom_get_cached('dart_storage', domWindow, isolatetoken); |
| 88 if (wrapper) return wrapper; | 88 if (wrapper) return wrapper; |
| 89 wrapper = native__StorageWrappingImplementation_create__StorageWrappingImple
mentation(); | 89 wrapper = native__StorageWrappingImplementation_create__StorageWrappingImple
mentation(); |
| 90 wrapper.$dom = domWindow.localStorage; | 90 wrapper.$dom = domWindow.localStorage; |
| 91 __dom_set_cached('dart_storage', domWindow, isolatetoken, wrapper) | 91 __dom_set_cached('dart_storage', domWindow, isolatetoken, wrapper) |
| 92 return wrapper; | 92 return wrapper; |
| 93 } catch (e) { | 93 } catch (e) { |
| (...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 300 function native__NativeDomGlobalProperties_getWindow() { | 300 function native__NativeDomGlobalProperties_getWindow() { |
| 301 // TODO: Should the window be obtained from an isolate? | 301 // TODO: Should the window be obtained from an isolate? |
| 302 return __dom_wrap(window); | 302 return __dom_wrap(window); |
| 303 } | 303 } |
| 304 | 304 |
| 305 // Declared in src/GlobalProperties.dart | 305 // Declared in src/GlobalProperties.dart |
| 306 function native__NativeDomGlobalProperties_getDocument() { | 306 function native__NativeDomGlobalProperties_getDocument() { |
| 307 // TODO: Should the window be obtained from an isolate? | 307 // TODO: Should the window be obtained from an isolate? |
| 308 return __dom_wrap(window.document); | 308 return __dom_wrap(window.document); |
| 309 } | 309 } |
| OLD | NEW |