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

Issue 1120813002: Remove EF_FUNCTION_KEY and EF_NUMPAD_KEY. (Closed)

Created:
5 years, 7 months ago by kpschoedel
Modified:
5 years, 7 months ago
Reviewers:
Daniel Erat, sadrul, Wez
CC:
chromium-reviews, tdresser+watch_chromium.org, stevenjb+watch_chromium.org, jam, darin-cc_chromium.org, oshima+watch_chromium.org, jdduke+watch_chromium.org, davemoore+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Remove EF_FUNCTION_KEY and EF_NUMPAD_KEY. These EventFlags are redundant now that DomCode exists, and were not always set correctly or kept in sync. Committed: https://crrev.com/8226fd15e53b122f531b3b1816b3e080bd8ef011 Cr-Commit-Position: refs/heads/master@{#328543}

Patch Set 1 #

Total comments: 1

Patch Set 2 : Add and fix tests #

Total comments: 24

Patch Set 3 : address review commetns (sadrul@) #

Patch Set 4 : address review comments (wez@) #

Total comments: 12

Patch Set 5 : address review comments (wez@) #

Unified diffs Side-by-side diffs Delta from patch set Stats (+2265 lines, -1126 lines) Patch
M chrome/browser/chromeos/events/event_rewriter.cc View 1 2 3 3 chunks +26 lines, -18 lines 0 comments Download
M chrome/browser/chromeos/events/event_rewriter_unittest.cc View 1 2 3 57 chunks +2074 lines, -868 lines 0 comments Download
M content/browser/renderer_host/input/web_input_event_util.cc View 1 chunk +0 lines, -2 lines 0 comments Download
M content/browser/renderer_host/web_input_event_aura.cc View 1 2 3 4 1 chunk +13 lines, -0 lines 0 comments Download
M content/browser/renderer_host/web_input_event_aura_unittest.cc View 1 2 3 4 5 chunks +88 lines, -48 lines 0 comments Download
M ui/events/blink/blink_event_util.cc View 1 chunk +0 lines, -2 lines 0 comments Download
M ui/events/event_constants.h View 1 2 1 chunk +3 lines, -5 lines 0 comments Download
M ui/events/keycodes/dom4/keycode_converter.h View 1 2 3 2 chunks +7 lines, -0 lines 0 comments Download
M ui/events/keycodes/dom4/keycode_converter.cc View 1 2 3 1 chunk +49 lines, -0 lines 0 comments Download
M ui/events/keycodes/dom4/keycode_converter_data.h View 1 2 3 4 1 chunk +1 line, -2 lines 0 comments Download
M ui/events/keycodes/dom4/keycode_converter_unittest.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M ui/events/test/events_test_utils_x11.cc View 1 chunk +0 lines, -1 line 0 comments Download
M ui/events/x/events_x.cc View 3 chunks +1 line, -9 lines 0 comments Download
M ui/events/x/events_x_unittest.cc View 3 chunks +2 lines, -170 lines 0 comments Download

Messages

Total messages: 30 (10 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1120813002/1
5 years, 7 months ago (2015-04-30 20:48:28 UTC) #2
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/60015)
5 years, 7 months ago (2015-04-30 22:13:57 UTC) #4
kpschoedel
+derat@ for chrome/browser/chromeos/events/event_rewriter.* +wez@ for ui/events/keycodes/* +sadrul@ for the rest https://codereview.chromium.org/1120813002/diff/1/chrome/browser/chromeos/events/event_rewriter.cc File chrome/browser/chromeos/events/event_rewriter.cc (right): https://codereview.chromium.org/1120813002/diff/1/chrome/browser/chromeos/events/event_rewriter.cc#newcode714 ...
5 years, 7 months ago (2015-05-01 16:13:18 UTC) #11
Daniel Erat
rubberstamp lgtm for c/b/chromeos, but someone with more state about this code (sadrul?) should also ...
5 years, 7 months ago (2015-05-01 17:02:02 UTC) #12
sadrul
https://codereview.chromium.org/1120813002/diff/120001/ui/events/event_constants.h File ui/events/event_constants.h (right): https://codereview.chromium.org/1120813002/diff/120001/ui/events/event_constants.h#newcode107 ui/events/event_constants.h:107: EF_FINAL = 1 << 20, // Do not remap; ...
5 years, 7 months ago (2015-05-04 17:31:02 UTC) #13
kpschoedel
https://codereview.chromium.org/1120813002/diff/120001/ui/events/event_constants.h File ui/events/event_constants.h (right): https://codereview.chromium.org/1120813002/diff/120001/ui/events/event_constants.h#newcode107 ui/events/event_constants.h:107: EF_FINAL = 1 << 20, // Do not remap; ...
5 years, 7 months ago (2015-05-04 17:49:19 UTC) #14
Wez
https://codereview.chromium.org/1120813002/diff/120001/ui/events/keycodes/dom4/keycode_converter.cc File ui/events/keycodes/dom4/keycode_converter.cc (right): https://codereview.chromium.org/1120813002/diff/120001/ui/events/keycodes/dom4/keycode_converter.cc#newcode146 ui/events/keycodes/dom4/keycode_converter.cc:146: } kLocations[] = {{DomCode::CONTROL_LEFT, DomCodeLocation::LEFT}, Will this cause a ...
5 years, 7 months ago (2015-05-05 00:29:09 UTC) #15
kpschoedel
https://codereview.chromium.org/1120813002/diff/120001/ui/events/keycodes/dom4/keycode_converter.cc File ui/events/keycodes/dom4/keycode_converter.cc (right): https://codereview.chromium.org/1120813002/diff/120001/ui/events/keycodes/dom4/keycode_converter.cc#newcode146 ui/events/keycodes/dom4/keycode_converter.cc:146: } kLocations[] = {{DomCode::CONTROL_LEFT, DomCodeLocation::LEFT}, On 2015/05/05 00:29:09, Wez ...
5 years, 7 months ago (2015-05-05 16:30:08 UTC) #16
Wez
https://codereview.chromium.org/1120813002/diff/120001/chrome/browser/chromeos/events/event_rewriter.cc File chrome/browser/chromeos/events/event_rewriter.cc (right): https://codereview.chromium.org/1120813002/diff/120001/chrome/browser/chromeos/events/event_rewriter.cc#newcode714 chrome/browser/chromeos/events/event_rewriter.cc:714: static const struct NumPadRemapping { On 2015/05/01 16:13:17, kpschoedel ...
5 years, 7 months ago (2015-05-05 21:23:45 UTC) #17
Wez
Modulo the nits above, LGTM :)
5 years, 7 months ago (2015-05-05 21:24:12 UTC) #18
kpschoedel
https://codereview.chromium.org/1120813002/diff/160001/chrome/browser/chromeos/events/event_rewriter.cc File chrome/browser/chromeos/events/event_rewriter.cc (right): https://codereview.chromium.org/1120813002/diff/160001/chrome/browser/chromeos/events/event_rewriter.cc#newcode292 chrome/browser/chromeos/events/event_rewriter.cc:292: rewritten_key_event->native_event()->xkey.state |= Mod2Mask; On 2015/05/05 21:23:44, Wez wrote: > ...
5 years, 7 months ago (2015-05-05 22:19:08 UTC) #19
sadrul
lgtm
5 years, 7 months ago (2015-05-06 03:17:22 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1120813002/180001
5 years, 7 months ago (2015-05-06 14:08:40 UTC) #23
commit-bot: I haz the power
Committed patchset #5 (id:180001)
5 years, 7 months ago (2015-05-06 15:49:13 UTC) #24
commit-bot: I haz the power
Patchset 5 (id:??) landed as https://crrev.com/8226fd15e53b122f531b3b1816b3e080bd8ef011 Cr-Commit-Position: refs/heads/master@{#328543}
5 years, 7 months ago (2015-05-06 15:50:10 UTC) #25
Nico
This made WebInputEventAuraTest.TestMakeWebKeyboardEventKeyPadKeyCode reliably fail on the chromeos valgrind bot: http://build.chromium.org/p/chromium.memory.fyi/builders/Chromium%20OS%20%28valgrind%29%284%29/builds/32481 WebInputEventAuraTest.TestMakeWebKeyboardEventKeyPadKeyCode: ../../content/browser/renderer_host/web_input_event_aura_unittest.cc:205: Failure Value ...
5 years, 7 months ago (2015-05-09 20:47:52 UTC) #26
kpschoedel
On 2015/05/09 20:47:52, Nico wrote: > This made TestMakeWebKeyboardEventKeyPadKeyCode.TestMakeWebKeyboardEventKeyPadKeyCode reliably > fail on the chromeos ...
5 years, 7 months ago (2015-05-10 17:07:29 UTC) #27
benwells
On 2015/05/10 17:07:29, kpschoedel wrote: > On 2015/05/09 20:47:52, Nico wrote: > > This made ...
5 years, 7 months ago (2015-05-12 00:59:23 UTC) #28
benwells
A revert of this CL (patchset #5 id:180001) has been created in https://codereview.chromium.org/1135083004/ by benwells@chromium.org. ...
5 years, 7 months ago (2015-05-12 01:30:06 UTC) #29
benwells
5 years, 7 months ago (2015-05-12 03:00:01 UTC) #30
Message was sent while issue was closed.
On 2015/05/12 01:30:06, benwells wrote:
> A revert of this CL (patchset #5 id:180001) has been created in
> https://codereview.chromium.org/1135083004/ by mailto:benwells@chromium.org.
> 
> The reason for reverting is: This is failing on the chromeos valgrind bot.
e.g.:
>
http://build.chromium.org/p/chromium.memory.fyi/builders/Chromium%20OS%20%28v...
> 
> Sample output:
> WebInputEventAuraTest.TestMakeWebKeyboardEventKeyPadKeyCode:
> ../../content/browser/renderer_host/web_input_event_aura_unittest.cc:207:
> Failure
> Value of: (webkit_event.modifiers & blink::WebInputEvent::IsKeyPad) != 0
> Actual: false
> Expected: test_case.expected_result
> Which is: true
> Failed in 23th test case: {dom_code:NumpadDivide, ui_keycode:111,
> x_keysym:65455}, expect: true
> ../../content/browser/renderer_host/web_input_event_aura_unittest.cc:207:
> Failure
> Value of: (webkit_event.modifiers & blink::WebInputEvent::IsKeyPad) != 0
> Actual: false
> Expected: test_case.expected_result
> Which is: true
> Failed in 24th test case: {dom_code:NumpadDecimal, ui_keycode:110,
> x_keysym:65454}, expect: true.

This revert conflicted with another change. Instead of reverting I'm going to
disable the test. Please investigate and re-enable ASAP.

Powered by Google App Engine
This is Rietveld 408576698