| 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 { | 9 class _AudioContextFactoryProvider { |
| 10 | 10 |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 74 static WebKitCSSMatrix create(spec) native; | 74 static WebKitCSSMatrix create(spec) native; |
| 75 } | 75 } |
| 76 | 76 |
| 77 class _WebKitPointFactoryProvider { | 77 class _WebKitPointFactoryProvider { |
| 78 | 78 |
| 79 factory WebKitPoint(num x, num y) { return create(x, y); } | 79 factory WebKitPoint(num x, num y) { return create(x, y); } |
| 80 | 80 |
| 81 static WebKitPoint create(x, y) native; | 81 static WebKitPoint create(x, y) native; |
| 82 } | 82 } |
| 83 | 83 |
| 84 class _WebSocketFactoryProvider { |
| 85 |
| 86 factory WebSocket(String url) { return create(url); } |
| 87 |
| 88 static WebKitPoint create(url) native; |
| 89 } |
| 90 |
| 84 class _XMLHttpRequestFactoryProvider { | 91 class _XMLHttpRequestFactoryProvider { |
| 85 | 92 |
| 86 factory XMLHttpRequest() { return create(); } | 93 factory XMLHttpRequest() { return create(); } |
| 87 | 94 |
| 88 static XMLHttpRequest create() native; | 95 static XMLHttpRequest create() native; |
| 89 } | 96 } |
| OLD | NEW |