Hide pinch viewport scrollbars when near minimum scale.
commitc784a6f02ed8f2cffe131c2c067c4805cd752610
authorbokan <bokan@chromium.org>
Wed, 28 Jan 2015 04:11:50 +0000 (27 20:11 -0800)
committerCommit bot <commit-bot@chromium.org>
Wed, 28 Jan 2015 04:13:48 +0000 (28 04:13 +0000)
treec217d18d6d26c021f7558d0b84c48fc271aeb58f
parentd11f81682b5fb8dfe9bb237d5db0024fceea3e6f
Hide pinch viewport scrollbars when near minimum scale.

This patch prevents the overlay scrollbars from showing up when we're near the
minimum scale. The threshold can be set per-platform; by default it's 0 so the
scrollbars will be visible regardless of the scale. On Windows/Linux/CrOS we'd
like to prevent the scrollbars from overlaying over the window scrollbars so
we set a small non-0 threshold.

BUG=446411

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

Cr-Commit-Position: refs/heads/master@{#313431}
cc/layers/layer_impl.cc
cc/layers/scrollbar_layer_impl_base.cc
cc/trees/layer_tree_impl.cc
cc/trees/layer_tree_impl.h
cc/trees/layer_tree_impl_unittest.cc
cc/trees/layer_tree_settings.cc
cc/trees/layer_tree_settings.h
content/renderer/gpu/render_widget_compositor.cc