#include "cc/input/scrollbar_animation_controller.h"
#include <algorithm>
#include <memory>
#include "base/functional/bind.h"
#include "base/memory/ptr_util.h"
#include "base/time/time.h"
#include "cc/trees/layer_tree_impl.h"
namespace cc {
std::unique_ptr<ScrollbarAnimationController>
ScrollbarAnimationController::CreateScrollbarAnimationControllerAndroid(
ElementId scroll_element_id,
ScrollbarAnimationControllerClient* client,
base::TimeDelta fade_delay,
base::TimeDelta fade_duration,
float initial_opacity) { … }
std::unique_ptr<ScrollbarAnimationController>
ScrollbarAnimationController::CreateScrollbarAnimationControllerAuraOverlay(
ElementId scroll_element_id,
ScrollbarAnimationControllerClient* client,
base::TimeDelta fade_delay,
base::TimeDelta fade_duration,
base::TimeDelta thinning_duration,
float initial_opacity,
float idle_thickness_scale) { … }
ScrollbarAnimationController::ScrollbarAnimationController(
ElementId scroll_element_id,
ScrollbarAnimationControllerClient* client,
base::TimeDelta fade_delay,
base::TimeDelta fade_duration,
float initial_opacity)
: … { … }
ScrollbarAnimationController::ScrollbarAnimationController(
ElementId scroll_element_id,
ScrollbarAnimationControllerClient* client,
base::TimeDelta fade_delay,
base::TimeDelta fade_duration,
base::TimeDelta thinning_duration,
float initial_opacity,
float idle_thickness_scale)
: … { … }
ScrollbarAnimationController::~ScrollbarAnimationController() = default;
ScrollbarSet ScrollbarAnimationController::Scrollbars() const { … }
SingleScrollbarAnimationControllerThinning&
ScrollbarAnimationController::GetScrollbarAnimationController(
ScrollbarOrientation orientation) const { … }
void ScrollbarAnimationController::StartAnimation() { … }
void ScrollbarAnimationController::StopAnimation() { … }
void ScrollbarAnimationController::PostDelayedAnimation(
AnimationChange animation_change) { … }
bool ScrollbarAnimationController::Animate(base::TimeTicks now) { … }
float ScrollbarAnimationController::AnimationProgressAtTime(
base::TimeTicks now) { … }
void ScrollbarAnimationController::RunAnimationFrame(float progress) { … }
void ScrollbarAnimationController::DidScrollUpdate() { … }
void ScrollbarAnimationController::UpdateScrollbarState() { … }
void ScrollbarAnimationController::WillUpdateScroll() { … }
void ScrollbarAnimationController::DidRequestShow() { … }
void ScrollbarAnimationController::UpdateTickmarksVisibility(bool show) { … }
void ScrollbarAnimationController::DidMouseDown() { … }
void ScrollbarAnimationController::DidMouseUp() { … }
void ScrollbarAnimationController::DidMouseLeave() { … }
void ScrollbarAnimationController::DidMouseMove(
const gfx::PointF& device_viewport_point) { … }
bool ScrollbarAnimationController::MouseIsOverScrollbarThumb(
ScrollbarOrientation orientation) const { … }
bool ScrollbarAnimationController::MouseIsNearScrollbarThumb(
ScrollbarOrientation orientation) const { … }
bool ScrollbarAnimationController::MouseIsNearScrollbar(
ScrollbarOrientation orientation) const { … }
bool ScrollbarAnimationController::MouseIsNearAnyScrollbar() const { … }
bool ScrollbarAnimationController::ScrollbarsHidden() const { … }
bool ScrollbarAnimationController::Captured() const { … }
void ScrollbarAnimationController::Show() { … }
void ScrollbarAnimationController::ApplyOpacityToScrollbars(float opacity) { … }
}