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

Issue 1407053010: Make mouse wheel events trigger WebContentsObserver::DidGetUserInteraction. (Closed)

Created:
5 years, 1 month ago by dominickn
Modified:
5 years, 1 month ago
CC:
chromium-reviews, darin-cc_chromium.org, jam, asvitkine+watch_chromium.org, chrome-apps-syd-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Make mouse wheel events trigger WebContentsObserver::DidGetUserInteraction. DidGetUserInteraction() is called for mouse clicks, keypresses, and gesture taps. This CL additionally calls it for mouse wheel events. Impact on scrolling performance is minimised by calling DidGetUserInteraction only at the start of a series of mouse wheel events; any further events which occur less than 0.1 seconds after a previous mouse wheel do not trigger the callback. This CL also allows the site engagement service to correctly log and register mouse wheel events. BUG=548011, 464234 Committed: https://crrev.com/13ce0f2bf5ad77c9fbb272bd9f3736cae4a80d0b Cr-Commit-Position: refs/heads/master@{#357963} Committed: https://crrev.com/ad9c99d7468a6391370f753bedb4c440150b022a Cr-Commit-Position: refs/heads/master@{#358226}

Patch Set 1 #

Patch Set 2 : Adding test #

Patch Set 3 : More tests #

Total comments: 2

Patch Set 4 : Addressing nits #

Total comments: 18

Patch Set 5 : Addressing reviewer comments #

Patch Set 6 : Addressing nit #

Total comments: 4

Patch Set 7 : Addressing nits #

Patch Set 8 : Removing static initializer #

Unified diffs Side-by-side diffs Delta from patch set Stats (+49 lines, -9 lines) Patch
M chrome/browser/engagement/site_engagement_helper.cc View 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/engagement/site_engagement_helper_unittest.cc View 1 2 3 chunks +9 lines, -3 lines 0 comments Download
M chrome/browser/engagement/site_engagement_metrics.h View 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_delegate.h View 1 chunk +4 lines, -3 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_impl.h View 1 2 3 4 5 6 2 chunks +6 lines, -1 line 0 comments Download
M content/browser/renderer_host/render_widget_host_impl.cc View 1 2 3 4 5 6 7 3 chunks +15 lines, -0 lines 0 comments Download
M content/public/browser/web_contents_observer.h View 1 2 3 4 5 6 1 chunk +10 lines, -2 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 38 (14 generated)
dominickn
@tdresser. please review content/ @calamity: please review site engagement Thanks!
5 years, 1 month ago (2015-11-02 04:46:03 UTC) #4
tdresser
LGTM with nits. https://codereview.chromium.org/1407053010/diff/60001/content/public/browser/web_contents_observer.h File content/public/browser/web_contents_observer.h (right): https://codereview.chromium.org/1407053010/diff/60001/content/public/browser/web_contents_observer.h#newcode323 content/public/browser/web_contents_observer.h:323: // wheel scroll; 3) any raw ...
5 years, 1 month ago (2015-11-02 15:02:10 UTC) #6
dominickn
Thanks! @nasko: please review web_contents_observer. https://codereview.chromium.org/1407053010/diff/60001/content/public/browser/web_contents_observer.h File content/public/browser/web_contents_observer.h (right): https://codereview.chromium.org/1407053010/diff/60001/content/public/browser/web_contents_observer.h#newcode323 content/public/browser/web_contents_observer.h:323: // wheel scroll; 3) ...
5 years, 1 month ago (2015-11-02 23:41:14 UTC) #8
dominickn
isherman: please review histograms. Thanks!
5 years, 1 month ago (2015-11-02 23:42:16 UTC) #10
Ilya Sherman
histograms.xml lgtm
5 years, 1 month ago (2015-11-02 23:55:21 UTC) #11
calamity
site_engagement lgtm. https://codereview.chromium.org/1407053010/diff/80001/chrome/browser/engagement/site_engagement_helper.cc File chrome/browser/engagement/site_engagement_helper.cc (right): https://codereview.chromium.org/1407053010/diff/80001/chrome/browser/engagement/site_engagement_helper.cc#newcode1 chrome/browser/engagement/site_engagement_helper.cc:1: // Copyright 2015 The Chromium Authors. All ...
5 years, 1 month ago (2015-11-03 02:16:13 UTC) #12
nasko
https://codereview.chromium.org/1407053010/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/1407053010/diff/80001/content/browser/renderer_host/render_widget_host_impl.cc#newcode99 content/browser/renderer_host/render_widget_host_impl.cc:99: base::TimeDelta::FromMilliseconds(100); What is the rationale for picking this number? ...
5 years, 1 month ago (2015-11-03 20:45:59 UTC) #14
dominickn
Thanks! https://codereview.chromium.org/1407053010/diff/80001/chrome/browser/engagement/site_engagement_helper.cc File chrome/browser/engagement/site_engagement_helper.cc (right): https://codereview.chromium.org/1407053010/diff/80001/chrome/browser/engagement/site_engagement_helper.cc#newcode1 chrome/browser/engagement/site_engagement_helper.cc:1: // Copyright 2015 The Chromium Authors. All rights ...
5 years, 1 month ago (2015-11-03 21:29:43 UTC) #15
tdresser
https://codereview.chromium.org/1407053010/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/1407053010/diff/80001/content/browser/renderer_host/render_widget_host_impl.cc#newcode98 content/browser/renderer_host/render_widget_host_impl.cc:98: const base::TimeDelta g_wheel_coalesce_interval = On 2015/11/03 21:29:42, dominickn wrote: ...
5 years, 1 month ago (2015-11-03 21:39:48 UTC) #16
dominickn
Thanks! https://codereview.chromium.org/1407053010/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/1407053010/diff/80001/content/browser/renderer_host/render_widget_host_impl.cc#newcode98 content/browser/renderer_host/render_widget_host_impl.cc:98: const base::TimeDelta g_wheel_coalesce_interval = On 2015/11/03 21:39:48, tdresser ...
5 years, 1 month ago (2015-11-04 00:18:31 UTC) #17
nasko
Few more nits, otherwise it looks good. https://codereview.chromium.org/1407053010/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/1407053010/diff/80001/content/browser/renderer_host/render_widget_host_impl.cc#newcode99 content/browser/renderer_host/render_widget_host_impl.cc:99: base::TimeDelta::FromMilliseconds(100); On ...
5 years, 1 month ago (2015-11-04 17:31:23 UTC) #18
dominickn
Thanks! https://codereview.chromium.org/1407053010/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/1407053010/diff/80001/content/browser/renderer_host/render_widget_host_impl.cc#newcode99 content/browser/renderer_host/render_widget_host_impl.cc:99: base::TimeDelta::FromMilliseconds(100); On 2015/11/04 17:31:22, nasko (slow to review) ...
5 years, 1 month ago (2015-11-04 23:21:25 UTC) #19
nasko
LGTM
5 years, 1 month ago (2015-11-05 00:43:34 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1407053010/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1407053010/140001
5 years, 1 month ago (2015-11-05 00:54:30 UTC) #23
commit-bot: I haz the power
Committed patchset #7 (id:140001)
5 years, 1 month ago (2015-11-05 01:00:35 UTC) #24
commit-bot: I haz the power
Patchset 7 (id:??) landed as https://crrev.com/13ce0f2bf5ad77c9fbb272bd9f3736cae4a80d0b Cr-Commit-Position: refs/heads/master@{#357963}
5 years, 1 month ago (2015-11-05 01:01:49 UTC) #25
dominickn
CL reverted because of an unpermitted static initializer in render_widget_host_impl.cc. The latest patchset simply swaps ...
5 years, 1 month ago (2015-11-05 12:19:31 UTC) #27
tdresser
On 2015/11/05 12:19:31, dominickn wrote: > CL reverted because of an unpermitted static initializer in ...
5 years, 1 month ago (2015-11-05 12:58:11 UTC) #28
nasko
On 2015/11/05 12:58:11, tdresser wrote: > On 2015/11/05 12:19:31, dominickn wrote: > > CL reverted ...
5 years, 1 month ago (2015-11-05 14:37:10 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1407053010/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1407053010/160001
5 years, 1 month ago (2015-11-05 20:50:36 UTC) #32
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_ng on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/136744)
5 years, 1 month ago (2015-11-05 21:08:54 UTC) #34
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1407053010/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1407053010/160001
5 years, 1 month ago (2015-11-05 23:30:33 UTC) #36
commit-bot: I haz the power
Committed patchset #8 (id:160001)
5 years, 1 month ago (2015-11-06 01:52:57 UTC) #37
commit-bot: I haz the power
5 years, 1 month ago (2015-11-06 01:54:01 UTC) #38
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/ad9c99d7468a6391370f753bedb4c440150b022a
Cr-Commit-Position: refs/heads/master@{#358226}

Powered by Google App Engine
This is Rietveld 408576698