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

Issue 375863005: Touch emulator: allow multiple touch streams. (Closed)

Created:
6 years, 5 months ago by dgozman
Modified:
6 years, 5 months ago
Reviewers:
jdduke (slow), sky
CC:
chromium-reviews, jam, jdduke+watch_chromium.org, darin-cc_chromium.org, Rick Byers, tdresser
Project:
chromium
Visibility:
Public.

Description

Touch emulator: allow multiple touch streams. When both native and emulated touch streams are available, we should block one stream while another is active. To achieve this RenderWidgetHostImpl gives TouchEmulator a chance to handle native touch event, so it can be effectively blocked. BUG=384522 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=284475

Patch Set 1 #

Patch Set 2 : ack fixes #

Patch Set 3 : better touch sequence end check #

Total comments: 1

Patch Set 4 : moved to touch emulator #

Total comments: 9

Patch Set 5 : Fixed comments, switched to sequence_count #

Total comments: 1

Patch Set 6 : rebased #

Patch Set 7 : fixed ShouldForwardTouchEvent #

Patch Set 8 : Do not clear sequence count when reenabling #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+268 lines, -27 lines) Patch
M content/browser/renderer_host/input/touch_emulator.h View 1 2 3 4 5 6 3 chunks +13 lines, -3 lines 0 comments Download
M content/browser/renderer_host/input/touch_emulator.cc View 1 2 3 4 5 6 7 7 chunks +60 lines, -14 lines 1 comment Download
M content/browser/renderer_host/input/touch_emulator_client.h View 1 chunk +1 line, -1 line 0 comments Download
M content/browser/renderer_host/input/touch_emulator_unittest.cc View 1 2 3 4 5 6 7 5 chunks +146 lines, -2 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_impl.h View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_impl.cc View 1 2 3 4 5 6 4 chunks +26 lines, -3 lines 0 comments Download
M content/common/input/web_touch_event_traits.h View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M content/common/input/web_touch_event_traits.cc View 1 2 1 chunk +14 lines, -0 lines 0 comments Download
M content/public/test/browser_test_utils.cc View 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 20 (0 generated)
dgozman
Jared, what do you think about this approach fro multiple touch streams? Note: no tests ...
6 years, 5 months ago (2014-07-10 14:30:04 UTC) #1
jdduke (slow)
On 2014/07/10 14:30:04, dgozman wrote: > Jared, what do you think about this approach fro ...
6 years, 5 months ago (2014-07-10 14:52:58 UTC) #2
dgozman
> This seams reasonable, although I think I'd prefer it if TouchEmulator contains > the ...
6 years, 5 months ago (2014-07-14 11:43:46 UTC) #3
jdduke (slow)
On 2014/07/14 11:43:46, dgozman wrote: > > This seams reasonable, although I think I'd prefer ...
6 years, 5 months ago (2014-07-14 16:29:34 UTC) #4
dgozman
> Maybe I'm missing something obvious? You are absolutely right. I thought there will be ...
6 years, 5 months ago (2014-07-15 16:14:29 UTC) #5
jdduke (slow)
This looks really good, thanks! I only have two concerns: 1) If the touch stream ...
6 years, 5 months ago (2014-07-15 19:43:03 UTC) #6
jdduke (slow)
sadrul@: I noticed that you added the RWHVAura |ShouldForwardTouchEvent()| code in https://chromiumcodereview.appspot.com/9233058 to suppress forwarding ...
6 years, 5 months ago (2014-07-16 01:31:19 UTC) #7
dgozman
I've addressed the late ack problem by switching to sequence_count, as Jared suggested. https://codereview.chromium.org/375863005/diff/60001/content/browser/renderer_host/input/touch_emulator.cc File ...
6 years, 5 months ago (2014-07-16 09:05:04 UTC) #8
jdduke (slow)
What do you think of the workaround below? https://codereview.chromium.org/375863005/diff/80001/content/browser/renderer_host/render_widget_host_impl.cc File content/browser/renderer_host/render_widget_host_impl.cc (right): https://codereview.chromium.org/375863005/diff/80001/content/browser/renderer_host/render_widget_host_impl.cc#newcode1945 content/browser/renderer_host/render_widget_host_impl.cc:1945: return ...
6 years, 5 months ago (2014-07-16 15:17:04 UTC) #9
sadrul
On 2014/07/16 01:31:19, jdduke wrote: > sadrul@: I noticed that you added the RWHVAura |ShouldForwardTouchEvent()| ...
6 years, 5 months ago (2014-07-16 18:48:46 UTC) #10
jdduke (slow)
On 2014/07/16 18:48:46, sadrul wrote: > It sounds like a good idea to keep forwarding ...
6 years, 5 months ago (2014-07-16 18:53:59 UTC) #11
dgozman
> That sounds reasonable. For other purposes, it's probably OK to bypass > forwarding if ...
6 years, 5 months ago (2014-07-16 20:16:21 UTC) #12
dgozman
Ok, so this seems like addressing all the concerns. Please take another look. Am I ...
6 years, 5 months ago (2014-07-18 06:04:28 UTC) #13
jdduke (slow)
content/browser/renderer_host/input and content/common/input lgtm. No need to wait on the touch-action cleanup, I think we're ...
6 years, 5 months ago (2014-07-18 15:01:05 UTC) #14
dgozman
+sky for content/public/test
6 years, 5 months ago (2014-07-18 18:19:21 UTC) #15
sky
LGTM
6 years, 5 months ago (2014-07-18 19:22:12 UTC) #16
dgozman
The CQ bit was checked by dgozman@chromium.org
6 years, 5 months ago (2014-07-21 13:24:24 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dgozman@chromium.org/375863005/140001
6 years, 5 months ago (2014-07-21 13:25:41 UTC) #18
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: win_chromium_rel on tryserver.chromium ...
6 years, 5 months ago (2014-07-21 16:22:47 UTC) #19
commit-bot: I haz the power
6 years, 5 months ago (2014-07-21 19:24:52 UTC) #20
Message was sent while issue was closed.
Change committed as 284475

Powered by Google App Engine
This is Rietveld 408576698