summaryrefslogtreecommitdiffstats
path: root/Source/WebKit/android/WebCoreSupport/ChromeClientAndroid.cpp
diff options
context:
space:
mode:
authorTeng-Hui Zhu <ztenghui@google.com>2012-01-12 17:42:39 -0800
committerTeng-Hui Zhu <ztenghui@google.com>2012-01-16 17:10:54 -0800
commit95740c40dc0b78f1342ec0c257664b4300a07e6b (patch)
tree5a9addf353bc813d3c993f78098c0cf1e2e9be1c /Source/WebKit/android/WebCoreSupport/ChromeClientAndroid.cpp
parenta0bdcf4b6af8cf34f8421c373f6b19b74e441db9 (diff)
downloadexternal_webkit-95740c40dc0b78f1342ec0c257664b4300a07e6b.zip
external_webkit-95740c40dc0b78f1342ec0c257664b4300a07e6b.tar.gz
external_webkit-95740c40dc0b78f1342ec0c257664b4300a07e6b.tar.bz2
Support javascript to exit full screen video
When webkit side receive the webkitExitFullscreen, just send it over to the java side. framework change: https://android-git.corp.google.com/g/#/c/158653/ Change-Id: Ice2a5ea33458a8bf3e6990e288d94d5f032b0921
Diffstat (limited to 'Source/WebKit/android/WebCoreSupport/ChromeClientAndroid.cpp')
-rw-r--r--Source/WebKit/android/WebCoreSupport/ChromeClientAndroid.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/Source/WebKit/android/WebCoreSupport/ChromeClientAndroid.cpp b/Source/WebKit/android/WebCoreSupport/ChromeClientAndroid.cpp
index ab5fcb0..f907440 100644
--- a/Source/WebKit/android/WebCoreSupport/ChromeClientAndroid.cpp
+++ b/Source/WebKit/android/WebCoreSupport/ChromeClientAndroid.cpp
@@ -638,6 +638,11 @@ void ChromeClientAndroid::enterFullscreenForNode(Node* node)
void ChromeClientAndroid::exitFullscreenForNode(Node* node)
{
+ FrameView* frameView = m_webFrame->page()->mainFrame()->view();
+ android::WebViewCore* core = android::WebViewCore::getWebViewCore(frameView);
+ if (core)
+ core->exitFullscreenVideo();
+ return;
}
#endif