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

Issue 1308063007: Generate non-located windowsKeyCode for the WebInputEvents. (Closed)

Created:
5 years, 3 months ago by dtapuska
Modified:
5 years, 3 months ago
CC:
chromium-reviews, darin-cc_chromium.org, jam, jdduke+watch_chromium.org, tdresser+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Generate non-located windowsKeyCode for the WebInputEvents. The documentation states that non-located keys should be generated; however the windowsKeyCode in fact is a located key code that is sent. This makes it consistent with Windows; as the field isn't located and was never intended to be. This corrects the location field for android as it was incorrect for keypad. It also removes duplicated code between blink and chrome. BUG=524626, 362551 Committed: https://crrev.com/8f3768781792d088730de219b8abbc23c2d259d1 Cr-Commit-Position: refs/heads/master@{#349702}

Patch Set 1 #

Total comments: 14

Patch Set 2 : Fix typo in Android #

Patch Set 3 : Use domcode on android to figure out vkeys #

Patch Set 4 : Rebase against dependent change #

Total comments: 5

Patch Set 5 : Rebase #

Patch Set 6 : Fix unittests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+12 lines, -261 lines) Patch
M content/browser/renderer_host/input/web_input_event_builders_android.cc View 1 2 3 4 5 3 chunks +5 lines, -5 lines 0 comments Download
M content/browser/renderer_host/input/web_input_event_builders_win.cc View 1 chunk +2 lines, -5 lines 0 comments Download
M content/browser/renderer_host/input/web_input_event_util.h View 1 2 3 4 1 chunk +0 lines, -6 lines 0 comments Download
M content/browser/renderer_host/input/web_input_event_util.cc View 1 2 3 4 1 chunk +0 lines, -136 lines 0 comments Download
D content/browser/renderer_host/input/web_input_event_util_posix.h View 1 chunk +0 lines, -18 lines 0 comments Download
D content/browser/renderer_host/input/web_input_event_util_posix.cc View 1 chunk +0 lines, -27 lines 0 comments Download
M content/browser/renderer_host/web_input_event_aura.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M content/browser/renderer_host/web_input_event_aura_unittest.cc View 1 2 3 4 5 4 chunks +4 lines, -8 lines 0 comments Download
M content/content_browser.gypi View 1 2 3 4 1 chunk +0 lines, -2 lines 0 comments Download
M ui/events/keycodes/keyboard_code_conversion_android.cc View 1 2 3 4 1 chunk +0 lines, -53 lines 0 comments Download

Messages

Total messages: 20 (3 generated)
dtapuska
5 years, 3 months ago (2015-09-01 20:12:38 UTC) #2
kpschoedel
https://codereview.chromium.org/1308063007/diff/1/content/browser/renderer_host/web_input_event_aura.cc File content/browser/renderer_host/web_input_event_aura.cc (right): https://codereview.chromium.org/1308063007/diff/1/content/browser/renderer_host/web_input_event_aura.cc#newcode87 content/browser/renderer_host/web_input_event_aura.cc:87: webkit_event.windowsKeyCode = event.key_code(); I suspect mojo/converters/input_events/input_events_type_converters.cc and components/view_manager/display_manager.cc should ...
5 years, 3 months ago (2015-09-01 20:51:22 UTC) #3
dtapuska
https://codereview.chromium.org/1308063007/diff/1/content/browser/renderer_host/web_input_event_aura.cc File content/browser/renderer_host/web_input_event_aura.cc (right): https://codereview.chromium.org/1308063007/diff/1/content/browser/renderer_host/web_input_event_aura.cc#newcode87 content/browser/renderer_host/web_input_event_aura.cc:87: webkit_event.windowsKeyCode = event.key_code(); On 2015/09/01 20:51:22, kpschoedel wrote: > ...
5 years, 3 months ago (2015-09-01 20:54:11 UTC) #4
aelias_OOO_until_Jul13
Android changes lgtm
5 years, 3 months ago (2015-09-02 00:41:33 UTC) #5
kpschoedel
Non-owning lgtm. https://codereview.chromium.org/1308063007/diff/1/content/browser/renderer_host/web_input_event_aura.cc File content/browser/renderer_host/web_input_event_aura.cc (right): https://codereview.chromium.org/1308063007/diff/1/content/browser/renderer_host/web_input_event_aura.cc#newcode87 content/browser/renderer_host/web_input_event_aura.cc:87: webkit_event.windowsKeyCode = event.key_code(); On 2015/09/01 20:54:11, dtapuska ...
5 years, 3 months ago (2015-09-02 15:05:45 UTC) #6
Wez
https://codereview.chromium.org/1308063007/diff/1/content/browser/renderer_host/input/web_input_event_builders_android.cc File content/browser/renderer_host/input/web_input_event_builders_android.cc (right): https://codereview.chromium.org/1308063007/diff/1/content/browser/renderer_host/input/web_input_event_builders_android.cc#newcode24 content/browser/renderer_host/input/web_input_event_builders_android.cc:24: static blink::WebInputEvent::Modifiers GetLocationModifiersFromAndoridKeyCode( typo: Andorid -> Android https://codereview.chromium.org/1308063007/diff/1/content/browser/renderer_host/input/web_input_event_builders_android.cc#newcode71 content/browser/renderer_host/input/web_input_event_builders_android.cc:71: ...
5 years, 3 months ago (2015-09-03 06:05:47 UTC) #7
dtapuska
https://codereview.chromium.org/1308063007/diff/1/content/browser/renderer_host/input/web_input_event_builders_android.cc File content/browser/renderer_host/input/web_input_event_builders_android.cc (right): https://codereview.chromium.org/1308063007/diff/1/content/browser/renderer_host/input/web_input_event_builders_android.cc#newcode24 content/browser/renderer_host/input/web_input_event_builders_android.cc:24: static blink::WebInputEvent::Modifiers GetLocationModifiersFromAndoridKeyCode( On 2015/09/03 06:05:47, Wez wrote: > ...
5 years, 3 months ago (2015-09-03 13:39:40 UTC) #8
dtapuska
https://codereview.chromium.org/1308063007/diff/1/ui/events/keycodes/keyboard_code_conversion_android.cc File ui/events/keycodes/keyboard_code_conversion_android.cc (right): https://codereview.chromium.org/1308063007/diff/1/ui/events/keycodes/keyboard_code_conversion_android.cc#newcode11 ui/events/keycodes/keyboard_code_conversion_android.cc:11: KeyboardCode KeyboardCodeFromAndroidKeyCode(int keycode) { On 2015/09/03 13:39:40, dtapuska wrote: ...
5 years, 3 months ago (2015-09-03 14:05:49 UTC) #9
dtapuska
https://codereview.chromium.org/1308063007/diff/1/ui/events/keycodes/keyboard_code_conversion_android.cc File ui/events/keycodes/keyboard_code_conversion_android.cc (right): https://codereview.chromium.org/1308063007/diff/1/ui/events/keycodes/keyboard_code_conversion_android.cc#newcode11 ui/events/keycodes/keyboard_code_conversion_android.cc:11: KeyboardCode KeyboardCodeFromAndroidKeyCode(int keycode) { On 2015/09/03 06:05:47, Wez wrote: ...
5 years, 3 months ago (2015-09-08 17:18:26 UTC) #10
dtapuska
https://codereview.chromium.org/1308063007/diff/60001/ui/events/keycodes/keyboard_code_conversion_android.h File ui/events/keycodes/keyboard_code_conversion_android.h (left): https://codereview.chromium.org/1308063007/diff/60001/ui/events/keycodes/keyboard_code_conversion_android.h#oldcode12 ui/events/keycodes/keyboard_code_conversion_android.h:12: Yes this file is empty; and in context of ...
5 years, 3 months ago (2015-09-08 17:21:38 UTC) #11
Wez
https://codereview.chromium.org/1308063007/diff/1/content/browser/renderer_host/input/web_input_event_builders_win.cc File content/browser/renderer_host/input/web_input_event_builders_win.cc (right): https://codereview.chromium.org/1308063007/diff/1/content/browser/renderer_host/input/web_input_event_builders_win.cc#newcode73 content/browser/renderer_host/input/web_input_event_builders_win.cc:73: result.setKeyIdentifierFromWindowsKeyCode(); On 2015/09/03 13:39:40, dtapuska wrote: > On 2015/09/03 ...
5 years, 3 months ago (2015-09-09 06:06:11 UTC) #12
Wez
lgtm
5 years, 3 months ago (2015-09-09 06:11:26 UTC) #13
sadrul
stamp lgtm
5 years, 3 months ago (2015-09-09 06:22:40 UTC) #14
dtapuska
https://codereview.chromium.org/1308063007/diff/60001/content/browser/renderer_host/input/web_input_event_util.cc File content/browser/renderer_host/input/web_input_event_util.cc (right): https://codereview.chromium.org/1308063007/diff/60001/content/browser/renderer_host/input/web_input_event_util.cc#newcode55 content/browser/renderer_host/input/web_input_event_util.cc:55: blink::WebInputEvent::Modifiers DomCodeToWebInputEventModifiers( On 2015/09/09 06:06:11, Wez wrote: > Don't ...
5 years, 3 months ago (2015-09-09 18:45:49 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1308063007/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1308063007/100001
5 years, 3 months ago (2015-09-18 16:45:24 UTC) #18
commit-bot: I haz the power
Committed patchset #6 (id:100001)
5 years, 3 months ago (2015-09-18 17:27:28 UTC) #19
commit-bot: I haz the power
5 years, 3 months ago (2015-09-18 17:28:06 UTC) #20
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/8f3768781792d088730de219b8abbc23c2d259d1
Cr-Commit-Position: refs/heads/master@{#349702}

Powered by Google App Engine
This is Rietveld 408576698