Lock video controls' position during fullscreen
commite5e7aa9323e8391a36a2e2a624078279362f62c6
authorhugo.holgersson <hugo.holgersson@sonymobile.com>
Mon, 17 Aug 2015 14:07:19 +0000 (17 07:07 -0700)
committerCommit bot <commit-bot@chromium.org>
Mon, 17 Aug 2015 14:07:56 +0000 (17 14:07 +0000)
treeb3b5f993868c8363484dad5104bbe5b6d0b83b70
parent29c17d0ac530145d9fa2eba928fd33737fd4b296
Lock video controls' position during fullscreen

Problem:
Video controls can be scrolled (moved) when
an Android WebView does fullscreen-video.

Solution:
When visual viewport's scrolling is disabled
using setUserScrollable(false, false), do
also disable over-scrolling (do not send
overscroll-events to the Android WebView).

BUG=448738
TEST=
  1. Start com.android.browser and go to
     http://robnyman.github.io/fullscreen/ .
  2. Start video playback.
  3. Go fullscreen on video.
  4. Fling the screen.
  5. Notice 1: Video controls cannot move.
  6. Notice 2: No "over glow" (compare with
     Android Chrome or Lollipop's WebView).

CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel

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

Cr-Commit-Position: refs/heads/master@{#343675}
cc/trees/layer_tree_host_impl.cc
cc/trees/layer_tree_host_impl_unittest.cc
content/browser/android/overscroll_controller_android.cc
content/browser/android/overscroll_controller_android.h