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

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

Issue 9428050: Automatically generate most constructors (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: add test 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
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 _AudioContextFactoryProvider { 5 class _AudioContextFactoryProvider {
6 factory AudioContext() => FactoryProviderImplementation.createAudioContext(); 6 factory AudioContext() => FactoryProviderImplementation.createAudioContext();
7 } 7 }
8 8
9 class _DOMParserFactoryProvider { 9 class _DOMParserFactoryProvider {
10 factory DOMParser() => FactoryProviderImplementation.createDOMParser(); 10 factory DOMParser() => FactoryProviderImplementation.createDOMParser();
11 } 11 }
12 12
13 class _EventSourceFactoryProvider {
14 factory EventSource(String scriptUrl) =>
15 FactoryProviderImplementation.createEventSource(scriptUrl);
16 }
17
13 class _FileReaderFactoryProvider { 18 class _FileReaderFactoryProvider {
14 factory FileReader() => FactoryProviderImplementation.createFileReader(); 19 factory FileReader() => FactoryProviderImplementation.createFileReader();
15 } 20 }
16 21
22 class _MediaStreamFactoryProvider {
23 factory MediaStream(MediaStreamTrackList audioTracks,
24 MediaStreamTrackList videoTracks) =>
25 FactoryProviderImplementation.createMediaStream(audioTracks, videoTracks);
26 }
27
28 class _PeerConnectionFactoryProvider {
29 factory PeerConnection(String serverConfiguration,
30 SignalingCallback signalingCallback) =>
31 FactoryProviderImplementation.createPeerConnection(serverConfiguration,
32 signalingCallback);
33 }
34
35 class _ShadowRootFactoryProvider {
36 factory ShadowRoot(Element host) =>
37 FactoryProviderImplementation.createShadowRoot(host);
38 }
39
40 class _SharedWorkerFactoryProvider {
41 factory SharedWorker(String scriptURL, [String name]) =>
42 FactoryProviderImplementation.createSharedWorker(scriptURL, name);
43 }
44
45 class _TextTrackCueFactoryProvider {
46 factory TextTrackCue(String id, num startTime, num endTime, String text,
47 [String settings, bool pauseOnExit]) =>
48 FactoryProviderImplementation.createTextTrackQue(
49 id, startTime, endTime, text, settings, pauseOnExit);
50 }
51
17 class _TypedArrayFactoryProvider { 52 class _TypedArrayFactoryProvider {
18 factory Float32Array(int length) => FactoryProviderImplementation.F32(length); 53 factory Float32Array(int length) => FactoryProviderImplementation.F32(length);
19 factory Float32Array.fromList(List<num> list) => FactoryProviderImplementation .F32(list); 54 factory Float32Array.fromList(List<num> list) => FactoryProviderImplementation .F32(list);
20 factory Float32Array.fromBuffer(ArrayBuffer buffer) => FactoryProviderImplemen tation.F32(buffer); 55 factory Float32Array.fromBuffer(ArrayBuffer buffer) => FactoryProviderImplemen tation.F32(buffer);
21 56
22 factory Float64Array(int length) => FactoryProviderImplementation.F64(length); 57 factory Float64Array(int length) => FactoryProviderImplementation.F64(length);
23 factory Float64Array.fromList(List<num> list) => FactoryProviderImplementation .F64(list); 58 factory Float64Array.fromList(List<num> list) => FactoryProviderImplementation .F64(list);
24 factory Float64Array.fromBuffer(ArrayBuffer buffer) => FactoryProviderImplemen tation.F64(buffer); 59 factory Float64Array.fromBuffer(ArrayBuffer buffer) => FactoryProviderImplemen tation.F64(buffer);
25 60
26 factory Int8Array(int length) => FactoryProviderImplementation.I8(length); 61 factory Int8Array(int length) => FactoryProviderImplementation.I8(length);
(...skipping 26 matching lines...) Expand all
53 } 88 }
54 89
55 class _WebKitPointFactoryProvider { 90 class _WebKitPointFactoryProvider {
56 factory WebKitPoint(num x, num y) => FactoryProviderImplementation.createWebKi tPoint(x, y); 91 factory WebKitPoint(num x, num y) => FactoryProviderImplementation.createWebKi tPoint(x, y);
57 } 92 }
58 93
59 class _WebSocketFactoryProvider { 94 class _WebSocketFactoryProvider {
60 factory WebSocket(String url) => FactoryProviderImplementation.createWebSocket (url); 95 factory WebSocket(String url) => FactoryProviderImplementation.createWebSocket (url);
61 } 96 }
62 97
98 class _WorkerFactoryProvider {
99 factory Worker(String scriptUrl) =>
100 FactoryProviderImplementation.createWorker(scriptUrl);
101 }
63 class _XMLHttpRequestFactoryProvider { 102 class _XMLHttpRequestFactoryProvider {
64 factory XMLHttpRequest() => FactoryProviderImplementation.createXMLHttpRequest (); 103 factory XMLHttpRequest() => FactoryProviderImplementation.createXMLHttpRequest ();
65 } 104 }
66 105
67 class _XSLTProcessorFactoryProvider { 106 class _XSLTProcessorFactoryProvider {
68 factory XSLTProcessor() => FactoryProviderImplementation.createXSLTProcessor() ; 107 factory XSLTProcessor() => FactoryProviderImplementation.createXSLTProcessor() ;
69 } 108 }
109
110 // TODO(sra): Fill in these:
111 class _DOMURLFactoryProvider {}
112 class _FileReaderSyncFactoryProvider {}
113 class _HTMLAudioElementFactoryProvider {}
114 class _HTMLOptionElementFactoryProvider {}
115 class _MediaControllerFactoryProvider {}
116 class _MessageChannelFactoryProvider {}
117 class _WebKitBlobBuilderFactoryProvider {}
118 class _XPathEvaluatorFactoryProvider {}
119 class _XMLSerializerFactoryProvider {}
OLDNEW
« no previous file with comments | « client/dom/src/frog_FactoryProviders.dart ('k') | client/dom/src/native_FactoryProvidersImplementation.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698