| 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 | 5 |
| 6 // These factory methods could all live in one factory provider class but dartc | 6 // These factory methods could all live in one factory provider class but dartc |
| 7 // has a bug (5399939) preventing that. | 7 // has a bug (5399939) preventing that. |
| 8 | 8 |
| 9 class _AudioContextFactoryProvider { |
| 10 |
| 11 factory AudioContext() { return create(); } |
| 12 |
| 13 static AudioContext create() native; |
| 14 } |
| 15 |
| 9 class _FileReaderFactoryProvider { | 16 class _FileReaderFactoryProvider { |
| 10 | 17 |
| 11 factory FileReader() { return create(); } | 18 factory FileReader() { return create(); } |
| 12 | 19 |
| 13 static FileReader create() native; | 20 static FileReader create() native; |
| 14 } | 21 } |
| 15 | 22 |
| 16 class _TypedArrayFactoryProvider { | 23 class _TypedArrayFactoryProvider { |
| 17 | 24 |
| 18 factory Float32Array(int length) => _F32(length); | 25 factory Float32Array(int length) => _F32(length); |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 73 | 80 |
| 74 static WebKitPoint create(x, y) native; | 81 static WebKitPoint create(x, y) native; |
| 75 } | 82 } |
| 76 | 83 |
| 77 class _XMLHttpRequestFactoryProvider { | 84 class _XMLHttpRequestFactoryProvider { |
| 78 | 85 |
| 79 factory XMLHttpRequest() { return create(); } | 86 factory XMLHttpRequest() { return create(); } |
| 80 | 87 |
| 81 static XMLHttpRequest create() native; | 88 static XMLHttpRequest create() native; |
| 82 } | 89 } |
| OLD | NEW |