[Android] Suppress pull-to-refresh when overscroll glow visible
commit2dbb7e87a8cd907e4d782cff5212dc6f61626e7d
authorjdduke <jdduke@chromium.org>
Wed, 11 Feb 2015 20:58:23 +0000 (11 12:58 -0800)
committerCommit bot <commit-bot@chromium.org>
Wed, 11 Feb 2015 20:59:07 +0000 (11 20:59 +0000)
tree929d5de25624de75a48c05bb837238ebdbf25047
parent684903a7c8d20644461995c13f9f8b36a2b6af4b
[Android] Suppress pull-to-refresh when overscroll glow visible

Avoid accidental refreshes by suppressing the effect when the overscroll
glow animation is still visible. This naturally prevents the case where
the user repeatedly flings/scrolls to the top, releasing before they
realize that the scroll has turned into a pull-to-refresh.

Note that suppression is only provided on L; the glow effect on previous
platforms is both too long and too visually faint to provide a good feedback
signal for when the user can start pulling to refresh.

BUG=456300

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

Cr-Commit-Position: refs/heads/master@{#315832}
content/browser/android/overscroll_controller_android.cc
content/browser/android/overscroll_glow.cc
content/browser/android/overscroll_glow.h
content/browser/android/overscroll_refresh.cc
content/browser/android/overscroll_refresh.h
content/browser/android/overscroll_refresh_unittest.cc