diff options
author | Teng-Hui Zhu <ztenghui@google.com> | 2012-01-12 17:42:39 -0800 |
---|---|---|
committer | Teng-Hui Zhu <ztenghui@google.com> | 2012-01-16 17:10:54 -0800 |
commit | 95740c40dc0b78f1342ec0c257664b4300a07e6b (patch) | |
tree | 5a9addf353bc813d3c993f78098c0cf1e2e9be1c /Source/WebKit/android/WebCoreSupport/ChromeClientAndroid.cpp | |
parent | a0bdcf4b6af8cf34f8421c373f6b19b74e441db9 (diff) | |
download | external_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.cpp | 5 |
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 |