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

Issue 2553603002: New accessibility virtual keyboard behavior in non-sticky mode. (Closed)

Created:
4 years ago by yhanada
Modified:
3 years, 7 months ago
Reviewers:
sadrul, Shu Chen, oshima, sky
CC:
chromium-reviews, elijahtaylor+arcwatch_chromium.org, sadrul, yusukes+watch_chromium.org, tfarina, shuchen+watch_chromium.org, hidehiko+watch_chromium.org, jam, jbauman+watch_chromium.org, nona+watch_chromium.org, darin-cc_chromium.org, lhchavez+watch_chromium.org, piman+watch_chromium.org, kalyank, danakj+watch_chromium.org, James Su
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

New accessibility virtual keyboard behavior in non-sticky mode. Windows are now moved into visibility on focus change when virtual keyboard is opened in non-sticky mode. Positioning is handled by EnsureCaretInRect, using a window property for restore bounds. The kUseNewVirtualKeyboardBehavior switch must be enabled for this behavior. BUG=624521 TEST=Unit tests are added in render_widget_host_view_aura_unittest.cc and textfield_unittest.cc. Review-Url: https://codereview.chromium.org/2553603002 Cr-Commit-Position: refs/heads/master@{#470517} Committed: https://chromium.googlesource.com/chromium/src/+/268490faabdd39308b8f6955408172f29e590bdd

Patch Set 1 #

Patch Set 2 : reupload #

Total comments: 2

Patch Set 3 : address the comment #

Patch Set 4 : fix test crashes #

Total comments: 11

Patch Set 5 : address the comments #

Total comments: 14

Patch Set 6 : address oshima@'s comments and fixed test crashes #

Patch Set 7 : add a dependency patchset #

Patch Set 8 #

Patch Set 9 : fix a test failure #

Patch Set 10 #

Patch Set 11 : create ime_util in wm/core #

Patch Set 12 : rebase #

Total comments: 4

Patch Set 13 : rebase #

Patch Set 14 : Remove TextInputClient::OnClientFocusLost() #

Total comments: 8

Patch Set 15 #

Patch Set 16 : Remove unused variable #

Total comments: 7

Patch Set 17 : create wm::EnsureWindowNotInRect #

Patch Set 18 : Fix the build error on Linux and Windows #

Total comments: 8

Patch Set 19 : Renamed to ime_util_chromeos and added the unittests #

Total comments: 15

Patch Set 20 : address sky@'s comments #

Patch Set 21 : address oshima@'s comments #

Patch Set 22 : rebase #

Total comments: 12

Patch Set 23 : address sadrul@'s comments #

Patch Set 24 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+494 lines, -30 lines) Patch
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 19 20 21 3 chunks +8 lines, -1 line 0 comments Download
M ash/wm_window.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 2 chunks +2 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 19 20 21 22 1 chunk +2 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 19 20 21 22 6 chunks +31 lines, -24 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_aura_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 3 chunks +55 lines, -0 lines 0 comments Download
M content/test/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 1 chunk +1 line, -0 lines 0 comments Download
M ui/base/ime/input_method.h View 1 2 3 4 5 6 7 8 9 2 chunks +4 lines, -0 lines 0 comments Download
M ui/base/ime/input_method_base.h View 1 2 2 chunks +4 lines, -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 12 13 2 chunks +10 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 1 chunk +1 line, -0 lines 0 comments Download
M ui/keyboard/keyboard_ui.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 2 chunks +21 lines, -3 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 18 19 20 21 22 23 6 chunks +21 lines, -2 lines 0 comments Download
M ui/views/controls/textfield/textfield_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 3 chunks +47 lines, -0 lines 0 comments Download
M ui/wm/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 2 chunks +11 lines, -0 lines 0 comments Download
A ui/wm/core/ime_util_chromeos.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 1 chunk +33 lines, -0 lines 0 comments Download
A ui/wm/core/ime_util_chromeos.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 1 chunk +100 lines, -0 lines 0 comments Download
A ui/wm/core/ime_util_chromeos_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +143 lines, -0 lines 0 comments Download

Messages

Total messages: 146 (103 generated)
yhanada
This comes from https://crrev.com/2259033003. PTAL. Thank you!
4 years ago (2016-12-05 12:57:23 UTC) #5
sadrul
https://codereview.chromium.org/2553603002/diff/20001/ui/base/ime/input_method.h File ui/base/ime/input_method.h (right): https://codereview.chromium.org/2553603002/diff/20001/ui/base/ime/input_method.h#newcode165 ui/base/ime/input_method.h:165: virtual void SetCoveredBounds(const gfx::Rect& new_bounds) {} InputMethod::SetCoveredBounds() doesn't make ...
4 years ago (2016-12-08 02:57:07 UTC) #8
yhanada
I'm sorry for the late reply. PTAL. https://codereview.chromium.org/2553603002/diff/20001/ui/base/ime/input_method.h File ui/base/ime/input_method.h (right): https://codereview.chromium.org/2553603002/diff/20001/ui/base/ime/input_method.h#newcode165 ui/base/ime/input_method.h:165: virtual void ...
4 years ago (2016-12-12 08:38:28 UTC) #15
oshima
https://codereview.chromium.org/2553603002/diff/60001/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/2553603002/diff/60001/content/browser/renderer_host/render_widget_host_view_aura.cc#newcode1436 content/browser/renderer_host/render_widget_host_view_aura.cc:1436: OnClientFocusLost(); Can this be called when VK size changed ...
4 years ago (2016-12-13 18:15:07 UTC) #22
yhanada
I'm sorry for the delay. I'm still working on some test failures. https://codereview.chromium.org/2553603002/diff/60001/content/browser/renderer_host/render_widget_host_view_aura.cc File content/browser/renderer_host/render_widget_host_view_aura.cc ...
3 years, 11 months ago (2017-01-12 02:19:56 UTC) #23
oshima
https://codereview.chromium.org/2553603002/diff/60001/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/2553603002/diff/60001/content/browser/renderer_host/render_widget_host_view_aura.cc#newcode1463 content/browser/renderer_host/render_widget_host_view_aura.cc:1463: } On 2017/01/12 02:19:56, yhanada wrote: > On 2016/12/13 ...
3 years, 11 months ago (2017-01-18 02:37:19 UTC) #24
yhanada
PTAL. I added a refactoring change (http://crrev.com/2660873002) as a dependency CL of this CL. Please ...
3 years, 10 months ago (2017-01-30 13:02:47 UTC) #31
yhanada
Please take another look. I just created ime_util.h/cc in wm/core for utility functions.
3 years, 10 months ago (2017-02-22 11:39:51 UTC) #40
yhanada
Please take another look. Thanks!
3 years, 9 months ago (2017-03-14 10:01:05 UTC) #45
Shu Chen
https://codereview.chromium.org/2553603002/diff/220001/ui/base/ime/input_method.h File ui/base/ime/input_method.h (right): https://codereview.chromium.org/2553603002/diff/220001/ui/base/ime/input_method.h#newcode165 ui/base/ime/input_method.h:165: virtual void SetOnScreenKeyboardBounds(const gfx::Rect& new_bounds) {} Looks like this ...
3 years, 9 months ago (2017-03-14 14:42:30 UTC) #49
yhanada
Thank you for reviewing. https://codereview.chromium.org/2553603002/diff/220001/ui/base/ime/input_method.h File ui/base/ime/input_method.h (right): https://codereview.chromium.org/2553603002/diff/220001/ui/base/ime/input_method.h#newcode165 ui/base/ime/input_method.h:165: virtual void SetOnScreenKeyboardBounds(const gfx::Rect& new_bounds) ...
3 years, 9 months ago (2017-03-15 12:54:32 UTC) #50
yhanada
friendly ping?
3 years, 9 months ago (2017-03-24 08:55:37 UTC) #53
sky
I assume you're pinging Oshima on this.
3 years, 9 months ago (2017-03-24 14:17:19 UTC) #60
Shu Chen
On 2017/03/15 12:54:32, yhanada wrote: > Thank you for reviewing. > > https://codereview.chromium.org/2553603002/diff/220001/ui/base/ime/input_method.h > File ...
3 years, 8 months ago (2017-03-28 02:25:34 UTC) #61
yhanada
I'm sorry for the long delay. shuchen@, could you take another look? On 2017/03/28 02:25:34, ...
3 years, 8 months ago (2017-04-05 11:22:27 UTC) #62
oshima
https://codereview.chromium.org/2553603002/diff/260001/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/2553603002/diff/260001/content/browser/renderer_host/render_widget_host_view_aura.cc#newcode1424 content/browser/renderer_host/render_widget_host_view_aura.cc:1424: ::switches::kUseNewVirtualKeyboardBehavior)) won't this skip overscroll? https://codereview.chromium.org/2553603002/diff/260001/ui/aura/client/aura_constants.h File ui/aura/client/aura_constants.h (right): ...
3 years, 8 months ago (2017-04-11 04:48:50 UTC) #67
yhanada
https://codereview.chromium.org/2553603002/diff/260001/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/2553603002/diff/260001/content/browser/renderer_host/render_widget_host_view_aura.cc#newcode1424 content/browser/renderer_host/render_widget_host_view_aura.cc:1424: ::switches::kUseNewVirtualKeyboardBehavior)) On 2017/04/11 04:48:50, oshima wrote: > won't this ...
3 years, 8 months ago (2017-04-11 15:26:53 UTC) #69
Shu Chen
lgtm for ui/base/ime/...
3 years, 8 months ago (2017-04-12 02:14:55 UTC) #77
oshima
https://codereview.chromium.org/2553603002/diff/300001/ui/keyboard/keyboard_ui.cc File ui/keyboard/keyboard_ui.cc (right): https://codereview.chromium.org/2553603002/diff/300001/ui/keyboard/keyboard_ui.cc#newcode34 ui/keyboard/keyboard_ui.cc:34: if (GetInputMethod()) { nit: quit early https://codereview.chromium.org/2553603002/diff/300001/ui/views/controls/textfield/textfield.cc File ui/views/controls/textfield/textfield.cc ...
3 years, 8 months ago (2017-04-17 13:24:22 UTC) #78
yhanada
Thank you for reviewing! sky@: I added a property definition in wm/core/ime_util because it is ...
3 years, 8 months ago (2017-04-26 11:29:45 UTC) #81
sky
Having the property definition in the place using it is fine. https://codereview.chromium.org/2553603002/diff/340001/ui/wm/core/ime_util.cc File ui/wm/core/ime_util.cc (right): ...
3 years, 7 months ago (2017-04-26 15:24:36 UTC) #88
oshima
https://codereview.chromium.org/2553603002/diff/340001/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/2553603002/diff/340001/content/browser/renderer_host/render_widget_host_view_aura.cc#newcode1430 content/browser/renderer_host/render_widget_host_view_aura.cc:1430: rect_in_screen, top_level_window->GetBoundsInScreen()); don't you have to check if this ...
3 years, 7 months ago (2017-04-26 18:03:43 UTC) #89
sky
https://codereview.chromium.org/2553603002/diff/340001/ui/wm/core/ime_util.cc File ui/wm/core/ime_util.cc (right): https://codereview.chromium.org/2553603002/diff/340001/ui/wm/core/ime_util.cc#newcode16 ui/wm/core/ime_util.cc:16: #if defined(OS_CHROMEOS) On 2017/04/26 18:03:42, oshima wrote: > On ...
3 years, 7 months ago (2017-04-26 19:58:20 UTC) #90
sky
On 2017/04/26 19:58:20, sky wrote: > https://codereview.chromium.org/2553603002/diff/340001/ui/wm/core/ime_util.cc > File ui/wm/core/ime_util.cc (right): > > https://codereview.chromium.org/2553603002/diff/340001/ui/wm/core/ime_util.cc#newcode16 > ...
3 years, 7 months ago (2017-04-26 19:58:43 UTC) #91
yhanada
On 2017/04/26 19:58:43, sky wrote: > On 2017/04/26 19:58:20, sky wrote: > > https://codereview.chromium.org/2553603002/diff/340001/ui/wm/core/ime_util.cc > ...
3 years, 7 months ago (2017-04-28 15:01:31 UTC) #96
sky
https://codereview.chromium.org/2553603002/diff/360001/ui/wm/core/ime_util_chromeos.cc File ui/wm/core/ime_util_chromeos.cc (right): https://codereview.chromium.org/2553603002/diff/360001/ui/wm/core/ime_util_chromeos.cc#newcode17 ui/wm/core/ime_util_chromeos.cc:17: // Returns whether the window is actually moved or ...
3 years, 7 months ago (2017-04-28 20:17:51 UTC) #97
yhanada
https://codereview.chromium.org/2553603002/diff/360001/ui/wm/core/ime_util_chromeos.cc File ui/wm/core/ime_util_chromeos.cc (right): https://codereview.chromium.org/2553603002/diff/360001/ui/wm/core/ime_util_chromeos.cc#newcode17 ui/wm/core/ime_util_chromeos.cc:17: // Returns whether the window is actually moved or ...
3 years, 7 months ago (2017-05-01 09:12:50 UTC) #102
sky
Right you are about this code not being able to live in ui/base/ime. LGTM https://codereview.chromium.org/2553603002/diff/360001/ui/wm/core/ime_util_chromeos.cc ...
3 years, 7 months ago (2017-05-01 21:06:09 UTC) #103
oshima
https://codereview.chromium.org/2553603002/diff/340001/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/2553603002/diff/340001/content/browser/renderer_host/render_widget_host_view_aura.cc#newcode1430 content/browser/renderer_host/render_widget_host_view_aura.cc:1430: rect_in_screen, top_level_window->GetBoundsInScreen()); On 2017/04/26 18:03:42, oshima wrote: > don't ...
3 years, 7 months ago (2017-05-01 21:57:18 UTC) #104
yhanada
https://codereview.chromium.org/2553603002/diff/340001/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/2553603002/diff/340001/content/browser/renderer_host/render_widget_host_view_aura.cc#newcode1430 content/browser/renderer_host/render_widget_host_view_aura.cc:1430: rect_in_screen, top_level_window->GetBoundsInScreen()); On 2017/05/01 21:57:18, oshima wrote: > On ...
3 years, 7 months ago (2017-05-02 02:19:40 UTC) #105
oshima
lgtm
3 years, 7 months ago (2017-05-02 14:01:20 UTC) #110
yhanada
sadrul@: Could you review the changes in content/browser/renderer_host as the OWNER?
3 years, 7 months ago (2017-05-08 10:36:08 UTC) #119
sadrul
https://codereview.chromium.org/2553603002/diff/420001/content/browser/renderer_host/render_widget_host_view_aura.h File content/browser/renderer_host/render_widget_host_view_aura.h (right): https://codereview.chromium.org/2553603002/diff/420001/content/browser/renderer_host/render_widget_host_view_aura.h#newcode338 content/browser/renderer_host/render_widget_host_view_aura.h:338: virtual aura::Window* GetToplevelWindow(); I don't think you need this. ...
3 years, 7 months ago (2017-05-08 15:47:27 UTC) #120
sadrul
+ comment nit https://codereview.chromium.org/2553603002/diff/420001/ui/wm/core/ime_util_chromeos.h File ui/wm/core/ime_util_chromeos.h (right): https://codereview.chromium.org/2553603002/diff/420001/ui/wm/core/ime_util_chromeos.h#newcode22 ui/wm/core/ime_util_chromeos.h:22: // Moves the window to ensure ...
3 years, 7 months ago (2017-05-08 15:48:49 UTC) #121
yhanada
https://codereview.chromium.org/2553603002/diff/420001/content/browser/renderer_host/render_widget_host_view_aura.h File content/browser/renderer_host/render_widget_host_view_aura.h (right): https://codereview.chromium.org/2553603002/diff/420001/content/browser/renderer_host/render_widget_host_view_aura.h#newcode338 content/browser/renderer_host/render_widget_host_view_aura.h:338: virtual aura::Window* GetToplevelWindow(); On 2017/05/08 15:47:26, sadrul wrote: > ...
3 years, 7 months ago (2017-05-09 03:19:15 UTC) #122
sadrul
lgtm
3 years, 7 months ago (2017-05-09 16:22:04 UTC) #131
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/2553603002/460001
3 years, 7 months ago (2017-05-10 00:30:04 UTC) #134
yhanada
Thank you all for reviewing!
3 years, 7 months ago (2017-05-10 00:30:17 UTC) #135
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_TIMED_OUT, build has not started yet; ...
3 years, 7 months ago (2017-05-10 02:34:24 UTC) #137
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/2553603002/460001
3 years, 7 months ago (2017-05-10 04:38:23 UTC) #139
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/289979) win_chromium_rel_ng on master.tryserver.chromium.win (JOB_FAILED, ...
3 years, 7 months ago (2017-05-10 05:29:33 UTC) #141
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/2553603002/460001
3 years, 7 months ago (2017-05-10 06:42:35 UTC) #143
commit-bot: I haz the power
3 years, 7 months ago (2017-05-10 07:41:45 UTC) #146
Message was sent while issue was closed.
Committed patchset #24 (id:460001) as
https://chromium.googlesource.com/chromium/src/+/268490faabdd39308b8f69554081...

Powered by Google App Engine
This is Rietveld 408576698