summaryrefslogtreecommitdiff
path: root/core/java/android/webkit/WebView.java
diff options
context:
space:
mode:
authorPatrick Scott <phanna@android.com>2010-03-02 08:58:44 -0500
committerPatrick Scott <phanna@android.com>2010-03-02 14:28:07 -0500
commit0b2e84b32af48f4b2b17c72adcf12ad29ec7bb7a (patch)
treea57269fcafe9c730c5d26abeb2e541161b6f5be4 /core/java/android/webkit/WebView.java
parent00611034cacc2d22a2e875509e910a142e359ab6 (diff)
Add a client for WebBackForwardList operations.
Provide a custom data slot in WebHistoryItem to store application data in the history item. A client of WebBackForwardList can insert their custom data into the item when created. In onIndexChanged, the custom data can be read by the client.
Diffstat (limited to 'core/java/android/webkit/WebView.java')
-rw-r--r--core/java/android/webkit/WebView.java19
1 files changed, 19 insertions, 0 deletions
diff --git a/core/java/android/webkit/WebView.java b/core/java/android/webkit/WebView.java
index 577249767de5..72791fb830e7 100644
--- a/core/java/android/webkit/WebView.java
+++ b/core/java/android/webkit/WebView.java
@@ -2860,6 +2860,25 @@ public class WebView extends AbsoluteLayout
}
/**
+ * Set the back/forward list client. This is an implementation of
+ * WebBackForwardListClient for handling new items and changes in the
+ * history index.
+ * @param client An implementation of WebBackForwardListClient.
+ * {@hide}
+ */
+ public void setWebBackForwardListClient(WebBackForwardListClient client) {
+ mCallbackProxy.setWebBackForwardListClient(client);
+ }
+
+ /**
+ * Gets the WebBackForwardListClient.
+ * {@hide}
+ */
+ public WebBackForwardListClient getWebBackForwardListClient() {
+ return mCallbackProxy.getWebBackForwardListClient();
+ }
+
+ /**
* Set the Picture listener. This is an interface used to receive
* notifications of a new Picture.
* @param listener An implementation of WebView.PictureListener.