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

Issue 542323002: Convert ui::GestureEvent coordinates during targeting (Closed)

Created:
6 years, 3 months ago by tdanderson
Modified:
6 years, 3 months ago
Reviewers:
sadrul
CC:
chromium-reviews, tfarina, ben+views_chromium.org, tdanderson+views_chromium.org, tdresser+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Convert ui::GestureEvent coordinates during targeting In RootView::DispatchGestureEvent(), use Event::Clone() to copy gesture events prior to processing and perform coordinate conversion of the events during targeting but before dispatch (so the location of the gesture event is in the coordinate space of the target). In preparation for removing RootView::DispatchGestureEvent(), also make the corresponding changes to EventProcessor::OnEventFromSource(). These changes are necessary to ensure that located events will be dispatched with their locations in the correct coordinate space in all situations (in particular, when an event is bubbling during an invocation of nested event-processing). BUG=411487 TEST=WidgetTest.GestureEventLocationWhileBubbling, ViewTargeterTest.GestureEventCoordinateConversion, modified ViewTargeterTest.ViewTargeterForGestureEvents Committed: https://crrev.com/76b7f06e911e996f7a07e090c7ec4057a62b8314 Cr-Commit-Position: refs/heads/master@{#293797}

Patch Set 1 #

Patch Set 2 : mutate event location during targeting #

Total comments: 4

Patch Set 3 : comments addressed #

Unified diffs Side-by-side diffs Delta from patch set Stats (+277 lines, -44 lines) Patch
M ui/events/event_processor.cc View 1 2 chunks +12 lines, -12 lines 0 comments Download
M ui/events/event_processor_unittest.cc View 1 2 2 chunks +7 lines, -3 lines 0 comments Download
M ui/events/event_targeter.h View 1 3 chunks +9 lines, -2 lines 0 comments Download
M ui/views/view_targeter.cc View 1 2 chunks +11 lines, -4 lines 0 comments Download
M ui/views/view_targeter_unittest.cc View 1 2 5 chunks +126 lines, -16 lines 0 comments Download
M ui/views/widget/root_view.cc View 1 2 chunks +8 lines, -7 lines 0 comments Download
M ui/views/widget/widget_unittest.cc View 1 2 2 chunks +104 lines, -0 lines 0 comments Download

Messages

Total messages: 20 (10 generated)
tdanderson
Sadrul, can you please let me know what you think?
6 years, 3 months ago (2014-09-05 22:18:18 UTC) #2
tdanderson
On 2014/09/05 22:18:18, tdanderson wrote: > Sadrul, can you please let me know what you ...
6 years, 3 months ago (2014-09-05 23:33:36 UTC) #3
tdanderson
Sadrul, can you please take a look?
6 years, 3 months ago (2014-09-07 00:50:31 UTC) #6
sadrul
LGTM https://codereview.chromium.org/542323002/diff/20001/ui/events/event_processor.cc File ui/events/event_processor.cc (right): https://codereview.chromium.org/542323002/diff/20001/ui/events/event_processor.cc#newcode29 ui/events/event_processor.cc:29: EventTarget* target = targeter->FindTargetForEvent(root, event_to_dispatch); Can you update ...
6 years, 3 months ago (2014-09-07 05:33:47 UTC) #7
tdanderson
https://codereview.chromium.org/542323002/diff/20001/ui/events/event_processor.cc File ui/events/event_processor.cc (right): https://codereview.chromium.org/542323002/diff/20001/ui/events/event_processor.cc#newcode29 ui/events/event_processor.cc:29: EventTarget* target = targeter->FindTargetForEvent(root, event_to_dispatch); On 2014/09/07 05:33:47, sadrul ...
6 years, 3 months ago (2014-09-08 17:21:08 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tdanderson@chromium.org/542323002/40001
6 years, 3 months ago (2014-09-08 17:39:38 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tdanderson@chromium.org/542323002/40001
6 years, 3 months ago (2014-09-08 17:48:36 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tdanderson@chromium.org/542323002/40001
6 years, 3 months ago (2014-09-08 18:48:38 UTC) #18
commit-bot: I haz the power
Committed patchset #3 (id:40001) as 4872e34aada033b47f5ca504a63003b0eb793dac
6 years, 3 months ago (2014-09-08 22:31:02 UTC) #19
commit-bot: I haz the power
6 years, 3 months ago (2014-09-10 03:48:31 UTC) #20
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/76b7f06e911e996f7a07e090c7ec4057a62b8314
Cr-Commit-Position: refs/heads/master@{#293797}

Powered by Google App Engine
This is Rietveld 408576698