#include "ui/views/controls/scrollbar/overlay_scroll_bar.h"
#include <memory>
#include "base/functional/bind.h"
#include "base/i18n/rtl.h"
#include "cc/paint/paint_flags.h"
#include "third_party/skia/include/core/SkColor.h"
#include "ui/base/metadata/metadata_impl_macros.h"
#include "ui/color/color_id.h"
#include "ui/color/color_provider.h"
#include "ui/compositor/layer.h"
#include "ui/compositor/scoped_layer_animation_settings.h"
#include "ui/gfx/canvas.h"
#include "ui/native_theme/overlay_scrollbar_constants_aura.h"
#include "ui/views/background.h"
#include "ui/views/border.h"
#include "ui/views/layout/fill_layout.h"
namespace views {
namespace {
constexpr int kThumbThickness = …;
constexpr int kThumbHoverOffset = …;
constexpr int kThumbStroke = …;
constexpr int kThumbStrokeVisualSize = …;
}
OverlayScrollBar::Thumb::Thumb(OverlayScrollBar* scroll_bar)
: … { … }
OverlayScrollBar::Thumb::~Thumb() = default;
void OverlayScrollBar::Thumb::Init() { … }
gfx::Size OverlayScrollBar::Thumb::CalculatePreferredSize(
const SizeBounds& ) const { … }
void OverlayScrollBar::Thumb::OnPaint(gfx::Canvas* canvas) { … }
void OverlayScrollBar::Thumb::OnBoundsChanged(
const gfx::Rect& previous_bounds) { … }
void OverlayScrollBar::Thumb::OnStateChanged() { … }
BEGIN_METADATA(…)
END_METADATA
OverlayScrollBar::OverlayScrollBar(Orientation orientation)
: … { … }
OverlayScrollBar::~OverlayScrollBar() = default;
gfx::Insets OverlayScrollBar::GetInsets() const { … }
void OverlayScrollBar::OnMouseEntered(const ui::MouseEvent& event) { … }
void OverlayScrollBar::OnMouseExited(const ui::MouseEvent& event) { … }
bool OverlayScrollBar::OverlapsContent() const { … }
gfx::Rect OverlayScrollBar::GetTrackBounds() const { … }
int OverlayScrollBar::GetThickness() const { … }
void OverlayScrollBar::Show() { … }
void OverlayScrollBar::Hide() { … }
void OverlayScrollBar::StartHideCountdown() { … }
BEGIN_METADATA(…)
}