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

Issue 59553003: Do not show IME on every touchend event when input field has focus (Closed)

Created:
7 years, 1 month ago by kbalazs
Modified:
6 years, 11 months ago
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam, Rick Byers, abarth-chromium
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Do not show IME on every touchend event when input field has focus Stop showing the virtual keyboard every time a touchend is consumed by the page. Instead let focus() trigger it when appropriate. This still makes us work well with fastclick. BUG=318460

Patch Set 1 #

Patch Set 2 : 2nd approach with focus() #

Total comments: 1

Patch Set 3 : fix based on focusedNodeChange and a Blink patch #

Patch Set 4 : changed test expectation #

Patch Set 5 : tweaking unit test further #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+8 lines, -10 lines) Patch
M content/public/android/javatests/src/org/chromium/content/browser/input/ImeTest.java View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download
M content/renderer/render_view_impl.cc View 1 2 3 4 1 chunk +6 lines, -1 line 2 comments Download
M content/renderer/render_widget.cc View 1 2 3 1 chunk +0 lines, -7 lines 0 comments Download

Messages

Total messages: 35 (0 generated)
kbalazs
I did not do a deep testing, just a quick check to see if IME ...
7 years, 1 month ago (2013-11-12 23:28:05 UTC) #1
jochen (gone - plz use gerrit)
+suzhe, olilan - thoughts?
7 years, 1 month ago (2013-11-13 11:53:10 UTC) #2
olilan
On 2013/11/13 11:53:10, jochen wrote: > +suzhe, olilan - thoughts? Sorry, I no longer work ...
7 years, 1 month ago (2013-11-13 18:39:13 UTC) #3
kbalazs
One test has failed but from the error message it does not seem to related ...
7 years, 1 month ago (2013-11-13 19:39:04 UTC) #4
James Su
Rubber Stamp LGTM. On 2013/11/13 19:39:04, kbalazs wrote: > One test has failed but from ...
7 years, 1 month ago (2013-11-14 01:08:45 UTC) #5
aurimas (slooooooooow)
NOT LGTM. Please do not land it yet and follow up on the discussion on ...
7 years, 1 month ago (2013-11-14 01:20:17 UTC) #6
kbalazs
Besides removing the problematic part I changed the call to UpdateTextInputState in RenderViewImpl::didChangeSelection so that ...
7 years ago (2013-12-02 22:39:06 UTC) #7
aurimas (slooooooooow)
https://codereview.chromium.org/59553003/diff/110001/content/renderer/render_view_impl.cc File content/renderer/render_view_impl.cc (right): https://codereview.chromium.org/59553003/diff/110001/content/renderer/render_view_impl.cc#newcode2622 content/renderer/render_view_impl.cc:2622: UpdateTextInputState(true, true); Selection change is not the same as ...
7 years ago (2013-12-02 23:15:04 UTC) #8
kbalazs
On 2013/12/02 23:15:04, aurimas wrote: > https://codereview.chromium.org/59553003/diff/110001/content/renderer/render_view_impl.cc > File content/renderer/render_view_impl.cc (right): > > https://codereview.chromium.org/59553003/diff/110001/content/renderer/render_view_impl.cc#newcode2622 > ...
7 years ago (2013-12-03 20:57:52 UTC) #9
kbalazs
If I call UpdateTextInputState with show_ime_if_needed=false than it will not show the ime because the ...
7 years ago (2013-12-04 18:50:54 UTC) #10
kbalazs
The code that prevents the ime to show on the browser side when didChangeSelection calls ...
7 years ago (2013-12-04 20:12:41 UTC) #11
aurimas (slooooooooow)
> The code that prevents the ime to show on the browser side when > ...
7 years ago (2013-12-05 00:19:01 UTC) #12
kbalazs
> Your patch would break the behavior of only allowing gestures to bring up the ...
7 years ago (2013-12-05 01:37:09 UTC) #13
kbalazs
> > - GetTextInputType() return TEXT_INPUT_TYP_NONE in > > RenderViewImpl::focusedNodeChanged, although the focused node is ...
7 years ago (2013-12-05 22:23:01 UTC) #14
kbalazs
On 2013/12/05 22:23:01, kbalazs wrote: > > > - GetTextInputType() return TEXT_INPUT_TYP_NONE in > > ...
7 years ago (2013-12-05 23:52:35 UTC) #15
aurimas (slooooooooow)
On 2013/12/05 23:52:35, kbalazs wrote: > On 2013/12/05 22:23:01, kbalazs wrote: > > > > ...
7 years ago (2013-12-06 00:00:19 UTC) #16
kbalazs
On 2013/12/06 00:00:19, aurimas wrote: > On 2013/12/05 23:52:35, kbalazs wrote: > > On 2013/12/05 ...
7 years ago (2013-12-06 23:30:42 UTC) #17
kbalazs
New patch is depending on https://codereview.chromium.org/103863007/
7 years ago (2013-12-07 00:38:04 UTC) #18
kbalazs
On 2013/12/07 00:38:04, kbalazs wrote: > New patch is depending on https://codereview.chromium.org/103863007/ Blink patch landed, ...
7 years ago (2013-12-11 17:04:52 UTC) #19
aurimas (slooooooooow)
LGTM
7 years ago (2013-12-11 17:07:30 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/b.kelemen@samsung.com/59553003/120001
7 years ago (2013-12-11 18:07:58 UTC) #21
commit-bot: I haz the power
Retried try job too often on chromium_presubmit for step(s) presubmit http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=chromium_presubmit&number=40675
7 years ago (2013-12-11 18:27:58 UTC) #22
jochen (gone - plz use gerrit)
lgtm
7 years ago (2013-12-11 21:15:22 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/b.kelemen@samsung.com/59553003/120001
7 years ago (2013-12-11 22:07:10 UTC) #24
kbalazs
FYI the blink patch was rolled out because it caused a regression in an android ...
7 years ago (2013-12-13 15:37:13 UTC) #25
kbalazs
So it turns out that both Blink and ime tests agree that WebView::textInputInfo should be ...
7 years ago (2013-12-13 16:09:37 UTC) #26
kbalazs
@aurimas: could you share your opinion about my last comments please?
7 years ago (2013-12-17 21:16:24 UTC) #27
aurimas (slooooooooow)
On 2013/12/13 16:09:37, kbalazs wrote: > So it turns out that both Blink and ime ...
7 years ago (2013-12-18 17:06:11 UTC) #28
kbalazs
On 2013/12/18 17:06:11, aurimas wrote: > On 2013/12/13 16:09:37, kbalazs wrote: > > So it ...
7 years ago (2013-12-18 22:23:29 UTC) #29
kbalazs
On 2013/12/18 22:23:29, kbalazs wrote: > On 2013/12/18 17:06:11, aurimas wrote: > > On 2013/12/13 ...
7 years ago (2013-12-20 01:50:41 UTC) #30
klobag.chromium
https://codereview.chromium.org/59553003/diff/230001/content/renderer/render_view_impl.cc File content/renderer/render_view_impl.cc (right): https://codereview.chromium.org/59553003/diff/230001/content/renderer/render_view_impl.cc#newcode2831 content/renderer/render_view_impl.cc:2831: void RenderViewImpl::focusedNodeChanged(const WebNode& node) { If user dismisses the ...
6 years, 11 months ago (2014-01-23 23:01:49 UTC) #31
aurimas (slooooooooow)
https://codereview.chromium.org/59553003/diff/230001/content/renderer/render_view_impl.cc File content/renderer/render_view_impl.cc (right): https://codereview.chromium.org/59553003/diff/230001/content/renderer/render_view_impl.cc#newcode2831 content/renderer/render_view_impl.cc:2831: void RenderViewImpl::focusedNodeChanged(const WebNode& node) { On 2014/01/23 23:01:49, klobag.chromium ...
6 years, 11 months ago (2014-01-23 23:05:22 UTC) #32
kbalazs
On 2014/01/23 23:05:22, aurimas wrote: > https://codereview.chromium.org/59553003/diff/230001/content/renderer/render_view_impl.cc > File content/renderer/render_view_impl.cc (right): > > https://codereview.chromium.org/59553003/diff/230001/content/renderer/render_view_impl.cc#newcode2831 > ...
6 years, 11 months ago (2014-01-24 20:56:06 UTC) #33
aurimas (slooooooooow)
On 2014/01/24 20:56:06, kbalazs wrote: > On 2014/01/23 23:05:22, aurimas wrote: > > > https://codereview.chromium.org/59553003/diff/230001/content/renderer/render_view_impl.cc ...
6 years, 11 months ago (2014-01-24 21:01:09 UTC) #34
kbalazs
6 years, 11 months ago (2014-01-24 21:14:25 UTC) #35
As it turned out we don't want the behavior change this patch implies (showing
the virtual keyboard when js calls focus()). So the tests are right and we
should not land this. Although the quirk we have now and which makes us
compatible with fastclick is not very correct, I'm not sure we can do much
better. Closing this for now.

Powered by Google App Engine
This is Rietveld 408576698