Make clicking the trackball on a <select> element work.
Optionally pass a frame and node pointer to nativeClick, since the hit testing does not find the HTMLSelectElement node. Also change the signature of nativeClick to return void, since we never use the return value. Requires a change in external/webkit.
This commit is contained in:
@@ -4677,13 +4677,14 @@ public class WebView extends AbsoluteLayout
|
||||
break;
|
||||
}
|
||||
nativeSetFollowedLink(true);
|
||||
mWebViewCore.sendMessage(EventHub.SET_MOVE_MOUSE,
|
||||
cursorData());
|
||||
WebViewCore.CursorData data = cursorData();
|
||||
mWebViewCore.sendMessage(EventHub.SET_MOVE_MOUSE, data);
|
||||
playSoundEffect(SoundEffectConstants.CLICK);
|
||||
boolean isTextInput = nativeCursorIsTextInput();
|
||||
if (isTextInput || !mCallbackProxy.uiOverrideUrlLoading(
|
||||
nativeCursorText())) {
|
||||
mWebViewCore.sendMessage(EventHub.CLICK);
|
||||
mWebViewCore.sendMessage(EventHub.CLICK, data.mFrame,
|
||||
nativeCursorNodePointer());
|
||||
}
|
||||
if (isTextInput) {
|
||||
rebuildWebTextView();
|
||||
|
||||
@@ -348,7 +348,7 @@ final class WebViewCore {
|
||||
private native boolean nativeKey(int keyCode, int unichar,
|
||||
int repeatCount, boolean isShift, boolean isAlt, boolean isDown);
|
||||
|
||||
private native boolean nativeClick();
|
||||
private native void nativeClick(int framePtr, int nodePtr);
|
||||
|
||||
private native void nativeSendListBoxChoices(boolean[] choices, int size);
|
||||
|
||||
@@ -803,7 +803,7 @@ final class WebViewCore {
|
||||
break;
|
||||
|
||||
case CLICK:
|
||||
nativeClick();
|
||||
nativeClick(msg.arg1, msg.arg2);
|
||||
break;
|
||||
|
||||
case VIEW_SIZE_CHANGED:
|
||||
|
||||
Reference in New Issue
Block a user