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

Issue 1811553002: [Android] Synthetic composition event should have DomKey 'Unidentified' (Closed)

Created:
4 years, 9 months ago by chongz
Modified:
4 years, 9 months ago
CC:
Changwan Ryu, chromium-reviews, darin-cc_chromium.org, dtapuska, jam
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Android] Synthetic composition event should have DomKey 'Unidentified' Produce DomKey::UNIDENTIFIED if |keycode| is COMPOSITION_KEY_CODE (229) and have no valid |dom_code| or |unicode_character|. (Came from IME |setComposingText()|.) One concern is 229 overlaps with AKEYCODE_LAST_CHANNEL, but this should be fine because it should have a proper |dom_code| if it comes from hardware keyboard. BUG=595329 Committed: https://crrev.com/0e8c9a231127cb3538d6ebd5c4a614e6b3226109 Cr-Commit-Position: refs/heads/master@{#381952}

Patch Set 1 #

Total comments: 4

Patch Set 2 : Filter synthetic key event by checking |android_key_event| not null #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+32 lines, -0 lines) Patch
M content/browser/renderer_host/input/web_input_event_builders_android.cc View 1 1 chunk +4 lines, -0 lines 1 comment Download
M content/browser/renderer_host/input/web_input_event_builders_android_unittest.cc View 1 3 chunks +28 lines, -0 lines 0 comments Download

Messages

Total messages: 14 (5 generated)
chongz
Hi aelias, can you take a look at this CL please? Thanks! https://codereview.chromium.org/1811553002/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 ...
4 years, 9 months ago (2016-03-16 15:15:37 UTC) #2
aelias_OOO_until_Jul13
https://codereview.chromium.org/1811553002/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/1811553002/diff/1/content/browser/renderer_host/input/web_input_event_builders_android.cc#newcode52 content/browser/renderer_host/input/web_input_event_builders_android.cc:52: // but 229 is also mapped to AKEYCODE_LAST_CHANNEL. Return ...
4 years, 9 months ago (2016-03-16 18:51:46 UTC) #4
chongz
Thanks for the review! Please see the comments below. https://codereview.chromium.org/1811553002/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/1811553002/diff/1/content/browser/renderer_host/input/web_input_event_builders_android.cc#newcode52 content/browser/renderer_host/input/web_input_event_builders_android.cc:52: ...
4 years, 9 months ago (2016-03-16 19:50:15 UTC) #5
aelias_OOO_until_Jul13
https://codereview.chromium.org/1811553002/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/1811553002/diff/1/content/browser/renderer_host/input/web_input_event_builders_android.cc#newcode52 content/browser/renderer_host/input/web_input_event_builders_android.cc:52: // but 229 is also mapped to AKEYCODE_LAST_CHANNEL. Return ...
4 years, 9 months ago (2016-03-16 20:36:51 UTC) #6
chongz
https://codereview.chromium.org/1811553002/diff/40001/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/1811553002/diff/40001/content/browser/renderer_host/input/web_input_event_builders_android.cc#newcode50 content/browser/renderer_host/input/web_input_event_builders_android.cc:50: return ui::DomKey::UNIDENTIFIED; Sorry for the confusing logic... Will this ...
4 years, 9 months ago (2016-03-17 15:50:39 UTC) #8
aelias_OOO_until_Jul13
lgtm, thanks.
4 years, 9 months ago (2016-03-18 01:07:39 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1811553002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1811553002/40001
4 years, 9 months ago (2016-03-18 13:37:18 UTC) #11
commit-bot: I haz the power
Committed patchset #2 (id:40001)
4 years, 9 months ago (2016-03-18 13:42:14 UTC) #12
commit-bot: I haz the power
4 years, 9 months ago (2016-03-18 13:43:22 UTC) #14
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/0e8c9a231127cb3538d6ebd5c4a614e6b3226109
Cr-Commit-Position: refs/heads/master@{#381952}

Powered by Google App Engine
This is Rietveld 408576698