Remove obsolete flags from WebViewCore and WebView
Remove NO_FOCUS_CHANGE_BLOCK and BLOCK_FOCUS_CHANGE_UNTIL_KEY_UP, which were part of SET_FINAL_FOCUS (which is no longer used) from WebViewCore. In WebView, do not pass BLOCK_FOCUS_CHANGE_UNTIL_KEY_UP with SET_MOVE_MOUSE, since the receiver does not care about it.
This commit is contained in:
@@ -3310,9 +3310,7 @@ public class WebView extends AbsoluteLayout
|
||||
// coordinates should be in content coordinates.
|
||||
if (nativeCursorIntersects(visibleRect)) {
|
||||
nativeSetFollowedLink(true);
|
||||
mWebViewCore.sendMessage(EventHub.SET_MOVE_MOUSE,
|
||||
EventHub.BLOCK_FOCUS_CHANGE_UNTIL_KEY_UP, 0,
|
||||
cursorData());
|
||||
mWebViewCore.sendMessage(EventHub.SET_MOVE_MOUSE, cursorData());
|
||||
playSoundEffect(SoundEffectConstants.CLICK);
|
||||
return true;
|
||||
} else if (nativeHasCursorNode()) {
|
||||
|
||||
@@ -658,10 +658,6 @@ final class WebViewCore {
|
||||
// private message ids
|
||||
private static final int DESTROY = 200;
|
||||
|
||||
// flag values passed to message SET_FINAL_FOCUS
|
||||
static final int NO_FOCUS_CHANGE_BLOCK = 0;
|
||||
static final int BLOCK_FOCUS_CHANGE_UNTIL_KEY_UP = 1;
|
||||
|
||||
// Private handler for WebCore messages.
|
||||
private Handler mHandler;
|
||||
// Message queue for containing messages before the WebCore thread is
|
||||
|
||||
Reference in New Issue
Block a user