OLD | NEW |
1 // Copyright (c) 2011, 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 // These factory provider implementation functions are for interfaces that do |
| 6 // not have factory provider implementation functions generated automatically |
| 7 // from a Constructor or NamedConstructor extended attribute. |
| 8 |
5 class FactoryProviderImplementation { | 9 class FactoryProviderImplementation { |
6 static AudioContext createAudioContext() native "AudioContext_constructor_Call
back"; | 10 static AudioContext createAudioContext() native "AudioContext_constructor_Call
back"; |
7 static DOMParser createDOMParser() native "DOMParser_constructor_Callback"; | |
8 static DOMURL createDOMURL() native "DOMURL_constructor_Callback"; | |
9 static DeprecatedPeerConnection createDeprecatedPeerConnection( | |
10 String serverConfiguration, | |
11 SignalingCallback signalingCallback) | |
12 native "DeprecatedPeerConnection_constructor_Callback"; | |
13 | |
14 static FileReader createFileReader() native "FileReader_constructor_Callback"; | |
15 static FileReaderSync createFileReaderSync() native "FileReaderSync_constructo
r_Callback"; | |
16 | |
17 static EventSource createEventSource(String scriptUrl) native "EventSource_con
structor_Callback"; | |
18 | |
19 static HTMLAudioElement createHTMLAudioElement([String src]) native "HTMLAudio
Element_constructor_Callback"; | |
20 | |
21 static HTMLOptionElement createHTMLOptionElement([String data, String value, b
ool defaultSelected, bool selected]) native "HTMLOptionElement_constructor_Callb
ack"; | |
22 | |
23 static MediaController createMediaController() native "MediaController_constr
uctor_Callback"; | |
24 | |
25 static MediaStream createMediaStream(MediaStreamTrackList audioTracks, | |
26 MediaStreamTrackList videoTracks) | |
27 native "MediaStream_constructor_Callback"; | |
28 | |
29 static MessageChannel createMessageChannel() native "MessageChannel_construct
or_Callback"; | |
30 | |
31 static ShadowRoot createShadowRoot(Element host) | |
32 native "ShadowRoot_constructor_Callback"; | |
33 | |
34 static SharedWorker createSharedWorker(String scriptURL, String name) | |
35 native "SharedWorker_constructor_Callback"; | |
36 | |
37 static SpeechGrammar createSpeechGrammar() native "SpeechGrammar_constructor_C
allback"; | |
38 static SpeechGrammarList createSpeechGrammarList() native "SpeechGrammarList_c
onstructor_Callback"; | |
39 | |
40 static TextTrackCue createTextTrackCue( | |
41 String id, num startTime, num endTime, String text, | |
42 String settings, bool pauseOnExit) | |
43 native "TextTrackCue_constructor_Callback"; | |
44 | 11 |
45 static Float32Array F32(_arg0, [_arg1, _arg2]) native "Float32Array_constructo
r_Callback"; | 12 static Float32Array F32(_arg0, [_arg1, _arg2]) native "Float32Array_constructo
r_Callback"; |
46 static Float64Array F64(_arg0, [_arg1, _arg2]) native "Float64Array_constructo
r_Callback"; | 13 static Float64Array F64(_arg0, [_arg1, _arg2]) native "Float64Array_constructo
r_Callback"; |
47 static Int8Array I8(_arg0, [_arg1, _arg2]) native "Int8Array_constructor_Callb
ack"; | 14 static Int8Array I8(_arg0, [_arg1, _arg2]) native "Int8Array_constructor_Callb
ack"; |
48 static Int16Array I16(_arg0, [_arg1, _arg2]) native "Int16Array_constructor_Ca
llback"; | 15 static Int16Array I16(_arg0, [_arg1, _arg2]) native "Int16Array_constructor_Ca
llback"; |
49 static Int32Array I32(_arg0, [_arg1, _arg2]) native "Int32Array_constructor_Ca
llback"; | 16 static Int32Array I32(_arg0, [_arg1, _arg2]) native "Int32Array_constructor_Ca
llback"; |
50 static Uint8Array U8(_arg0, [_arg1, _arg2]) native "Uint8Array_constructor_Cal
lback"; | 17 static Uint8Array U8(_arg0, [_arg1, _arg2]) native "Uint8Array_constructor_Cal
lback"; |
51 static Uint16Array U16(_arg0, [_arg1, _arg2]) native "Uint16Array_constructor_
Callback"; | 18 static Uint16Array U16(_arg0, [_arg1, _arg2]) native "Uint16Array_constructor_
Callback"; |
52 static Uint32Array U32(_arg0, [_arg1, _arg2]) native "Uint32Array_constructor_
Callback"; | 19 static Uint32Array U32(_arg0, [_arg1, _arg2]) native "Uint32Array_constructor_
Callback"; |
53 | 20 |
54 static WebKitBlobBuilder createWebKitBlobBuilder() native "WebKitBlobBuilder_
constructor_Callback"; | |
55 static WebKitCSSMatrix createWebKitCSSMatrix([String spec = '']) native "WebKi
tCSSMatrix_constructor_Callback"; | |
56 static WebKitPoint createWebKitPoint(num x, num y) native "WebKitPoint_constru
ctor_Callback"; | 21 static WebKitPoint createWebKitPoint(num x, num y) native "WebKitPoint_constru
ctor_Callback"; |
57 static WebSocket createWebSocket(String url) native "WebSocket_constructor_Cal
lback"; | 22 static WebSocket createWebSocket(String url) native "WebSocket_constructor_Cal
lback"; |
58 static Worker createWorkder(String scriptUrl) native "Worker_constructor_Callb
ack"; | |
59 static XMLHttpRequest createXMLHttpRequest() native "XMLHttpRequest_constructo
r_Callback"; | |
60 static XMLSerializer createXMLSerializer() native "XMLSerializer_constructor_C
allback"; | |
61 static XPathEvaluator createXPathEvaluator() native "XPathEvaluator_constructo
r_Callback"; | |
62 static XSLTProcessor createXSLTProcessor() native "XSLTProcessor_constructor_C
allback"; | |
63 } | 23 } |
OLD | NEW |