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

Issue 2626903004: Don't show the virtual keyboard if there's no text input client (Closed)

Created:
3 years, 11 months ago by afakhry
Modified:
3 years, 11 months ago
Reviewers:
sadrul
CC:
chromium-reviews, yusukes+watch_chromium.org, shuchen+watch_chromium.org, jam, jbauman+watch_chromium.org, nona+watch_chromium.org, darin-cc_chromium.org, piman+watch_chromium.org, kalyank, danakj+watch_chromium.org, James Su
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Don't show the virtual keyboard if there's no text input client If a mousedown event was set to preventDefault() and the focus was in a text input field, it won't blur the focus from the text input field, and the following mouseup event will update the TextInputState of the widget with the same TextInputType and ShowIme::IF_NEEDED. If this is a minimize button of an app for example, the widget will hide, but the later received IPC msg to UpdateTextInputState() will cause the virtual keyboard to show up. We need to make sure that the virtual keyboard is not shown as a result of UpdateTextInputState() unless there's a valid text input client. BUG=430026 TEST=Enable the virtual keyboard from settings. Open feedback app (Alt+Shift+i) and minimize it. The virtual keyboard should not show. Review-Url: https://codereview.chromium.org/2626903004 Cr-Commit-Position: refs/heads/master@{#443141} Committed: https://chromium.googlesource.com/chromium/src/+/e850e3f2f671adc21ef92570dea76f9146b19e7a

Patch Set 1 #

Total comments: 4

Patch Set 2 : Solution 2 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+3 lines, -2 lines) Patch
M content/browser/renderer_host/render_widget_host_view_aura.cc View 1 1 chunk +3 lines, -2 lines 0 comments Download

Messages

Total messages: 18 (10 generated)
afakhry
Sadrul, could you please review this CL? Thanks!
3 years, 11 months ago (2017-01-11 01:43:33 UTC) #2
sadrul
https://codereview.chromium.org/2626903004/diff/1/content/browser/renderer_host/render_widget_host_view_aura.cc File content/browser/renderer_host/render_widget_host_view_aura.cc (right): https://codereview.chromium.org/2626903004/diff/1/content/browser/renderer_host/render_widget_host_view_aura.cc#newcode2306 content/browser/renderer_host/render_widget_host_view_aura.cc:2306: GetInputMethod()->GetTextInputType() != ui::TEXT_INPUT_TYPE_NONE) { Two alternate options that I ...
3 years, 11 months ago (2017-01-11 02:46:06 UTC) #3
afakhry
https://codereview.chromium.org/2626903004/diff/1/content/browser/renderer_host/render_widget_host_view_aura.cc File content/browser/renderer_host/render_widget_host_view_aura.cc (right): https://codereview.chromium.org/2626903004/diff/1/content/browser/renderer_host/render_widget_host_view_aura.cc#newcode2306 content/browser/renderer_host/render_widget_host_view_aura.cc:2306: GetInputMethod()->GetTextInputType() != ui::TEXT_INPUT_TYPE_NONE) { On 2017/01/11 02:46:06, sadrul wrote: ...
3 years, 11 months ago (2017-01-11 17:50:49 UTC) #4
sadrul
https://codereview.chromium.org/2626903004/diff/1/content/browser/renderer_host/render_widget_host_view_aura.cc File content/browser/renderer_host/render_widget_host_view_aura.cc (right): https://codereview.chromium.org/2626903004/diff/1/content/browser/renderer_host/render_widget_host_view_aura.cc#newcode2306 content/browser/renderer_host/render_widget_host_view_aura.cc:2306: GetInputMethod()->GetTextInputType() != ui::TEXT_INPUT_TYPE_NONE) { On 2017/01/11 17:50:49, afakhry wrote: ...
3 years, 11 months ago (2017-01-11 17:53:27 UTC) #7
afakhry
https://codereview.chromium.org/2626903004/diff/1/content/browser/renderer_host/render_widget_host_view_aura.cc File content/browser/renderer_host/render_widget_host_view_aura.cc (right): https://codereview.chromium.org/2626903004/diff/1/content/browser/renderer_host/render_widget_host_view_aura.cc#newcode2306 content/browser/renderer_host/render_widget_host_view_aura.cc:2306: GetInputMethod()->GetTextInputType() != ui::TEXT_INPUT_TYPE_NONE) { On 2017/01/11 17:53:27, sadrul wrote: ...
3 years, 11 months ago (2017-01-11 18:36:00 UTC) #9
sadrul
lgtm
3 years, 11 months ago (2017-01-12 02:52:00 UTC) #13
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/2626903004/20001
3 years, 11 months ago (2017-01-12 03:04:35 UTC) #15
commit-bot: I haz the power
3 years, 11 months ago (2017-01-12 03:53:44 UTC) #18
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/e850e3f2f671adc21ef92570dea7...

Powered by Google App Engine
This is Rietveld 408576698