From 3c90952036a5ff7ddb2946c643f1a0bf1c31d53a Mon Sep 17 00:00:00 2001 From: Jonathan Dixon Date: Tue, 28 Feb 2012 18:45:06 +0000 Subject: Refactor WebView to be a thin proxy class Splits interface and implementation; all client calls are forwarded to an abstract WebViewProvider interface, and the existing implementation moved into the WebViewClassic implementor of this interface. Originally taken from a snapshot from the development branch, by: git diff HEAD 9a4c328a54cc05e5 | git apply - but then rebased to keep up to date with master Interdepends on webkit and Browser changes: https://android-git.corp.google.com/g/158979 https://android-git.corp.google.com/g/167911 Change-Id: I91403f32654ff308934e95c832d17b292a7d9b2e --- core/java/android/webkit/HTML5VideoViewProxy.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'core/java/android/webkit/HTML5VideoViewProxy.java') diff --git a/core/java/android/webkit/HTML5VideoViewProxy.java b/core/java/android/webkit/HTML5VideoViewProxy.java index d306c861e28f..1644b0671ad2 100644 --- a/core/java/android/webkit/HTML5VideoViewProxy.java +++ b/core/java/android/webkit/HTML5VideoViewProxy.java @@ -75,8 +75,8 @@ class HTML5VideoViewProxy extends Handler int mNativePointer; // The handler for WebCore thread messages; private Handler mWebCoreHandler; - // The WebView instance that created this view. - private WebView mWebView; + // The WebViewClassic instance that created this view. + private WebViewClassic mWebView; // The poster image to be shown when the video is not playing. // This ref prevents the bitmap from being GC'ed. private Bitmap mPoster; @@ -142,7 +142,7 @@ class HTML5VideoViewProxy extends Handler } public static void enterFullScreenVideo(int layerId, String url, - HTML5VideoViewProxy proxy, WebView webView) { + HTML5VideoViewProxy proxy, WebViewClassic webView) { // Save the inline video info and inherit it in the full screen int savePosition = 0; if (mHTML5VideoView != null) { @@ -163,7 +163,7 @@ class HTML5VideoViewProxy extends Handler } public static void exitFullScreenVideo(HTML5VideoViewProxy proxy, - WebView webView) { + WebViewClassic webView) { if (!mHTML5VideoView.fullScreenExited() && mHTML5VideoView.isFullScreenMode()) { WebChromeClient client = webView.getWebChromeClient(); if (client != null) { @@ -551,7 +551,7 @@ class HTML5VideoViewProxy extends Handler * @param webView is the WebView that hosts the video. * @param nativePtr is the C++ pointer to the MediaPlayerPrivate object. */ - private HTML5VideoViewProxy(WebView webView, int nativePtr) { + private HTML5VideoViewProxy(WebViewClassic webView, int nativePtr) { // This handler is for the main (UI) thread. super(Looper.getMainLooper()); // Save the WebView object. @@ -721,7 +721,7 @@ class HTML5VideoViewProxy extends Handler return new HTML5VideoViewProxy(webViewCore.getWebView(), nativePtr); } - /* package */ WebView getWebView() { + /* package */ WebViewClassic getWebView() { return mWebView; } -- cgit v1.2.3