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

Issue 11858007: Splits SmoothGestureController from RenderWidgetHostImpl (Closed)

Created:
7 years, 11 months ago by bulach
Modified:
7 years, 8 months ago
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam, jamesr, sadrul
Visibility:
Public.

Description

Splits SmoothGestureController from RenderWidgetHostImpl Elements were pushed when the platform sends an input event, but they're are popped when the event are ACKd. There are other internal queues such as "touch_event_queue_" and "gesture_filter_" that may coalesce / ACK events using their own internal order. This results in in_process_event_types_ not being popped correctly, and prevents Telemetry from synthesizing Motion events on android. The solution is to move the synthetic events out of RenderWidgetHostImpl and use a simple counter there. BUG=166521 TEST=content_unittest, SmoothScrollGestureControllerTest Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=192041

Patch Set 1 : Patch #

Total comments: 2

Patch Set 2 : Splits SmoothScrollGestureController from RenderWidgetHostImpl #

Total comments: 6

Patch Set 3 : Single smooth scroll #

Total comments: 5

Patch Set 4 : comments #

Total comments: 3

Patch Set 5 : Move into SendInputEvent() #

Patch Set 6 : Fixes Mock dtor in clang #

Patch Set 7 : Rebased #

Patch Set 8 : Rebase from 6 #

Patch Set 9 : Rebased and fixed aura bots. #

Patch Set 10 : Adds missing ifdef for aura #

Unified diffs Side-by-side diffs Delta from patch set Stats (+406 lines, -135 lines) Patch
M content/browser/renderer_host/render_widget_host_impl.h View 1 2 3 4 5 6 7 8 4 chunks +4 lines, -12 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_impl.cc View 1 2 3 4 5 6 7 8 9 chunks +10 lines, -94 lines 0 comments Download
A content/browser/renderer_host/smooth_scroll_gesture_controller.h View 1 2 7 1 chunk +61 lines, -0 lines 0 comments Download
A content/browser/renderer_host/smooth_scroll_gesture_controller.cc View 1 2 3 4 5 6 7 8 1 chunk +123 lines, -0 lines 0 comments Download
A content/browser/renderer_host/smooth_scroll_gesture_controller_unittest.cc View 1 2 3 4 5 6 7 8 9 1 chunk +182 lines, -0 lines 0 comments Download
M content/common/view_messages.h View 1 2 3 4 5 6 7 8 2 chunks +4 lines, -5 lines 0 comments Download
M content/content_browser.gypi View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -0 lines 0 comments Download
M content/content_tests.gypi View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M content/renderer/gpu/gpu_benchmarking_extension.cc View 1 2 3 4 5 6 7 1 chunk +2 lines, -4 lines 0 comments Download
M content/renderer/render_widget.h View 1 2 3 4 5 6 7 8 3 chunks +3 lines, -6 lines 0 comments Download
M content/renderer/render_widget.cc View 1 2 3 4 5 6 7 8 4 chunks +7 lines, -11 lines 0 comments Download
M tools/telemetry/telemetry/page/actions/scroll.js View 1 2 3 4 5 6 7 1 chunk +7 lines, -3 lines 0 comments Download

Messages

Total messages: 57 (0 generated)
bulach
varunjain / sky: the bits I'm changing were added at: https://chromiumcodereview.appspot.com/10917102/diff/6055/content/browser/renderer_host/render_widget_host_impl.cc for a lot more ...
7 years, 11 months ago (2013-01-11 10:46:39 UTC) #1
Sami
Looks good to me, but I'll defer to the folks who know more about this ...
7 years, 11 months ago (2013-01-11 11:12:40 UTC) #2
sky
I'm not a good reviewer for this code. Maybe Darin.
7 years, 11 months ago (2013-01-11 17:01:27 UTC) #3
bulach
darin, would you mind taking a look please?
7 years, 11 months ago (2013-01-15 12:30:32 UTC) #4
darin (slow to review)
It is quite concerning to me that input events are not ACK'd in the order ...
7 years, 11 months ago (2013-01-15 19:19:53 UTC) #5
jamesr
https://codereview.chromium.org/11858007/diff/2001/content/browser/renderer_host/render_widget_host_impl.cc File content/browser/renderer_host/render_widget_host_impl.cc (right): https://codereview.chromium.org/11858007/diff/2001/content/browser/renderer_host/render_widget_host_impl.cc#newcode1709 content/browser/renderer_host/render_widget_host_impl.cc:1709: // that may ACK in their own internal order. ...
7 years, 11 months ago (2013-01-15 19:26:10 UTC) #6
bulach
thanks darin! my bad, I should've explained in more details here besides the discussion that ...
7 years, 11 months ago (2013-01-15 19:35:42 UTC) #7
jamesr
I don't understand why we have multiple queues of even types at all in the ...
7 years, 11 months ago (2013-01-16 04:21:26 UTC) #8
jamesr
There's a key_event_ queue on RenderWidgetHostImpl because we sent multiple key events without waiting for ...
7 years, 11 months ago (2013-01-16 04:28:17 UTC) #9
sadrul
On 2013/01/16 04:28:17, jamesr wrote: > There's a key_event_ queue on RenderWidgetHostImpl because we sent ...
7 years, 11 months ago (2013-01-16 05:40:12 UTC) #10
bulach
thanks james, sadrul! the bug I'm trying to solve here, from 10000m :) - when ...
7 years, 11 months ago (2013-01-16 09:27:37 UTC) #11
sadrul
On 2013/01/16 09:27:37, bulach wrote: > thanks james, sadrul! > > the bug I'm trying ...
7 years, 11 months ago (2013-01-17 01:21:14 UTC) #12
bulach
thanks for the help sadrul! so do you think this fix is a valid attempt ...
7 years, 11 months ago (2013-01-17 09:34:17 UTC) #13
sadrul
On 2013/01/17 09:34:17, bulach wrote: > thanks for the help sadrul! > > so do ...
7 years, 11 months ago (2013-01-17 17:31:40 UTC) #14
bulach
thanks sadrul! I don't know all the subtleties for moving the context menu detection, but ...
7 years, 11 months ago (2013-01-17 18:31:21 UTC) #15
bulach
sadrul / nduca: how about moving all these telemetry-related "smooth scroll gesture" into its own ...
7 years, 11 months ago (2013-01-18 11:37:09 UTC) #16
bulach
hey sadrul / nduca: apologies for the biggie and for a complete change on direction... ...
7 years, 11 months ago (2013-01-18 19:48:56 UTC) #17
bulach
sorry to ping again, but any chance someone could look into this?
7 years, 10 months ago (2013-02-04 10:23:46 UTC) #18
rjkroege
Sorry for the delay. I think we are observing an instance of http://en.wikipedia.org/wiki/Diffusion_of_responsibility in the ...
7 years, 10 months ago (2013-02-11 22:47:27 UTC) #19
bulach
yay, thanks Robert! :) seeing you as an OWNER, would you be willing if I ...
7 years, 10 months ago (2013-02-12 16:38:49 UTC) #20
rjkroege
On 2013/02/12 16:38:49, bulach wrote: > yay, thanks Robert! :) seeing you as an OWNER, ...
7 years, 10 months ago (2013-02-13 18:35:50 UTC) #21
bulach
thanks! inline: On Wed, Feb 13, 2013 at 6:35 PM, <rjkroege@chromium.org> wrote: > On 2013/02/12 ...
7 years, 10 months ago (2013-02-15 11:18:40 UTC) #22
nduca
We dont have to support multiple gestures at once, but if we dont, then we ...
7 years, 10 months ago (2013-02-15 19:27:06 UTC) #23
bulach
nat, robert, jamesr: again, thanks for the comments! so it seems we could simplify all ...
7 years, 10 months ago (2013-02-18 10:59:16 UTC) #24
bulach
quick follow up on #23 above, I just went ahead and did the "one smooth ...
7 years, 10 months ago (2013-02-18 18:07:52 UTC) #25
rjkroege
this looks good to me. https://codereview.chromium.org/11858007/diff/35002/content/browser/renderer_host/render_widget_host_impl.cc File content/browser/renderer_host/render_widget_host_impl.cc (right): https://codereview.chromium.org/11858007/diff/35002/content/browser/renderer_host/render_widget_host_impl.cc#newcode1211 content/browser/renderer_host/render_widget_host_impl.cc:1211: smooth_scroll_gesture_controller_->OnForwardInputEvent(); In the SmoothScrollGestureController, ...
7 years, 10 months ago (2013-02-21 19:26:33 UTC) #26
rjkroege
On 2013/02/21 19:26:33, rjkroege wrote: > this looks good to me. oops. sent too soon. ...
7 years, 10 months ago (2013-02-21 19:27:41 UTC) #27
rjkroege
On 2013/02/21 19:26:33, rjkroege wrote: > this looks good to me. > > https://codereview.chromium.org/11858007/diff/35002/content/browser/renderer_host/render_widget_host_impl.cc > ...
7 years, 10 months ago (2013-02-21 19:57:47 UTC) #28
bulach
thanks! one comment addressed and some clarifications inline, please let me know your thoughts: https://codereview.chromium.org/11858007/diff/35002/content/browser/renderer_host/render_widget_host_impl.cc ...
7 years, 10 months ago (2013-02-22 16:55:14 UTC) #29
rjkroege
On 2013/02/22 16:55:14, bulach wrote: > thanks! one comment addressed and some clarifications inline, please ...
7 years, 10 months ago (2013-02-22 17:24:29 UTC) #30
rjkroege
https://codereview.chromium.org/11858007/diff/44001/content/browser/renderer_host/render_widget_host_impl.cc File content/browser/renderer_host/render_widget_host_impl.cc (right): https://codereview.chromium.org/11858007/diff/44001/content/browser/renderer_host/render_widget_host_impl.cc#newcode1169 content/browser/renderer_host/render_widget_host_impl.cc:1169: SendInputEvent(coalesced_mouse_wheel_events_[i], you need it before this one too yes?
7 years, 10 months ago (2013-02-22 17:24:36 UTC) #31
sadrul
https://codereview.chromium.org/11858007/diff/44001/content/browser/renderer_host/render_widget_host_impl.cc File content/browser/renderer_host/render_widget_host_impl.cc (right): https://codereview.chromium.org/11858007/diff/44001/content/browser/renderer_host/render_widget_host_impl.cc#newcode1169 content/browser/renderer_host/render_widget_host_impl.cc:1169: SendInputEvent(coalesced_mouse_wheel_events_[i], On 2013/02/22 17:24:37, rjkroege wrote: > you need ...
7 years, 10 months ago (2013-02-22 17:26:45 UTC) #32
rjkroege
content/browser event changes lgtm
7 years, 10 months ago (2013-02-22 20:19:15 UTC) #33
jamesr
content/renderer/ lgtm (but you want Nat to look at it as well)
7 years, 10 months ago (2013-02-22 20:23:39 UTC) #34
bulach
yay, thanks! :) nat: need your eyes here, specially the telemetry changes.. https://codereview.chromium.org/11858007/diff/44001/content/browser/renderer_host/render_widget_host_impl.cc File content/browser/renderer_host/render_widget_host_impl.cc ...
7 years, 10 months ago (2013-02-25 09:16:03 UTC) #35
sadrul
Please make sure you update the CL description before landing!
7 years, 10 months ago (2013-02-25 15:08:22 UTC) #36
bulach
thanks sadrul! updated the description, and also fixed the Mock dtor for clang.. I'll wait ...
7 years, 10 months ago (2013-02-25 15:20:30 UTC) #37
bulach
nat: mind taking a quick look? :) hopefully we'll be able to untangle this soon.. ...
7 years, 9 months ago (2013-03-19 09:53:32 UTC) #38
nduca
lgtm please note i also just filed a bug about crbug.com/222496 to make the input ...
7 years, 9 months ago (2013-03-20 20:54:52 UTC) #39
bulach
yay, thanks everyone! :) CQing, and then will finally get back to integrate the android ...
7 years, 9 months ago (2013-03-21 12:32:30 UTC) #40
bulach
nat: I'm very sorry about this... :-/ "Patch Set 7 : Rebased" was *wrong*, I ...
7 years, 9 months ago (2013-03-21 12:54:30 UTC) #41
tonyg
On 2013/03/21 12:54:30, bulach wrote: > nat: I'm very sorry about this... :-/ > > ...
7 years, 8 months ago (2013-03-28 17:27:24 UTC) #42
bulach
*sigh*, rebased again, and fixed the test code for aura... +cevans for messages tonyg: I ...
7 years, 8 months ago (2013-03-28 18:33:57 UTC) #43
Chris Evans
On 2013/03/28 18:33:57, bulach wrote: > *sigh*, rebased again, and fixed the test code for ...
7 years, 8 months ago (2013-03-28 18:42:57 UTC) #44
nduca
who're we waiting on for reviews?
7 years, 8 months ago (2013-04-01 18:18:29 UTC) #45
bulach
nat: tony already looked into the scroll.js and I think we're done. however, you reviewed ...
7 years, 8 months ago (2013-04-02 08:52:17 UTC) #46
nduca
lgtm :)
7 years, 8 months ago (2013-04-02 17:34:42 UTC) #47
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bulach@chromium.org/11858007/77001
7 years, 8 months ago (2013-04-02 17:35:07 UTC) #48
commit-bot: I haz the power
Presubmit check for 11858007-77001 failed and returned exit status 1. INFO:root:Found 12 file(s). INFO:PRESUBMIT:Skipping pylint: ...
7 years, 8 months ago (2013-04-02 17:35:16 UTC) #49
bulach
darin: need your OWNERS power for content/content_tests.gypi content/content_browser.gypi everything else has been reviewed by various ...
7 years, 8 months ago (2013-04-02 18:30:09 UTC) #50
nduca
piman may be available for content/
7 years, 8 months ago (2013-04-02 18:55:39 UTC) #51
darin (slow to review)
LGTM for content/*gypi
7 years, 8 months ago (2013-04-03 05:30:08 UTC) #52
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bulach@chromium.org/11858007/77001
7 years, 8 months ago (2013-04-03 07:49:31 UTC) #53
commit-bot: I haz the power
Change committed as 192041
7 years, 8 months ago (2013-04-03 10:48:30 UTC) #54
phoglund_chromium
On 2013/04/03 10:48:30, I haz the power (commit-bot) wrote: > Change committed as 192041 I ...
7 years, 8 months ago (2013-04-03 12:07:50 UTC) #55
phoglund_chromium
Sorry, I meant http://build.chromium.org/p/chromium.win/builders/Vista%20Tests%20%283%29/builds/29431.
7 years, 8 months ago (2013-04-03 12:08:45 UTC) #56
phoglund_chromium
7 years, 8 months ago (2013-04-03 12:11:36 UTC) #57
Message was sent while issue was closed.
Damn it, the page messes up the URL. Try this: http://goo.gl/aGXhJ.

Powered by Google App Engine
This is Rietveld 408576698