From 1ad3955a6008f5f442fa5eb0adf7c4e6ba2f17cd Mon Sep 17 00:00:00 2001 From: Michael Wright Date: Wed, 27 Apr 2016 13:07:18 -0400 Subject: Remove onUhandledInputEvent API. This callback was never used by WebView and anyone that overrides it is going to just be broken since we never actually call into it from the method that WebView does call. Furthermore, the WebView team has decided that the API has too many complications to ever implement, the most notable of which is that MotionEvents tend to come in streams that would need to be buffered in order to detect the event before it can be determined whether they were handled or not which means that any uses of the API are inevitably going to be janky experiences. Bug: 14279909 Change-Id: I068601ce947bccacabfe55b86b06005449b65bcf --- core/java/android/webkit/WebViewClient.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'core/java/android/webkit/WebViewClient.java') diff --git a/core/java/android/webkit/WebViewClient.java b/core/java/android/webkit/WebViewClient.java index 8318656342d7..76d3fb15d049 100644 --- a/core/java/android/webkit/WebViewClient.java +++ b/core/java/android/webkit/WebViewClient.java @@ -403,9 +403,7 @@ public class WebViewClient { * * @param view The WebView that is initiating the callback. * @param event The key event. - * @deprecated This method is subsumed by the more generic onUnhandledInputEvent. */ - @Deprecated public void onUnhandledKeyEvent(WebView view, KeyEvent event) { onUnhandledInputEventInternal(view, event); } @@ -427,6 +425,7 @@ public class WebViewClient { * * @param view The WebView that is initiating the callback. * @param event The input event. + * @removed */ public void onUnhandledInputEvent(WebView view, InputEvent event) { if (event instanceof KeyEvent) { -- cgit v1.2.3