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 9b8eea8517993ae9876604ba9a8ab8b716f27edf..39a6607fc86f7691e4eea7f68d5bb2c9fb17a218 100644 |
--- a/tools/dom/templates/html/impl/impl_RTCPeerConnection.darttemplate |
+++ b/tools/dom/templates/html/impl/impl_RTCPeerConnection.darttemplate |
@@ -62,5 +62,17 @@ $endif |
_getStats((value) { completer.complete(value); }, selector); |
return completer.future; |
} |
+ |
+ @DomName('RTCPeerConnection.generateCertificate') |
+ @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 |
} |