| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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 class _AudioContextFactoryProvider { | 5 class _AudioContextFactoryProvider { |
| 6 factory AudioContext() => _createAudioContext(); | 6 factory AudioContext() => _createAudioContext(); |
| 7 static _createAudioContext() native "AudioContext_constructor_Callback"; | 7 static _createAudioContext([int numberOfChannels, |
| 8 int numberOfFrames, |
| 9 int sampleRate]) |
| 10 native "AudioContext_constructor_Callback"; |
| 8 } | 11 } |
| 9 | 12 |
| 10 class _IDBKeyRangeFactoryProvider { | 13 class _IDBKeyRangeFactoryProvider { |
| 11 | 14 |
| 12 factory IDBKeyRange.only(/*IDBKey*/ value) => | 15 factory IDBKeyRange.only(/*IDBKey*/ value) => |
| 13 _IDBKeyRangeImpl.only(value); | 16 _IDBKeyRangeImpl.only(value); |
| 14 | 17 |
| 15 factory IDBKeyRange.lowerBound(/*IDBKey*/ bound, [bool open = false]) => | 18 factory IDBKeyRange.lowerBound(/*IDBKey*/ bound, [bool open = false]) => |
| 16 _IDBKeyRangeImpl.lowerBound(bound, open); | 19 _IDBKeyRangeImpl.lowerBound(bound, open); |
| 17 | 20 |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 96 } | 99 } |
| 97 | 100 |
| 98 class _WebSocketFactoryProvider { | 101 class _WebSocketFactoryProvider { |
| 99 factory WebSocket(String url) => _createWebSocket(url); | 102 factory WebSocket(String url) => _createWebSocket(url); |
| 100 static _createWebSocket(String url) native "WebSocket_constructor_Callback"; | 103 static _createWebSocket(String url) native "WebSocket_constructor_Callback"; |
| 101 } | 104 } |
| 102 | 105 |
| 103 class _TextFactoryProvider { | 106 class _TextFactoryProvider { |
| 104 factory Text(String data) => _document.$dom_createTextNode(data); | 107 factory Text(String data) => _document.$dom_createTextNode(data); |
| 105 } | 108 } |
| OLD | NEW |