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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: client/dom/src/native_FactoryProviders.dart
diff --git a/client/dom/src/native_FactoryProviders.dart b/client/dom/src/native_FactoryProviders.dart
index 6f5bc5c714e73c9b029fd74561c9fad1085cb74b..fea8cbb19915894e23163901c17e451273641cb7 100644
--- a/client/dom/src/native_FactoryProviders.dart
+++ b/client/dom/src/native_FactoryProviders.dart
@@ -10,10 +10,45 @@ class _DOMParserFactoryProvider {
factory DOMParser() => FactoryProviderImplementation.createDOMParser();
}
+class _EventSourceFactoryProvider {
+ factory EventSource(String scriptUrl) =>
+ FactoryProviderImplementation.createEventSource(scriptUrl);
+}
+
class _FileReaderFactoryProvider {
factory FileReader() => FactoryProviderImplementation.createFileReader();
}
+class _MediaStreamFactoryProvider {
+ factory MediaStream(MediaStreamTrackList audioTracks,
+ MediaStreamTrackList videoTracks) =>
+ FactoryProviderImplementation.createMediaStream(audioTracks, videoTracks);
+}
+
+class _PeerConnectionFactoryProvider {
+ factory PeerConnection(String serverConfiguration,
+ SignalingCallback signalingCallback) =>
+ FactoryProviderImplementation.createPeerConnection(serverConfiguration,
+ signalingCallback);
+}
+
+class _ShadowRootFactoryProvider {
+ factory ShadowRoot(Element host) =>
+ FactoryProviderImplementation.createShadowRoot(host);
+}
+
+class _SharedWorkerFactoryProvider {
+ factory SharedWorker(String scriptURL, [String name]) =>
+ FactoryProviderImplementation.createSharedWorker(scriptURL, name);
+}
+
+class _TextTrackCueFactoryProvider {
+ factory TextTrackCue(String id, num startTime, num endTime, String text,
+ [String settings, bool pauseOnExit]) =>
+ FactoryProviderImplementation.createTextTrackQue(
+ id, startTime, endTime, text, settings, pauseOnExit);
+}
+
class _TypedArrayFactoryProvider {
factory Float32Array(int length) => FactoryProviderImplementation.F32(length);
factory Float32Array.fromList(List<num> list) => FactoryProviderImplementation.F32(list);
@@ -60,6 +95,10 @@ class _WebSocketFactoryProvider {
factory WebSocket(String url) => FactoryProviderImplementation.createWebSocket(url);
}
+class _WorkerFactoryProvider {
+ factory Worker(String scriptUrl) =>
+ FactoryProviderImplementation.createWorker(scriptUrl);
+}
class _XMLHttpRequestFactoryProvider {
factory XMLHttpRequest() => FactoryProviderImplementation.createXMLHttpRequest();
}
@@ -67,3 +106,14 @@ class _XMLHttpRequestFactoryProvider {
class _XSLTProcessorFactoryProvider {
factory XSLTProcessor() => FactoryProviderImplementation.createXSLTProcessor();
}
+
+// TODO(sra): Fill in these:
+class _DOMURLFactoryProvider {}
+class _FileReaderSyncFactoryProvider {}
+class _HTMLAudioElementFactoryProvider {}
+class _HTMLOptionElementFactoryProvider {}
+class _MediaControllerFactoryProvider {}
+class _MessageChannelFactoryProvider {}
+class _WebKitBlobBuilderFactoryProvider {}
+class _XPathEvaluatorFactoryProvider {}
+class _XMLSerializerFactoryProvider {}
« 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