#include "third_party/blink/renderer/core/paint/custom_scrollbar_theme.h"
#include "third_party/blink/renderer/core/layout/custom_scrollbar.h"
#include "third_party/blink/renderer/core/layout/layout_custom_scrollbar_part.h"
#include "third_party/blink/renderer/core/paint/object_painter.h"
#include "third_party/blink/renderer/core/paint/paint_auto_dark_mode.h"
#include "third_party/blink/renderer/core/paint/paint_info.h"
#include "third_party/blink/renderer/core/scroll/scrollbar.h"
#include "third_party/blink/renderer/platform/graphics/graphics_context.h"
#include "third_party/blink/renderer/platform/graphics/paint/drawing_recorder.h"
#include "third_party/blink/renderer/platform/wtf/std_lib_extras.h"
namespace blink {
CustomScrollbarTheme* CustomScrollbarTheme::GetCustomScrollbarTheme() { … }
ScrollbarPart CustomScrollbarTheme::HitTest(
const Scrollbar& scrollbar,
const gfx::Point& test_position) const { … }
void CustomScrollbarTheme::ButtonSizesAlongTrackAxis(const Scrollbar& scrollbar,
int& before_size,
int& after_size) const { … }
bool CustomScrollbarTheme::HasButtons(const Scrollbar& scrollbar) const { … }
bool CustomScrollbarTheme::HasThumb(const Scrollbar& scrollbar) const { … }
int CustomScrollbarTheme::MinimumThumbLength(const Scrollbar& scrollbar) const { … }
gfx::Rect CustomScrollbarTheme::ButtonRect(const Scrollbar& scrollbar,
ScrollbarPart part_type) const { … }
gfx::Rect CustomScrollbarTheme::BackButtonRect(
const Scrollbar& scrollbar) const { … }
gfx::Rect CustomScrollbarTheme::ForwardButtonRect(
const Scrollbar& scrollbar) const { … }
gfx::Rect CustomScrollbarTheme::TrackRect(const Scrollbar& scrollbar) const { … }
gfx::Rect CustomScrollbarTheme::ConstrainTrackRectToTrackPieces(
const Scrollbar& scrollbar,
const gfx::Rect& rect) const { … }
void CustomScrollbarTheme::PaintScrollCorner(
GraphicsContext& context,
const ScrollableArea&,
const DisplayItemClient& display_item_client,
const gfx::Rect& corner_rect) { … }
void CustomScrollbarTheme::PaintTrackBackgroundAndButtons(
GraphicsContext& context,
const Scrollbar& scrollbar,
const gfx::Rect& rect) { … }
void CustomScrollbarTheme::PaintButton(GraphicsContext& context,
const Scrollbar& scrollbar,
const gfx::Rect& rect,
ScrollbarPart part) { … }
void CustomScrollbarTheme::PaintThumb(GraphicsContext& context,
const Scrollbar& scrollbar,
const gfx::Rect& rect) { … }
void CustomScrollbarTheme::PaintTickmarks(GraphicsContext& context,
const Scrollbar& scrollbar,
const gfx::Rect& rect) { … }
void CustomScrollbarTheme::PaintIntoRect(
const LayoutCustomScrollbarPart& layout_custom_scrollbar_part,
GraphicsContext& graphics_context,
const PhysicalRect& rect) { … }
void CustomScrollbarTheme::PaintPart(GraphicsContext& context,
const Scrollbar& scrollbar,
const gfx::Rect& rect,
ScrollbarPart part) { … }
}