• Sandra Sun's avatar
    Move snap fling logic to cc. · aa703718
    Sandra Sun authored
    We plan to share the snap fling logic between cc and blink. But with the
    dependency restrictions, we can only put the shared logic under cc/.
    This patch moves the logic from ui/ to cc/, in preparation for blink to
    use the same logic to make snap fling works there.
    
    As cc/ doesn't accept blink::WebGestureEvent and blink::WebInputEvent,
    we create GestureScrollType and GestureScrollUpdateInfo to pass in the
    necessary messages.
    
    Bug: 778259
    Cq-Include-Trybots: luci.chromium.try:android_optional_gpu_tests_rel;master.tryserver.blink:linux_trusty_blink_rel
    Change-Id: I0df8cf1002d51646404310ca50eb00a536e0b5d1
    Reviewed-on: https://chromium-review.googlesource.com/1024198Reviewed-by: default avatarDave Tapuska <dtapuska@chromium.org>
    Reviewed-by: default avatarDavid Bokan <bokan@chromium.org>
    Reviewed-by: default avatarMajid Valipour <majidvp@chromium.org>
    Commit-Queue: Sandra Sun <sunyunjia@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#559533}
    aa703718
snap_fling_controller_unittest.cc 6.17 KB