summaryrefslogtreecommitdiffstats
path: root/Source/WebCore/platform/graphics/MediaPlayer.cpp
diff options
context:
space:
mode:
authorTeng-Hui Zhu <ztenghui@google.com>2012-06-18 16:36:33 -0700
committerTeng-Hui Zhu <ztenghui@google.com>2012-06-27 15:53:05 -0700
commit0675e22b46a05cdd3f6e20133a94bb8448231dfa (patch)
tree46ef3d75d403aa5ed07dede8a356193c8415267e /Source/WebCore/platform/graphics/MediaPlayer.cpp
parent4601e20f7d14b20a1063cae8cc1e87fc85baee39 (diff)
downloadexternal_webkit-0675e22b46a05cdd3f6e20133a94bb8448231dfa.zip
external_webkit-0675e22b46a05cdd3f6e20133a94bb8448231dfa.tar.gz
external_webkit-0675e22b46a05cdd3f6e20133a94bb8448231dfa.tar.bz2
Support fullscreen to inline video transition.
Basically, player is responsible to enter fullscreen mode such that we have the proper proxy updated on the Java side. bug:5710646 framework change: https://android-git.corp.google.com/g/#/c/202139/ Change-Id: Ie7adf620f2e9889142ef153e12d676a5f288bc0a
Diffstat (limited to 'Source/WebCore/platform/graphics/MediaPlayer.cpp')
-rw-r--r--Source/WebCore/platform/graphics/MediaPlayer.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/Source/WebCore/platform/graphics/MediaPlayer.cpp b/Source/WebCore/platform/graphics/MediaPlayer.cpp
index a7e4b90..4e00382 100644
--- a/Source/WebCore/platform/graphics/MediaPlayer.cpp
+++ b/Source/WebCore/platform/graphics/MediaPlayer.cpp
@@ -689,6 +689,14 @@ void MediaPlayer::exitFullscreen()
}
#endif
+#if PLATFORM(ANDROID)
+void MediaPlayer::enterFullscreenMode()
+{
+ // Tell the player to enter full screen mode.
+ m_private->enterFullscreenMode();
+}
+#endif
+
#if USE(ACCELERATED_COMPOSITING)
void MediaPlayer::acceleratedRenderingStateChanged()
{