Changeset 192470 in webkit


Ignore:
Timestamp:
Nov 16, 2015 6:15:12 AM (8 years ago)
Author:
commit-queue@webkit.org
Message:

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

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

  • bindings/js/JSDOMWindowBase.cpp:

(WebCore::JSDOMWindowBase::finishCreation):
Expose RTCPeerConnectionInternals functions to JS builtins.

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r192466 r192470  
     12015-11-16  Sebastian Dröge  <sebastian@centricular.com>
     2
     3        WebRTC: Expose RTCPeerConnectionInternals functions to JS builtins.
     4        https://bugs.webkit.org/show_bug.cgi?id=151302
     5
     6        Reviewed by Youenn Fablet.
     7
     8        * bindings/js/JSDOMWindowBase.cpp:
     9        (WebCore::JSDOMWindowBase::finishCreation):
     10        Expose RTCPeerConnectionInternals functions to JS builtins.
     11
    1122015-11-16  Xabier Rodriguez Calvar  <calvaris@igalia.com>
    213
  • trunk/Source/WebCore/bindings/js/JSDOMWindowBase.cpp

    r191999 r192470  
    5757#endif
    5858
     59#if ENABLE(MEDIA_STREAM)
     60#include "RTCPeerConnectionInternalsBuiltins.h"
     61#endif
     62
    5963using namespace JSC;
    6064
     
    8690    m_privateFunctions.init(*this);
    8791
    88 #if ENABLE(STREAMS_API)
     92#if ENABLE(STREAMS_API) || ENABLE(MEDIA_STREAM)
    8993    JSVMClientData& clientData = *static_cast<JSVMClientData*>(vm.clientData);
    9094#endif
     
    118122#undef DECLARE_GLOBAL_STATIC
    119123#endif
     124#if ENABLE(MEDIA_STREAM)
     125#define DECLARE_GLOBAL_STATIC(name)\
     126        GlobalPropertyInfo(\
     127            clientData.builtinFunctions().rTCPeerConnectionInternalsBuiltins().name##PrivateName(), m_privateFunctions.rTCPeerConnectionInternals().m_##name##Function.get() , DontDelete | ReadOnly),
     128        WEBCORE_FOREACH_RTCPEERCONNECTIONINTERNALS_BUILTIN_FUNCTION_NAME(DECLARE_GLOBAL_STATIC)
     129#undef DECLARE_GLOBAL_STATIC
     130#endif
    120131    };
    121132
Note: See TracChangeset for help on using the changeset viewer.