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

Issue 7792094: touchui: support XInput2 MT (Closed)

Created:
9 years, 3 months ago by ningxin.hu
Modified:
9 years, 3 months ago
CC:
chromium-reviews, dhollowa, brettw-cc_chromium.org
Visibility:
Public.

Description

touchui: support XInput2 multitouch Use XI2 multitouch events instead of mouse events as touch event input for touchui build. Note: XI MT will be supported in X server 1.12 and XI2.2. Please use build switch "use_xi2_mt=<minor version number>" to specify the minimum XI2 minor version. It is useful to test on experimental XI2.1 with MT support (e.g. build with use_xi2_mt=1). BUG=95150 TEST=(1) build with touchui=1 use_xi2_mt=1 (2) test on ubuntu 11.04 (X server 1.10 and XI2.1 with experimental MT support). (3) manually test if touch works on browser UI and JS touch events. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=102668

Patch Set 1 #

Total comments: 6

Patch Set 2 : Add gyp switch to support both XI2.0 and XI2.1. Correct the style issues also. #

Total comments: 10

Patch Set 3 : select mouse and touch events when XI2.1 #

Total comments: 8

Patch Set 4 : Use USE_XI2_MT instead of specific version number #

Total comments: 6

Patch Set 5 : update patch set according to comment #12 #

Total comments: 8

Patch Set 6 : Update patch set according to comment #16 #

Total comments: 9

Patch Set 7 : update according to comment #20 and #21 #

Total comments: 2

Patch Set 8 : Update patch according to comment #27 #

Total comments: 1

Patch Set 9 : Fix the build issue by rebasing to trunk #

Patch Set 10 : Update patch set according to comment #33 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+141 lines, -17 lines) Patch
M base/message_pump_x.cc View 1 2 3 4 5 6 7 8 9 1 chunk +13 lines, -0 lines 0 comments Download
M build/common.gypi View 1 2 3 4 5 6 7 8 3 chunks +10 lines, -0 lines 0 comments Download
M views/events/event_x.cc View 1 2 3 4 5 6 4 chunks +27 lines, -4 lines 0 comments Download
M views/focus/accelerator_handler_touch.cc View 1 2 3 4 5 2 chunks +22 lines, -2 lines 0 comments Download
M views/touchui/touch_factory.h View 1 2 3 3 chunks +10 lines, -0 lines 0 comments Download
M views/touchui/touch_factory.cc View 1 2 3 4 5 6 7 8 12 chunks +59 lines, -11 lines 0 comments Download

Messages

Total messages: 45 (0 generated)
sadrul
The patch looks pretty good. There are some style nits. I think it will be ...
9 years, 3 months ago (2011-09-06 14:35:21 UTC) #1
ningxin.hu
http://codereview.chromium.org/7792094/diff/1/views/events/event_x.cc File views/events/event_x.cc (right): http://codereview.chromium.org/7792094/diff/1/views/events/event_x.cc#newcode82 views/events/event_x.cc:82: *xev, TouchFactory::TP_TRACKING_ID, &id)) On 2011/09/06 14:35:21, sadrul wrote: > ...
9 years, 3 months ago (2011-09-07 08:49:58 UTC) #2
ningxin.hu
Thanks for your review. As your comments: 1. add a gyp switch to support XI2.0 ...
9 years, 3 months ago (2011-09-07 09:24:05 UTC) #3
sadrul
On 2011/09/07 09:24:05, ningxin.hu wrote: > Thanks for your review. > > As your comments: ...
9 years, 3 months ago (2011-09-07 14:56:27 UTC) #4
sadrul
http://codereview.chromium.org/7792094/diff/7001/views/focus/accelerator_handler_touch.cc File views/focus/accelerator_handler_touch.cc (right): http://codereview.chromium.org/7792094/diff/7001/views/focus/accelerator_handler_touch.cc#newcode58 views/focus/accelerator_handler_touch.cc:58: if (TouchFactory::GetInstance()->IsTouchDevice(xievent->sourceid)) { This check is probably not necessary ...
9 years, 3 months ago (2011-09-07 14:56:37 UTC) #5
ningxin.hu
http://codereview.chromium.org/7792094/diff/7001/views/focus/accelerator_handler_touch.cc File views/focus/accelerator_handler_touch.cc (right): http://codereview.chromium.org/7792094/diff/7001/views/focus/accelerator_handler_touch.cc#newcode58 views/focus/accelerator_handler_touch.cc:58: if (TouchFactory::GetInstance()->IsTouchDevice(xievent->sourceid)) { On 2011/09/07 14:56:37, sadrul wrote: > ...
9 years, 3 months ago (2011-09-08 08:24:50 UTC) #6
ningxin.hu
Updated the patch: 1. Select both touch and mouse events when XI2.1. modify the event ...
9 years, 3 months ago (2011-09-08 08:36:28 UTC) #7
Daniel Kurtz
Please note: XI2.1 is being released without support for multitouch, which has been pushed back ...
9 years, 3 months ago (2011-09-08 17:58:49 UTC) #8
Daniel Kurtz
It may be possible to build one client that works with whichever server (Xorg standard ...
9 years, 3 months ago (2011-09-08 23:09:58 UTC) #9
ningxin.hu
On 2011/09/08 17:58:49, Daniel Kurtz wrote: > Please note: > > XI2.1 is being released ...
9 years, 3 months ago (2011-09-09 02:54:48 UTC) #10
ningxin.hu
Updated the patch based on comment #8 and #9. Thanks. http://codereview.chromium.org/7792094/diff/12001/base/message_pump_x.cc File base/message_pump_x.cc (left): http://codereview.chromium.org/7792094/diff/12001/base/message_pump_x.cc#oldcode78 ...
9 years, 3 months ago (2011-09-09 05:08:53 UTC) #11
Daniel Kurtz
Also, for this to work on Ubuntu, do you still need to register for major=2, ...
9 years, 3 months ago (2011-09-09 14:26:18 UTC) #12
ningxin.hu
On 2011/09/09 14:26:18, Daniel Kurtz wrote: > Also, for this to work on Ubuntu, do ...
9 years, 3 months ago (2011-09-10 17:09:30 UTC) #13
ningxin.hu
http://codereview.chromium.org/7792094/diff/17001/views/touchui/touch_factory.cc File views/touchui/touch_factory.cc (right): http://codereview.chromium.org/7792094/diff/17001/views/touchui/touch_factory.cc#newcode228 views/touchui/touch_factory.cc:228: if (devices) { On 2011/09/09 14:26:18, Daniel Kurtz wrote: ...
9 years, 3 months ago (2011-09-10 17:09:45 UTC) #14
ningxin.hu
Updated patch set according to comment #12.
9 years, 3 months ago (2011-09-10 17:13:05 UTC) #15
sadrul
Looking very good. A few minor style/comment issues. http://codereview.chromium.org/7792094/diff/22001/views/events/event_x.cc File views/events/event_x.cc (right): http://codereview.chromium.org/7792094/diff/22001/views/events/event_x.cc#newcode127 views/events/event_x.cc:127: TouchFactory::TouchParam ...
9 years, 3 months ago (2011-09-12 16:20:38 UTC) #16
ningxin.hu
Thanks for the comments. I will update the patch set accordingly. http://codereview.chromium.org/7792094/diff/22001/views/events/event_x.cc File views/events/event_x.cc (right): ...
9 years, 3 months ago (2011-09-13 00:51:08 UTC) #17
ningxin.hu
patch set is updated according to comment #16, could you please review?
9 years, 3 months ago (2011-09-13 23:48:08 UTC) #18
ningxin.hu
Please review. Thanks.
9 years, 3 months ago (2011-09-14 17:04:01 UTC) #19
sadrul
LGTM! Please wait for an LGTM from Daniel (and let me know if you need ...
9 years, 3 months ago (2011-09-19 15:58:08 UTC) #20
Daniel Kurtz
Almost! http://codereview.chromium.org/7792094/diff/7010/base/message_pump_x.cc File base/message_pump_x.cc (right): http://codereview.chromium.org/7792094/diff/7010/base/message_pump_x.cc#newcode74 base/message_pump_x.cc:74: int major = 2, minor = 1; I ...
9 years, 3 months ago (2011-09-20 05:12:27 UTC) #21
ningxin.hu
sadrul, Daniel, Thanks for your comments. Will update the patch set according to them. http://codereview.chromium.org/7792094/diff/7010/base/message_pump_x.cc ...
9 years, 3 months ago (2011-09-20 14:28:59 UTC) #22
ningxin.hu
Patch set is updated according to comment #20 and #21. Please review. Thanks.
9 years, 3 months ago (2011-09-20 14:32:50 UTC) #23
ningxin.hu
Daniel, could you please review the updated patch set. Thanks.
9 years, 3 months ago (2011-09-22 14:16:42 UTC) #24
Daniel Kurtz
On 2011/09/22 14:16:42, ningxin.hu wrote: > Daniel, could you please review the updated patch set. ...
9 years, 3 months ago (2011-09-23 02:23:56 UTC) #25
ningxin.hu
This patch doesn't have anything related to uTouch which is a gesture framework. The patch ...
9 years, 3 months ago (2011-09-23 03:33:24 UTC) #26
Daniel Kurtz
LGTM w/ version nit http://codereview.chromium.org/7792094/diff/38001/base/message_pump_x.cc File base/message_pump_x.cc (right): http://codereview.chromium.org/7792094/diff/38001/base/message_pump_x.cc#newcode87 base/message_pump_x.cc:87: << "But " << major ...
9 years, 3 months ago (2011-09-23 07:36:59 UTC) #27
ningxin.hu
Thanks for the review. http://codereview.chromium.org/7792094/diff/38001/base/message_pump_x.cc File base/message_pump_x.cc (right): http://codereview.chromium.org/7792094/diff/38001/base/message_pump_x.cc#newcode87 base/message_pump_x.cc:87: << "But " << major ...
9 years, 3 months ago (2011-09-23 14:08:31 UTC) #28
ningxin.hu
Patch is updated according to comment #27. If it is OK, please help land the ...
9 years, 3 months ago (2011-09-23 14:43:04 UTC) #29
ningxin.hu
BTW, the followup CL http://codereview.chromium.org/7927001/ is updated also. Could you please review and make the ...
9 years, 3 months ago (2011-09-23 14:44:53 UTC) #30
sadrul
On 2011/09/23 14:43:04, ningxin.hu wrote: > Patch is updated according to comment #27. > > ...
9 years, 3 months ago (2011-09-23 19:03:20 UTC) #31
ningxin.hu
On 2011/09/23 19:03:20, sadrul wrote: > On 2011/09/23 14:43:04, ningxin.hu wrote: > > Patch is ...
9 years, 3 months ago (2011-09-23 23:53:07 UTC) #32
Daniel Kurtz
Small detail. http://codereview.chromium.org/7792094/diff/44002/base/message_pump_x.cc File base/message_pump_x.cc (right): http://codereview.chromium.org/7792094/diff/44002/base/message_pump_x.cc#newcode85 base/message_pump_x.cc:85: if (major < 2 || minor < ...
9 years, 3 months ago (2011-09-24 00:29:10 UTC) #33
ningxin.hu
On 2011/09/24 00:29:10, Daniel Kurtz wrote: > Small detail. > > http://codereview.chromium.org/7792094/diff/44002/base/message_pump_x.cc > File base/message_pump_x.cc ...
9 years, 3 months ago (2011-09-24 01:01:38 UTC) #34
ningxin.hu
On 2011/09/24 00:29:10, Daniel Kurtz wrote: > Small detail. > > http://codereview.chromium.org/7792094/diff/44002/base/message_pump_x.cc > File base/message_pump_x.cc ...
9 years, 3 months ago (2011-09-24 01:01:42 UTC) #35
ningxin.hu
The build error is caused the patch is not rebased on trunk. I try to ...
9 years, 3 months ago (2011-09-24 01:03:32 UTC) #36
ningxin.hu
On 2011/09/24 01:03:32, ningxin.hu wrote: > The build error is caused the patch is not ...
9 years, 3 months ago (2011-09-24 01:14:08 UTC) #37
ningxin.hu
Hi Daniel, Patch is updated to your comment #33. Please review. If possible, please help ...
9 years, 3 months ago (2011-09-24 01:17:44 UTC) #38
Daniel Kurtz
LGTM!
9 years, 3 months ago (2011-09-24 01:55:19 UTC) #39
Daniel Kurtz
LGTM, but could you actually add a bit more to the commit message? Like: how ...
9 years, 3 months ago (2011-09-24 01:58:30 UTC) #40
ningxin.hu
Update the commit comments. Please review. Thanks.
9 years, 3 months ago (2011-09-24 02:29:10 UTC) #41
Daniel Kurtz
Beautiful. LGTM. Thank you Ningxin, for your effort and patience!
9 years, 3 months ago (2011-09-24 03:34:34 UTC) #42
ningxin.hu
On 2011/09/24 03:34:34, Daniel Kurtz wrote: > Beautiful. LGTM. > Thank you Ningxin, for your ...
9 years, 3 months ago (2011-09-24 14:32:01 UTC) #43
commit-bot: I haz the power
CQ is trying tha patch. Follow status at https://chromium-status.appspot.com/cq/ningxin.hu@gmail.com/7792094/52009
9 years, 3 months ago (2011-09-24 17:02:39 UTC) #44
commit-bot: I haz the power
9 years, 3 months ago (2011-09-24 17:02:46 UTC) #45
Presubmit check for 7792094-52009 failed and returned exit status 1.

Running presubmit commit checks ...

** Presubmit Warnings **
ningxin.hu@gmail.com is not in AUTHORS file. If you are a new contributor,
please visit
http://www.chromium.org/developers/contributing-code and read the "Legal"
section
If you are a chromite, verify the contributor signed the CLA.

** Presubmit ERRORS **
Missing LGTM from an OWNER for: base/message_pump_x.cc

Presubmit checks took 2.3s to calculate.

Powered by Google App Engine
This is Rietveld 408576698