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

Issue 968343002: Make the native select menu work on Linux touch screen (Closed)

Created:
5 years, 9 months ago by lanwei
Modified:
5 years, 9 months ago
Reviewers:
sadrul
CC:
chromium-reviews, 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

Make the native select menus work on Linux touch screen The master device now sends ButtonPress event when touching a native select menu, and it is converted to another TouchPress, so that the gesture recognizer cannot generate the right gesture tap event, which causes the drop-down menu does not response for the touches. We set masks for the touch events in the GrabPointer, so that master device will send touch events not button events any more for touch screen. BUG=458773 Committed: https://crrev.com/9054218f820a9d0502c24db35837c81a8f4ffa73 Cr-Commit-Position: refs/heads/master@{#320127}

Patch Set 1 : #

Total comments: 2

Patch Set 2 : Add comment #

Total comments: 2

Patch Set 3 : #

Total comments: 1

Patch Set 4 : #

Patch Set 5 : #

Total comments: 1

Patch Set 6 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+19 lines, -1 line) Patch
M ui/events/devices/x11/touch_factory_x11.cc View 1 2 3 4 5 1 chunk +16 lines, -1 line 0 comments Download
M ui/views/widget/desktop_aura/x11_pointer_grab.cc View 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 22 (9 generated)
lanwei
5 years, 9 months ago (2015-03-03 21:05:41 UTC) #3
sadrul
https://codereview.chromium.org/968343002/diff/20001/ui/events/devices/x11/touch_factory_x11.cc File ui/events/devices/x11/touch_factory_x11.cc (right): https://codereview.chromium.org/968343002/diff/20001/ui/events/devices/x11/touch_factory_x11.cc#newcode164 ui/events/devices/x11/touch_factory_x11.cc:164: IsTouchDevice(xiev->deviceid) && (xiev->sourceid == xiev->deviceid); Add a comment here ...
5 years, 9 months ago (2015-03-04 06:02:30 UTC) #4
lanwei
https://codereview.chromium.org/968343002/diff/20001/ui/events/devices/x11/touch_factory_x11.cc File ui/events/devices/x11/touch_factory_x11.cc (right): https://codereview.chromium.org/968343002/diff/20001/ui/events/devices/x11/touch_factory_x11.cc#newcode164 ui/events/devices/x11/touch_factory_x11.cc:164: IsTouchDevice(xiev->deviceid) && (xiev->sourceid == xiev->deviceid); On 2015/03/04 06:02:29, sadrul ...
5 years, 9 months ago (2015-03-04 15:46:06 UTC) #5
sadrul
https://codereview.chromium.org/968343002/diff/60001/ui/events/devices/x11/touch_factory_x11.cc File ui/events/devices/x11/touch_factory_x11.cc (right): https://codereview.chromium.org/968343002/diff/60001/ui/events/devices/x11/touch_factory_x11.cc#newcode167 ui/events/devices/x11/touch_factory_x11.cc:167: (xiev->sourceid == xiev->deviceid); We actually want to process only ...
5 years, 9 months ago (2015-03-05 09:38:53 UTC) #7
lanwei
https://codereview.chromium.org/968343002/diff/60001/ui/events/devices/x11/touch_factory_x11.cc File ui/events/devices/x11/touch_factory_x11.cc (right): https://codereview.chromium.org/968343002/diff/60001/ui/events/devices/x11/touch_factory_x11.cc#newcode167 ui/events/devices/x11/touch_factory_x11.cc:167: (xiev->sourceid == xiev->deviceid); check if the device is attached-slave ...
5 years, 9 months ago (2015-03-07 04:22:51 UTC) #9
sadrul
https://codereview.chromium.org/968343002/diff/100001/ui/events/devices/x11/touch_factory_x11.cc File ui/events/devices/x11/touch_factory_x11.cc (right): https://codereview.chromium.org/968343002/diff/100001/ui/events/devices/x11/touch_factory_x11.cc#newcode178 ui/events/devices/x11/touch_factory_x11.cc:178: return !touch_events_disabled_ && device_info is leaking here. XIQueryDevice is ...
5 years, 9 months ago (2015-03-08 04:01:44 UTC) #10
lanwei
5 years, 9 months ago (2015-03-09 19:26:19 UTC) #11
lanwei
5 years, 9 months ago (2015-03-09 20:51:01 UTC) #15
lanwei
5 years, 9 months ago (2015-03-09 20:51:03 UTC) #16
sadrul
LGTM. Thanks! https://codereview.chromium.org/968343002/diff/180001/ui/events/devices/x11/touch_factory_x11.cc File ui/events/devices/x11/touch_factory_x11.cc (right): https://codereview.chromium.org/968343002/diff/180001/ui/events/devices/x11/touch_factory_x11.cc#newcode174 ui/events/devices/x11/touch_factory_x11.cc:174: (xiev->sourceid == xiev->deviceid); Just one more nit: ...
5 years, 9 months ago (2015-03-11 07:43:49 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/968343002/200001
5 years, 9 months ago (2015-03-11 18:45:33 UTC) #20
commit-bot: I haz the power
Committed patchset #6 (id:200001)
5 years, 9 months ago (2015-03-11 19:49:36 UTC) #21
commit-bot: I haz the power
5 years, 9 months ago (2015-03-11 19:50:23 UTC) #22
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/9054218f820a9d0502c24db35837c81a8f4ffa73
Cr-Commit-Position: refs/heads/master@{#320127}

Powered by Google App Engine
This is Rietveld 408576698