#include "cc/input/scroll_elasticity_helper.h"
#include "base/memory/raw_ptr.h"
#include "cc/layers/layer_impl.h"
#include "cc/trees/layer_tree_host_impl.h"
#include "cc/trees/layer_tree_impl.h"
#include "cc/trees/scroll_node.h"
namespace cc {
class ScrollElasticityHelperImpl : public ScrollElasticityHelper { … };
ScrollElasticityHelperImpl::ScrollElasticityHelperImpl(
LayerTreeHostImpl* layer_tree)
: … { … }
ScrollElasticityHelperImpl::~ScrollElasticityHelperImpl() = default;
bool ScrollElasticityHelperImpl::IsUserScrollableHorizontal() const { … }
bool ScrollElasticityHelperImpl::IsUserScrollableVertical() const { … }
gfx::Vector2dF ScrollElasticityHelperImpl::StretchAmount() const { … }
gfx::Size ScrollElasticityHelperImpl::ScrollBounds() const { … }
void ScrollElasticityHelperImpl::SetStretchAmount(
const gfx::Vector2dF& stretch_amount) { … }
gfx::PointF ScrollElasticityHelperImpl::ScrollOffset() const { … }
gfx::PointF ScrollElasticityHelperImpl::MaxScrollOffset() const { … }
void ScrollElasticityHelperImpl::ScrollBy(const gfx::Vector2dF& delta) { … }
void ScrollElasticityHelperImpl::RequestOneBeginFrame() { … }
ScrollElasticityHelper* ScrollElasticityHelper::CreateForLayerTreeHostImpl(
LayerTreeHostImpl* host_impl) { … }
}