Skip to content
  • eric.carlson@apple.com's avatar
    Get MEDIA_STREAM compiling on OSX · e85da7d5
    eric.carlson@apple.com authored
    https://bugs.webkit.org/show_bug.cgi?id=120650
    
    Reviewed by Darin Adler.
    
    No new tests, the code changed doesn't run on OSX yet.
    
    * DerivedSources.make: Add MediaStream idl files.
    
    * Modules/mediastream/LocalMediaStream.h: Mark class as FINAL.
    
    * Modules/mediastream/MediaConstraintsImpl.cpp:
    (WebCore::MediaConstraintsImpl::getOptionalConstraints): append -> appendRange so we don't
        need a MediaConstraint copy constructor.
    
    * Modules/mediastream/RTCDataChannel.cpp:
    (WebCore::RTCDataChannel::send): Remove an unused parameter name.
    * Modules/mediastream/RTCDataChannel.h: ArrayBuffer and ArrayBufferView are in the JSC namespace.
    
    * Modules/mediastream/RTCPeerConnection.cpp:
    (WebCore::RTCPeerConnection::RTCPeerConnection): loader() doesn't return a pointer.
    (WebCore::RTCPeerConnection::localDescription): Set the ExceptionCode on error.
    (WebCore::RTCPeerConnection::remoteDescription): Ditto.
    
    * Modules/mediastream/RTCSessionDescription.cpp:
    (WebCore::RTCSessionDescription::setSdp): Remove the unused ExceptionCode parameter.
    * Modules/mediastream/RTCSessionDescription.h: Ditto.
    * Modules/mediastream/RTCSessionDescription.idl: Ditto.
    
    * Modules/mediastream/RTCStatsResponse.cpp:
    (WebCore::RTCStatsResponse::canGetItemsForName): Add so JSRTCStatsResponse::canGetItemsForName
        doesn't cause ref count churn.
    * Modules/mediastream/RTCStatsResponse.h: Mark class as FINAL. Declare canGetItemsForName.
    
    * WebCore.xcodeproj/project.pbxproj: Add new files.
    
    * bindings/js/JSRTCStatsResponseCustom.cpp:
    (WebCore::JSRTCStatsResponse::canGetItemsForName): Use canGetItemsForName instead of namedItem.
        Use propertyNameToAtomicString instead of propertyNameToString 
    (WebCore::JSRTCStatsResponse::nameGetter): Use propertyNameToAtomicString instead of 
        propertyNameToString because namedItem takes an AtomicString.
    
    * platform/mediastream/mac: Added.
    * platform/mediastream/mac/MediaStreamCenterMac.cpp: Added.
    * platform/mediastream/mac/MediaStreamCenterMac.h: Added.
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@155057 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    e85da7d5