2010-12-16 Yi Shen <yi.4.shen@nokia.com>, Tor Arne Vestbo <tor.arne.vestbo@nokia...
authorAdemar de Souza Reis Jr <ademar.reis@openbossa.org>
Tue, 4 Jan 2011 15:01:36 +0000 (12:01 -0300)
committerAdemar de Souza Reis Jr <ademar.reis@openbossa.org>
Tue, 4 Jan 2011 15:01:36 +0000 (12:01 -0300)
commit6f4a70efd033fe040898081e7fed3b51f566a7d2
tree9bb25e597b68cc2ca365827d48cffff0465881b3
parentdd6e586723a550b49e66347abeb1b8acd53746f7
2010-12-16  Yi Shen  <yi.4.shen@nokia.com>, Tor Arne Vestbo <tor.arne.vestbo@nokia.com>

        Reviewed by Eric Carlson.

        Provide an interface to require using fullscreen mediaplayer
        https://bugs.webkit.org/show_bug.cgi?id=51133

        Add ChromeClient::requiresFullscreenForVideoPlayback to require webkit
        to launch fullscreen video player for playing the html5 video. The
        idea is that a browser vendor can specify this behavior through the
        platform plugin or something else by using this interface.

        No new tests because no client implements requiresFullscreenForVideoPlayback yet.

        * html/HTMLMediaElement.cpp:
        (WebCore::HTMLMediaElement::updatePlayState):
        (WebCore::HTMLMediaElement::exitFullscreen):
        * page/Chrome.cpp:
        (WebCore::Chrome::requiresFullscreenForVideoPlayback):
        * page/Chrome.h:
        * page/ChromeClient.h:
        (WebCore::ChromeClient::requiresFullscreenForVideoPlayback):

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

Conflicts:

WebCore/html/HTMLMediaElement.cpp
WebCore/ChangeLog
WebCore/html/HTMLMediaElement.cpp
WebCore/page/Chrome.cpp
WebCore/page/Chrome.h
WebCore/page/ChromeClient.h