#include "third_party/blink/renderer/core/layout/custom_scrollbar.h"
#include "third_party/blink/renderer/core/css/style_engine.h"
#include "third_party/blink/renderer/core/css/style_request.h"
#include "third_party/blink/renderer/core/frame/local_frame_view.h"
#include "third_party/blink/renderer/core/layout/layout_custom_scrollbar_part.h"
#include "third_party/blink/renderer/core/layout/layout_embedded_content.h"
#include "third_party/blink/renderer/core/layout/layout_view.h"
#include "third_party/blink/renderer/core/paint/custom_scrollbar_theme.h"
#include "third_party/blink/renderer/core/paint/object_paint_invalidator.h"
#include "third_party/blink/renderer/core/scroll/scroll_types.h"
#include "third_party/blink/renderer/platform/graphics/graphics_context.h"
namespace blink {
CustomScrollbar::CustomScrollbar(ScrollableArea* scrollable_area,
ScrollbarOrientation orientation,
const LayoutObject* style_source,
bool suppress_use_counters)
: … { … }
CustomScrollbar::~CustomScrollbar() { … }
int CustomScrollbar::HypotheticalScrollbarThickness(
const ScrollableArea* scrollable_area,
ScrollbarOrientation orientation,
const LayoutObject* style_source) { … }
void CustomScrollbar::Trace(Visitor* visitor) const { … }
void CustomScrollbar::DisconnectFromScrollableArea() { … }
void CustomScrollbar::SetEnabled(bool enabled) { … }
void CustomScrollbar::StyleChanged() { … }
void CustomScrollbar::SetHoveredPart(ScrollbarPart part) { … }
void CustomScrollbar::SetPressedPart(ScrollbarPart part,
WebInputEvent::Type type) { … }
const ComputedStyle* CustomScrollbar::GetScrollbarPseudoElementStyle(
ScrollbarPart part_type,
PseudoId pseudo_id) { … }
void CustomScrollbar::DestroyScrollbarParts() { … }
void CustomScrollbar::UpdateScrollbarParts() { … }
static PseudoId PseudoForScrollbarPart(ScrollbarPart part) { … }
void CustomScrollbar::UpdateScrollbarPart(ScrollbarPart part_type) { … }
gfx::Rect CustomScrollbar::ButtonRect(ScrollbarPart part_type) const { … }
gfx::Rect CustomScrollbar::TrackRect(int start_length, int end_length) const { … }
gfx::Rect CustomScrollbar::TrackPieceRectWithMargins(
ScrollbarPart part_type,
const gfx::Rect& old_rect) const { … }
int CustomScrollbar::MinimumThumbLength() const { … }
void CustomScrollbar::OffsetDidChange(mojom::blink::ScrollType scroll_type) { … }
void CustomScrollbar::PositionScrollbarParts() { … }
const ComputedStyle* CustomScrollbar::GetScrollbarPartStyleForCursor(
ScrollbarPart part_type) const { … }
void CustomScrollbar::InvalidateDisplayItemClientsOfScrollbarParts() { … }
void CustomScrollbar::ClearPaintFlags() { … }
void CustomScrollbar::Paint(GraphicsContext& context,
const PhysicalOffset& paint_offset) const { … }
}