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

Issue 2939283002: Use wScan instead of wVk to ensure webpage can get correct DOM CodeString (Closed)

Created:
3 years, 6 months ago by Hzj_jie
Modified:
3 years, 6 months ago
Reviewers:
ananta, sky
CC:
chromium-reviews
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Use wScan instead of wVk to ensure webpage can get correct DOM CodeString DOM CodeString comes from scancode, so SendInput should use scancode instead of virtual-key if the key is associated with a DOM CodeString. With this change, test cases in https://codereview.chromium.org/2922773002/ should pass. A KeyboardEventCodeInteractiveTest is also added to ensure KeyboardEvent.code can be correctly set by using ui_test_utils::SendKeyPressSync(). KeyboardEventCodeInteractiveTest starts a web page to record all the KeyboardEvent.code it received, sends several key presses through ui_test_utils::SendKeyPressSync() and verifies whether the record is expected. BUG=680809 Review-Url: https://codereview.chromium.org/2939283002 Cr-Commit-Position: refs/heads/master@{#481671} Committed: https://chromium.googlesource.com/chromium/src/+/2ee5f007316b4a7ecf451fce973f581c59de066e

Patch Set 1 #

Total comments: 2

Patch Set 2 : Typo in the comment #

Patch Set 3 : Include 2946103002 #

Total comments: 2

Patch Set 4 : Resolve review comments #

Patch Set 5 : Undo the test case: it will be covered by 2922773002 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+24 lines, -2 lines) Patch
M ui/base/test/ui_controls_internal_win.cc View 1 2 3 1 chunk +24 lines, -2 lines 0 comments Download

Messages

Total messages: 89 (64 generated)
oshima
I just moved the code and am not familiar with windows specific stuff. -> sky@ ...
3 years, 6 months ago (2017-06-16 14:52:19 UTC) #8
Hzj_jie
On 2017/06/16 14:52:19, oshima wrote: > I just moved the code and am not familiar ...
3 years, 6 months ago (2017-06-16 17:59:26 UTC) #11
Hzj_jie
Sadrul, would you please have a look at this change? Thank you.
3 years, 6 months ago (2017-06-16 23:27:21 UTC) #25
sadrul
--> ananta@ for windows change.
3 years, 6 months ago (2017-06-19 18:36:23 UTC) #42
ananta
lgtm https://codereview.chromium.org/2939283002/diff/100001/ui/base/test/ui_controls_internal_win.cc File ui/base/test/ui_controls_internal_win.cc (right): https://codereview.chromium.org/2939283002/diff/100001/ui/base/test/ui_controls_internal_win.cc#newcode164 ui/base/test/ui_controls_internal_win.cc:164: // When KEYEVNETF_SCANCODE is used, ki.wVk is ignored, ...
3 years, 6 months ago (2017-06-20 01:10:54 UTC) #43
ananta
On 2017/06/20 01:10:54, ananta wrote: > lgtm > > https://codereview.chromium.org/2939283002/diff/100001/ui/base/test/ui_controls_internal_win.cc > File ui/base/test/ui_controls_internal_win.cc (right): > ...
3 years, 6 months ago (2017-06-20 01:11:09 UTC) #44
Hzj_jie
On 2017/06/20 01:11:09, ananta wrote: > On 2017/06/20 01:10:54, ananta wrote: > > lgtm > ...
3 years, 6 months ago (2017-06-20 01:16:18 UTC) #45
Hzj_jie
https://codereview.chromium.org/2939283002/diff/100001/ui/base/test/ui_controls_internal_win.cc File ui/base/test/ui_controls_internal_win.cc (right): https://codereview.chromium.org/2939283002/diff/100001/ui/base/test/ui_controls_internal_win.cc#newcode164 ui/base/test/ui_controls_internal_win.cc:164: // When KEYEVNETF_SCANCODE is used, ki.wVk is ignored, so ...
3 years, 6 months ago (2017-06-20 20:54:07 UTC) #50
Hzj_jie
A test has been added at change https://codereview.chromium.org/2946103002/.
3 years, 6 months ago (2017-06-20 23:02:34 UTC) #51
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/2939283002/120001
3 years, 6 months ago (2017-06-20 23:58:35 UTC) #54
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/469297)
3 years, 6 months ago (2017-06-21 00:07:31 UTC) #56
Hzj_jie
Maybe Scott can LGTM this change.
3 years, 6 months ago (2017-06-21 00:40:38 UTC) #58
sadrul
On 2017/06/20 23:02:34, Hzj_jie wrote: > A test has been added at change https://codereview.chromium.org/2946103002/. Maybe ...
3 years, 6 months ago (2017-06-21 01:43:39 UTC) #59
Hzj_jie
Updated.
3 years, 6 months ago (2017-06-21 05:24:13 UTC) #65
sky
A browser test to verify this fix is very heavy. Do you really need a ...
3 years, 6 months ago (2017-06-21 14:56:04 UTC) #66
Hzj_jie
On 2017/06/21 14:56:04, sky wrote: > A browser test to verify this fix is very ...
3 years, 6 months ago (2017-06-21 17:31:18 UTC) #69
Hzj_jie
https://codereview.chromium.org/2939283002/diff/140001/ui/base/test/ui_controls_internal_win.cc File ui/base/test/ui_controls_internal_win.cc (right): https://codereview.chromium.org/2939283002/diff/140001/ui/base/test/ui_controls_internal_win.cc#newcode171 ui/base/test/ui_controls_internal_win.cc:171: if (key_up) { On 2017/06/21 14:56:04, sky wrote: > ...
3 years, 6 months ago (2017-06-21 18:18:04 UTC) #70
sky
A views interactive ui test that calls SendKeyPressSync() and verifies the ui::KeyEvent directly? No need ...
3 years, 6 months ago (2017-06-21 19:50:04 UTC) #71
sadrul
This is windows, and sky@ is here. So removing myself from reviewer list.
3 years, 6 months ago (2017-06-21 20:50:48 UTC) #75
Hzj_jie
On 2017/06/21 19:50:04, sky wrote: > A views interactive ui test that calls SendKeyPressSync() and ...
3 years, 6 months ago (2017-06-21 23:58:49 UTC) #76
sky
SGTM On Wed, Jun 21, 2017 at 4:58 PM, <zijiehe@chromium.org> wrote: > On 2017/06/21 19:50:04, ...
3 years, 6 months ago (2017-06-22 14:40:23 UTC) #77
Hzj_jie
Test case has been removed.
3 years, 6 months ago (2017-06-22 18:42:55 UTC) #82
sky
LGTM
3 years, 6 months ago (2017-06-22 20:54:39 UTC) #83
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/2939283002/180001
3 years, 6 months ago (2017-06-22 21:33:55 UTC) #86
commit-bot: I haz the power
3 years, 6 months ago (2017-06-22 21:41:14 UTC) #89
Message was sent while issue was closed.
Committed patchset #5 (id:180001) as
https://chromium.googlesource.com/chromium/src/+/2ee5f007316b4a7ecf451fce973f...

Powered by Google App Engine
This is Rietveld 408576698