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 {} |