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

Issue 1073573002: Ozone support for device special cases in keyboard event rewriting. (Closed)

Created:
5 years, 8 months ago by kpschoedel
Modified:
5 years, 7 months ago
Reviewers:
sadrul, Daniel Erat, spang
CC:
chromium-reviews, ozone-reviews_chromium.org, sadrul, tdresser+watch_chromium.org, jdduke+watch_chromium.org, oshima+watch_chromium.org, kalyank, stevenjb+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

Ozone support for device special cases in keyboard event rewriting. Keyboard event rewriting has some special cases keyed on the device name (Apple keyboards) or USB VID/PID (Hotrod remote), which had been handled by special-case device inspection under X11, and not handled at all under Ozone. This moves the properties to ui::DeviceDataManager and makes the use in chromeos::EventRewriter platform-independent. BUG=471753 Committed: https://crrev.com/711f2fc883c05bb10466fb65fdaf9bc10c909b23 Cr-Commit-Position: refs/heads/master@{#325660} Committed: https://crrev.com/16ce3d88cfcb6ab69af3dc8ba445da47d80c1d9b Cr-Commit-Position: refs/heads/master@{#327060}

Patch Set 1 #

Patch Set 2 : white space #

Total comments: 14

Patch Set 3 : address review comments #

Total comments: 4

Patch Set 4 : address review comments II #

Patch Set 5 : proper #includes to fix Windows build #

Patch Set 6 : no <cstdint> in Android?!? #

Patch Set 7 : rebase #

Patch Set 8 : Fix crash (thanks spang) #

Unified diffs Side-by-side diffs Delta from patch set Stats (+369 lines, -256 lines) Patch
M ash/test/virtual_keyboard_test_helper.cc View 1 chunk +5 lines, -4 lines 0 comments Download
M ash/touch/touch_transformer_controller_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M ash/touch/touchscreen_util_unittest.cc View 1 2 5 chunks +27 lines, -18 lines 0 comments Download
M ash/virtual_keyboard_controller_unittest.cc View 10 chunks +42 lines, -37 lines 0 comments Download
M chrome/browser/chromeos/events/event_rewriter.cc View 1 2 3 4 5 3 chunks +10 lines, -70 lines 0 comments Download
M ui/events/devices/input_device.h View 1 2 3 4 5 3 chunks +14 lines, -1 line 0 comments Download
M ui/events/devices/input_device.cc View 1 2 1 chunk +10 lines, -2 lines 0 comments Download
M ui/events/devices/keyboard_device.h View 1 chunk +2 lines, -1 line 0 comments Download
M ui/events/devices/keyboard_device.cc View 1 chunk +8 lines, -2 lines 0 comments Download
M ui/events/devices/touchscreen_device.h View 1 2 1 chunk +5 lines, -0 lines 0 comments Download
M ui/events/devices/touchscreen_device.cc View 1 2 1 chunk +8 lines, -1 line 0 comments Download
M ui/events/devices/x11/device_data_manager_x11_unittest.cc View 1 2 4 chunks +14 lines, -14 lines 0 comments Download
M ui/events/devices/x11/touch_factory_x11.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M ui/events/devices/x11/touch_factory_x11.cc View 1 2 3 2 chunks +13 lines, -37 lines 0 comments Download
M ui/events/event.cc View 1 2 3 4 5 6 1 chunk +4 lines, -0 lines 0 comments Download
M ui/events/ozone/evdev/event_converter_evdev.h View 1 2 2 chunks +11 lines, -8 lines 0 comments Download
M ui/events/ozone/evdev/event_converter_evdev.cc View 1 2 1 chunk +8 lines, -2 lines 0 comments Download
M ui/events/ozone/evdev/event_converter_evdev_impl.cc View 1 2 4 chunks +15 lines, -7 lines 0 comments Download
M ui/events/ozone/evdev/event_device_info.h View 1 2 3 chunks +11 lines, -0 lines 0 comments Download
M ui/events/ozone/evdev/event_device_info.cc View 1 2 3 chunks +32 lines, -0 lines 0 comments Download
M ui/events/ozone/evdev/event_factory_evdev.cc View 1 2 3 4 5 6 1 chunk +2 lines, -1 line 0 comments Download
M ui/events/ozone/evdev/input_device_factory_evdev.cc View 1 2 3 4 5 6 5 chunks +9 lines, -8 lines 0 comments Download
M ui/events/ozone/evdev/keyboard_evdev.h View 3 chunks +9 lines, -4 lines 0 comments Download
M ui/events/ozone/evdev/keyboard_evdev.cc View 1 2 7 chunks +15 lines, -8 lines 0 comments Download
M ui/events/ozone/evdev/libgestures_glue/event_reader_libevdev_cros.cc View 1 2 1 chunk +7 lines, -1 line 0 comments Download
M ui/events/ozone/evdev/tablet_event_converter_evdev.cc View 1 2 3 chunks +12 lines, -5 lines 0 comments Download
M ui/events/ozone/evdev/touch_event_converter_evdev.h View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M ui/events/ozone/evdev/touch_event_converter_evdev.cc View 1 2 3 4 5 6 2 chunks +9 lines, -2 lines 0 comments Download
M ui/events/ozone/evdev/touch_event_converter_evdev_unittest.cc View 1 2 3 4 5 6 4 chunks +12 lines, -5 lines 0 comments Download
M ui/events/platform/x11/x11_hotplug_event_handler.cc View 1 2 3 4 5 6 7 10 chunks +52 lines, -16 lines 0 comments Download

Messages

Total messages: 43 (16 generated)
kpschoedel
+derat for chrome/browser/chromeos/events/event_rewriter.cc +spang for ui/events/ozone/evdev/* +sadrul for the rest of the world Sadrul: I ...
5 years, 8 months ago (2015-04-08 19:15:50 UTC) #2
Daniel Erat
https://codereview.chromium.org/1073573002/diff/20001/chrome/browser/chromeos/events/event_rewriter.cc File chrome/browser/chromeos/events/event_rewriter.cc (right): https://codereview.chromium.org/1073573002/diff/20001/chrome/browser/chromeos/events/event_rewriter.cc#newcode890 chrome/browser/chromeos/events/event_rewriter.cc:890: if (keyboard.id == static_cast<unsigned int>(device_id)) { this is a ...
5 years, 8 months ago (2015-04-08 19:24:24 UTC) #3
kpschoedel
On 2015/04/08 19:24:24, Daniel Erat wrote: > https://codereview.chromium.org/1073573002/diff/20001/chrome/browser/chromeos/events/event_rewriter.cc > File chrome/browser/chromeos/events/event_rewriter.cc (right): Both the XInput2 ...
5 years, 8 months ago (2015-04-08 21:54:50 UTC) #4
spang
https://codereview.chromium.org/1073573002/diff/20001/ui/events/ozone/evdev/event_converter_evdev.cc File ui/events/ozone/evdev/event_converter_evdev.cc (right): https://codereview.chromium.org/1073573002/diff/20001/ui/events/ozone/evdev/event_converter_evdev.cc#newcode32 ui/events/ozone/evdev/event_converter_evdev.cc:32: if (ioctl(fd, EVIOCGNAME(kMaximumDeviceNameLength - 1), &device_name) < 0) { ...
5 years, 8 months ago (2015-04-08 22:54:30 UTC) #5
spang
https://codereview.chromium.org/1073573002/diff/20001/ui/events/ozone/evdev/keyboard_evdev.cc File ui/events/ozone/evdev/keyboard_evdev.cc (right): https://codereview.chromium.org/1073573002/diff/20001/ui/events/ozone/evdev/keyboard_evdev.cc#newcode66 ui/events/ozone/evdev/keyboard_evdev.cc:66: repeat_device_id_(0), On 2015/04/08 22:54:30, spang wrote: > We're using ...
5 years, 8 months ago (2015-04-08 22:56:53 UTC) #6
sadrul
On 2015/04/08 19:15:50, kpschoedel wrote: > ... > Sadrul: I can see now unifying the ...
5 years, 8 months ago (2015-04-09 01:07:43 UTC) #7
kpschoedel
Now depends on https://codereview.chromium.org/1071193002 https://codereview.chromium.org/1073573002/diff/20001/chrome/browser/chromeos/events/event_rewriter.cc File chrome/browser/chromeos/events/event_rewriter.cc (right): https://codereview.chromium.org/1073573002/diff/20001/chrome/browser/chromeos/events/event_rewriter.cc#newcode890 chrome/browser/chromeos/events/event_rewriter.cc:890: if (keyboard.id == static_cast<unsigned int>(device_id)) ...
5 years, 8 months ago (2015-04-09 18:51:41 UTC) #9
Daniel Erat
lgtm for chrome/
5 years, 8 months ago (2015-04-09 18:53:16 UTC) #10
spang
lgtm
5 years, 8 months ago (2015-04-09 19:18:00 UTC) #11
sadrul
https://codereview.chromium.org/1073573002/diff/60001/ui/events/platform/x11/x11_hotplug_event_handler.cc File ui/events/platform/x11/x11_hotplug_event_handler.cc (right): https://codereview.chromium.org/1073573002/diff/60001/ui/events/platform/x11/x11_hotplug_event_handler.cc#newcode449 ui/events/platform/x11/x11_hotplug_event_handler.cc:449: XInternAtom(gfx::GetXDisplay(), XI_PROP_PRODUCT_ID, 1); Use atom_cache_ instead. https://codereview.chromium.org/1073573002/diff/60001/ui/events/platform/x11/x11_hotplug_event_handler.cc#newcode464 ui/events/platform/x11/x11_hotplug_event_handler.cc:464: } ...
5 years, 8 months ago (2015-04-09 20:44:29 UTC) #12
kpschoedel
https://codereview.chromium.org/1073573002/diff/60001/ui/events/platform/x11/x11_hotplug_event_handler.cc File ui/events/platform/x11/x11_hotplug_event_handler.cc (right): https://codereview.chromium.org/1073573002/diff/60001/ui/events/platform/x11/x11_hotplug_event_handler.cc#newcode449 ui/events/platform/x11/x11_hotplug_event_handler.cc:449: XInternAtom(gfx::GetXDisplay(), XI_PROP_PRODUCT_ID, 1); On 2015/04/09 20:44:29, sadrul wrote: > ...
5 years, 8 months ago (2015-04-09 21:22:15 UTC) #13
sadrul
lgtm
5 years, 8 months ago (2015-04-09 21:48:11 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1073573002/80001
5 years, 8 months ago (2015-04-15 21:44:46 UTC) #17
commit-bot: I haz the power
Try jobs failed on following builders: win8_chromium_rel on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win8_chromium_rel/builds/74119)
5 years, 8 months ago (2015-04-15 23:20:01 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1073573002/100001
5 years, 8 months ago (2015-04-16 22:12:35 UTC) #22
commit-bot: I haz the power
Try jobs failed on following builders: android_compile_dbg on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/android_compile_dbg/builds/7116) linux_android_rel_ng on tryserver.chromium.linux (JOB_FAILED, ...
5 years, 8 months ago (2015-04-16 22:56:38 UTC) #24
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1073573002/120001
5 years, 8 months ago (2015-04-17 16:10:22 UTC) #27
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 8 months ago (2015-04-17 17:09:50 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1073573002/120001
5 years, 8 months ago (2015-04-17 17:16:36 UTC) #31
commit-bot: I haz the power
Committed patchset #6 (id:120001)
5 years, 8 months ago (2015-04-17 17:23:32 UTC) #32
commit-bot: I haz the power
Patchset 6 (id:??) landed as https://crrev.com/711f2fc883c05bb10466fb65fdaf9bc10c909b23 Cr-Commit-Position: refs/heads/master@{#325660}
5 years, 8 months ago (2015-04-17 17:24:57 UTC) #33
Tim Song
A revert of this CL (patchset #6 id:120001) has been created in https://codereview.chromium.org/1102673002/ by tengs@chromium.org. ...
5 years, 8 months ago (2015-04-22 21:27:22 UTC) #34
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1073573002/160001
5 years, 7 months ago (2015-04-27 15:41:21 UTC) #37
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 7 months ago (2015-04-27 16:51:45 UTC) #39
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1073573002/160001
5 years, 7 months ago (2015-04-27 16:57:38 UTC) #41
commit-bot: I haz the power
Committed patchset #8 (id:160001)
5 years, 7 months ago (2015-04-27 16:59:07 UTC) #42
commit-bot: I haz the power
5 years, 7 months ago (2015-04-27 17:00:26 UTC) #43
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/16ce3d88cfcb6ab69af3dc8ba445da47d80c1d9b
Cr-Commit-Position: refs/heads/master@{#327060}

Powered by Google App Engine
This is Rietveld 408576698