|
|
DescriptionMake sure that the pressure is always 0 for pointerup events
The pressure value is correct on Mac and Windows. We correct them on
on Android and linux.
Also, for synthetic touch events and touch events from touch emulator, make the pressure 0
for all the touch release events.
BUG=648777
Review-Url: https://codereview.chromium.org/2700623003
Cr-Commit-Position: refs/heads/master@{#452081}
Committed: https://chromium.googlesource.com/chromium/src/+/e1fcfcddcd90de5017009feefa7e18716c450f4e
Patch Set 1 : pointer pressure #
Total comments: 3
Patch Set 2 : pointer pressure #
Total comments: 1
Patch Set 3 : pressure #
Messages
Total messages: 57 (44 generated)
The CQ bit was checked by lanwei@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: android_n5x_swarming_rel on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_n5x_...)
Description was changed from ========== pressure pointer up BUG= ========== to ========== Make sure that the pressure is always 0 for pointerup events BUG=648777 ==========
The CQ bit was checked by lanwei@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
lanwei@chromium.org changed reviewers: + nzolghadr@chromium.org
lanwei@chromium.org changed reviewers: + dtapuska@chromium.org, mustaq@chromium.org
Description was changed from ========== Make sure that the pressure is always 0 for pointerup events BUG=648777 ========== to ========== Make sure that the pressure is always 0 for pointerup events On Android and linux, set the pressure to 0 for touch release events. Also, for synthetic touch events and touch events from touch emulator, make the pressure 0 for all the touch release events. BUG=648777 ==========
Description was changed from ========== Make sure that the pressure is always 0 for pointerup events On Android and linux, set the pressure to 0 for touch release events. Also, for synthetic touch events and touch events from touch emulator, make the pressure 0 for all the touch release events. BUG=648777 ========== to ========== Make sure that the pressure is always 0 for pointerup events On Android and linux, set the pressure to 0 for touch release events. Also, for synthetic touch events and touch events from touch emulator, make the pressure 0 for all the touch release events. BUG=648777 ==========
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: chromeos_amd64-generic_chromium_compile_only_ng on master.tryserver.chromium.linux (JOB_TIMED_OUT, no build URL) chromium_presubmit on master.tryserver.chromium.linux (JOB_TIMED_OUT, no build URL)
The CQ bit was checked by lanwei@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was checked by lanwei@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
Patchset #3 (id:40001) has been deleted
Patchset #2 (id:20001) has been deleted
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
Patchset #1 (id:1) has been deleted
Description was changed from ========== Make sure that the pressure is always 0 for pointerup events On Android and linux, set the pressure to 0 for touch release events. Also, for synthetic touch events and touch events from touch emulator, make the pressure 0 for all the touch release events. BUG=648777 ========== to ========== Make sure that the pressure is always 0 for pointerup events Now, the pressure value is correct on Mac and Windows. We correct them on on Android and linux. Also, for synthetic touch events and touch events from touch emulator, make the pressure 0 for all the touch release events. BUG=648777 ==========
Description was changed from ========== Make sure that the pressure is always 0 for pointerup events Now, the pressure value is correct on Mac and Windows. We correct them on on Android and linux. Also, for synthetic touch events and touch events from touch emulator, make the pressure 0 for all the touch release events. BUG=648777 ========== to ========== Make sure that the pressure is always 0 for pointerup events The pressure value is correct on Mac and Windows. We correct them on on Android and linux. Also, for synthetic touch events and touch events from touch emulator, make the pressure 0 for all the touch release events. BUG=648777 ==========
mustaq@chromium.org changed reviewers: + tdresser@chromium.org
https://codereview.chromium.org/2700623003/diff/60001/ui/events/android/motio... File ui/events/android/motion_event_android.cc (right): https://codereview.chromium.org/2700623003/diff/60001/ui/events/android/motio... ui/events/android/motion_event_android.cc:307: if (cached_action_ == ACTION_UP) I guess this came from a previous mistake in Line 232 above: cached_action_ is of type MotionEvent::Action, so should always be compared/assigned to MotionEvent::ACTION_UP or MotionEventAndroid::ACTION_UP. ACTION_UP from Java side is different from MotionEvent::ACTION_UP afaik. How come we never saw the problem in Line 232? Tim, any idea?
https://codereview.chromium.org/2700623003/diff/60001/ui/events/android/motio... File ui/events/android/motion_event_android.cc (right): https://codereview.chromium.org/2700623003/diff/60001/ui/events/android/motio... ui/events/android/motion_event_android.cc:307: if (cached_action_ == ACTION_UP) On 2017/02/17 16:07:18, mustaq wrote: > I guess this came from a previous mistake in Line 232 above: cached_action_ is > of type MotionEvent::Action, so should always be compared/assigned to > MotionEvent::ACTION_UP or MotionEventAndroid::ACTION_UP. ACTION_UP from Java > side is different from MotionEvent::ACTION_UP afaik. > > How come we never saw the problem in Line 232? Tim, any idea? I have got the answer why we didn't hit Line 232 before --- ACTION_POINTER_DOWN/UP values just happen to match in these two "definitions": - https://developer.android.com/reference/android/view/MotionEvent.html#ACTION_... - https://cs.chromium.org/chromium/src/ui/events/gesture_detection/motion_event... Lan, please change this line and Line 232 as well to use MotionEvent::ACTION_* instead. And please confirm that Android Chromium build works for pointerup.
The CQ bit was checked by lanwei@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
lgtm
On 2017/02/21 15:10:15, mustaq wrote: > lgtm lgtm
lgtm
lanwei@chromium.org changed reviewers: + sadrul@chromium.org
sadrul@chromium.org: Please review changes in ui/events/, thank you! https://codereview.chromium.org/2700623003/diff/60001/ui/events/android/motio... File ui/events/android/motion_event_android.cc (right): https://codereview.chromium.org/2700623003/diff/60001/ui/events/android/motio... ui/events/android/motion_event_android.cc:307: if (cached_action_ == ACTION_UP) On 2017/02/17 16:18:51, mustaq wrote: > On 2017/02/17 16:07:18, mustaq wrote: > > I guess this came from a previous mistake in Line 232 above: cached_action_ is > > of type MotionEvent::Action, so should always be compared/assigned to > > MotionEvent::ACTION_UP or MotionEventAndroid::ACTION_UP. ACTION_UP from Java > > side is different from MotionEvent::ACTION_UP afaik. > > > > How come we never saw the problem in Line 232? Tim, any idea? > > I have got the answer why we didn't hit Line 232 before --- > ACTION_POINTER_DOWN/UP values just happen to match in these two "definitions": > - > https://developer.android.com/reference/android/view/MotionEvent.html#ACTION_... > - > https://cs.chromium.org/chromium/src/ui/events/gesture_detection/motion_event... > > Lan, please change this line and Line 232 as well to use MotionEvent::ACTION_* > instead. > > And please confirm that Android Chromium build works for pointerup. Acknowledged.
lgtm https://codereview.chromium.org/2700623003/diff/80001/ui/events/x/events_x_ut... File ui/events/x/events_x_utils.cc (right): https://codereview.chromium.org/2700623003/diff/80001/ui/events/x/events_x_ut... ui/events/x/events_x_utils.cc:728: double force = 0.0; Wrap everything below in a 'if (event->evtype != TouchEnd)' check
The CQ bit was checked by lanwei@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: chromeos_amd64-generic_chromium_compile_only_ng on master.tryserver.chromium.linux (JOB_TIMED_OUT, no build URL) chromium_presubmit on master.tryserver.chromium.linux (JOB_TIMED_OUT, no build URL) linux_chromium_chromeos_ozone_rel_ng on master.tryserver.chromium.linux (JOB_TIMED_OUT, no build URL) linux_chromium_chromeos_rel_ng on master.tryserver.chromium.linux (JOB_TIMED_OUT, no build URL) linux_chromium_compile_dbg_ng on master.tryserver.chromium.linux (JOB_TIMED_OUT, no build URL) linux_chromium_rel_ng on master.tryserver.chromium.linux (JOB_TIMED_OUT, no build URL) linux_chromium_tsan_rel_ng on master.tryserver.chromium.linux (JOB_TIMED_OUT, no build URL)
The CQ bit was checked by lanwei@chromium.org
The patchset sent to the CQ was uploaded after l-g-t-m from mustaq@chromium.org, dtapuska@chromium.org, sadrul@chromium.org, nzolghadr@chromium.org Link to the patchset: https://codereview.chromium.org/2700623003/#ps100001 (title: "pressure")
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Try jobs failed on following builders: chromeos_amd64-generic_chromium_compile_only_ng on master.tryserver.chromium.linux (JOB_TIMED_OUT, no build URL) linux_chromium_compile_dbg_ng on master.tryserver.chromium.linux (JOB_TIMED_OUT, no build URL) linux_chromium_rel_ng on master.tryserver.chromium.linux (JOB_TIMED_OUT, no build URL)
The CQ bit was checked by lanwei@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: linux_chromium_asan_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_...)
The CQ bit was checked by lanwei@chromium.org
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
CQ is committing da patch. Bot data: {"patchset_id": 100001, "attempt_start_ts": 1487777519691170, "parent_rev": "baff1b62a218ccb26e1fd06f6a192bbabc937ee1", "commit_rev": "e1fcfcddcd90de5017009feefa7e18716c450f4e"}
Message was sent while issue was closed.
Description was changed from ========== Make sure that the pressure is always 0 for pointerup events The pressure value is correct on Mac and Windows. We correct them on on Android and linux. Also, for synthetic touch events and touch events from touch emulator, make the pressure 0 for all the touch release events. BUG=648777 ========== to ========== Make sure that the pressure is always 0 for pointerup events The pressure value is correct on Mac and Windows. We correct them on on Android and linux. Also, for synthetic touch events and touch events from touch emulator, make the pressure 0 for all the touch release events. BUG=648777 Review-Url: https://codereview.chromium.org/2700623003 Cr-Commit-Position: refs/heads/master@{#452081} Committed: https://chromium.googlesource.com/chromium/src/+/e1fcfcddcd90de5017009feefa7e... ==========
Message was sent while issue was closed.
Committed patchset #3 (id:100001) as https://chromium.googlesource.com/chromium/src/+/e1fcfcddcd90de5017009feefa7e... |