2009-03-04 Eric Carlson <eric.carlson@apple.com>
authoreric.carlson@apple.com <eric.carlson@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 4 Mar 2009 22:21:16 +0000 (22:21 +0000)
committereric.carlson@apple.com <eric.carlson@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 4 Mar 2009 22:21:16 +0000 (22:21 +0000)
commit8ccd81759a0bd561a92a00b3cc6ded4f5d0d303c
tree539e96c98fed0846c8839a9ddcf39b3b1d97b0dc
parent75ac6439a9c0479c8e3ae18555e496592cd798ca
2009-03-04  Eric Carlson  <eric.carlson@apple.com>

        Reviewed by Antti Koivisto.

        https://bugs.webkit.org/show_bug.cgi?id=24364
        Add support for HTMLMediaElement canPlayType method. Make
        MediaPlayer::supportsType take a ContentType instead of a
        separate mime type and codecs parameter.

        Test: media/video-can-play-type.html

        * dom/DOMImplementation.cpp:
        (WebCore::DOMImplementation::createDocument):
        * html/HTMLMediaElement.cpp:
        (WebCore::HTMLMediaElement::canPlayType): Add canPlayType method.
        (WebCore::HTMLMediaElement::loadInternal): selectMediaURL returns a ContentType.
        (WebCore::HTMLMediaElement::selectMediaURL): Return a ContentType instead of raw MIME type.
        (WebCore::HTMLMediaElement::initialURL): selectMediaURL returns a ContentType.
        * html/HTMLMediaElement.h: Add prototype.
        * html/HTMLMediaElement.idl: Ditto.
        * platform/graphics/MediaPlayer.cpp:
        (WebCore::MediaPlayer::load): Take a ContentType instead of raw MIME type.
        (WebCore::MediaPlayer::supportsType): Ditto.
        * platform/graphics/MediaPlayer.h:

2009-03-04  Eric Carlson  <eric.carlson@apple.com>

        Reviewed by Antti Koivisto.

        https://bugs.webkit.org/show_bug.cgi?id=24364
        Test HTMLMediaElement canPlayType method.

        * media/video-can-play-type-expected.txt: Added.
        * media/video-can-play-type.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@41432 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/media/video-can-play-type-expected.txt [new file with mode: 0644]
LayoutTests/media/video-can-play-type.html [new file with mode: 0644]
WebCore/ChangeLog
WebCore/dom/DOMImplementation.cpp
WebCore/html/HTMLMediaElement.cpp
WebCore/html/HTMLMediaElement.h
WebCore/html/HTMLMediaElement.idl
WebCore/platform/graphics/MediaPlayer.cpp
WebCore/platform/graphics/MediaPlayer.h