Permalink
Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
2010-12-16 Yi Shen <yi.4.shen@nokia.com>, Tor Arne Vestbo <tor.arne.v…
…estbo@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): Canonical link: https://commits.webkit.org/64575@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@74228 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
1 parent
583fd2e
commit c4eac8ecf6be29a2608df1f27742607bb2c7239a
Showing
5 changed files
with
36 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@@ -521,4 +521,9 @@ void Chrome::showContextMenu() | ||
} | ||
#endif | ||
|
||
bool Chrome::requiresFullscreenForVideoPlayback() | ||
{ | ||
return m_client->requiresFullscreenForVideoPlayback(); | ||
} | ||
|
||
} // namespace WebCore |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters