Chromium Code Reviews| 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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 42 wrapper.$dom = domWindow.localStorage; | 42 wrapper.$dom = domWindow.localStorage; |
| 43 __dom_set_cached('dart_storage', domWindow, isolatetoken, wrapper) | 43 __dom_set_cached('dart_storage', domWindow, isolatetoken, wrapper) |
| 44 return wrapper; | 44 return wrapper; |
| 45 } catch (e) { | 45 } catch (e) { |
| 46 throw __dom_wrap_exception(e); | 46 throw __dom_wrap_exception(e); |
| 47 } | 47 } |
| 48 } | 48 } |
| 49 | 49 |
| 50 // Native methods for factory providers. | 50 // Native methods for factory providers. |
| 51 | 51 |
| 52 function native__AudioContextFactoryProvider_create() { | |
| 53 try { | |
| 54 return __dom_wrap(new AudioContext()); | |
|
sra1
2011/12/08 06:19:16
See other comment.
new webkitAudioContext()
| |
| 55 } catch (e) { | |
| 56 throw __dom_wrap_exception(e); | |
| 57 } | |
| 58 } | |
| 59 | |
| 52 function native__FileReaderFactoryProvider_create() { | 60 function native__FileReaderFactoryProvider_create() { |
| 53 try { | 61 try { |
| 54 return __dom_wrap(new FileReader()); | 62 return __dom_wrap(new FileReader()); |
| 55 } catch (e) { | 63 } catch (e) { |
| 56 throw __dom_wrap_exception(e); | 64 throw __dom_wrap_exception(e); |
| 57 } | 65 } |
| 58 } | 66 } |
| 59 | 67 |
| 60 function native__TypedArrayFactoryProvider__F32(arg) { | 68 function native__TypedArrayFactoryProvider__F32(arg) { |
| 61 try { | 69 try { |
| (...skipping 255 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 317 function native__NativeDomGlobalProperties_getWindow() { | 325 function native__NativeDomGlobalProperties_getWindow() { |
| 318 // TODO: Should the window be obtained from an isolate? | 326 // TODO: Should the window be obtained from an isolate? |
| 319 return __dom_wrap(window); | 327 return __dom_wrap(window); |
| 320 } | 328 } |
| 321 | 329 |
| 322 // Declared in src/GlobalProperties.dart | 330 // Declared in src/GlobalProperties.dart |
| 323 function native__NativeDomGlobalProperties_getDocument() { | 331 function native__NativeDomGlobalProperties_getDocument() { |
| 324 // TODO: Should the window be obtained from an isolate? | 332 // TODO: Should the window be obtained from an isolate? |
| 325 return __dom_wrap(window.document); | 333 return __dom_wrap(window.document); |
| 326 } | 334 } |
| OLD | NEW |