| 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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 // Native methods for factory providers. | 50 // Native methods for factory providers. |
| 51 | 51 |
| 52 function native__FileReaderFactoryProvider_create() { | 52 function native__FileReaderFactoryProvider_create() { |
| 53 try { | 53 try { |
| 54 return __dom_wrap(new FileReader()); | 54 return __dom_wrap(new FileReader()); |
| 55 } catch (e) { | 55 } catch (e) { |
| 56 throw __dom_wrap_exception(e); | 56 throw __dom_wrap_exception(e); |
| 57 } | 57 } |
| 58 } | 58 } |
| 59 | 59 |
| 60 function native__TypedArrayFactoryProvider__F32(arg) { |
| 61 try { |
| 62 return __dom_wrap(new Float32Array(__dom_unwrap(arg))); |
| 63 } catch (e) { |
| 64 throw __dom_wrap_exception(e); |
| 65 } |
| 66 } |
| 67 |
| 68 function native__TypedArrayFactoryProvider__F64(arg) { |
| 69 try { |
| 70 return __dom_wrap(new Float64Array(__dom_unwrap(arg))); |
| 71 } catch (e) { |
| 72 throw __dom_wrap_exception(e); |
| 73 } |
| 74 } |
| 75 |
| 76 function native__TypedArrayFactoryProvider__I8(arg) { |
| 77 try { |
| 78 return __dom_wrap(new Int8Array(__dom_unwrap(arg))); |
| 79 } catch (e) { |
| 80 throw __dom_wrap_exception(e); |
| 81 } |
| 82 } |
| 83 |
| 84 function native__TypedArrayFactoryProvider__I16(arg) { |
| 85 try { |
| 86 return __dom_wrap(new Int16Array(__dom_unwrap(arg))); |
| 87 } catch (e) { |
| 88 throw __dom_wrap_exception(e); |
| 89 } |
| 90 } |
| 91 |
| 92 function native__TypedArrayFactoryProvider__I32(arg) { |
| 93 try { |
| 94 return __dom_wrap(new Int32Array(__dom_unwrap(arg))); |
| 95 } catch (e) { |
| 96 throw __dom_wrap_exception(e); |
| 97 } |
| 98 } |
| 99 |
| 100 function native__TypedArrayFactoryProvider__U8(arg) { |
| 101 try { |
| 102 return __dom_wrap(new Uint8Array(__dom_unwrap(arg))); |
| 103 } catch (e) { |
| 104 throw __dom_wrap_exception(e); |
| 105 } |
| 106 } |
| 107 |
| 108 function native__TypedArrayFactoryProvider__U16(arg) { |
| 109 try { |
| 110 return __dom_wrap(new Uint16Array(__dom_unwrap(arg))); |
| 111 } catch (e) { |
| 112 throw __dom_wrap_exception(e); |
| 113 } |
| 114 } |
| 115 |
| 116 function native__TypedArrayFactoryProvider__U32(arg) { |
| 117 try { |
| 118 return __dom_wrap(new Uint32Array(__dom_unwrap(arg))); |
| 119 } catch (e) { |
| 120 throw __dom_wrap_exception(e); |
| 121 } |
| 122 } |
| 123 |
| 124 |
| 60 function native__WebKitCSSMatrixFactoryProvider_create(spec) { | 125 function native__WebKitCSSMatrixFactoryProvider_create(spec) { |
| 61 try { | 126 try { |
| 62 return __dom_wrap(new WebKitCSSMatrix(spec)); // string doesn't need unwrap
. | 127 return __dom_wrap(new WebKitCSSMatrix(spec)); // string doesn't need unwrap
. |
| 63 } catch (e) { | 128 } catch (e) { |
| 64 throw __dom_wrap_exception(e); | 129 throw __dom_wrap_exception(e); |
| 65 } | 130 } |
| 66 } | 131 } |
| 67 | 132 |
| 68 function native__WebKitPointFactoryProvider_create(x, y) { | 133 function native__WebKitPointFactoryProvider_create(x, y) { |
| 69 try { | 134 try { |
| (...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 252 function native__NativeDomGlobalProperties_getWindow() { | 317 function native__NativeDomGlobalProperties_getWindow() { |
| 253 // TODO: Should the window be obtained from an isolate? | 318 // TODO: Should the window be obtained from an isolate? |
| 254 return __dom_wrap(window); | 319 return __dom_wrap(window); |
| 255 } | 320 } |
| 256 | 321 |
| 257 // Declared in src/GlobalProperties.dart | 322 // Declared in src/GlobalProperties.dart |
| 258 function native__NativeDomGlobalProperties_getDocument() { | 323 function native__NativeDomGlobalProperties_getDocument() { |
| 259 // TODO: Should the window be obtained from an isolate? | 324 // TODO: Should the window be obtained from an isolate? |
| 260 return __dom_wrap(window.document); | 325 return __dom_wrap(window.document); |
| 261 } | 326 } |
| OLD | NEW |