am 0a784a54: When requesting the href of a link, also request the link\'s text.

Merge commit '0a784a545303cc5fcd9ecbc260d1fa0d0d0b8336' into eclair-mr2-plus-aosp

* commit '0a784a545303cc5fcd9ecbc260d1fa0d0d0b8336':
  When requesting the href of a link, also request the link's text.
This commit is contained in:
Ben Murdoch
2009-11-19 05:00:12 -08:00
committed by Android Git Automerger

View File

@@ -506,6 +506,7 @@ final class WebViewCore {
int framePtr, int x, int y);
private native String nativeRetrieveHref(int framePtr, int nodePtr);
private native String nativeRetrieveAnchorText(int framePtr, int nodePtr);
private native void nativeTouchUp(int touchGeneration,
int framePtr, int nodePtr, int x, int y);
@@ -1160,8 +1161,10 @@ final class WebViewCore {
case REQUEST_CURSOR_HREF: {
Message hrefMsg = (Message) msg.obj;
String res = nativeRetrieveHref(msg.arg1, msg.arg2);
hrefMsg.getData().putString("url", res);
hrefMsg.getData().putString("url",
nativeRetrieveHref(msg.arg1, msg.arg2));
hrefMsg.getData().putString("title",
nativeRetrieveAnchorText(msg.arg1, msg.arg2));
hrefMsg.sendToTarget();
break;
}