chromium/ui/views/controls/scrollbar/overlay_scroll_bar.cc

// Copyright 2013 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#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 {

// Total thickness of the thumb (matches visuals when hovered).
constexpr int kThumbThickness =;
// When hovered, the thumb takes up the full width. Otherwise, it's a bit
// slimmer.
constexpr int kThumbHoverOffset =;
// The layout size of the thumb stroke, in DIP.
constexpr int kThumbStroke =;
// The visual size of the thumb stroke, in px.
constexpr int kThumbStrokeVisualSize =;

}  // namespace

OverlayScrollBar::Thumb::Thumb(OverlayScrollBar* scroll_bar)
    :{}

OverlayScrollBar::Thumb::~Thumb() = default;

void OverlayScrollBar::Thumb::Init() {}

gfx::Size OverlayScrollBar::Thumb::CalculatePreferredSize(
    const SizeBounds& /*available_size*/) 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()

}  // namespace views