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

Side by Side Diff: client/dom/src/native_FactoryProviders.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
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 _DOMURLFactoryProvider {
14 factory DOMURL() => FactoryProviderImplementation.createDOMURL();
15 }
16
13 class _EventSourceFactoryProvider { 17 class _EventSourceFactoryProvider {
14 factory EventSource(String scriptUrl) => 18 factory EventSource(String scriptUrl) =>
15 FactoryProviderImplementation.createEventSource(scriptUrl); 19 FactoryProviderImplementation.createEventSource(scriptUrl);
16 } 20 }
17 21
18 class _FileReaderFactoryProvider { 22 class _FileReaderFactoryProvider {
19 factory FileReader() => FactoryProviderImplementation.createFileReader(); 23 factory FileReader() => FactoryProviderImplementation.createFileReader();
20 } 24 }
21 25
26 class _FileReaderSyncFactoryProvider {
27 factory FileReaderSync() => FactoryProviderImplementation.createFileReaderSync ();
28 }
29
30 class _HTMLAudioElementFactoryProvider {
31 factory HTMLAudioElement([String src]) => FactoryProviderImplementation.create HTMLAudioElement(src);
32 }
33
34 class _HTMLOptionElementFactoryProvider {
35 factory HTMLOptionElement([String data, String value, bool defaultSelected, bo ol selected]) =>
36 FactoryProviderImplementation.createHTMLOptionElement(data, value, default Selected, selected);
37 }
38
39 class _MediaControllerFactoryProvider {
40 factory MediaController() => FactoryProviderImplementation.createMediaControll er();
41 }
42
22 class _MediaStreamFactoryProvider { 43 class _MediaStreamFactoryProvider {
23 factory MediaStream(MediaStreamTrackList audioTracks, 44 factory MediaStream(MediaStreamTrackList audioTracks,
24 MediaStreamTrackList videoTracks) => 45 MediaStreamTrackList videoTracks) =>
25 FactoryProviderImplementation.createMediaStream(audioTracks, videoTracks); 46 FactoryProviderImplementation.createMediaStream(audioTracks, videoTracks);
26 } 47 }
27 48
49 class _MessageChannelFactoryProvider {
50 factory MessageChannel() => FactoryProviderImplementation.createMessageChannel ();
51 }
52
28 class _PeerConnectionFactoryProvider { 53 class _PeerConnectionFactoryProvider {
29 factory PeerConnection(String serverConfiguration, 54 factory PeerConnection(String serverConfiguration,
30 SignalingCallback signalingCallback) => 55 SignalingCallback signalingCallback) =>
31 FactoryProviderImplementation.createPeerConnection(serverConfiguration, 56 FactoryProviderImplementation.createPeerConnection(serverConfiguration,
32 signalingCallback); 57 signalingCallback);
33 } 58 }
34 59
35 class _ShadowRootFactoryProvider { 60 class _ShadowRootFactoryProvider {
36 factory ShadowRoot(Element host) => 61 factory ShadowRoot(Element host) =>
37 FactoryProviderImplementation.createShadowRoot(host); 62 FactoryProviderImplementation.createShadowRoot(host);
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 105
81 factory Uint32Array(int length) => FactoryProviderImplementation.U32(length); 106 factory Uint32Array(int length) => FactoryProviderImplementation.U32(length);
82 factory Uint32Array.fromList(List<num> list) => FactoryProviderImplementation. U32(list); 107 factory Uint32Array.fromList(List<num> list) => FactoryProviderImplementation. U32(list);
83 factory Uint32Array.fromBuffer(ArrayBuffer buffer) => FactoryProviderImplement ation.U32(buffer); 108 factory Uint32Array.fromBuffer(ArrayBuffer buffer) => FactoryProviderImplement ation.U32(buffer);
84 } 109 }
85 110
86 class _WebKitCSSMatrixFactoryProvider { 111 class _WebKitCSSMatrixFactoryProvider {
87 factory WebKitCSSMatrix([String spec = '']) => FactoryProviderImplementation.c reateWebKitCSSMatrix(spec); 112 factory WebKitCSSMatrix([String spec = '']) => FactoryProviderImplementation.c reateWebKitCSSMatrix(spec);
88 } 113 }
89 114
115 class _WebKitBlobBuilderFactoryProvider {
116 factory WebKitBlobBuilder() => FactoryProviderImplementation.createWebKitBlobB uilder();
117 }
118
90 class _WebKitPointFactoryProvider { 119 class _WebKitPointFactoryProvider {
91 factory WebKitPoint(num x, num y) => FactoryProviderImplementation.createWebKi tPoint(x, y); 120 factory WebKitPoint(num x, num y) => FactoryProviderImplementation.createWebKi tPoint(x, y);
92 } 121 }
93 122
94 class _WebSocketFactoryProvider { 123 class _WebSocketFactoryProvider {
95 factory WebSocket(String url) => FactoryProviderImplementation.createWebSocket (url); 124 factory WebSocket(String url) => FactoryProviderImplementation.createWebSocket (url);
96 } 125 }
97 126
98 class _WorkerFactoryProvider { 127 class _WorkerFactoryProvider {
99 factory Worker(String scriptUrl) => 128 factory Worker(String scriptUrl) =>
100 FactoryProviderImplementation.createWorker(scriptUrl); 129 FactoryProviderImplementation.createWorker(scriptUrl);
101 } 130 }
102 class _XMLHttpRequestFactoryProvider { 131 class _XMLHttpRequestFactoryProvider {
103 factory XMLHttpRequest() => FactoryProviderImplementation.createXMLHttpRequest (); 132 factory XMLHttpRequest() => FactoryProviderImplementation.createXMLHttpRequest ();
104 } 133 }
105 134
135 class _XMLSerializerFactoryProvider {
136 factory XMLSerializer() => FactoryProviderImplementation.createXMLSerializer() ;
137 }
138
139 class _XPathEvaluatorFactoryProvider {
140 factory XPathEvaluator() => FactoryProviderImplementation.createXPathEvaluator ();
141 }
142
106 class _XSLTProcessorFactoryProvider { 143 class _XSLTProcessorFactoryProvider {
107 factory XSLTProcessor() => FactoryProviderImplementation.createXSLTProcessor() ; 144 factory XSLTProcessor() => FactoryProviderImplementation.createXSLTProcessor() ;
108 } 145 }
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/scripts/systemnative.py ('k') | client/dom/src/native_FactoryProvidersImplementation.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698