diff options
| author | 2009-10-07 18:00:19 -0700 | |
|---|---|---|
| committer | 2009-10-09 11:57:05 -0700 | |
| commit | 94ab3b6d0e9a5a914c7706ed1888c9d27756f7e4 (patch) | |
| tree | ef3147ce2d3396cdab3c7f38e590134234f3d043 | |
| parent | 70ca3c25b959427359bdb7cf37a8c3d6eb962357 (diff) | |
Expose WebViewClient of WebView.
| -rw-r--r-- | core/java/android/webkit/CallbackProxy.java | 10 | ||||
| -rw-r--r-- | core/java/android/webkit/WebView.java | 10 |
2 files changed, 20 insertions, 0 deletions
diff --git a/core/java/android/webkit/CallbackProxy.java b/core/java/android/webkit/CallbackProxy.java index bde18600a312..f9dec7f30aaf 100644 --- a/core/java/android/webkit/CallbackProxy.java +++ b/core/java/android/webkit/CallbackProxy.java @@ -150,6 +150,16 @@ class CallbackProxy extends Handler { } /** + * Get the WebViewClient. + * @return the current WebViewClient instance. + * + *@hide pending API council approval. + */ + public WebViewClient getWebViewClient() { + return mWebViewClient; + } + + /** * Set the WebChromeClient. * @param client An implementation of WebChromeClient. */ diff --git a/core/java/android/webkit/WebView.java b/core/java/android/webkit/WebView.java index a1590af3fcaf..28e9921fdca0 100644 --- a/core/java/android/webkit/WebView.java +++ b/core/java/android/webkit/WebView.java @@ -2630,6 +2630,16 @@ public class WebView extends AbsoluteLayout } /** + * Gets the WebViewClient + * @return the current WebViewClient instance. + * + *@hide pending API council approval. + */ + public WebViewClient getWebViewClient() { + return mCallbackProxy.getWebViewClient(); + } + + /** * Register the interface to be used when content can not be handled by * the rendering engine, and should be downloaded instead. This will replace * the current handler. |