Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(155)

Side by Side Diff: client/dom/src/native_FactoryProvidersImplementation.dart

Issue 9465011: Support arguments in constructors. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « client/dom/src/native_FactoryProviders.dart ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 FileReader createFileReader() native "FileReader_constructor_Callback"; 9 static FileReader createFileReader() native "FileReader_constructor_Callback";
10 static FileReaderSync createFileReaderSync() native "FileReaderSync_constructo r_Callback";
9 11
10 static EventSource createEventSource(String scriptUrl) native "EventSource_con structor_Callback"; 12 static EventSource createEventSource(String scriptUrl) native "EventSource_con structor_Callback";
11 13
14 // TODO(antonm): support named constructors generation.
15 static HTMLAudioElement createHTMLAudioElement([String src]) { throw 'Unimplem ented.'; }
16
17 // TODO(antonm): support named constructors generation.
18 static HTMLOptionElement createHTMLOptionElement([String data, String value, b ool defaultSelected, bool selected]) { throw 'Unimplemented.'; }
19
20 static MediaController createMediaController() native "MediaController_constr uctor_Callback";
21
12 static MediaStream createMediaStream(MediaStreamTrackList audioTracks, 22 static MediaStream createMediaStream(MediaStreamTrackList audioTracks,
13 MediaStreamTrackList videoTracks) 23 MediaStreamTrackList videoTracks)
14 native "MediaStream_constructor_Callback"; 24 native "MediaStream_constructor_Callback";
15 25
26 static MessageChannel createMessageChannel() native "MessageChannel_construct or_Callback";
27
16 static PeerConnection createPeerConnection( 28 static PeerConnection createPeerConnection(
17 String serverConfiguration, 29 String serverConfiguration,
18 SignalingCallback signalingCallback) 30 SignalingCallback signalingCallback)
19 native "PeerConnection_constructor_Callback"; 31 native "PeerConnection_constructor_Callback";
20 32
21 static ShadowRoot createShadowRoot(Element host) 33 static ShadowRoot createShadowRoot(Element host)
22 native "ShadowRoot_constructor_Callback"; 34 native "ShadowRoot_constructor_Callback";
23 35
24 static SharedWorker createSharedWorker(String scriptURL, String name) 36 static SharedWorker createSharedWorker(String scriptURL, String name)
25 native "SharedWorker_constructor_Callback"; 37 native "SharedWorker_constructor_Callback";
26 38
27 static TextTrackCue createTextTrackCue( 39 static TextTrackCue createTextTrackCue(
28 String id, num startTime, num endTime, String text, 40 String id, num startTime, num endTime, String text,
29 String settings, bool pauseOnExit) 41 String settings, bool pauseOnExit)
30 native "TextTrackCue_constructor_Callback"; 42 native "TextTrackCue_constructor_Callback";
31 43
32 static Float32Array F32(_arg0, [_arg1, _arg2]) native "Float32Array_constructo r_Callback"; 44 static Float32Array F32(_arg0, [_arg1, _arg2]) native "Float32Array_constructo r_Callback";
33 static Float64Array F64(_arg0, [_arg1, _arg2]) native "Float64Array_constructo r_Callback"; 45 static Float64Array F64(_arg0, [_arg1, _arg2]) native "Float64Array_constructo r_Callback";
34 static Int8Array I8(_arg0, [_arg1, _arg2]) native "Int8Array_constructor_Callb ack"; 46 static Int8Array I8(_arg0, [_arg1, _arg2]) native "Int8Array_constructor_Callb ack";
35 static Int16Array I16(_arg0, [_arg1, _arg2]) native "Int16Array_constructor_Ca llback"; 47 static Int16Array I16(_arg0, [_arg1, _arg2]) native "Int16Array_constructor_Ca llback";
36 static Int32Array I32(_arg0, [_arg1, _arg2]) native "Int32Array_constructor_Ca llback"; 48 static Int32Array I32(_arg0, [_arg1, _arg2]) native "Int32Array_constructor_Ca llback";
37 static Uint8Array U8(_arg0, [_arg1, _arg2]) native "Uint8Array_constructor_Cal lback"; 49 static Uint8Array U8(_arg0, [_arg1, _arg2]) native "Uint8Array_constructor_Cal lback";
38 static Uint16Array U16(_arg0, [_arg1, _arg2]) native "Uint16Array_constructor_ Callback"; 50 static Uint16Array U16(_arg0, [_arg1, _arg2]) native "Uint16Array_constructor_ Callback";
39 static Uint32Array U32(_arg0, [_arg1, _arg2]) native "Uint32Array_constructor_ Callback"; 51 static Uint32Array U32(_arg0, [_arg1, _arg2]) native "Uint32Array_constructor_ Callback";
40 52
53 static WebKitBlobBuilder createWebKitBlobBuilder() native "WebKitBlobBuilder_ constructor_Callback";
41 static WebKitCSSMatrix createWebKitCSSMatrix([String spec = '']) native "WebKi tCSSMatrix_constructor_Callback"; 54 static WebKitCSSMatrix createWebKitCSSMatrix([String spec = '']) native "WebKi tCSSMatrix_constructor_Callback";
42 static WebKitPoint createWebKitPoint(num x, num y) native "WebKitPoint_constru ctor_Callback"; 55 static WebKitPoint createWebKitPoint(num x, num y) native "WebKitPoint_constru ctor_Callback";
43 static WebSocket createWebSocket(String url) native "WebSocket_constructor_Cal lback"; 56 static WebSocket createWebSocket(String url) native "WebSocket_constructor_Cal lback";
44 static Worker createWorkder(String scriptUrl) native "Worker_constructor_Callb ack"; 57 static Worker createWorkder(String scriptUrl) native "Worker_constructor_Callb ack";
45 static XMLHttpRequest createXMLHttpRequest() native "XMLHttpRequest_constructo r_Callback"; 58 static XMLHttpRequest createXMLHttpRequest() native "XMLHttpRequest_constructo r_Callback";
59 static XMLSerializer createXMLSerializer() native "XMLSerializer_constructor_C allback";
60 static XPathEvaluator createXPathEvaluator() native "XPathEvaluator_constructo r_Callback";
46 static XSLTProcessor createXSLTProcessor() native "XSLTProcessor_constructor_C allback"; 61 static XSLTProcessor createXSLTProcessor() native "XSLTProcessor_constructor_C allback";
47 } 62 }
OLDNEW
« no previous file with comments | « client/dom/src/native_FactoryProviders.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698