Skip to content

Commit 20c19f4

Browse files
George MountAndroid (Google) Code Review
authored andcommitted
Merge "Remove unused FORM_DID_BLUR hooks."
2 parents ac21af3 + c3cbedd commit 20c19f4

File tree

2 files changed

+0
-16
lines changed

2 files changed

+0
-16
lines changed

core/java/android/webkit/WebViewClassic.java

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1204,7 +1204,6 @@ public void onTrimMemory(int level) {
12041204
static final int SHOW_FULLSCREEN = 120;
12051205
static final int HIDE_FULLSCREEN = 121;
12061206
static final int REPLACE_BASE_CONTENT = 123;
1207-
static final int FORM_DID_BLUR = 124;
12081207
static final int UPDATE_MATCH_COUNT = 126;
12091208
static final int CENTER_FIT_RECT = 127;
12101209
static final int REQUEST_KEYBOARD_WITH_SELECTION_MSG_ID = 128;
@@ -1274,7 +1273,6 @@ public void onTrimMemory(int level) {
12741273
"HIDE_FULLSCREEN", // = 121;
12751274
"DOM_FOCUS_CHANGED", // = 122;
12761275
"REPLACE_BASE_CONTENT", // = 123;
1277-
"FORM_DID_BLUR", // = 124;
12781276
"RETURN_LABEL", // = 125;
12791277
"UPDATE_MATCH_COUNT", // = 126;
12801278
"CENTER_FIT_RECT", // = 127;
@@ -8295,9 +8293,6 @@ public void handleMessage(Message msg) {
82958293
updateTextSelectionFromMessage(msg.arg1, msg.arg2,
82968294
(WebViewCore.TextSelectionData) msg.obj);
82978295
break;
8298-
case FORM_DID_BLUR:
8299-
// TODO: Figure out if this is needed for something (b/6111763)
8300-
break;
83018296
case TAKE_FOCUS:
83028297
int direction = msg.arg1;
83038298
View focusSearch = mWebView.focusSearch(direction);

core/java/android/webkit/WebViewCore.java

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -324,17 +324,6 @@ protected void jsAlert(String url, String message) {
324324
mCallbackProxy.onJsAlert(url, message);
325325
}
326326

327-
/**
328-
* Called by JNI. Send a message to the UI thread to hide the soft keyboard
329-
* if the node pointed to by nodePointer is still in focus.
330-
* @param nodePointer The node which just blurred.
331-
*/
332-
private void formDidBlur(int nodePointer) {
333-
if (mWebViewClassic == null) return;
334-
Message.obtain(mWebViewClassic.mPrivateHandler, WebViewClassic.FORM_DID_BLUR,
335-
nodePointer, 0).sendToTarget();
336-
}
337-
338327
/**
339328
* Called by JNI when the focus node changed.
340329
*/

0 commit comments

Comments
 (0)