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

Issue 692483002: Hook up DidReceiveInputEvent to the blink scheduler (Closed)

Created:
6 years, 1 month ago by alex clarke (OOO till 29th)
Modified:
6 years, 1 month ago
CC:
chromium-reviews, creis+watch_chromium.org, nasko+codewatch_chromium.org, jam, darin-cc_chromium.org, mkwst+moarreviews-renderer_chromium.org, jdduke+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Hook up DidReceiveInputEvent to the blink scheduler and fixes the bug where flings did not send DidReceiveInputEvent. In addition we also pass the input event type through because we want to ignore keyboard and mouse events. BUG=391005, 426375, 429814 Committed: https://crrev.com/3722366bff9bf187c151053220968931f3d377c4 Cr-Commit-Position: refs/heads/master@{#303621}

Patch Set 1 #

Patch Set 2 : Added a test #

Total comments: 4

Patch Set 3 : Resonding to Sami's feedback #

Total comments: 6

Patch Set 4 : Responding to feedback, hopefully with correct diffbase #

Patch Set 5 : Trying to fix diff base #

Total comments: 16

Patch Set 6 : Rebased and responding to feedback #

Patch Set 7 : Fix a couple of minor things #

Patch Set 8 : Remove unintended clang format change. Updated a comment #

Total comments: 2

Patch Set 9 : Responding to Ross' suggestion #

Total comments: 4

Patch Set 10 : Respoding to Sami's feedback #

Total comments: 2

Patch Set 11 : Passing the input event type through to the scheduler #

Total comments: 2

Patch Set 12 : Adding some input event filter logic #

Unified diffs Side-by-side diffs Delta from patch set Stats (+213 lines, -27 lines) Patch
M content/renderer/input/input_handler_manager.h View 1 2 3 4 5 6 7 8 9 10 3 chunks +14 lines, -3 lines 0 comments Download
M content/renderer/input/input_handler_manager.cc View 1 2 3 4 5 6 7 8 9 10 3 chunks +14 lines, -2 lines 0 comments Download
M content/renderer/input/input_handler_proxy.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +3 lines, -1 line 0 comments Download
M content/renderer/input/input_handler_proxy_client.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +3 lines, -1 line 0 comments Download
M content/renderer/input/input_handler_proxy_unittest.cc View 1 2 3 4 5 6 7 8 9 10 3 chunks +34 lines, -3 lines 0 comments Download
M content/renderer/input/input_handler_wrapper.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -1 line 0 comments Download
M content/renderer/input/input_handler_wrapper.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +7 lines, -2 lines 0 comments Download
M content/renderer/render_thread_impl.cc View 1 2 3 4 5 1 chunk +3 lines, -3 lines 0 comments Download
M content/renderer/scheduler/null_renderer_scheduler.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +3 lines, -1 line 0 comments Download
M content/renderer/scheduler/null_renderer_scheduler.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +5 lines, -1 line 0 comments Download
M content/renderer/scheduler/renderer_scheduler.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +7 lines, -1 line 0 comments Download
M content/renderer/scheduler/renderer_scheduler_impl.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +6 lines, -1 line 0 comments Download
M content/renderer/scheduler/renderer_scheduler_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +17 lines, -3 lines 0 comments Download
M content/renderer/scheduler/renderer_scheduler_impl_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 5 chunks +95 lines, -4 lines 0 comments Download

Messages

Total messages: 40 (8 generated)
alex clarke (OOO till 29th)
6 years, 1 month ago (2014-11-03 21:31:55 UTC) #2
Sami
https://codereview.chromium.org/692483002/diff/20001/content/renderer/input/input_handler_manager.h File content/renderer/input/input_handler_manager.h (right): https://codereview.chromium.org/692483002/diff/20001/content/renderer/input/input_handler_manager.h#newcode48 content/renderer/input/input_handler_manager.h:48: RendererScheduler* render_scheduler); The parameter should probably be called |renderer_scheduler| ...
6 years, 1 month ago (2014-11-03 23:54:07 UTC) #4
alex clarke (OOO till 29th)
https://codereview.chromium.org/692483002/diff/20001/content/renderer/input/input_handler_manager.h File content/renderer/input/input_handler_manager.h (right): https://codereview.chromium.org/692483002/diff/20001/content/renderer/input/input_handler_manager.h#newcode48 content/renderer/input/input_handler_manager.h:48: RendererScheduler* render_scheduler); On 2014/11/03 23:54:06, Sami wrote: > The ...
6 years, 1 month ago (2014-11-04 01:14:35 UTC) #6
Sami
Thanks Alex. I think the upload only includes the changes from patch set 1 to ...
6 years, 1 month ago (2014-11-04 01:20:14 UTC) #7
jdduke (slow)
https://codereview.chromium.org/692483002/diff/40001/content/renderer/input/input_handler_proxy.cc File content/renderer/input/input_handler_proxy.cc (right): https://codereview.chromium.org/692483002/diff/40001/content/renderer/input/input_handler_proxy.cc#newcode611 content/renderer/input/input_handler_proxy.cc:611: Would it kill us to put just a single ...
6 years, 1 month ago (2014-11-04 01:21:02 UTC) #9
Sami
https://codereview.chromium.org/692483002/diff/40001/content/renderer/input/input_handler_proxy.cc File content/renderer/input/input_handler_proxy.cc (right): https://codereview.chromium.org/692483002/diff/40001/content/renderer/input/input_handler_proxy.cc#newcode611 content/renderer/input/input_handler_proxy.cc:611: On 2014/11/04 01:21:02, jdduke wrote: > Would it kill ...
6 years, 1 month ago (2014-11-04 01:29:23 UTC) #10
alex clarke (OOO till 29th)
https://codereview.chromium.org/692483002/diff/40001/content/renderer/input/input_handler_proxy.cc File content/renderer/input/input_handler_proxy.cc (right): https://codereview.chromium.org/692483002/diff/40001/content/renderer/input/input_handler_proxy.cc#newcode611 content/renderer/input/input_handler_proxy.cc:611: On 2014/11/04 01:21:02, jdduke wrote: > Would it kill ...
6 years, 1 month ago (2014-11-04 01:49:06 UTC) #11
Sami
This patch still looks like it's patching the wrong base version :P
6 years, 1 month ago (2014-11-06 00:09:08 UTC) #12
alex clarke (OOO till 29th)
Looks like the diffbase is fixed now. PTAL
6 years, 1 month ago (2014-11-06 00:17:32 UTC) #13
Sami
https://codereview.chromium.org/692483002/diff/80001/content/renderer/input/input_handler_manager.cc File content/renderer/input/input_handler_manager.cc (right): https://codereview.chromium.org/692483002/diff/80001/content/renderer/input/input_handler_manager.cc#newcode71 content/renderer/input/input_handler_manager.cc:71: renderer_scheduler)); This should probably be base::Unretained(renderer_scheduler) since the scheduler ...
6 years, 1 month ago (2014-11-06 00:31:21 UTC) #14
rmcilroy
https://codereview.chromium.org/692483002/diff/80001/content/renderer/render_view_impl.cc File content/renderer/render_view_impl.cc (right): https://codereview.chromium.org/692483002/diff/80001/content/renderer/render_view_impl.cc#newcode2150 content/renderer/render_view_impl.cc:2150: render_thread->blink_platform_impl()->renderer_scheduler()); You need to rebase - renderer_scheduler() is now ...
6 years, 1 month ago (2014-11-06 00:53:17 UTC) #15
alex clarke (OOO till 29th)
PTAL https://codereview.chromium.org/692483002/diff/80001/content/renderer/input/input_handler_manager.cc File content/renderer/input/input_handler_manager.cc (right): https://codereview.chromium.org/692483002/diff/80001/content/renderer/input/input_handler_manager.cc#newcode71 content/renderer/input/input_handler_manager.cc:71: renderer_scheduler)); On 2014/11/06 00:31:20, Sami wrote: > This ...
6 years, 1 month ago (2014-11-06 19:21:45 UTC) #16
rmcilroy
lgtm (focusing on the RendererScheduler changes) https://codereview.chromium.org/692483002/diff/140001/content/renderer/scheduler/renderer_scheduler_impl.cc File content/renderer/scheduler/renderer_scheduler_impl.cc (right): https://codereview.chromium.org/692483002/diff/140001/content/renderer/scheduler/renderer_scheduler_impl.cc#newcode106 content/renderer/scheduler/renderer_scheduler_impl.cc:106: DidReceiveInputEventOnCompositorThread(); Maybe pull ...
6 years, 1 month ago (2014-11-06 19:45:13 UTC) #17
alex clarke (OOO till 29th)
https://codereview.chromium.org/692483002/diff/140001/content/renderer/scheduler/renderer_scheduler_impl.cc File content/renderer/scheduler/renderer_scheduler_impl.cc (right): https://codereview.chromium.org/692483002/diff/140001/content/renderer/scheduler/renderer_scheduler_impl.cc#newcode106 content/renderer/scheduler/renderer_scheduler_impl.cc:106: DidReceiveInputEventOnCompositorThread(); On 2014/11/06 19:45:12, rmcilroy wrote: > Maybe pull ...
6 years, 1 month ago (2014-11-06 21:19:06 UTC) #18
alex clarke (OOO till 29th)
+Daniel, can you please take a look.
6 years, 1 month ago (2014-11-06 21:24:30 UTC) #20
Sami
https://codereview.chromium.org/692483002/diff/160001/content/renderer/input/input_handler_manager.h File content/renderer/input/input_handler_manager.h (right): https://codereview.chromium.org/692483002/diff/160001/content/renderer/input/input_handler_manager.h#newcode40 content/renderer/input/input_handler_manager.h:40: // events and compositor animations occur, which is why ...
6 years, 1 month ago (2014-11-06 22:17:34 UTC) #21
alex clarke (OOO till 29th)
https://codereview.chromium.org/692483002/diff/160001/content/renderer/input/input_handler_manager.h File content/renderer/input/input_handler_manager.h (right): https://codereview.chromium.org/692483002/diff/160001/content/renderer/input/input_handler_manager.h#newcode40 content/renderer/input/input_handler_manager.h:40: // events and compositor animations occur, which is why ...
6 years, 1 month ago (2014-11-06 22:32:15 UTC) #22
Sami
Thank you, lgtm! jdduke and sievers, please review for realz.
6 years, 1 month ago (2014-11-06 22:40:59 UTC) #23
jdduke (slow)
rubberstamp lgtm for content/renderer/input. Could you update the title/description to indicate what this is being ...
6 years, 1 month ago (2014-11-07 00:06:16 UTC) #24
jdduke (slow)
https://codereview.chromium.org/692483002/diff/180001/content/renderer/input/input_handler_manager.h File content/renderer/input/input_handler_manager.h (right): https://codereview.chromium.org/692483002/diff/180001/content/renderer/input/input_handler_manager.h#newcode68 content/renderer/input/input_handler_manager.h:68: void DidReceiveInputEvent(); If we plumb the event type through ...
6 years, 1 month ago (2014-11-07 02:54:54 UTC) #25
alex clarke (OOO till 29th)
https://codereview.chromium.org/692483002/diff/180001/content/renderer/input/input_handler_manager.h File content/renderer/input/input_handler_manager.h (right): https://codereview.chromium.org/692483002/diff/180001/content/renderer/input/input_handler_manager.h#newcode68 content/renderer/input/input_handler_manager.h:68: void DidReceiveInputEvent(); On 2014/11/07 02:54:54, jdduke wrote: > If ...
6 years, 1 month ago (2014-11-07 16:59:11 UTC) #26
jdduke (slow)
On 2014/11/07 16:59:11, alexclarke1 wrote: > https://codereview.chromium.org/692483002/diff/180001/content/renderer/input/input_handler_manager.h > File content/renderer/input/input_handler_manager.h (right): > > https://codereview.chromium.org/692483002/diff/180001/content/renderer/input/input_handler_manager.h#newcode68 > ...
6 years, 1 month ago (2014-11-07 17:12:50 UTC) #27
alex clarke (OOO till 29th)
On 2014/11/07 17:12:50, jdduke wrote: > On 2014/11/07 16:59:11, alexclarke1 wrote: > > > https://codereview.chromium.org/692483002/diff/180001/content/renderer/input/input_handler_manager.h ...
6 years, 1 month ago (2014-11-07 18:08:21 UTC) #28
jdduke (slow)
Thanks, still lgtm but I'll defer to skyostil/rmcilroy as to whether we filter out mouse/keyboard ...
6 years, 1 month ago (2014-11-07 18:12:38 UTC) #29
alex clarke (OOO till 29th)
https://codereview.chromium.org/692483002/diff/200001/content/renderer/scheduler/renderer_scheduler_impl.cc File content/renderer/scheduler/renderer_scheduler_impl.cc (right): https://codereview.chromium.org/692483002/diff/200001/content/renderer/scheduler/renderer_scheduler_impl.cc#newcode95 content/renderer/scheduler/renderer_scheduler_impl.cc:95: // TODO(rmcilroy): Decide whether only a subset of input ...
6 years, 1 month ago (2014-11-07 18:31:55 UTC) #30
Sami
Cool, lgtm!
6 years, 1 month ago (2014-11-10 11:48:41 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/692483002/220001
6 years, 1 month ago (2014-11-10 11:50:50 UTC) #33
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/23180)
6 years, 1 month ago (2014-11-10 11:54:55 UTC) #35
no sievers
lgtm
6 years, 1 month ago (2014-11-10 19:10:43 UTC) #36
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/692483002/220001
6 years, 1 month ago (2014-11-11 09:04:45 UTC) #38
commit-bot: I haz the power
Committed patchset #12 (id:220001)
6 years, 1 month ago (2014-11-11 09:52:32 UTC) #39
commit-bot: I haz the power
6 years, 1 month ago (2014-11-11 09:53:18 UTC) #40
Message was sent while issue was closed.
Patchset 12 (id:??) landed as
https://crrev.com/3722366bff9bf187c151053220968931f3d377c4
Cr-Commit-Position: refs/heads/master@{#303621}

Powered by Google App Engine
This is Rietveld 408576698