2011-02-26 Yi Shen <yi.4.shen@nokia.com>
authorAdemar de Souza Reis Jr <ademar.reis@openbossa.org>
Mon, 28 Feb 2011 21:32:59 +0000 (18:32 -0300)
committerAdemar de Souza Reis Jr <ademar.reis@openbossa.org>
Mon, 28 Feb 2011 21:32:59 +0000 (18:32 -0300)
commitac25b02f46a0bc8c15b0c6964c2859071da1daf2
treefb8294d345bffdb532cc88d47480e7fe4b735462
parent847d99314098aabd6cfd099fabbdabfdf5b47b55
2011-02-26  Yi Shen  <yi.4.shen@nokia.com>

        Reviewed by Andreas Kling.

        [Qt] Notify HTMLMediaElement when MediaPlayerPrivateQt's playback state gets changed
        https://bugs.webkit.org/show_bug.cgi?id=55252

        Need to invoke a callback function to notify the HTMLMediaElement
        when MediaPlayerPrivateQt's playback state gets changed.

        * platform/graphics/qt/MediaPlayerPrivateQt.cpp:
        (WebCore::MediaPlayerPrivateQt::MediaPlayerPrivateQt): Set a flag to ignore the playback state change for pre-roll
        (WebCore::MediaPlayerPrivateQt::commitLoad): Call playbackStateChanged() to notify HTMLMediaElement
        (WebCore::MediaPlayerPrivateQt::stateChanged):
        * platform/graphics/qt/MediaPlayerPrivateQt.h:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@79809 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Conflicts:

Source/WebCore/ChangeLog
Source/WebCore/platform/graphics/qt/MediaPlayerPrivateQt.cpp
Source/WebCore/platform/graphics/qt/MediaPlayerPrivateQt.h
WebCore/ChangeLog
WebCore/platform/graphics/qt/MediaPlayerPrivateQt.cpp
WebCore/platform/graphics/qt/MediaPlayerPrivateQt.h