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

Issue 58473003: evdev: Fix crashing with touch devices (Closed)

Created:
7 years, 1 month ago by spang
Modified:
7 years, 1 month ago
CC:
chromium-reviews, rjkroege, kalyank, ozone-reviews_chromium.org
Visibility:
Public.

Description

evdev: Fix crashing with touch devices The touchscreen crashes because of BTN_TOUCH events that hit NOTREACHED. The touchpad crashes for similar reasons. We don't have touchpad support here at all, so ignore these devices. NOTRY=true Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=233431

Patch Set 1 #

Total comments: 8

Patch Set 2 : various comments from rjkroege #

Total comments: 4

Patch Set 3 : move threadrestrictions checks next to ioctl #

Patch Set 4 : rebase #

Patch Set 5 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+232 lines, -9 lines) Patch
M ui/events/events.gyp View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
A ui/events/ozone/evdev/event_device_info.h View 1 1 chunk +57 lines, -0 lines 0 comments Download
A ui/events/ozone/evdev/event_device_info.cc View 1 2 1 chunk +134 lines, -0 lines 0 comments Download
M ui/events/ozone/evdev/event_factory.cc View 1 2 chunks +29 lines, -6 lines 0 comments Download
M ui/events/ozone/evdev/touch_event_converter.cc View 2 chunks +10 lines, -3 lines 0 comments Download

Messages

Total messages: 14 (0 generated)
spang
7 years, 1 month ago (2013-11-04 23:25:45 UTC) #1
rjkroege
https://codereview.chromium.org/58473003/diff/1/ui/events/ozone/evdev/event_device_info.cc File ui/events/ozone/evdev/event_device_info.cc (right): https://codereview.chromium.org/58473003/diff/1/ui/events/ozone/evdev/event_device_info.cc#newcode62 ui/events/ozone/evdev/event_device_info.cc:62: if (ioctl(fd, EVIOCGPROP(sizeof(prop_bits_)), prop_bits_)) you are not using the ...
7 years, 1 month ago (2013-11-04 23:39:46 UTC) #2
spang
https://codereview.chromium.org/58473003/diff/1/ui/events/ozone/evdev/event_device_info.cc File ui/events/ozone/evdev/event_device_info.cc (right): https://codereview.chromium.org/58473003/diff/1/ui/events/ozone/evdev/event_device_info.cc#newcode62 ui/events/ozone/evdev/event_device_info.cc:62: if (ioctl(fd, EVIOCGPROP(sizeof(prop_bits_)), prop_bits_)) On 2013/11/04 23:39:46, rjkroege wrote: ...
7 years, 1 month ago (2013-11-05 00:10:02 UTC) #3
rjkroege
lgtm https://codereview.chromium.org/58473003/diff/70001/ui/events/ozone/evdev/event_device_info.cc File ui/events/ozone/evdev/event_device_info.cc (right): https://codereview.chromium.org/58473003/diff/70001/ui/events/ozone/evdev/event_device_info.cc#newcode55 ui/events/ozone/evdev/event_device_info.cc:55: base::ThreadRestrictions::AssertIOAllowed(); nit: move the assert to GetPropBits and ...
7 years, 1 month ago (2013-11-05 17:56:51 UTC) #4
Yufeng Shen (Slow to review)
https://codereview.chromium.org/58473003/diff/70001/ui/events/ozone/evdev/touch_event_converter.cc File ui/events/ozone/evdev/touch_event_converter.cc (right): https://codereview.chromium.org/58473003/diff/70001/ui/events/ozone/evdev/touch_event_converter.cc#newcode184 ui/events/ozone/evdev/touch_event_converter.cc:184: } else if (input.type == EV_KEY) { On 2013/11/05 ...
7 years, 1 month ago (2013-11-05 18:28:02 UTC) #5
spang
https://codereview.chromium.org/58473003/diff/70001/ui/events/ozone/evdev/event_device_info.cc File ui/events/ozone/evdev/event_device_info.cc (right): https://codereview.chromium.org/58473003/diff/70001/ui/events/ozone/evdev/event_device_info.cc#newcode55 ui/events/ozone/evdev/event_device_info.cc:55: base::ThreadRestrictions::AssertIOAllowed(); On 2013/11/05 17:56:52, rjkroege wrote: > nit: move ...
7 years, 1 month ago (2013-11-05 19:18:34 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/spang@chromium.org/58473003/140001
7 years, 1 month ago (2013-11-05 19:24:51 UTC) #7
commit-bot: I haz the power
Retried try job too often on linux_aura for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_aura&number=94156
7 years, 1 month ago (2013-11-06 00:09:03 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/spang@chromium.org/58473003/140001
7 years, 1 month ago (2013-11-06 16:01:32 UTC) #9
commit-bot: I haz the power
Retried try job too often on linux_aura for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_aura&number=95045
7 years, 1 month ago (2013-11-06 19:45:03 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/spang@chromium.org/58473003/140001
7 years, 1 month ago (2013-11-06 20:08:12 UTC) #11
commit-bot: I haz the power
Failed to apply patch for ui/events/events.gyp: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
7 years, 1 month ago (2013-11-06 22:00:13 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/spang@chromium.org/58473003/540001
7 years, 1 month ago (2013-11-06 23:12:41 UTC) #13
commit-bot: I haz the power
7 years, 1 month ago (2013-11-07 00:20:00 UTC) #14
Message was sent while issue was closed.
Change committed as 233431

Powered by Google App Engine
This is Rietveld 408576698