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

Unified Diff: client/dom/src/wrapping_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/wrapping_FactoryProviders.dart
diff --git a/client/dom/src/wrapping_FactoryProviders.dart b/client/dom/src/wrapping_FactoryProviders.dart
index 449543a630359bac0c18ed152f3266b30696e939..627b458c352b7eef0d5c8169bc8192cc9efb2536 100644
--- a/client/dom/src/wrapping_FactoryProviders.dart
+++ b/client/dom/src/wrapping_FactoryProviders.dart
@@ -16,6 +16,13 @@ class _DOMParserFactoryProvider {
static DOMParser create() native;
}
+class _EventSourceFactoryProvider {
+
+ factory EventSource(String scriptUrl) { return create(scriptUrl); }
+
+ static create(scriptUrl);
+}
+
class _FileReaderFactoryProvider {
factory FileReader() { return create(); }
@@ -23,6 +30,48 @@ class _FileReaderFactoryProvider {
static FileReader create() native;
}
+class _MediaStreamFactoryProvider {
+
+ factory MediaStream(MediaStreamTrackList audioTracks,
+ MediaStreamTrackList videoTracks)
+ => create(audioTracks, videoTracks);
+
+ static create(audioTracks, videoTracks) native;
+}
+
+class _PeerConnectionFactoryProvider {
+
+ factory PeerConnection(String serverConfiguration,
+ SignalingCallback signalingCallback)
+ => create(serverConfiguration, signalingCallback);
+
+ static create(serverConfiguration, signalingCallback) native;
+}
+
+class _ShadowRootFactoryProvider {
+
+ factory ShadowRoot(Element host) => create(host);
+
+ static create(host) native;
+}
+
+class _SharedWorkerFactoryProvider {
+
+ factory SharedWorker(String scriptURL, [String name])
+ => create(scriptURL, name);
+
+ static create(scriptURL, name) native;
+}
+
+class _TextTrackCueFactoryProvider {
+
+ factory TextTrackCue(String id, num startTime, num endTime, String text,
+ [String settings, bool pauseOnExit])
+ => create(id, startTime, endTime, text, settings, pauseOnExit);
+
+ static create(id, startTime, endTime, text, settings, pauseOnExit);
+}
+
class _TypedArrayFactoryProvider {
factory Float32Array(int length) => _F32(length);
@@ -76,9 +125,9 @@ class _TypedArrayFactoryProvider {
class _WebKitCSSMatrixFactoryProvider {
- factory WebKitCSSMatrix([String spec = '']) { return create(spec); }
+ factory WebKitCSSMatrix([String cssValue = '']) { return create(cssValue); }
- static WebKitCSSMatrix create(spec) native;
+ static WebKitCSSMatrix create(cssValue) native;
}
class _WebKitPointFactoryProvider {
@@ -95,6 +144,13 @@ class _WebSocketFactoryProvider {
static WebKitPoint create(url) native;
}
+class _WorkerFactoryProvider {
+
+ factory Worker(String scriptUrl) { return create(scriptUrl); }
+
+ static create(scriptUrl) native;
+}
+
class _XMLHttpRequestFactoryProvider {
factory XMLHttpRequest() { return create(); }
@@ -108,3 +164,12 @@ class _XSLTProcessorFactoryProvider {
static XSLTProcessor create() native;
}
+
+// TODO(sra): Fill in these:
+class _DOMURLFactoryProvider {}
+class _FileReaderSyncFactoryProvider {}
+class _MediaControllerFactoryProvider {}
+class _MessageChannelFactoryProvider {}
+class _WebKitBlobBuilderFactoryProvider {}
+class _XPathEvaluatorFactoryProvider {}
+class _XMLSerializerFactoryProvider {}
« no previous file with comments | « client/dom/src/native_FactoryProvidersImplementation.dart ('k') | client/dom/templates/dom/dummy/factoryprovider.darttemplate » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698