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

Unified Diff: tools/dom/templates/html/impl/impl_RTCPeerConnection.darttemplate

Issue 2978213002: Removed DARTIUM codegen for IDLS (sdk/lib/dartium) (Closed)
Patch Set: Update generated darttemplate Created 3 years, 5 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: tools/dom/templates/html/impl/impl_RTCPeerConnection.darttemplate
diff --git a/tools/dom/templates/html/impl/impl_RTCPeerConnection.darttemplate b/tools/dom/templates/html/impl/impl_RTCPeerConnection.darttemplate
index 39a6607fc86f7691e4eea7f68d5bb2c9fb17a218..ae4681554cd6376eb43166e1d9885cbfe006281a 100644
--- a/tools/dom/templates/html/impl/impl_RTCPeerConnection.darttemplate
+++ b/tools/dom/templates/html/impl/impl_RTCPeerConnection.darttemplate
@@ -5,7 +5,6 @@
part of $LIBRARYNAME;
$(ANNOTATIONS)$(NATIVESPEC)$(CLASS_MODIFIERS)class $CLASSNAME$EXTENDS$IMPLEMENTS {
-$if DART2JS
factory $CLASSNAME(Map rtcIceServers, [Map mediaConstraints]) {
var constructorName = JS('RtcPeerConnection', 'window[#]',
'${Device.propertyPrefix}RTCPeerConnection');
@@ -18,13 +17,11 @@ $if DART2JS
convertDartToNative_SerializedScriptValue(rtcIceServers));
}
}
-$endif
/**
* Checks if Real Time Communication (RTC) APIs are supported and enabled on
* the current platform.
*/
-$if DART2JS
static bool get supported {
// Currently in Firefox some of the RTC elements are defined but throw an
// error unless the user has specifically enabled them in their
@@ -37,9 +34,6 @@ $if DART2JS
} catch (_) { return false;}
return false;
}
-$else
- static bool get supported => true;
-$endif
Future<RtcSessionDescription> createOffer([Map mediaConstraints]) {
var completer = new Completer<RtcSessionDescription>();
_createOffer(
@@ -67,12 +61,7 @@ $endif
@DocsEditable()
@Experimental() // untriaged
static Future generateCertificate(/*AlgorithmIdentifier*/ keygenAlgorithm) =>
-$if DART2JS
JS('dynamic', 'generateCertificate(#)', keygenAlgorithm);
-$else
- convertNativePromiseToDartFuture(_blink.BlinkRTCPeerConnection.instance
- .generateCertificate_Callback_1_(keygenAlgorithm));
-$endif
$!MEMBERS
}
« no previous file with comments | « tools/dom/templates/html/impl/impl_Node.darttemplate ('k') | tools/dom/templates/html/impl/impl_RadioNodeList.darttemplate » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698