summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Kristian Monsen <kristianm@google.com> 2013-04-12 21:05:15 +0000
committer Android (Google) Code Review <android-gerrit@google.com> 2013-04-12 21:05:15 +0000
commit03499a23f9d84fab95a7383b50cc7f87a974e4a8 (patch)
treebf2518bd44e6da8a8539b8e1d83c5263290049e3
parentdec4bb9e4b5a46b179a6aa3e90f9d9240d9c99cb (diff)
parent0e0b2daa983a7d9587bb761d5a018b698482e0a1 (diff)
Merge "Fix for bug 8589670: Marking a not called WebChromeClient as deprecated." into jb-mr2-dev
-rw-r--r--api/current.txt2
-rw-r--r--core/java/android/webkit/WebChromeClient.java7
2 files changed, 7 insertions, 2 deletions
diff --git a/api/current.txt b/api/current.txt
index 3f04078d471e..a5f56f1a55fd 100644
--- a/api/current.txt
+++ b/api/current.txt
@@ -27638,7 +27638,7 @@ package android.webkit {
method public void onReceivedTouchIconUrl(android.webkit.WebView, java.lang.String, boolean);
method public void onRequestFocus(android.webkit.WebView);
method public void onShowCustomView(android.view.View, android.webkit.WebChromeClient.CustomViewCallback);
- method public void onShowCustomView(android.view.View, int, android.webkit.WebChromeClient.CustomViewCallback);
+ method public deprecated void onShowCustomView(android.view.View, int, android.webkit.WebChromeClient.CustomViewCallback);
}
public static abstract interface WebChromeClient.CustomViewCallback {
diff --git a/core/java/android/webkit/WebChromeClient.java b/core/java/android/webkit/WebChromeClient.java
index e93db0912fc9..21b0578f1355 100644
--- a/core/java/android/webkit/WebChromeClient.java
+++ b/core/java/android/webkit/WebChromeClient.java
@@ -69,7 +69,9 @@ public class WebChromeClient {
/**
* Notify the host application that the current page would
- * like to show a custom View.
+ * like to show a custom View. This is used for Fullscreen
+ * video playback; see "HTML5 Video support" documentation on
+ * {@link WebView}.
* @param view is the View object to be shown.
* @param callback is the callback to be invoked if and when the view
* is dismissed.
@@ -84,7 +86,10 @@ public class WebChromeClient {
* {@link ActivityInfo#screenOrientation ActivityInfo.screenOrientation}.
* @param callback is the callback to be invoked if and when the view
* is dismissed.
+ * @deprecated This method supports the obsolete plugin mechanism,
+ * and will not be invoked in future
*/
+ @Deprecated
public void onShowCustomView(View view, int requestedOrientation,
CustomViewCallback callback) {};