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

Issue 2341873002: Handle touchpad flings with passive event listeners on compositor thread. (Closed)

Created:
4 years, 3 months ago by dtapuska
Modified:
4 years, 3 months ago
CC:
chromium-reviews, mlamouri+watch-content_chromium.org, jam, darin-cc_chromium.org, dtapuska+chromiumwatch_chromium.org, tdresser+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Handle touchpad flings with passive event listeners on compositor thread. Touchpad flings that have only passive event listeners were forced to be main thread. Handle event injection to the main thread event queue for when we get passive events so it can be entirely done on the compositor thread. BUG=646592 TBR=ben@chromium.org Committed: https://crrev.com/1bcb284c49ca00b7ebf70d5de2cdbd2809a57a22 Cr-Commit-Position: refs/heads/master@{#419870}

Patch Set 1 #

Total comments: 4

Patch Set 2 : Fix build and modify tests #

Patch Set 3 : Try to fix funky windows build failure #

Total comments: 4

Patch Set 4 : Fix nits and test #

Patch Set 5 : Fix windows build #

Total comments: 2

Patch Set 6 : Add dcheck for blimp #

Unified diffs Side-by-side diffs Delta from patch set Stats (+157 lines, -59 lines) Patch
M blimp/client/core/input/blimp_input_handler_wrapper.h View 1 1 chunk +3 lines, -0 lines 0 comments Download
M blimp/client/core/input/blimp_input_handler_wrapper.cc View 1 2 3 4 5 1 chunk +10 lines, -0 lines 0 comments Download
M content/renderer/input/input_event_filter.h View 1 2 3 1 chunk +5 lines, -0 lines 0 comments Download
M content/renderer/input/input_event_filter.cc View 1 2 3 1 chunk +13 lines, -0 lines 0 comments Download
M content/renderer/input/input_handler_manager.h View 1 1 chunk +6 lines, -0 lines 0 comments Download
M content/renderer/input/input_handler_manager.cc View 1 1 chunk +9 lines, -0 lines 0 comments Download
M content/renderer/input/input_handler_manager_client.h View 1 3 chunks +6 lines, -0 lines 0 comments Download
M content/renderer/input/input_handler_wrapper.h View 1 1 chunk +3 lines, -0 lines 0 comments Download
M content/renderer/input/input_handler_wrapper.cc View 1 1 chunk +7 lines, -0 lines 0 comments Download
M content/renderer/mus/compositor_mus_connection_unittest.cc View 1 1 chunk +5 lines, -0 lines 0 comments Download
M ui/events/blink/input_handler_proxy.h View 1 1 chunk +3 lines, -1 line 0 comments Download
M ui/events/blink/input_handler_proxy.cc View 1 8 chunks +28 lines, -20 lines 0 comments Download
M ui/events/blink/input_handler_proxy_client.h View 1 2 chunks +10 lines, -0 lines 0 comments Download
M ui/events/blink/input_handler_proxy_unittest.cc View 1 2 3 4 3 chunks +49 lines, -38 lines 0 comments Download

Messages

Total messages: 41 (27 generated)
dtapuska
tdresser@ PTAL. I'm open to changing the callback names if you have better suggestions.
4 years, 3 months ago (2016-09-14 18:48:56 UTC) #5
tdresser
Looks pretty decent to me. Tests? https://codereview.chromium.org/2341873002/diff/1/content/renderer/input/input_event_filter.cc File content/renderer/input/input_event_filter.cc (right): https://codereview.chromium.org/2341873002/diff/1/content/renderer/input/input_event_filter.cc#newcode117 content/renderer/input/input_event_filter.cc:117: iter->second->HandleEvent(std::move(event), ui::LatencyInfo(), I'm ...
4 years, 3 months ago (2016-09-14 18:58:08 UTC) #6
dtapuska
Modified the tests as well. PTAL. https://codereview.chromium.org/2341873002/diff/1/content/renderer/input/input_event_filter.cc File content/renderer/input/input_event_filter.cc (right): https://codereview.chromium.org/2341873002/diff/1/content/renderer/input/input_event_filter.cc#newcode117 content/renderer/input/input_event_filter.cc:117: iter->second->HandleEvent(std::move(event), ui::LatencyInfo(), On ...
4 years, 3 months ago (2016-09-15 20:43:04 UTC) #11
Rick Byers
LGTM with nits https://codereview.chromium.org/2341873002/diff/40001/ui/events/blink/input_handler_proxy_unittest.cc File ui/events/blink/input_handler_proxy_unittest.cc (right): https://codereview.chromium.org/2341873002/diff/40001/ui/events/blink/input_handler_proxy_unittest.cc#newcode243 ui/events/blink/input_handler_proxy_unittest.cc:243: void DidStartFlinging() override{}; nit: why the ...
4 years, 3 months ago (2016-09-16 14:00:54 UTC) #14
dtapuska
https://codereview.chromium.org/2341873002/diff/40001/ui/events/blink/input_handler_proxy_unittest.cc File ui/events/blink/input_handler_proxy_unittest.cc (right): https://codereview.chromium.org/2341873002/diff/40001/ui/events/blink/input_handler_proxy_unittest.cc#newcode243 ui/events/blink/input_handler_proxy_unittest.cc:243: void DidStartFlinging() override{}; On 2016/09/16 14:00:54, Rick Byers wrote: ...
4 years, 3 months ago (2016-09-19 19:37:39 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2341873002/80001
4 years, 3 months ago (2016-09-20 14:26:43 UTC) #26
dtapuska
wez@chromium.org: Please review changes in blimp/* ben@chromium.org: Please review changes in content/renderer/mus/*
4 years, 3 months ago (2016-09-20 14:28:07 UTC) #28
commit-bot: I haz the power
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_presubmit/builds/262898)
4 years, 3 months ago (2016-09-20 14:34:18 UTC) #30
Wez
https://codereview.chromium.org/2341873002/diff/80001/blimp/client/core/input/blimp_input_handler_wrapper.cc File blimp/client/core/input/blimp_input_handler_wrapper.cc (right): https://codereview.chromium.org/2341873002/diff/80001/blimp/client/core/input/blimp_input_handler_wrapper.cc#newcode99 blimp/client/core/input/blimp_input_handler_wrapper.cc:99: DCHECK(compositor_thread_checker_.CalledOnValidThread()); Let's DCHECK the assumption that this is only ...
4 years, 3 months ago (2016-09-20 20:24:24 UTC) #31
Wez
LGTM w/ my comment addressed :)
4 years, 3 months ago (2016-09-20 20:25:01 UTC) #32
dtapuska
https://codereview.chromium.org/2341873002/diff/80001/blimp/client/core/input/blimp_input_handler_wrapper.cc File blimp/client/core/input/blimp_input_handler_wrapper.cc (right): https://codereview.chromium.org/2341873002/diff/80001/blimp/client/core/input/blimp_input_handler_wrapper.cc#newcode99 blimp/client/core/input/blimp_input_handler_wrapper.cc:99: DCHECK(compositor_thread_checker_.CalledOnValidThread()); On 2016/09/20 20:24:24, Wez wrote: > Let's DCHECK ...
4 years, 3 months ago (2016-09-20 21:14:01 UTC) #36
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2341873002/100001
4 years, 3 months ago (2016-09-20 21:14:25 UTC) #37
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years, 3 months ago (2016-09-20 22:13:12 UTC) #39
commit-bot: I haz the power
4 years, 3 months ago (2016-09-20 22:16:36 UTC) #41
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/1bcb284c49ca00b7ebf70d5de2cdbd2809a57a22
Cr-Commit-Position: refs/heads/master@{#419870}

Powered by Google App Engine
This is Rietveld 408576698