Title: [192470] trunk/Source/WebCore
Revision
192470
Author
commit-qu...@webkit.org
Date
2015-11-16 06:15:12 -0800 (Mon, 16 Nov 2015)

Log Message

WebRTC: Expose RTCPeerConnectionInternals functions to JS builtins.
https://bugs.webkit.org/show_bug.cgi?id=151302

Patch by Sebastian Dröge <sebast...@centricular.com> on 2015-11-16
Reviewed by Youenn Fablet.

* bindings/js/JSDOMWindowBase.cpp:
(WebCore::JSDOMWindowBase::finishCreation):
Expose RTCPeerConnectionInternals functions to JS builtins.

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (192469 => 192470)


--- trunk/Source/WebCore/ChangeLog	2015-11-16 13:02:00 UTC (rev 192469)
+++ trunk/Source/WebCore/ChangeLog	2015-11-16 14:15:12 UTC (rev 192470)
@@ -1,3 +1,14 @@
+2015-11-16  Sebastian Dröge  <sebast...@centricular.com>
+
+        WebRTC: Expose RTCPeerConnectionInternals functions to JS builtins.
+        https://bugs.webkit.org/show_bug.cgi?id=151302
+
+        Reviewed by Youenn Fablet.
+
+        * bindings/js/JSDOMWindowBase.cpp:
+        (WebCore::JSDOMWindowBase::finishCreation):
+        Expose RTCPeerConnectionInternals functions to JS builtins.
+
 2015-11-16  Xabier Rodriguez Calvar  <calva...@igalia.com>
 
         [Streams API] Update the implementation up to spec of Nov 11 2015

Modified: trunk/Source/WebCore/bindings/js/JSDOMWindowBase.cpp (192469 => 192470)


--- trunk/Source/WebCore/bindings/js/JSDOMWindowBase.cpp	2015-11-16 13:02:00 UTC (rev 192469)
+++ trunk/Source/WebCore/bindings/js/JSDOMWindowBase.cpp	2015-11-16 14:15:12 UTC (rev 192470)
@@ -56,6 +56,10 @@
 #include "WritableStreamInternalsBuiltins.h"
 #endif
 
+#if ENABLE(MEDIA_STREAM)
+#include "RTCPeerConnectionInternalsBuiltins.h"
+#endif
+
 using namespace JSC;
 
 namespace WebCore {
@@ -85,7 +89,7 @@
 
     m_privateFunctions.init(*this);
 
-#if ENABLE(STREAMS_API)
+#if ENABLE(STREAMS_API) || ENABLE(MEDIA_STREAM)
     JSVMClientData& clientData = *static_cast<JSVMClientData*>(vm.clientData);
 #endif
 
@@ -117,6 +121,13 @@
         WEBCORE_FOREACH_WRITABLESTREAMINTERNALS_BUILTIN_FUNCTION_NAME(DECLARE_GLOBAL_STATIC)
 #undef DECLARE_GLOBAL_STATIC
 #endif
+#if ENABLE(MEDIA_STREAM)
+#define DECLARE_GLOBAL_STATIC(name)\
+        GlobalPropertyInfo(\
+            clientData.builtinFunctions().rTCPeerConnectionInternalsBuiltins().name##PrivateName(), m_privateFunctions.rTCPeerConnectionInternals().m_##name##Function.get() , DontDelete | ReadOnly),
+        WEBCORE_FOREACH_RTCPEERCONNECTIONINTERNALS_BUILTIN_FUNCTION_NAME(DECLARE_GLOBAL_STATIC)
+#undef DECLARE_GLOBAL_STATIC
+#endif
     };
 
     addStaticGlobals(staticGlobals, WTF_ARRAY_LENGTH(staticGlobals));
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to