summaryrefslogtreecommitdiffstats
path: root/WebKit/android/WebCoreSupport/ChromeClientAndroid.cpp
diff options
context:
space:
mode:
authorTeng-Hui Zhu <ztenghui@google.com>2011-03-14 18:16:58 -0700
committerTeng-Hui Zhu <ztenghui@google.com>2011-03-16 22:08:21 -0700
commit8e1d10880da3108f7eb53ae81682a7c4192a2e3f (patch)
tree6deb52bbc30b59fadd8f46de3211fd86e3db175d /WebKit/android/WebCoreSupport/ChromeClientAndroid.cpp
parent9863c30dfa5b5a03577c0ad069bb04d70435ac2d (diff)
downloadexternal_webkit-8e1d10880da3108f7eb53ae81682a7c4192a2e3f.zip
external_webkit-8e1d10880da3108f7eb53ae81682a7c4192a2e3f.tar.gz
external_webkit-8e1d10880da3108f7eb53ae81682a7c4192a2e3f.tar.bz2
Pass the URL at the enterfullscreen time
bug:2126902 Change-Id: I84a27fabccc32ef85c8d78d6702d22ffca497db7
Diffstat (limited to 'WebKit/android/WebCoreSupport/ChromeClientAndroid.cpp')
-rw-r--r--WebKit/android/WebCoreSupport/ChromeClientAndroid.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/WebKit/android/WebCoreSupport/ChromeClientAndroid.cpp b/WebKit/android/WebCoreSupport/ChromeClientAndroid.cpp
index 013972a..5cfa1b5 100644
--- a/WebKit/android/WebCoreSupport/ChromeClientAndroid.cpp
+++ b/WebKit/android/WebCoreSupport/ChromeClientAndroid.cpp
@@ -574,6 +574,7 @@ void ChromeClientAndroid::enterFullscreenForNode(Node* node)
return;
HTMLMediaElement* videoElement = static_cast<HTMLMediaElement*>(node);
+ String url = videoElement->currentSrc();
LayerAndroid* layer = videoElement->platformLayer();
if (!layer)
return;
@@ -581,7 +582,7 @@ void ChromeClientAndroid::enterFullscreenForNode(Node* node)
FrameView* frameView = m_webFrame->page()->mainFrame()->view();
android::WebViewCore* core = android::WebViewCore::getWebViewCore(frameView);
if (core)
- core->enterFullscreenForVideoLayer(layer->uniqueId());
+ core->enterFullscreenForVideoLayer(layer->uniqueId(), url);
}
void ChromeClientAndroid::exitFullscreenForNode(Node* node)