Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(317)

Issue 2290133002: Make WebView keep keyboard when losing focus (Closed)

Created:
4 years, 3 months ago by yabinh
Modified:
4 years, 1 month ago
CC:
aelias_OOO_until_Jul13, android-webview-reviews_chromium.org, chromium-reviews, darin-cc_chromium.org, jam
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Make WebView keep keyboard when losing focus WebView should not hide keyboard when losing focus. As for Chrome, it should keep current behavior. These cases include when the ContentView is hidden (closing current tab, opening a new tab, switching to an existing tab), and when imeAdapter is attached to its native counterpart(navigation). Note that this CL will change one behavior of Chrome: keyboard will not be hidden when focus moves from ContentView to UrlBar. BUG=636237 Committed: https://crrev.com/66d5ae12299e85269251cd655d46a7b5710b7c80 Cr-Commit-Position: refs/heads/master@{#429531}

Patch Set 1 #

Total comments: 1

Patch Set 2 : Add some tests #

Total comments: 9

Patch Set 3 : Only for Test. Use CallbackHelper, but still flaky. #

Total comments: 3

Patch Set 4 : Restrict tabstest to tablet. #

Patch Set 5 #

Total comments: 14

Patch Set 6 : Address changwan@'s review #

Patch Set 7 #

Patch Set 8 : Rebase #

Patch Set 9 #

Total comments: 2

Patch Set 10 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+92 lines, -86 lines) Patch
M chrome/android/javatests/src/org/chromium/chrome/browser/TabsTest.java View 1 2 3 4 5 6 7 8 2 chunks +54 lines, -0 lines 0 comments Download
M chrome/test/data/android/tabstest/tabs_test.html View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M content/public/android/BUILD.gn View 1 2 3 4 5 6 7 8 9 1 chunk +0 lines, -1 line 0 comments Download
M content/public/android/java/src/org/chromium/content/browser/input/ImeAdapter.java View 1 2 3 4 5 3 chunks +2 lines, -1 line 0 comments Download
M content/public/android/javatests/src/org/chromium/content/browser/ContentViewCoreFocusTest.java View 1 2 3 4 5 1 chunk +0 lines, -75 lines 0 comments Download
M content/public/android/javatests/src/org/chromium/content/browser/input/ImeTest.java View 1 2 3 4 5 6 7 8 9 3 chunks +34 lines, -9 lines 0 comments Download
M content/test/data/android/input/input_forms.html View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 71 (45 generated)
yabinh
changwan@, PTAL. Thanks~ https://codereview.chromium.org/2290133002/diff/1/content/public/android/java/src/org/chromium/content/browser/input/ImeAdapter.java File content/public/android/java/src/org/chromium/content/browser/input/ImeAdapter.java (right): https://codereview.chromium.org/2290133002/diff/1/content/public/android/java/src/org/chromium/content/browser/input/ImeAdapter.java#newcode349 content/public/android/java/src/org/chromium/content/browser/input/ImeAdapter.java:349: resetAndHideKeyboard(); For navigation.
4 years, 3 months ago (2016-08-30 06:32:11 UTC) #5
Changwan Ryu
Could you add to TabsTest some tests to verify tab management cases and to ImeTest ...
4 years, 3 months ago (2016-08-30 07:13:44 UTC) #6
yabinh
On 2016/08/30 07:13:44, Changwan Ryu wrote: > Could you add to TabsTest some tests to ...
4 years, 3 months ago (2016-09-08 08:51:44 UTC) #12
Changwan Ryu
https://codereview.chromium.org/2290133002/diff/20001/android_webview/javatests/src/org/chromium/android_webview/test/AwImeTest.java File android_webview/javatests/src/org/chromium/android_webview/test/AwImeTest.java (right): https://codereview.chromium.org/2290133002/diff/20001/android_webview/javatests/src/org/chromium/android_webview/test/AwImeTest.java#newcode115 android_webview/javatests/src/org/chromium/android_webview/test/AwImeTest.java:115: CriteriaHelper.pollUiThread(new Criteria() { FYI, this test is based on ...
4 years, 3 months ago (2016-09-09 01:07:29 UTC) #19
Changwan Ryu
https://codereview.chromium.org/2290133002/diff/20001/content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java File content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java (right): https://codereview.chromium.org/2290133002/diff/20001/content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java#newcode1311 content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java:1311: mImeAdapter.resetAndHideKeyboard(); As we talked offline, I'm still not convinced ...
4 years, 3 months ago (2016-09-21 01:22:45 UTC) #20
yabinh
On 2016/09/21 01:22:45, Changwan Ryu wrote: > https://codereview.chromium.org/2290133002/diff/20001/content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java > File > content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java > (right): > ...
4 years, 2 months ago (2016-09-30 06:03:35 UTC) #21
Changwan Ryu
On 2016/09/30 06:03:35, yabinh wrote: > On 2016/09/21 01:22:45, Changwan Ryu wrote: > > > ...
4 years, 2 months ago (2016-09-30 06:34:35 UTC) #22
Changwan Ryu
https://codereview.chromium.org/2290133002/diff/40001/chrome/android/javatests/src/org/chromium/chrome/browser/TabsTest.java File chrome/android/javatests/src/org/chromium/chrome/browser/TabsTest.java (right): https://codereview.chromium.org/2290133002/diff/40001/chrome/android/javatests/src/org/chromium/chrome/browser/TabsTest.java#newcode293 chrome/android/javatests/src/org/chromium/chrome/browser/TabsTest.java:293: ImeAdapter imeAdapter = So the flakiness we talked about ...
4 years, 2 months ago (2016-10-12 12:15:49 UTC) #23
Changwan Ryu
https://codereview.chromium.org/2290133002/diff/40001/chrome/android/javatests/src/org/chromium/chrome/browser/TabsTest.java File chrome/android/javatests/src/org/chromium/chrome/browser/TabsTest.java (right): https://codereview.chromium.org/2290133002/diff/40001/chrome/android/javatests/src/org/chromium/chrome/browser/TabsTest.java#newcode293 chrome/android/javatests/src/org/chromium/chrome/browser/TabsTest.java:293: ImeAdapter imeAdapter = On 2016/10/12 12:15:49, Changwan Ryu wrote: ...
4 years, 2 months ago (2016-10-12 12:19:45 UTC) #24
yabinh
https://codereview.chromium.org/2290133002/diff/40001/chrome/android/javatests/src/org/chromium/chrome/browser/TabsTest.java File chrome/android/javatests/src/org/chromium/chrome/browser/TabsTest.java (right): https://codereview.chromium.org/2290133002/diff/40001/chrome/android/javatests/src/org/chromium/chrome/browser/TabsTest.java#newcode293 chrome/android/javatests/src/org/chromium/chrome/browser/TabsTest.java:293: ImeAdapter imeAdapter = On 2016/10/12 12:15:49, Changwan Ryu wrote: ...
4 years, 2 months ago (2016-10-13 03:13:45 UTC) #25
yabinh
https://codereview.chromium.org/2290133002/diff/20001/android_webview/javatests/src/org/chromium/android_webview/test/AwImeTest.java File android_webview/javatests/src/org/chromium/android_webview/test/AwImeTest.java (right): https://codereview.chromium.org/2290133002/diff/20001/android_webview/javatests/src/org/chromium/android_webview/test/AwImeTest.java#newcode115 android_webview/javatests/src/org/chromium/android_webview/test/AwImeTest.java:115: CriteriaHelper.pollUiThread(new Criteria() { On 2016/09/09 01:07:29, Changwan Ryu wrote: ...
4 years, 2 months ago (2016-10-18 08:57:49 UTC) #30
Changwan Ryu
In the description of this CL, could you replace "WebView loses focus to TextEditor in ...
4 years, 2 months ago (2016-10-19 05:10:21 UTC) #33
yabinh
https://codereview.chromium.org/2290133002/diff/80001/android_webview/javatests/src/org/chromium/android_webview/test/AwImeTest.java File android_webview/javatests/src/org/chromium/android_webview/test/AwImeTest.java (right): https://codereview.chromium.org/2290133002/diff/80001/android_webview/javatests/src/org/chromium/android_webview/test/AwImeTest.java#newcode150 android_webview/javatests/src/org/chromium/android_webview/test/AwImeTest.java:150: waitForNonNullInputConnection(); On 2016/10/19 05:10:21, Changwan Ryu wrote: > Is ...
4 years, 2 months ago (2016-10-24 01:40:57 UTC) #39
yabinh
Rebased patch.
4 years, 1 month ago (2016-10-31 07:14:51 UTC) #44
aelias_OOO_until_Jul13
Still lgtm from my POV; changwan@, is this ready to go? I'd like to get ...
4 years, 1 month ago (2016-11-01 03:23:56 UTC) #51
Changwan Ryu
lgtm https://codereview.chromium.org/2290133002/diff/160001/chrome/android/javatests/src/org/chromium/chrome/browser/TabsTest.java File chrome/android/javatests/src/org/chromium/chrome/browser/TabsTest.java (right): https://codereview.chromium.org/2290133002/diff/160001/chrome/android/javatests/src/org/chromium/chrome/browser/TabsTest.java#newcode287 chrome/android/javatests/src/org/chromium/chrome/browser/TabsTest.java:287: == org.chromium.ui.UiUtils.isKeyboardShowing( no need for line separation here
4 years, 1 month ago (2016-11-01 03:49:31 UTC) #52
yabinh
nyquist@: Please review changes in chrome/android/javatests/src/org/chromium/chrome/browser/TabsTest.java. Thanks~ https://codereview.chromium.org/2290133002/diff/160001/chrome/android/javatests/src/org/chromium/chrome/browser/TabsTest.java File chrome/android/javatests/src/org/chromium/chrome/browser/TabsTest.java (right): https://codereview.chromium.org/2290133002/diff/160001/chrome/android/javatests/src/org/chromium/chrome/browser/TabsTest.java#newcode287 chrome/android/javatests/src/org/chromium/chrome/browser/TabsTest.java:287: == org.chromium.ui.UiUtils.isKeyboardShowing( ...
4 years, 1 month ago (2016-11-01 05:31:01 UTC) #54
Changwan Ryu
ping - nyquist@, could you take a look at TabsTest?
4 years, 1 month ago (2016-11-03 00:43:50 UTC) #55
nyquist
TabsTest.java lgtm
4 years, 1 month ago (2016-11-03 01:06:37 UTC) #56
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2290133002/160001
4 years, 1 month ago (2016-11-03 01:10:01 UTC) #58
commit-bot: I haz the power
Try jobs failed on following builders: chromeos_x86-generic_chromium_compile_only_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromeos_x86-generic_chromium_compile_only_ng/builds/228245) chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, ...
4 years, 1 month ago (2016-11-03 01:13:15 UTC) #60
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2290133002/180001
4 years, 1 month ago (2016-11-03 01:38:29 UTC) #63
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_asan_rel_ng on master.tryserver.chromium.linux (JOB_TIMED_OUT, no build URL)
4 years, 1 month ago (2016-11-03 03:39:10 UTC) #65
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2290133002/180001
4 years, 1 month ago (2016-11-03 05:05:04 UTC) #67
commit-bot: I haz the power
Committed patchset #10 (id:180001)
4 years, 1 month ago (2016-11-03 05:49:56 UTC) #69
commit-bot: I haz the power
4 years, 1 month ago (2016-11-03 05:51:59 UTC) #71
Message was sent while issue was closed.
Patchset 10 (id:??) landed as
https://crrev.com/66d5ae12299e85269251cd655d46a7b5710b7c80
Cr-Commit-Position: refs/heads/master@{#429531}

Powered by Google App Engine
This is Rietveld 408576698