|
|
DescriptionAdd id properties to PointerEvent
We add id to PointerDetails which will be used as PointerEvent's pointerId, so we can use it
to keep the id from lower level events from each OS.
In this patch, we also remove touch_id from ui::TouchEvent and pointer_id from ui::PointerEvent,
which are redundant to this new id.
BUG=685817
Review-Url: https://codereview.chromium.org/2655303004
Cr-Commit-Position: refs/heads/master@{#450807}
Committed: https://chromium.googlesource.com/chromium/src/+/31739e48ae970cbc39e8b8cceb168ca86848150a
Patch Set 1 : pointer id #Patch Set 2 : change id type to uint32_t #
Total comments: 4
Patch Set 3 : Add todo to remove touch id #Patch Set 4 : pointer id #
Total comments: 8
Patch Set 5 : pointer id #Patch Set 6 : pointer id #
Total comments: 10
Patch Set 7 : pointer id #
Total comments: 3
Messages
Total messages: 190 (163 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...
Description was changed from ========== pointer id BUG=685817 ========== to ========== Add id properties to PointerEvent on Windows BUG=685817 ==========
lanwei@chromium.org changed reviewers: + mustaq@chromium.org
lanwei@chromium.org changed reviewers: + dtapuska@chromium.org
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: ios-device on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-device/builds...)
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 #1 (id:1) has been deleted
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: ios-simulator on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-simulator/bui...)
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.
Patchset #1 (id:20001) has been deleted
On 2017/01/27 15:43:19, lanwei wrote: Pointer Ids are unsigned. Does it really make sense for these to be signed? https://msdn.microsoft.com/en-us/library/windows/desktop/hh454885(v=vs.85).aspx
On 2017/01/27 15:50:01, dtapuska wrote: > On 2017/01/27 15:43:19, lanwei wrote: > > Pointer Ids are unsigned. Does it really make sense for these to be signed? > > https://msdn.microsoft.com/en-us/library/windows/desktop/hh454885(v=vs.85).aspx You are right, should we change the type for WebPointerProperties::id as well? https://codesearch.chromium.org/chromium/src/third_party/WebKit/public/platfo...
On 2017/01/27 16:12:22, lanwei wrote: > On 2017/01/27 15:50:01, dtapuska wrote: > > On 2017/01/27 15:43:19, lanwei wrote: > > > > Pointer Ids are unsigned. Does it really make sense for these to be signed? > > > > > https://msdn.microsoft.com/en-us/library/windows/desktop/hh454885(v=vs.85).aspx > > You are right, should we change the type for WebPointerProperties::id as well? > https://codesearch.chromium.org/chromium/src/third_party/WebKit/public/platfo... Perhaps -ve ids don't make sense but PointerEvent.pointerId is also unsigned. I am slightly biased towards keeping WebPointerProperties.id signed.
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_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 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.
Patchset #2 (id:60001) has been deleted
https://codereview.chromium.org/2655303004/diff/80001/ui/events/event.h File ui/events/event.h (right): https://codereview.chromium.org/2655303004/diff/80001/ui/events/event.h#newco... ui/events/event.h:465: uint32_t id = 0; Where do we set the id from lower level events? Do you think we need to fix events_win.cc::GetMousePointerDetailsFromNative()? We seem to have a TODO there.
On 2017/01/31 00:24:13, mustaq wrote: > https://codereview.chromium.org/2655303004/diff/80001/ui/events/event.h > File ui/events/event.h (right): > > https://codereview.chromium.org/2655303004/diff/80001/ui/events/event.h#newco... > ui/events/event.h:465: uint32_t id = 0; > Where do we set the id from lower level events? Do you think we need to fix > events_win.cc::GetMousePointerDetailsFromNative()? We seem to have a TODO there. that is coming in the WM_POINTER changes I believe.
lgtm
On 2017/01/31 00:25:35, dtapuska wrote: > On 2017/01/31 00:24:13, mustaq wrote: > > https://codereview.chromium.org/2655303004/diff/80001/ui/events/event.h > > File ui/events/event.h (right): > > > > > https://codereview.chromium.org/2655303004/diff/80001/ui/events/event.h#newco... > > ui/events/event.h:465: uint32_t id = 0; > > Where do we set the id from lower level events? Do you think we need to fix > > events_win.cc::GetMousePointerDetailsFromNative()? We seem to have a TODO > there. > > that is coming in the WM_POINTER changes I believe. Yes, we get the pointer id from WM_Pointer message, UINT32 pointer_id = GET_POINTERID_WPARAM(w_param); This patch https://codereview.chromium.org/2648683003/ will set all the properties for stylus from WM_Pointer message and I will remove the todo later in it. Thanks for catching this.
lgtm
lanwei@chromium.org changed reviewers: + tdresser@chromium.org
lanwei@chromium.org changed reviewers: - tdresser@chromium.org
lanwei@chromium.org changed reviewers: + sadrul@chromium.org
sadrul@chromium.org: Please review changes in ui/, thank you
https://codereview.chromium.org/2655303004/diff/80001/ui/events/event.h File ui/events/event.h (right): https://codereview.chromium.org/2655303004/diff/80001/ui/events/event.h#newco... ui/events/event.h:466: ui::TouchEvent has a touch_id(), and a unique_event_id(). It also has a PointerDetails, which now also has a id(). How are they related? Can we remove one of the ids from TouchEvent? ditto for ui::PointerEvent.
https://codereview.chromium.org/2655303004/diff/80001/ui/events/event.h File ui/events/event.h (right): https://codereview.chromium.org/2655303004/diff/80001/ui/events/event.h#newco... ui/events/event.h:466: On 2017/01/31 17:05:13, sadrul wrote: > ui::TouchEvent has a touch_id(), and a unique_event_id(). It also has a > PointerDetails, which now also has a id(). How are they related? Can we remove > one of the ids from TouchEvent? > > ditto for ui::PointerEvent. This id in PointerDetails makes more senses for stylus type, because we will get an ID from lower level events from the OS. For touch event, this id will be just 0, and eventually in Blink, the pointer id will be set by the touch_id() from ui::TouchEvent. I guess we can use get rid of touch_id(), if we will use this id. Dave, Mustaq, what do you think?
https://codereview.chromium.org/2655303004/diff/80001/ui/events/event.h File ui/events/event.h (right): https://codereview.chromium.org/2655303004/diff/80001/ui/events/event.h#newco... ui/events/event.h:466: On 2017/02/01 02:58:12, lanwei wrote: > On 2017/01/31 17:05:13, sadrul wrote: > > ui::TouchEvent has a touch_id(), and a unique_event_id(). It also has a > > PointerDetails, which now also has a id(). How are they related? Can we remove > > one of the ids from TouchEvent? > > > > ditto for ui::PointerEvent. > > This id in PointerDetails makes more senses for stylus type, because we will get > an ID from lower level events from the OS. For touch event, this id will be just > 0, and eventually in Blink, the pointer id will be set by the touch_id() from > ui::TouchEvent. I guess we can use get rid of touch_id(), if we will use this > id. Dave, Mustaq, what do you think? Replacing TouchEvent::touch_id() (and I guess PointerEvent::pointer_id() too) with this new *Event::PointerDetails::id() sounds reasonable to me.
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...
On 2017/02/01 20:59:39, sadrul wrote: > https://codereview.chromium.org/2655303004/diff/80001/ui/events/event.h > File ui/events/event.h (right): > > https://codereview.chromium.org/2655303004/diff/80001/ui/events/event.h#newco... > ui/events/event.h:466: > On 2017/02/01 02:58:12, lanwei wrote: > > On 2017/01/31 17:05:13, sadrul wrote: > > > ui::TouchEvent has a touch_id(), and a unique_event_id(). It also has a > > > PointerDetails, which now also has a id(). How are they related? Can we > remove > > > one of the ids from TouchEvent? > > > > > > ditto for ui::PointerEvent. > > > > This id in PointerDetails makes more senses for stylus type, because we will > get > > an ID from lower level events from the OS. For touch event, this id will be > just > > 0, and eventually in Blink, the pointer id will be set by the touch_id() from > > ui::TouchEvent. I guess we can use get rid of touch_id(), if we will use this > > id. Dave, Mustaq, what do you think? > > Replacing TouchEvent::touch_id() (and I guess PointerEvent::pointer_id() too) > with this new *Event::PointerDetails::id() sounds reasonable to me. Sadrul, I added a TODO to remove the touch_id and pointer_id. The files needed to be changed will be a lot, I will work on it after we land this one, and may need to split into two CLs. What do you think?
On 2017/02/02 17:44:44, lanwei wrote: > On 2017/02/01 20:59:39, sadrul wrote: > > https://codereview.chromium.org/2655303004/diff/80001/ui/events/event.h > > File ui/events/event.h (right): > > > > > https://codereview.chromium.org/2655303004/diff/80001/ui/events/event.h#newco... > > ui/events/event.h:466: > > On 2017/02/01 02:58:12, lanwei wrote: > > > On 2017/01/31 17:05:13, sadrul wrote: > > > > ui::TouchEvent has a touch_id(), and a unique_event_id(). It also has a > > > > PointerDetails, which now also has a id(). How are they related? Can we > > remove > > > > one of the ids from TouchEvent? > > > > > > > > ditto for ui::PointerEvent. > > > > > > This id in PointerDetails makes more senses for stylus type, because we will > > get > > > an ID from lower level events from the OS. For touch event, this id will be > > just > > > 0, and eventually in Blink, the pointer id will be set by the touch_id() > from > > > ui::TouchEvent. I guess we can use get rid of touch_id(), if we will use > this > > > id. Dave, Mustaq, what do you think? > > > > Replacing TouchEvent::touch_id() (and I guess PointerEvent::pointer_id() too) > > with this new *Event::PointerDetails::id() sounds reasonable to me. > > Sadrul, I added a TODO to remove the touch_id and pointer_id. The files needed > to be changed will be a lot, I will work on it after we land this one, and may > need to split into two CLs. What do you think? I would rather we do this now. (leaving a confusing state for weeks would not be a good idea)
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
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_compile_dbg_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 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: cast_shell_linux on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/cast_shell_linu...) linux_chromium_chromeos_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 to run a CQ dry run
Patchset #4 (id:120001) has been deleted
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
Patchset #4 (id:120001) has been deleted
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: chromeos_daisy_chromium_compile_only_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromeos_daisy_...)
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 #5 (id:160001) has been deleted
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: win_chromium_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_...) win_chromium_x64_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_x64_...)
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: win_chromium_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_...)
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: cast_shell_linux on master.tryserver.chromium.linux (JOB_TIMED_OUT, no build URL) chromeos_amd64-generic_chromium_compile_only_ng on master.tryserver.chromium.linux (JOB_TIMED_OUT, no build URL) chromeos_daisy_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_asan_rel_ng 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) win_chromium_compile_dbg_ng on master.tryserver.chromium.win (JOB_TIMED_OUT, no build URL) win_chromium_rel_ng on master.tryserver.chromium.win (JOB_TIMED_OUT, no build URL) win_chromium_x64_rel_ng on master.tryserver.chromium.win (JOB_TIMED_OUT, no build URL) win_clang on master.tryserver.chromium.win (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: cast_shell_linux on master.tryserver.chromium.linux (JOB_TIMED_OUT, no build URL) chromeos_amd64-generic_chromium_compile_only_ng on master.tryserver.chromium.linux (JOB_TIMED_OUT, no build URL) chromeos_daisy_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_asan_rel_ng 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) win_chromium_compile_dbg_ng on master.tryserver.chromium.win (JOB_TIMED_OUT, no build URL) win_chromium_rel_ng on master.tryserver.chromium.win (JOB_TIMED_OUT, no build URL) win_chromium_x64_rel_ng on master.tryserver.chromium.win (JOB_TIMED_OUT, no build URL) win_clang on master.tryserver.chromium.win (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: cast_shell_linux on master.tryserver.chromium.linux (JOB_TIMED_OUT, no build URL) chromeos_amd64-generic_chromium_compile_only_ng on master.tryserver.chromium.linux (JOB_TIMED_OUT, no build URL) chromeos_daisy_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_asan_rel_ng 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) win_chromium_compile_dbg_ng on master.tryserver.chromium.win (JOB_TIMED_OUT, no build URL) win_chromium_rel_ng on master.tryserver.chromium.win (JOB_TIMED_OUT, no build URL) win_chromium_x64_rel_ng on master.tryserver.chromium.win (JOB_TIMED_OUT, no build URL) win_clang on master.tryserver.chromium.win (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: This issue passed the CQ dry run.
Patchset #7 (id:220001) has been deleted
Patchset #5 (id:180001) has been deleted
Patchset #4 (id:140001) has been deleted
Patchset #4 (id:200001) has been deleted
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.
Patchset #4 (id:240001) has been deleted
Patchset #4 (id:260001) has been deleted
Sadrul, could you please take another look, I removed the touch_id and pointer_id, thank you?
Can you update the CL description? Is there a reason to prefer uint32_t instead of int (which is what touch-id used to be)? If we are switching to uint32_t, then we probably need to update some more code. https://codereview.chromium.org/2655303004/diff/280001/ash/touch/touch_uma.cc File ash/touch/touch_uma.cc (right): https://codereview.chromium.org/2655303004/diff/280001/ash/touch/touch_uma.cc... ash/touch/touch_uma.cc:122: It may be better to extract the id here, and just use that in all the places below. https://codereview.chromium.org/2655303004/diff/280001/mash/simple_wm/move_lo... File mash/simple_wm/move_loop.cc (right): https://codereview.chromium.org/2655303004/diff/280001/mash/simple_wm/move_lo... mash/simple_wm/move_loop.cc:104: // GetWindowUserSetBounds(target)), Since you are here, delete this line? https://codereview.chromium.org/2655303004/diff/280001/services/ui/ws/drag_co... File services/ui/ws/drag_controller.cc (right): https://codereview.chromium.org/2655303004/diff/280001/services/ui/ws/drag_co... services/ui/ws/drag_controller.cc:89: if (event.pointer_details().id != static_cast<uint32_t>(drag_pointer_id_)) Make |drag_pointer_id_| a uint32_t too? https://codereview.chromium.org/2655303004/diff/280001/ui/events/event.cc File ui/events/event.cc (right): https://codereview.chromium.org/2655303004/diff/280001/ui/events/event.cc#new... ui/events/event.cc:1032: details_.id = static_cast<uint32_t>(kMousePointerId); Should not be necessary? https://codereview.chromium.org/2655303004/diff/280001/ui/events/event.cc#new... ui/events/event.cc:1088: std::numeric_limits<int32_t>::max(); uint32_t
Description was changed from ========== Add id properties to PointerEvent on Windows BUG=685817 ========== to ========== Add id properties to PointerEvent on Windows We add id to PointerDetails which will be used as PointerEvent's pointerId. In this patch, we also remove touch_id from ui::TouchEvent and pointer_id from ui::PointerEvent, which are redundant to this new id. BUG=685817 ==========
Description was changed from ========== Add id properties to PointerEvent on Windows We add id to PointerDetails which will be used as PointerEvent's pointerId. In this patch, we also remove touch_id from ui::TouchEvent and pointer_id from ui::PointerEvent, which are redundant to this new id. BUG=685817 ========== to ========== Add id properties to PointerEvent on Windows We add id to PointerDetails which will be used as PointerEvent's pointerId. In this patch, we also remove touch_id from ui::TouchEvent and pointer_id from ui::PointerEvent, which are redundant to this new id. BUG=685817 ==========
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: win_chromium_x64_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_x64_...)
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: ios-device on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-device/builds...) ios-device-xcode-clang on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-device-xcode-...) ios-simulator on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-simulator/bui...) ios-simulator-xcode-clang on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-simulator-xco...)
The CQ bit was checked by lanwei@chromium.org to run a CQ dry run
Patchset #8 (id:360001) has been deleted
Patchset #5 (id:300001) has been deleted
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: cast_shell_android on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/cast_shell_a...)
The CQ bit was checked by lanwei@chromium.org to run a CQ dry run
Patchset #7 (id:380001) has been deleted
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: win_chromium_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_...)
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: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presub...) ios-device-xcode-clang on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-device-xcode-...) ios-simulator on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-simulator/bui...) ios-simulator-xcode-clang on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-simulator-xco...) mac_chromium_rel_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_...)
The CQ bit was checked by lanwei@chromium.org to run a CQ dry run
Patchset #9 (id:440001) has been deleted
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
Patchset #5 (id:320001) has been deleted
Patchset #5 (id:340001) has been deleted
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: win_chromium_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_...)
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_chromeos_ozone_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_...) win_clang on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_clang/builds/...)
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 #9 (id:500001) has been deleted
Patchset #9 (id:520001) has been deleted
Patchset #7 (id:460001) has been deleted
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: linux_android_rel_ng on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_androi...)
The CQ bit was checked by lanwei@chromium.org to run a CQ dry run
The CQ bit was unchecked by lanwei@chromium.org
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
Patchset #9 (id:560001) has been deleted
Patchset #5 (id:400001) has been deleted
Patchset #5 (id:420001) has been deleted
Patchset #5 (id:480001) has been deleted
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...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
https://codereview.chromium.org/2655303004/diff/280001/mash/simple_wm/move_lo... File mash/simple_wm/move_loop.cc (right): https://codereview.chromium.org/2655303004/diff/280001/mash/simple_wm/move_lo... mash/simple_wm/move_loop.cc:104: // GetWindowUserSetBounds(target)), On 2017/02/07 05:40:41, sadrul wrote: > Since you are here, delete this line? Done. https://codereview.chromium.org/2655303004/diff/280001/ui/events/event.cc File ui/events/event.cc (right): https://codereview.chromium.org/2655303004/diff/280001/ui/events/event.cc#new... ui/events/event.cc:1032: details_.id = static_cast<uint32_t>(kMousePointerId); On 2017/02/07 05:40:42, sadrul wrote: > Should not be necessary? Done. https://codereview.chromium.org/2655303004/diff/280001/ui/events/event.cc#new... ui/events/event.cc:1088: std::numeric_limits<int32_t>::max(); On 2017/02/07 05:40:42, sadrul wrote: > uint32_t Done.
Patchset #5 (id:540001) has been deleted
Patchset #5 (id:580001) has been deleted
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.
Some more nits. lgtm with those addressed. Looks like GetTouchId() can be removed now, so let's do that in a follow up CL. https://codereview.chromium.org/2655303004/diff/610001/ash/touch/touch_uma.cc File ash/touch/touch_uma.cc (right): https://codereview.chromium.org/2655303004/diff/610001/ash/touch/touch_uma.cc... ash/touch/touch_uma.cc:125: int touch_pointer_id = event.pointer_details().id; Make this const https://codereview.chromium.org/2655303004/diff/610001/components/exo/touch.cc File components/exo/touch.cc (right): https://codereview.chromium.org/2655303004/diff/610001/components/exo/touch.c... components/exo/touch.cc:71: int touch_pointer_id = event->pointer_details().id; Make this const https://codereview.chromium.org/2655303004/diff/610001/ui/events/event.cc File ui/events/event.cc (right): https://codereview.chromium.org/2655303004/diff/610001/ui/events/event.cc#new... ui/events/event.cc:553: if (pointer_id == -1) { Instead of -1, use some const, e.g. PointerDetails::kUnknownPointerId (or something like that). https://codereview.chromium.org/2655303004/diff/610001/ui/events/event.cc#new... ui/events/event.cc:557: } Use a delegated constructor, instead of repeating this block everywhere. https://codereview.chromium.org/2655303004/diff/610001/ui/events/events_defau... File ui/events/events_default.cc (right): https://codereview.chromium.org/2655303004/diff/610001/ui/events/events_defau... ui/events/events_default.cc:100: return event->pointer_details().id; Is GetTouchId() called from anywhere anymore? If not, can you remove that? (maybe in a separate CL)
Also, this sets the id on all platforms. So please update the CL description accordingly.
Description was changed from ========== Add id properties to PointerEvent on Windows We add id to PointerDetails which will be used as PointerEvent's pointerId. In this patch, we also remove touch_id from ui::TouchEvent and pointer_id from ui::PointerEvent, which are redundant to this new id. BUG=685817 ========== to ========== Add id properties to PointerEvent We add id to PointerDetails which will be used as PointerEvent's pointerId, so we can use it to keep the id from lower level events from each OS. In this patch, we also remove touch_id from ui::TouchEvent and pointer_id from ui::PointerEvent, which are redundant to this new id. BUG=685817 ==========
Description was changed from ========== Add id properties to PointerEvent We add id to PointerDetails which will be used as PointerEvent's pointerId, so we can use it to keep the id from lower level events from each OS. In this patch, we also remove touch_id from ui::TouchEvent and pointer_id from ui::PointerEvent, which are redundant to this new id. BUG=685817 ========== to ========== Add id properties to PointerEvent We add id to PointerDetails which will be used as PointerEvent's pointerId, so we can use it to keep the id from lower level events from each OS. In this patch, we also remove touch_id from ui::TouchEvent and pointer_id from ui::PointerEvent, which are redundant to this new id. BUG=685817 ==========
Description was changed from ========== Add id properties to PointerEvent We add id to PointerDetails which will be used as PointerEvent's pointerId, so we can use it to keep the id from lower level events from each OS. In this patch, we also remove touch_id from ui::TouchEvent and pointer_id from ui::PointerEvent, which are redundant to this new id. BUG=685817 ========== to ========== Add id properties to PointerEvent We add id to PointerDetails which will be used as PointerEvent's pointerId, so we can use it to keep the id from lower level events from each OS. In this patch, we also remove touch_id from ui::TouchEvent and pointer_id from ui::PointerEvent, which are redundant to this new id. BUG=685817 ==========
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: + brettw@chromium.org
lanwei@chromium.org changed reviewers: + dcheng@chromium.org
lanwei@chromium.org changed reviewers: - brettw@chromium.org
lanwei@chromium.org changed reviewers: + brettw@chromium.org
brettw@ could you please take a look at files in ash/ , mash/, services/, dcheng@ could you please take a look at ui/events/mojo/event_struct_traits.cc thank you? https://codereview.chromium.org/2655303004/diff/610001/ash/touch/touch_uma.cc File ash/touch/touch_uma.cc (right): https://codereview.chromium.org/2655303004/diff/610001/ash/touch/touch_uma.cc... ash/touch/touch_uma.cc:125: int touch_pointer_id = event.pointer_details().id; On 2017/02/13 16:47:42, sadrul wrote: > Make this const Done. https://codereview.chromium.org/2655303004/diff/610001/components/exo/touch.cc File components/exo/touch.cc (right): https://codereview.chromium.org/2655303004/diff/610001/components/exo/touch.c... components/exo/touch.cc:71: int touch_pointer_id = event->pointer_details().id; On 2017/02/13 16:47:42, sadrul wrote: > Make this const Done. https://codereview.chromium.org/2655303004/diff/610001/ui/events/event.cc File ui/events/event.cc (right): https://codereview.chromium.org/2655303004/diff/610001/ui/events/event.cc#new... ui/events/event.cc:553: if (pointer_id == -1) { On 2017/02/13 16:47:42, sadrul wrote: > Instead of -1, use some const, e.g. PointerDetails::kUnknownPointerId (or > something like that). Done. https://codereview.chromium.org/2655303004/diff/610001/ui/events/event.cc#new... ui/events/event.cc:557: } On 2017/02/13 16:47:42, sadrul wrote: > Use a delegated constructor, instead of repeating this block everywhere. Done. https://codereview.chromium.org/2655303004/diff/610001/ui/events/events_defau... File ui/events/events_default.cc (right): https://codereview.chromium.org/2655303004/diff/610001/ui/events/events_defau... ui/events/events_default.cc:100: return event->pointer_details().id; On 2017/02/13 16:47:43, sadrul wrote: > Is GetTouchId() called from anywhere anymore? If not, can you remove that? > (maybe in a separate CL) Done.
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
ipc lgtm
LGTM for mechanical changes in ash, mash, and services.
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_...)
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 Link to the patchset: https://codereview.chromium.org/2655303004/#ps630001 (title: "pointer id")
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": 630001, "attempt_start_ts": 1487188991721290, "parent_rev": "307befe4b9981bcd19c4f2b2ca189cca588a7d8e", "commit_rev": "31739e48ae970cbc39e8b8cceb168ca86848150a"}
Message was sent while issue was closed.
Description was changed from ========== Add id properties to PointerEvent We add id to PointerDetails which will be used as PointerEvent's pointerId, so we can use it to keep the id from lower level events from each OS. In this patch, we also remove touch_id from ui::TouchEvent and pointer_id from ui::PointerEvent, which are redundant to this new id. BUG=685817 ========== to ========== Add id properties to PointerEvent We add id to PointerDetails which will be used as PointerEvent's pointerId, so we can use it to keep the id from lower level events from each OS. In this patch, we also remove touch_id from ui::TouchEvent and pointer_id from ui::PointerEvent, which are redundant to this new id. BUG=685817 Review-Url: https://codereview.chromium.org/2655303004 Cr-Commit-Position: refs/heads/master@{#450807} Committed: https://chromium.googlesource.com/chromium/src/+/31739e48ae970cbc39e8b8cceb16... ==========
Message was sent while issue was closed.
Committed patchset #7 (id:630001) as https://chromium.googlesource.com/chromium/src/+/31739e48ae970cbc39e8b8cceb16...
Message was sent while issue was closed.
Re the pinch-zoom on CrOS (crbug.com/695905): TouchEvent(NativeEvent&) seems to skip the id (plus a few drive-by comments)... https://codereview.chromium.org/2655303004/diff/630001/ui/events/blink/web_in... File ui/events/blink/web_input_event_builders_win.cc (right): https://codereview.chromium.org/2655303004/diff/630001/ui/events/blink/web_in... ui/events/blink/web_input_event_builders_win.cc:170: result.id = ui::PointerEvent::kMousePointerId; Are we sure that stylus events are not going through this? Hardcoded ids could cause problems with stylus ids, even after we migrate to WM_POINTER events because legacy systems could still pass stylus events as WM_MOUSE events. https://codereview.chromium.org/2655303004/diff/630001/ui/events/event.cc File ui/events/event.cc (right): https://codereview.chromium.org/2655303004/diff/630001/ui/events/event.cc#new... ui/events/event.cc:832: : LocatedEvent(native_event), I think the bug with pinch-zoom on CrOS (crbug.com/695905) is caused by this particular constructor: we are not using the value GetTouchId(native_event) now. Please update this, ideally GetTouchPointerDetailsFromNative() should pull the native id. https://codereview.chromium.org/2655303004/diff/630001/ui/events/x/events_x.cc File ui/events/x/events_x.cc (right): https://codereview.chromium.org/2655303004/diff/630001/ui/events/x/events_x.c... ui/events/x/events_x.cc:165: /* twist */ 0, GetTouchIdFromXEvent(*native_event)); Nit: odd formatting. |