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

Issue 29943002: Limit display of the virtual keyboard to state changes triggered from a user gesture. (Closed)

Created:
7 years, 2 months ago by kevers
Modified:
6 years, 11 months ago
CC:
chromium-reviews, joi+watch-content_chromium.org, yusukes+watch_chromium.org, jam, penghuang+watch_chromium.org, sievers+watch_chromium.org, jbauman+watch_chromium.org, nona+watch_chromium.org, darin-cc_chromium.org, kalyank, piman+watch_chromium.org, danakj+watch_chromium.org, James Su, miu+watch_chromium.org, Hiro Komatsu
Visibility:
Public.

Description

Limit display of the virtual keyboard to state changes triggered from a user gesture. This patch reuses OnTextInputStateChanged, which was previously Android specific, but which includes not only type information, but whether the virtual keyboard should be displayed. This is the first step in consolidating the IPC messages between RenderWidget and RenderWidgetHostView for IME messages. Ideally, we can phase out OnTextInputTypeChanged in favor of the approach used by Android across all platforms. BUG=289659, 294191, 331690 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=245932

Patch Set 1 #

Total comments: 2

Patch Set 2 : Fix IME unit tests. #

Patch Set 3 : Added TODOs. #

Patch Set 4 : Fix native text views and keyboard unit tests. #

Patch Set 5 : Consolidate naming. #

Patch Set 6 : Fix tests. #

Patch Set 7 : Formatting tweaks. #

Patch Set 8 : Fix views_unittests. #

Patch Set 9 : Fix Windows build. #

Patch Set 10 : Rebase #

Patch Set 11 : Fix unit tests for input methods on Windows. #

Total comments: 14

Patch Set 12 : Address reviewer feedback. #

Total comments: 14

Patch Set 13 : un-const ShowImeIfNeeded. #

Total comments: 2

Patch Set 14 : Remove extra blank line. #

Total comments: 4

Patch Set 15 : Fix merge conflicts. #

Patch Set 16 : Fix merge conflict. #

Patch Set 17 : Fix virtual keyboard browser tests. #

Patch Set 18 : Fix another merge conflict. #

Patch Set 19 : Fix ash_unittests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+216 lines, -67 lines) Patch
M ash/root_window_controller.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +3 lines, -0 lines 0 comments Download
M ash/root_window_controller_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/chromeos/extensions/virtual_keyboard_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 3 chunks +13 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/input_method/textinput_test_helper.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/chromeos/input_method/textinput_test_helper.cc View 1 2 3 4 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/ui/omnibox/omnibox_view.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/ui/omnibox/omnibox_view.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/ui/search/search_tab_helper.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/views/omnibox/omnibox_view_views.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/views/omnibox/omnibox_view_views.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +4 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_aura.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 2 chunks +3 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_aura.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 2 chunks +22 lines, -0 lines 0 comments Download
M content/renderer/render_widget.h View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/render_widget.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 5 chunks +13 lines, -2 lines 0 comments Download
M ui/base/ime/dummy_input_method.h View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M ui/base/ime/dummy_input_method.cc View 1 2 3 4 1 chunk +3 lines, -0 lines 0 comments Download
M ui/base/ime/input_method.h View 1 2 3 4 5 6 7 8 9 1 chunk +3 lines, -0 lines 0 comments Download
M ui/base/ime/input_method_base.h View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M ui/base/ime/input_method_base.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +4 lines, -0 lines 0 comments Download
M ui/base/ime/input_method_base_unittest.cc View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M ui/base/ime/input_method_observer.h View 1 2 3 4 5 6 7 8 9 1 chunk +4 lines, -0 lines 0 comments Download
M ui/base/ime/mock_input_method.h View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M ui/base/ime/mock_input_method.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +4 lines, -0 lines 0 comments Download
M ui/base/ime/remote_input_method_win.cc View 1 2 3 4 5 6 7 8 9 1 chunk +3 lines, -0 lines 0 comments Download
M ui/base/ime/remote_input_method_win_unittest.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -0 lines 0 comments Download
M ui/keyboard/keyboard_controller.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 2 chunks +6 lines, -0 lines 0 comments Download
M ui/keyboard/keyboard_controller.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 4 chunks +57 lines, -48 lines 0 comments Download
M ui/keyboard/keyboard_controller_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 7 chunks +21 lines, -15 lines 0 comments Download
M ui/keyboard/keyboard_util.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +5 lines, -0 lines 0 comments Download
M ui/views/controls/textfield/textfield.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +3 lines, -0 lines 0 comments Download
M ui/views/controls/textfield/textfield.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 3 chunks +9 lines, -1 line 0 comments Download
M ui/views/ime/input_method.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +3 lines, -0 lines 0 comments Download
M ui/views/ime/input_method_bridge.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -0 lines 0 comments Download
M ui/views/ime/input_method_bridge.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +6 lines, -0 lines 0 comments Download
M ui/views/ime/mock_input_method.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -0 lines 0 comments Download
M ui/views/ime/mock_input_method.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 26 (0 generated)
kevers
Hi Sadrul, Can you please take a look at this CL to see if it ...
7 years, 2 months ago (2013-10-18 21:37:15 UTC) #1
sadrul
On 2013/10/18 21:37:15, kevers wrote: > Hi Sadrul, > > Can you please take a ...
7 years, 2 months ago (2013-10-21 02:34:56 UTC) #2
kevers
+nyquist@ for Android IME +nona@ for ChromeOS IME Can you please take a look to ...
7 years, 2 months ago (2013-10-21 14:43:16 UTC) #3
Seigo Nonaka
Your approach looks reasonable to me :) Let me leave one minor comment for IPC ...
7 years, 2 months ago (2013-10-21 16:35:03 UTC) #4
kevers
https://codereview.chromium.org/29943002/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/29943002/diff/1/content/browser/renderer_host/render_widget_host_view_aura.cc#newcode1069 content/browser/renderer_host/render_widget_host_view_aura.cc:1069: // Aura uses TextInputStateChanged instead of TextInputTypeChanged. On 2013/10/21 ...
7 years, 2 months ago (2013-10-22 19:01:41 UTC) #5
nyquist
Adding aurimas@
7 years, 2 months ago (2013-10-22 19:42:52 UTC) #6
kevers
Sadrul and Nonaka-san, Can you please have a look at this CL.
6 years, 11 months ago (2014-01-08 15:59:08 UTC) #7
Shu Chen
https://codereview.chromium.org/29943002/diff/570002/content/renderer/render_widget.cc File content/renderer/render_widget.cc (right): https://codereview.chromium.org/29943002/diff/570002/content/renderer/render_widget.cc#newcode2543 content/renderer/render_widget.cc:2543: #endif This change is unnecessary if pass send_ime_ack correctly. ...
6 years, 11 months ago (2014-01-09 04:21:16 UTC) #8
Seigo Nonaka
https://codereview.chromium.org/29943002/diff/570002/ui/base/ime/input_method_base.cc File ui/base/ime/input_method_base.cc (right): https://codereview.chromium.org/29943002/diff/570002/ui/base/ime/input_method_base.cc#newcode86 ui/base/ime/input_method_base.cc:86: OnShowImeIfNeeded()); nit: can be one line? https://codereview.chromium.org/29943002/diff/570002/ui/base/ime/mock_input_method.cc File ui/base/ime/mock_input_method.cc ...
6 years, 11 months ago (2014-01-09 06:08:42 UTC) #9
kevers
https://codereview.chromium.org/29943002/diff/570002/content/renderer/render_widget.cc File content/renderer/render_widget.cc (right): https://codereview.chromium.org/29943002/diff/570002/content/renderer/render_widget.cc#newcode2543 content/renderer/render_widget.cc:2543: #endif On 2014/01/09 04:21:17, Shu Chen wrote: > This ...
6 years, 11 months ago (2014-01-09 15:29:08 UTC) #10
Shu Chen
lgtm
6 years, 11 months ago (2014-01-10 01:22:07 UTC) #11
sadrul
Sorry about the review delay. I think this looks largely reasonable. A few comments/questions: https://codereview.chromium.org/29943002/diff/880001/chrome/browser/ui/views/omnibox/omnibox_view_views.h ...
6 years, 11 months ago (2014-01-10 19:53:21 UTC) #12
kevers
https://codereview.chromium.org/29943002/diff/880001/chrome/browser/ui/views/omnibox/omnibox_view_views.h File chrome/browser/ui/views/omnibox/omnibox_view_views.h (right): https://codereview.chromium.org/29943002/diff/880001/chrome/browser/ui/views/omnibox/omnibox_view_views.h#newcode113 chrome/browser/ui/views/omnibox/omnibox_view_views.h:113: virtual void ShowImeIfNeeded() const OVERRIDE; On 2014/01/10 19:53:21, sadrul ...
6 years, 11 months ago (2014-01-13 16:59:09 UTC) #13
sadrul
ui/keyboard/ ui/views/ lgtm https://codereview.chromium.org/29943002/diff/980001/ui/keyboard/keyboard_controller_unittest.cc File ui/keyboard/keyboard_controller_unittest.cc (right): https://codereview.chromium.org/29943002/diff/980001/ui/keyboard/keyboard_controller_unittest.cc#newcode345 ui/keyboard/keyboard_controller_unittest.cc:345: remove
6 years, 11 months ago (2014-01-13 20:37:46 UTC) #14
Seigo Nonaka
lgtm lgtm, I'm sorry for my late response.
6 years, 11 months ago (2014-01-14 01:38:30 UTC) #15
kevers
+ sky for chrome/browser/ui + jamesr for content/renderer https://codereview.chromium.org/29943002/diff/980001/ui/keyboard/keyboard_controller_unittest.cc File ui/keyboard/keyboard_controller_unittest.cc (right): https://codereview.chromium.org/29943002/diff/980001/ui/keyboard/keyboard_controller_unittest.cc#newcode345 ui/keyboard/keyboard_controller_unittest.cc:345: On ...
6 years, 11 months ago (2014-01-14 16:55:01 UTC) #16
sky
c/b/u LGTM
6 years, 11 months ago (2014-01-14 19:47:26 UTC) #17
jamesr
content/renderer/ lgtm - might be good to let aurimas take a look as well https://codereview.chromium.org/29943002/diff/1040001/content/renderer/render_widget.cc ...
6 years, 11 months ago (2014-01-14 21:12:52 UTC) #18
kevers
https://codereview.chromium.org/29943002/diff/1040001/content/renderer/render_widget.cc File content/renderer/render_widget.cc (right): https://codereview.chromium.org/29943002/diff/1040001/content/renderer/render_widget.cc#newcode2530 content/renderer/render_widget.cc:2530: p.require_ack = false; On 2014/01/14 21:12:53, jamesr wrote: > ...
6 years, 11 months ago (2014-01-14 22:16:44 UTC) #19
aurimas (slooooooooow)
lgtm
6 years, 11 months ago (2014-01-14 22:56:22 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kevers@chromium.org/29943002/1040001
6 years, 11 months ago (2014-01-15 16:29:09 UTC) #21
commit-bot: I haz the power
Failed to apply patch for chrome/browser/ui/views/omnibox/omnibox_view_views.h: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
6 years, 11 months ago (2014-01-15 16:29:22 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kevers@chromium.org/29943002/1170001
6 years, 11 months ago (2014-01-15 18:23:53 UTC) #23
commit-bot: I haz the power
Retried try job too often on linux_chromeos for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_chromeos&number=191490
6 years, 11 months ago (2014-01-16 00:06:03 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kevers@chromium.org/29943002/1690001
6 years, 11 months ago (2014-01-20 16:15:26 UTC) #25
commit-bot: I haz the power
6 years, 11 months ago (2014-01-20 18:18:06 UTC) #26
Message was sent while issue was closed.
Change committed as 245932

Powered by Google App Engine
This is Rietveld 408576698