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 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
123 } | 123 } |
124 | 124 |
125 function native__TypedArrayFactoryProvider__U32(arg) { | 125 function native__TypedArrayFactoryProvider__U32(arg) { |
126 try { | 126 try { |
127 return __dom_wrap(new Uint32Array(__dom_unwrap(arg))); | 127 return __dom_wrap(new Uint32Array(__dom_unwrap(arg))); |
128 } catch (e) { | 128 } catch (e) { |
129 throw __dom_wrap_exception(e); | 129 throw __dom_wrap_exception(e); |
130 } | 130 } |
131 } | 131 } |
132 | 132 |
| 133 function native__TypedArrayFactoryProvider__U8C(arg) { |
| 134 try { |
| 135 return __dom_wrap(new Uint8ClampedArray(__dom_unwrap(arg))); |
| 136 } catch (e) { |
| 137 throw __dom_wrap_exception(e); |
| 138 } |
| 139 } |
| 140 |
133 function native__WebKitCSSMatrixFactoryProvider_create(spec) { | 141 function native__WebKitCSSMatrixFactoryProvider_create(spec) { |
134 try { | 142 try { |
135 return __dom_wrap(new WebKitCSSMatrix(spec)); // string doesn't need unwrap
. | 143 return __dom_wrap(new WebKitCSSMatrix(spec)); // string doesn't need unwrap
. |
136 } catch (e) { | 144 } catch (e) { |
137 throw __dom_wrap_exception(e); | 145 throw __dom_wrap_exception(e); |
138 } | 146 } |
139 } | 147 } |
140 | 148 |
141 function native__WebKitPointFactoryProvider_create(x, y) { | 149 function native__WebKitPointFactoryProvider_create(x, y) { |
142 try { | 150 try { |
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
336 function native__NativeDomGlobalProperties_getWindow() { | 344 function native__NativeDomGlobalProperties_getWindow() { |
337 // TODO: Should the window be obtained from an isolate? | 345 // TODO: Should the window be obtained from an isolate? |
338 return __dom_wrap(window); | 346 return __dom_wrap(window); |
339 } | 347 } |
340 | 348 |
341 // Declared in src/GlobalProperties.dart | 349 // Declared in src/GlobalProperties.dart |
342 function native__NativeDomGlobalProperties_getDocument() { | 350 function native__NativeDomGlobalProperties_getDocument() { |
343 // TODO: Should the window be obtained from an isolate? | 351 // TODO: Should the window be obtained from an isolate? |
344 return __dom_wrap(window.document); | 352 return __dom_wrap(window.document); |
345 } | 353 } |
OLD | NEW |