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 class FactoryProviderImplementation { | 5 class FactoryProviderImplementation { |
6 static AudioContext createAudioContext() native "AudioContext_constructor_Call
back"; | 6 static AudioContext createAudioContext() native "AudioContext_constructor_Call
back"; |
7 static DOMParser createDOMParser() native "DOMParser_constructor_Callback"; | 7 static DOMParser createDOMParser() native "DOMParser_constructor_Callback"; |
8 static DOMURL createDOMURL() native "DOMURL_constructor_Callback"; | 8 static DOMURL createDOMURL() native "DOMURL_constructor_Callback"; |
9 static FileReader createFileReader() native "FileReader_constructor_Callback"; | 9 static FileReader createFileReader() native "FileReader_constructor_Callback"; |
10 static FileReaderSync createFileReaderSync() native "FileReaderSync_constructo
r_Callback"; | 10 static FileReaderSync createFileReaderSync() native "FileReaderSync_constructo
r_Callback"; |
11 | 11 |
12 static EventSource createEventSource(String scriptUrl) native "EventSource_con
structor_Callback"; | 12 static EventSource createEventSource(String scriptUrl) native "EventSource_con
structor_Callback"; |
13 | 13 |
14 // TODO(antonm): support named constructors generation. | 14 static HTMLAudioElement createHTMLAudioElement([String src]) native "HTMLAudio
Element_constructor_Callback"; |
15 static HTMLAudioElement createHTMLAudioElement([String src]) { throw 'Unimplem
ented.'; } | |
16 | 15 |
17 // TODO(antonm): support named constructors generation. | 16 static HTMLOptionElement createHTMLOptionElement([String data, String value, b
ool defaultSelected, bool selected]) native "HTMLOptionElement_constructor_Callb
ack"; |
18 static HTMLOptionElement createHTMLOptionElement([String data, String value, b
ool defaultSelected, bool selected]) { throw 'Unimplemented.'; } | |
19 | 17 |
20 static MediaController createMediaController() native "MediaController_constr
uctor_Callback"; | 18 static MediaController createMediaController() native "MediaController_constr
uctor_Callback"; |
21 | 19 |
22 static MediaStream createMediaStream(MediaStreamTrackList audioTracks, | 20 static MediaStream createMediaStream(MediaStreamTrackList audioTracks, |
23 MediaStreamTrackList videoTracks) | 21 MediaStreamTrackList videoTracks) |
24 native "MediaStream_constructor_Callback"; | 22 native "MediaStream_constructor_Callback"; |
25 | 23 |
26 static MessageChannel createMessageChannel() native "MessageChannel_construct
or_Callback"; | 24 static MessageChannel createMessageChannel() native "MessageChannel_construct
or_Callback"; |
27 | 25 |
28 static PeerConnection createPeerConnection( | 26 static PeerConnection createPeerConnection( |
(...skipping 24 matching lines...) Expand all Loading... |
53 static WebKitBlobBuilder createWebKitBlobBuilder() native "WebKitBlobBuilder_
constructor_Callback"; | 51 static WebKitBlobBuilder createWebKitBlobBuilder() native "WebKitBlobBuilder_
constructor_Callback"; |
54 static WebKitCSSMatrix createWebKitCSSMatrix([String spec = '']) native "WebKi
tCSSMatrix_constructor_Callback"; | 52 static WebKitCSSMatrix createWebKitCSSMatrix([String spec = '']) native "WebKi
tCSSMatrix_constructor_Callback"; |
55 static WebKitPoint createWebKitPoint(num x, num y) native "WebKitPoint_constru
ctor_Callback"; | 53 static WebKitPoint createWebKitPoint(num x, num y) native "WebKitPoint_constru
ctor_Callback"; |
56 static WebSocket createWebSocket(String url) native "WebSocket_constructor_Cal
lback"; | 54 static WebSocket createWebSocket(String url) native "WebSocket_constructor_Cal
lback"; |
57 static Worker createWorkder(String scriptUrl) native "Worker_constructor_Callb
ack"; | 55 static Worker createWorkder(String scriptUrl) native "Worker_constructor_Callb
ack"; |
58 static XMLHttpRequest createXMLHttpRequest() native "XMLHttpRequest_constructo
r_Callback"; | 56 static XMLHttpRequest createXMLHttpRequest() native "XMLHttpRequest_constructo
r_Callback"; |
59 static XMLSerializer createXMLSerializer() native "XMLSerializer_constructor_C
allback"; | 57 static XMLSerializer createXMLSerializer() native "XMLSerializer_constructor_C
allback"; |
60 static XPathEvaluator createXPathEvaluator() native "XPathEvaluator_constructo
r_Callback"; | 58 static XPathEvaluator createXPathEvaluator() native "XPathEvaluator_constructo
r_Callback"; |
61 static XSLTProcessor createXSLTProcessor() native "XSLTProcessor_constructor_C
allback"; | 59 static XSLTProcessor createXSLTProcessor() native "XSLTProcessor_constructor_C
allback"; |
62 } | 60 } |
OLD | NEW |