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

Issue 2411143003: Make WebContentsObserver::DidGetUserInteraction fire on TouchStart instead of GestureTapBegin. (Closed)

Created:
4 years, 2 months ago by dominickn
Modified:
4 years, 2 months ago
Reviewers:
benwells, tdresser, nasko
CC:
chromium-reviews, asanka, jam, dominickn+watch_chromium.org, darin-cc_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Make WebContentsObserver::DidGetUserInteraction fire on TouchStart instead of GestureTapBegin. GestureTapBegin is a synthetic event generated by the input system. If a website captures a touch event and calls preventDefault() on it, the GestureTapBegin event will not be generated. This is problematic for site engagement, which is a primary consumer of the DidGetUserInteraction API. Touch events which are captured by sites cannot earn engagement because the event is never passed through. This CL addresses the issue by changing DidGetUserInteraction to fire on TouchStart events rather than GestureTapBegin. This has negligible performance impact, and no real behavioural impact on the current API consumers. Unit tests for methods based on DidGetUserInteraction are updated to never send GestureTapBegin, and instead send TouchStart in its place. BUG=654976 Committed: https://crrev.com/26940224a3ebb4b7a8f4e632953d57f720301a17 Cr-Commit-Position: refs/heads/master@{#424932}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+13 lines, -13 lines) Patch
M chrome/browser/download/download_request_limiter_unittest.cc View 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/engagement/site_engagement_helper.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/engagement/site_engagement_helper_unittest.cc View 5 chunks +7 lines, -7 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_impl.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/public/browser/web_contents_observer.h View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 17 (10 generated)
dominickn
tdresser: PTAL at renderer_host nasko: PTAL at content/public (comment update) benwells: PTAL at engagement/ asanka: ...
4 years, 2 months ago (2016-10-12 04:00:45 UTC) #7
tdresser
LGTM.
4 years, 2 months ago (2016-10-12 12:09:59 UTC) #8
nasko
content/ comment update rubberstamp LGTM.
4 years, 2 months ago (2016-10-12 23:55:07 UTC) #9
benwells
c/b/engagement lgtm
4 years, 2 months ago (2016-10-13 00:09:12 UTC) #10
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/2411143003/1
4 years, 2 months ago (2016-10-13 01:33:50 UTC) #13
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 2 months ago (2016-10-13 01:39:52 UTC) #15
commit-bot: I haz the power
4 years, 2 months ago (2016-10-13 01:43:31 UTC) #17
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/26940224a3ebb4b7a8f4e632953d57f720301a17
Cr-Commit-Position: refs/heads/master@{#424932}

Powered by Google App Engine
This is Rietveld 408576698