Loading api/current.xml +1 −1 Original line number Diff line number Diff line Loading @@ -189161,7 +189161,7 @@ synchronized="false" static="false" final="false" deprecated="not deprecated" deprecated="deprecated" visibility="public" > <parameter name="view" type="android.webkit.WebView"> core/java/android/webkit/CallbackProxy.java +3 −26 Original line number Diff line number Diff line Loading @@ -90,7 +90,6 @@ class CallbackProxy extends Handler { private static final int JS_PROMPT = 114; private static final int JS_UNLOAD = 115; private static final int ASYNC_KEYEVENTS = 116; private static final int TOO_MANY_REDIRECTS = 117; private static final int DOWNLOAD_FILE = 118; private static final int REPORT_ERROR = 119; private static final int RESEND_POST_DATA = 120; Loading Loading @@ -276,19 +275,6 @@ class CallbackProxy extends Handler { } break; case TOO_MANY_REDIRECTS: Message cancelMsg = (Message) msg.getData().getParcelable("cancelMsg"); Message continueMsg = (Message) msg.getData().getParcelable("continueMsg"); if (mWebViewClient != null) { mWebViewClient.onTooManyRedirects(mWebView, cancelMsg, continueMsg); } else { cancelMsg.sendToTarget(); } break; case REPORT_ERROR: if (mWebViewClient != null) { int reasonCode = msg.arg1; Loading Loading @@ -790,19 +776,10 @@ class CallbackProxy extends Handler { sendMessage(msg); } // Because this method is public and because CallbackProxy is mistakenly // party of the public classes, we cannot remove this method. public void onTooManyRedirects(Message cancelMsg, Message continueMsg) { // Do an unsynchronized quick check to avoid posting if no callback has // been set. if (mWebViewClient == null) { cancelMsg.sendToTarget(); return; } Message msg = obtainMessage(TOO_MANY_REDIRECTS); Bundle bundle = msg.getData(); bundle.putParcelable("cancelMsg", cancelMsg); bundle.putParcelable("continueMsg", continueMsg); sendMessage(msg); // deprecated. } public void onReceivedError(int errorCode, String description, Loading core/java/android/webkit/WebViewClient.java +2 −0 Original line number Diff line number Diff line Loading @@ -86,6 +86,8 @@ public class WebViewClient { * @param view The WebView that is initiating the callback. * @param cancelMsg The message to send if the host wants to cancel * @param continueMsg The message to send if the host wants to continue * @deprecated This method is no longer called. When the WebView encounters * a redirect loop, it will cancel the load. */ public void onTooManyRedirects(WebView view, Message cancelMsg, Message continueMsg) { Loading Loading
api/current.xml +1 −1 Original line number Diff line number Diff line Loading @@ -189161,7 +189161,7 @@ synchronized="false" static="false" final="false" deprecated="not deprecated" deprecated="deprecated" visibility="public" > <parameter name="view" type="android.webkit.WebView">
core/java/android/webkit/CallbackProxy.java +3 −26 Original line number Diff line number Diff line Loading @@ -90,7 +90,6 @@ class CallbackProxy extends Handler { private static final int JS_PROMPT = 114; private static final int JS_UNLOAD = 115; private static final int ASYNC_KEYEVENTS = 116; private static final int TOO_MANY_REDIRECTS = 117; private static final int DOWNLOAD_FILE = 118; private static final int REPORT_ERROR = 119; private static final int RESEND_POST_DATA = 120; Loading Loading @@ -276,19 +275,6 @@ class CallbackProxy extends Handler { } break; case TOO_MANY_REDIRECTS: Message cancelMsg = (Message) msg.getData().getParcelable("cancelMsg"); Message continueMsg = (Message) msg.getData().getParcelable("continueMsg"); if (mWebViewClient != null) { mWebViewClient.onTooManyRedirects(mWebView, cancelMsg, continueMsg); } else { cancelMsg.sendToTarget(); } break; case REPORT_ERROR: if (mWebViewClient != null) { int reasonCode = msg.arg1; Loading Loading @@ -790,19 +776,10 @@ class CallbackProxy extends Handler { sendMessage(msg); } // Because this method is public and because CallbackProxy is mistakenly // party of the public classes, we cannot remove this method. public void onTooManyRedirects(Message cancelMsg, Message continueMsg) { // Do an unsynchronized quick check to avoid posting if no callback has // been set. if (mWebViewClient == null) { cancelMsg.sendToTarget(); return; } Message msg = obtainMessage(TOO_MANY_REDIRECTS); Bundle bundle = msg.getData(); bundle.putParcelable("cancelMsg", cancelMsg); bundle.putParcelable("continueMsg", continueMsg); sendMessage(msg); // deprecated. } public void onReceivedError(int errorCode, String description, Loading
core/java/android/webkit/WebViewClient.java +2 −0 Original line number Diff line number Diff line Loading @@ -86,6 +86,8 @@ public class WebViewClient { * @param view The WebView that is initiating the callback. * @param cancelMsg The message to send if the host wants to cancel * @param continueMsg The message to send if the host wants to continue * @deprecated This method is no longer called. When the WebView encounters * a redirect loop, it will cancel the load. */ public void onTooManyRedirects(WebView view, Message cancelMsg, Message continueMsg) { Loading