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 part of html; |
| 6 |
5 class _AudioContextFactoryProvider { | 7 class _AudioContextFactoryProvider { |
6 static AudioContext createAudioContext() => _createAudioContext(); | 8 static AudioContext createAudioContext() => _createAudioContext(); |
7 static _createAudioContext([int numberOfChannels, | 9 static _createAudioContext([int numberOfChannels, |
8 int numberOfFrames, | 10 int numberOfFrames, |
9 int sampleRate]) | 11 int sampleRate]) |
10 native "AudioContext_constructor_Callback"; | 12 native "AudioContext_constructor_Callback"; |
11 } | 13 } |
12 | 14 |
13 class _IDBKeyRangeFactoryProvider { | 15 class _IDBKeyRangeFactoryProvider { |
14 | 16 |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
103 } | 105 } |
104 | 106 |
105 class _WebSocketFactoryProvider { | 107 class _WebSocketFactoryProvider { |
106 static WebSocket createWebSocket(String url) => _createWebSocket(url); | 108 static WebSocket createWebSocket(String url) => _createWebSocket(url); |
107 static _createWebSocket(String url) native "WebSocket_constructor_Callback"; | 109 static _createWebSocket(String url) native "WebSocket_constructor_Callback"; |
108 } | 110 } |
109 | 111 |
110 class _TextFactoryProvider { | 112 class _TextFactoryProvider { |
111 static Text createText(String data) => document.$dom_createTextNode(data); | 113 static Text createText(String data) => document.$dom_createTextNode(data); |
112 } | 114 } |
OLD | NEW |