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

Issue 785753002: Don't refcount tracking id -> slot id mapping. (Closed)

Created:
6 years ago by tdresser
Modified:
5 years, 10 months ago
Reviewers:
jdduke (slow), sadrul
CC:
chromium-reviews, kalyank, tfarina, jdduke+watch_chromium.org, ozone-reviews_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

Don't refcount tracking id -> slot id mapping. Previously we tried to refcount the tracking id to slot id mapping. This broke in some circumstances where the number of press events was not equal to the number of release events. This patch switches to marking some touch events such that they don't modify the mapping, simplifying logic, and fixing a nasty bug. BUG=439051 TEST=EventsXTest.TouchEventNotRemovingFromNativeMapping Committed: https://crrev.com/47a823b565a4051e58d83a857738c0fb8417d9ac Cr-Commit-Position: refs/heads/master@{#313520}

Patch Set 1 #

Patch Set 2 : Fix uninitialized memory issue. #

Total comments: 4

Patch Set 3 : Address sadrul's feedback (add test) #

Patch Set 4 : Tidied things up. #

Total comments: 9

Patch Set 5 : Address sadrul's comments. #

Total comments: 2

Patch Set 6 : Fix comment. #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+132 lines, -99 lines) Patch
M ui/events/cocoa/events_mac.mm View 1 2 1 chunk +0 lines, -4 lines 0 comments Download
M ui/events/devices/x11/touch_factory_x11.h View 1 2 2 chunks +0 lines, -8 lines 0 comments Download
M ui/events/devices/x11/touch_factory_x11.cc View 1 2 3 2 chunks +1 line, -8 lines 0 comments Download
M ui/events/event.h View 1 2 3 4 5 6 chunks +15 lines, -6 lines 1 comment Download
M ui/events/event.cc View 1 2 3 4 4 chunks +17 lines, -16 lines 0 comments Download
M ui/events/event_utils.h View 1 chunk +0 lines, -5 lines 0 comments Download
M ui/events/events_stub.cc View 1 2 1 chunk +0 lines, -4 lines 0 comments Download
M ui/events/ozone/events_ozone.cc View 1 chunk +0 lines, -3 lines 0 comments Download
M ui/events/win/events_win.cc View 1 2 1 chunk +0 lines, -4 lines 0 comments Download
M ui/events/x/events_x.cc View 1 2 1 chunk +0 lines, -12 lines 0 comments Download
M ui/events/x/events_x_unittest.cc View 1 2 1 chunk +22 lines, -29 lines 0 comments Download
M ui/views/controls/menu/menu_controller_unittest.cc View 1 2 3 4 3 chunks +69 lines, -0 lines 0 comments Download
M ui/views/controls/menu/menu_event_dispatcher_linux.cc View 1 2 3 1 chunk +8 lines, -0 lines 0 comments Download

Messages

Total messages: 17 (4 generated)
tdresser
The approach I was thinking of using (checking if the event created a mapping from ...
6 years ago (2014-12-06 17:58:25 UTC) #2
tdresser
On 2014/12/06 17:58:25, tdresser wrote: > The approach I was thinking of using (checking if ...
5 years, 11 months ago (2015-01-14 13:40:27 UTC) #3
sadrul
https://codereview.chromium.org/785753002/diff/20001/ui/events/event.cc File ui/events/event.cc (right): https://codereview.chromium.org/785753002/diff/20001/ui/events/event.cc#newcode529 ui/events/event.cc:529: should_remove_native_touch_id_mapping_ = true; Do this before or after the ...
5 years, 11 months ago (2015-01-14 20:21:35 UTC) #4
tdresser
Sorry for the slow response here. Can you take another look? https://codereview.chromium.org/785753002/diff/20001/ui/events/event.cc File ui/events/event.cc (right): ...
5 years, 11 months ago (2015-01-23 18:12:34 UTC) #6
sadrul
https://codereview.chromium.org/785753002/diff/80001/ui/events/event.cc File ui/events/event.cc (right): https://codereview.chromium.org/785753002/diff/80001/ui/events/event.cc#newcode534 ui/events/event.cc:534: fixRotationAngle(); We should call this FixRotationAngle() (https://codereview.chromium.org/800163005/diff/140001/ui/events/event.h#newcode572). Mind fixing ...
5 years, 11 months ago (2015-01-26 18:49:47 UTC) #7
tdresser
https://codereview.chromium.org/785753002/diff/80001/ui/events/event.cc File ui/events/event.cc (right): https://codereview.chromium.org/785753002/diff/80001/ui/events/event.cc#newcode534 ui/events/event.cc:534: fixRotationAngle(); On 2015/01/26 18:49:46, sadrul wrote: > We should ...
5 years, 11 months ago (2015-01-27 21:43:06 UTC) #8
sadrul
LGTM https://codereview.chromium.org/785753002/diff/80001/ui/views/controls/menu/menu_controller_unittest.cc File ui/views/controls/menu/menu_controller_unittest.cc (right): https://codereview.chromium.org/785753002/diff/80001/ui/views/controls/menu/menu_controller_unittest.cc#newcode331 ui/views/controls/menu/menu_controller_unittest.cc:331: EXPECT_EQ(0, test_event_handler.outstanding_touches()); On 2015/01/27 21:43:05, tdresser wrote: > ...
5 years, 10 months ago (2015-01-28 00:04:05 UTC) #9
tdresser
https://codereview.chromium.org/785753002/diff/100001/ui/events/event.h File ui/events/event.h (right): https://codereview.chromium.org/785753002/diff/100001/ui/events/event.h#newcode581 ui/events/event.h:581: // id. On 2015/01/28 00:04:05, sadrul wrote: > s/chromium ...
5 years, 10 months ago (2015-01-28 14:52:14 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/785753002/120001
5 years, 10 months ago (2015-01-28 14:53:16 UTC) #12
commit-bot: I haz the power
Committed patchset #6 (id:120001)
5 years, 10 months ago (2015-01-28 15:53:40 UTC) #13
commit-bot: I haz the power
Patchset 6 (id:??) landed as https://crrev.com/47a823b565a4051e58d83a857738c0fb8417d9ac Cr-Commit-Position: refs/heads/master@{#313520}
5 years, 10 months ago (2015-01-28 15:54:46 UTC) #14
tdresser
A revert of this CL (patchset #6 id:120001) has been created in https://codereview.chromium.org/869433007/ by tdresser@chromium.org. ...
5 years, 10 months ago (2015-01-29 13:56:29 UTC) #15
jdduke (slow)
5 years, 10 months ago (2015-02-03 00:24:57 UTC) #17
Message was sent while issue was closed.
https://codereview.chromium.org/785753002/diff/120001/ui/events/event.h
File ui/events/event.h (right):

https://codereview.chromium.org/785753002/diff/120001/ui/events/event.h#newco...
ui/events/event.h:495: should_remove_native_touch_id_mapping_(false) {}
Looks like a bad rebase. |may_cause_scrolling_| is no longer initialized,
neither here nor in the other constructors.

Powered by Google App Engine
This is Rietveld 408576698