[go: nahoru, domu]

Hook ScrollElasticityController to InputHandlerProxy

Move ScrollElasticityControllerClient to ScrollElasticityHelper
in cc, where it interfaces with LayerTreeHostImpl. Rename the
ScrollElasticityController to InputScrollElasticityController.

Send events handled on the impl thread to the
InputScrollElasticityController, to update the scroll animation state.  Do
this asynchronously, since it will need to be asynchronous on the main
thread for non-impl-thread-handled events. (Note that it may be that
we will send events to the elasticity system after they bounce back
to the browser -- this is the more conservative version, and may be
changed as main thread events are added).

With this in place, the InputScrollElasticityController produces the
right over-scroll offsets in ScrollElasticityHelper most of the time
(according to printfs). The next step will be to add a layer transformed
by these offsets.

BUG=133097

Review URL: https://codereview.chromium.org/713413002

Cr-Commit-Position: refs/heads/master@{#304055}
13 files changed