From 8e1d10880da3108f7eb53ae81682a7c4192a2e3f Mon Sep 17 00:00:00 2001 From: Teng-Hui Zhu Date: Mon, 14 Mar 2011 18:16:58 -0700 Subject: Pass the URL at the enterfullscreen time bug:2126902 Change-Id: I84a27fabccc32ef85c8d78d6702d22ffca497db7 --- WebKit/android/WebCoreSupport/ChromeClientAndroid.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'WebKit/android/WebCoreSupport/ChromeClientAndroid.cpp') 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(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) -- cgit v1.1