Make it possible to synthesize a viewport scroll
commit1c87323ecff9e576018229327e1e80d1a33ae830
authorhush <hush@chromium.org>
Tue, 23 Jun 2015 21:22:11 +0000 (23 14:22 -0700)
committerCommit bot <commit-bot@chromium.org>
Tue, 23 Jun 2015 21:22:52 +0000 (23 21:22 +0000)
tree0dd64170aed2010e9f7666bc7cac2186402308f7
parent012d678acebc6af1de1866727cde85e21ca3020a
Make it possible to synthesize a viewport scroll

When targetViewport is true, skip the hit test and always
scroll the viewport layer.
This is to support the WebView#flingScroll API, which has been
implemented to always target at viewport scroll layer.

Accompanying blink change that adds 'targetViewport':
https://codereview.chromium.org/1187633003/

BUG=493765
CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel

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

Cr-Commit-Position: refs/heads/master@{#335750}
14 files changed:
android_webview/java/src/org/chromium/android_webview/AwContents.java
cc/input/input_handler.h
cc/trees/layer_tree_host_impl.cc
cc/trees/layer_tree_host_impl.h
cc/trees/layer_tree_host_impl_unittest.cc
chrome/android/java/proguard.flags
chrome/android/javatests/src/org/chromium/chrome/browser/TabsTest.java
content/browser/android/content_view_core_impl.cc
content/browser/android/content_view_core_impl.h
content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java
content/public/android/javatests/src/org/chromium/content/browser/ContentViewReadbackTest.java
content/public/android/javatests/src/org/chromium/content/browser/ContentViewScrollingTest.java
content/renderer/input/input_handler_proxy.cc
content/renderer/input/input_handler_proxy_unittest.cc