Skip to content
  • commit-queue@webkit.org's avatar
    Add interfaces and stubs for audio and video tracks · 159869e5
    commit-queue@webkit.org authored
    https://bugs.webkit.org/show_bug.cgi?id=113965
    
    Patch by Brendan Long <b.long@cablelabs.com> on 2013-04-19
    Reviewed by Jer Noble.
    
    No new tests because there's no implementations, so there's nothing
    interesting to test.
    
    * CMakeLists.txt: Add AudioTrack, VideoTrack, AudioTrackList and VideoTrackList.
    * DerivedSources.cpp: Same.
    * DerivedSources.make: Same.
    * DerivedSources.pri: Same.
    * GNUmakefile.list.am: Same.
    * Target.pri: Same.
    * UseJSC.cmake: Same.
    * WebCore.vcproj/WebCore.vcproj: Same.
    * WebCore.xcodeproj/project.pbxproj: Same.
    * bindings/gobject/GNUmakefile.am: Same.
    * bindings/js/JSAudioTrackCustom.cpp: Added, based on JSTestTrackCustom
    * bindings/js/JSAudioTrackListCustom.cpp: Same.
    * bindings/js/JSBindingsAllInOne.cpp: Add AudioTrack, VideoTrack, AudioTrackList and VideoTrackList.
    * bindings/js/JSVideoTrackCustom.cpp: Added, based on JSTestTrackCustom
    * bindings/js/JSVideoTrackListCustom.cpp: Same.
    * dom/EventTarget.h: Make AudioTrackList and VideoTrackList event targets.
    * dom/EventTargetFactory.in: Same.
    * html/HTMLMediaElement.cpp:
    (WebCore::HTMLMediaElement::HTMLMediaElement): Add m_audioTracks and m_videoTracks
    (WebCore::HTMLMediaElement::~HTMLMediaElement): Clear clients for audio and video tracks
    (WebCore::HTMLMediaElement::audioTrackEnabledChanged): Added.
    (WebCore::HTMLMediaElement::videoTrackSelectedChanged): Added.
    (WebCore::HTMLMediaElement::mediaPlayerDidAddAudioTrack): Added, based on mediaPlayerDidAddTextTrack
    (WebCore::HTMLMediaElement::mediaPlayerDidAddVideoTrack): Same.
    (WebCore::HTMLMediaElement::mediaPlayerDidRemoveAudioTrack): Added, based on mediaPlayerDidRemoveTextTrack
    (WebCore::HTMLMediaElement::mediaPlayerDidRemoveVideoTrack): Same.
    (WebCore::HTMLMediaElement::addAudioTrack): Added, based on addTextTrack
    (WebCore::HTMLMediaElement::addVideoTrack): Same.
    (WebCore::HTMLMediaElement::removeAudioTrack): Added, based on removeTextTrack
    (WebCore::HTMLMediaElement::removeVideoTrack): Added, based on removeTextTrack
    (WebCore::HTMLMediaElement::removeAllInbandTracks): Remove audio and video tracks too
    (WebCore::HTMLMediaElement::audioTracks): Added, based on textTracks
    (WebCore::HTMLMediaElement::videoTracks): Added, based on textTracks
    (WebCore::HTMLMediaElement::reportMemoryUsage): Add audio and video tracks
    * html/HTMLMediaElement.h: Add audioTracks and videoTracks and related functions
    * html/HTMLMediaElement.idl: Add audioTracks and videoTracks
    * html/track/AudioTrack.cpp: Added, based on TextTrack and InbandTextTrack.
    * html/track/AudioTrack.h: Same.
    * html/track/AudioTrack.idl: Added.
    * html/track/AudioTrackList.cpp: Added, based on TextTrackList
    * html/track/AudioTrackList.h: Same.
    * html/track/AudioTrackList.idl: Added.
    * html/track/TextTrackList.h: Add missing OVERRIDE on interfaceName()
    * html/track/VideoTrack.cpp: Added, based on TextTrack and InbandTextTrack.
    * html/track/VideoTrack.h: Same.
    * html/track/VideoTrack.idl: Added.
    * html/track/VideoTrackList.cpp: Added, based on TextTrackList
    * html/track/VideoTrackList.h: Same.
    * html/track/VideoTrackList.idl: Added.
    * platform/graphics/AudioTrackPrivate.h: Added, based on InbandTextTrackPrivate.h
    * platform/graphics/MediaPlayer.cpp:
    (WebCore::MediaPlayer::addAudioTrack): Added, based on addTextTrack
    (WebCore::MediaPlayer::removeAudioTrack): Added, based on removeTextTrack
    (WebCore::MediaPlayer::addVideoTrack): Added, based on addTextTrack
    (WebCore::MediaPlayer::removeVideoTrack): Added, based on removeTextTrack
    * platform/graphics/MediaPlayer.h:
    (WebCore::MediaPlayerClient::mediaPlayerDidAddAudioTrack): Added, based on mediaPlayerDidAddTextTrack
    (WebCore::MediaPlayerClient::mediaPlayerDidAddVideoTrack): Same
    (WebCore::MediaPlayerClient::mediaPlayerDidRemoveAudioTrack): Added, based on mediaPlayerDidRemoveTextTrack
    (WebCore::MediaPlayerClient::mediaPlayerDidRemoveVideoTrack): Same
    * platform/graphics/VideoTrackPrivate.h: Added, based on InbandTextTrackPrivate.h
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@148785 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    159869e5