webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
Public Member Functions | Static Public Member Functions | Protected Member Functions | List of all members
WebCore::ScrollbarThemeMac Class Reference

#include <ScrollbarThemeMac.h>

Inheritance diagram for WebCore::ScrollbarThemeMac:
WebCore::ScrollbarThemeComposite WebCore::ScrollbarThemeComposite WebCore::ScrollbarTheme WebCore::ScrollbarTheme WebCore::ScrollbarTheme WebCore::ScrollbarTheme

Public Member Functions

 ScrollbarThemeMac ()
 
virtual ~ScrollbarThemeMac ()
 
void preferencesChanged ()
 
void updateEnabledState (Scrollbar &) override
 
bool paint (Scrollbar &, GraphicsContext &, const IntRect &damageRect) override
 
int scrollbarThickness (ScrollbarControlSize=RegularScrollbar) override
 
bool supportsControlTints () const override
 
bool usesOverlayScrollbars () const override
 
void usesOverlayScrollbarsChanged () override
 
void updateScrollbarOverlayStyle (Scrollbar &) override
 
double initialAutoscrollTimerDelay () override
 
double autoscrollTimerDelay () override
 
ScrollbarButtonsPlacement buttonsPlacement () const override
 
void registerScrollbar (Scrollbar &) override
 
void unregisterScrollbar (Scrollbar &) override
 
void setNewPainterForScrollbar (Scrollbar &, NSScrollerImp *)
 
NSScrollerImp * painterForScrollbar (Scrollbar &)
 
void setPaintCharacteristicsForScrollbar (Scrollbar &)
 
void didCreateScrollerImp (Scrollbar &)
 
bool isLayoutDirectionRTL (Scrollbar &)
 
 ScrollbarThemeMac ()
 
virtual ~ScrollbarThemeMac ()
 
void preferencesChanged ()
 
void updateEnabledState (Scrollbar &) override
 
bool paint (Scrollbar &, GraphicsContext &, const IntRect &damageRect) override
 
int scrollbarThickness (ScrollbarControlSize=RegularScrollbar) override
 
bool supportsControlTints () const override
 
bool usesOverlayScrollbars () const override
 
void usesOverlayScrollbarsChanged () override
 
void updateScrollbarOverlayStyle (Scrollbar &) override
 
double initialAutoscrollTimerDelay () override
 
double autoscrollTimerDelay () override
 
ScrollbarButtonsPlacement buttonsPlacement () const override
 
void registerScrollbar (Scrollbar &) override
 
void unregisterScrollbar (Scrollbar &) override
 
void setNewPainterForScrollbar (Scrollbar &, NSScrollerImp *)
 
NSScrollerImp * painterForScrollbar (Scrollbar &)
 
void setPaintCharacteristicsForScrollbar (Scrollbar &)
 
void didCreateScrollerImp (Scrollbar &)
 
bool isLayoutDirectionRTL (Scrollbar &)
 
- Public Member Functions inherited from WebCore::ScrollbarThemeComposite
ScrollbarPart hitTest (Scrollbar &, const IntPoint &) override
 
void invalidatePart (Scrollbar &, ScrollbarPart) override
 
int thumbPosition (Scrollbar &) override
 
int thumbLength (Scrollbar &) override
 
int trackPosition (Scrollbar &) override
 
int trackLength (Scrollbar &) override
 
void paintScrollCorner (ScrollView *, GraphicsContext &, const IntRect &cornerRect) override
 
void paintOverhangAreas (ScrollView &, GraphicsContext &, const IntRect &horizontalOverhangArea, const IntRect &verticalOverhangArea, const IntRect &dirtyRect) override
 
virtual IntRect thumbRect (Scrollbar &)
 
virtual void splitTrack (Scrollbar &, const IntRect &track, IntRect &startTrack, IntRect &thumb, IntRect &endTrack)
 
virtual void willPaintScrollbar (GraphicsContext &, Scrollbar &)
 
virtual void didPaintScrollbar (GraphicsContext &, Scrollbar &)
 
virtual void paintScrollbarBackground (GraphicsContext &, Scrollbar &)
 
virtual void paintTrackBackground (GraphicsContext &, Scrollbar &, const IntRect &)
 
virtual void paintTrackPiece (GraphicsContext &, Scrollbar &, const IntRect &, ScrollbarPart)
 
virtual void paintButton (GraphicsContext &, Scrollbar &, const IntRect &, ScrollbarPart)
 
virtual void paintThumb (GraphicsContext &, Scrollbar &, const IntRect &)
 
virtual IntRect constrainTrackRectToTrackPieces (Scrollbar &, const IntRect &rect)
 
bool paint (Scrollbar &, GraphicsContext &, const IntRect &damageRect) override
 
ScrollbarPart hitTest (Scrollbar &, const IntPoint &) override
 
void invalidatePart (Scrollbar &, ScrollbarPart) override
 
int thumbPosition (Scrollbar &) override
 
int thumbLength (Scrollbar &) override
 
int trackPosition (Scrollbar &) override
 
int trackLength (Scrollbar &) override
 
void paintScrollCorner (ScrollView *, GraphicsContext &, const IntRect &cornerRect) override
 
void paintOverhangAreas (ScrollView &, GraphicsContext &, const IntRect &horizontalOverhangArea, const IntRect &verticalOverhangArea, const IntRect &dirtyRect) override
 
virtual IntRect thumbRect (Scrollbar &)
 
virtual void splitTrack (Scrollbar &, const IntRect &track, IntRect &startTrack, IntRect &thumb, IntRect &endTrack)
 
virtual void willPaintScrollbar (GraphicsContext &, Scrollbar &)
 
virtual void didPaintScrollbar (GraphicsContext &, Scrollbar &)
 
virtual void paintScrollbarBackground (GraphicsContext &, Scrollbar &)
 
virtual void paintTrackBackground (GraphicsContext &, Scrollbar &, const IntRect &)
 
virtual void paintTrackPiece (GraphicsContext &, Scrollbar &, const IntRect &, ScrollbarPart)
 
virtual void paintButton (GraphicsContext &, Scrollbar &, const IntRect &, ScrollbarPart)
 
virtual void paintThumb (GraphicsContext &, Scrollbar &, const IntRect &)
 
virtual IntRect constrainTrackRectToTrackPieces (Scrollbar &, const IntRect &rect)
 
- Public Member Functions inherited from WebCore::ScrollbarTheme
 ScrollbarTheme ()
 
virtual ~ScrollbarTheme ()
 
virtual void themeChanged ()
 
virtual bool invalidateOnMouseEnterExit ()
 
void invalidateParts (Scrollbar &scrollbar, ScrollbarControlPartMask mask)
 
virtual void paintTickmarks (GraphicsContext &, Scrollbar &, const IntRect &)
 
virtual bool shouldSnapBackToDragOrigin (Scrollbar &, const PlatformMouseEvent &)
 
virtual bool isMockTheme () const
 
 ScrollbarTheme ()
 
virtual ~ScrollbarTheme ()
 
virtual void themeChanged ()
 
virtual bool invalidateOnMouseEnterExit ()
 
void invalidateParts (Scrollbar &scrollbar, ScrollbarControlPartMask mask)
 
virtual void paintTickmarks (GraphicsContext &, Scrollbar &, const IntRect &)
 
virtual bool shouldSnapBackToDragOrigin (Scrollbar &, const PlatformMouseEvent &)
 
virtual bool isMockTheme () const
 

Static Public Member Functions

static bool isCurrentlyDrawingIntoLayer ()
 
static void setIsCurrentlyDrawingIntoLayer (bool)
 
static bool isCurrentlyDrawingIntoLayer ()
 
static void setIsCurrentlyDrawingIntoLayer (bool)
 
- Static Public Member Functions inherited from WebCore::ScrollbarTheme
static void defaultPaintScrollCorner (GraphicsContext &context, const IntRect &cornerRect)
 
static WEBCORE_EXPORT ScrollbarThemetheme ()
 
static void defaultPaintScrollCorner (GraphicsContext &context, const IntRect &cornerRect)
 
static WEBCORE_EXPORT ScrollbarThemetheme ()
 

Protected Member Functions

bool hasButtons (Scrollbar &) override
 
bool hasThumb (Scrollbar &) override
 
IntRect backButtonRect (Scrollbar &, ScrollbarPart, bool painting=false) override
 
IntRect forwardButtonRect (Scrollbar &, ScrollbarPart, bool painting=false) override
 
IntRect trackRect (Scrollbar &, bool painting=false) override
 
int maxOverlapBetweenPages () override
 
int minimumThumbLength (Scrollbar &) override
 
ScrollbarButtonPressAction handleMousePressEvent (Scrollbar &, const PlatformMouseEvent &, ScrollbarPart) override
 
bool shouldDragDocumentInsteadOfThumb (Scrollbar &, const PlatformMouseEvent &) override
 
int scrollbarPartToHIPressedState (ScrollbarPart)
 
bool hasButtons (Scrollbar &) override
 
bool hasThumb (Scrollbar &) override
 
IntRect backButtonRect (Scrollbar &, ScrollbarPart, bool painting=false) override
 
IntRect forwardButtonRect (Scrollbar &, ScrollbarPart, bool painting=false) override
 
IntRect trackRect (Scrollbar &, bool painting=false) override
 
int maxOverlapBetweenPages () override
 
int minimumThumbLength (Scrollbar &) override
 
ScrollbarButtonPressAction handleMousePressEvent (Scrollbar &, const PlatformMouseEvent &, ScrollbarPart) override
 
bool shouldDragDocumentInsteadOfThumb (Scrollbar &, const PlatformMouseEvent &) override
 
int scrollbarPartToHIPressedState (ScrollbarPart)
 

Constructor & Destructor Documentation

◆ ScrollbarThemeMac() [1/2]

WebCore::ScrollbarThemeMac::ScrollbarThemeMac ( )

◆ ~ScrollbarThemeMac() [1/2]

WebCore::ScrollbarThemeMac::~ScrollbarThemeMac ( )
virtual

◆ ScrollbarThemeMac() [2/2]

WebCore::ScrollbarThemeMac::ScrollbarThemeMac ( )

◆ ~ScrollbarThemeMac() [2/2]

virtual WebCore::ScrollbarThemeMac::~ScrollbarThemeMac ( )
virtual

Member Function Documentation

◆ autoscrollTimerDelay() [1/2]

double WebCore::ScrollbarThemeMac::autoscrollTimerDelay ( )
overridevirtual

Reimplemented from WebCore::ScrollbarTheme.

◆ autoscrollTimerDelay() [2/2]

double WebCore::ScrollbarThemeMac::autoscrollTimerDelay ( )
overridevirtual

Reimplemented from WebCore::ScrollbarTheme.

◆ backButtonRect() [1/2]

IntRect WebCore::ScrollbarThemeMac::backButtonRect ( Scrollbar scrollbar,
ScrollbarPart  part,
bool  painting = false 
)
overrideprotectedvirtual

◆ backButtonRect() [2/2]

IntRect WebCore::ScrollbarThemeMac::backButtonRect ( Scrollbar ,
ScrollbarPart  ,
bool  painting = false 
)
overrideprotectedvirtual

◆ buttonsPlacement() [1/2]

ScrollbarButtonsPlacement WebCore::ScrollbarThemeMac::buttonsPlacement ( ) const
overridevirtual

Reimplemented from WebCore::ScrollbarTheme.

◆ buttonsPlacement() [2/2]

ScrollbarButtonsPlacement WebCore::ScrollbarThemeMac::buttonsPlacement ( ) const
overridevirtual

Reimplemented from WebCore::ScrollbarTheme.

◆ didCreateScrollerImp() [1/2]

void WebCore::ScrollbarThemeMac::didCreateScrollerImp ( Scrollbar scrollbar)

◆ didCreateScrollerImp() [2/2]

void WebCore::ScrollbarThemeMac::didCreateScrollerImp ( Scrollbar )

◆ forwardButtonRect() [1/2]

IntRect WebCore::ScrollbarThemeMac::forwardButtonRect ( Scrollbar scrollbar,
ScrollbarPart  part,
bool  painting = false 
)
overrideprotectedvirtual

◆ forwardButtonRect() [2/2]

IntRect WebCore::ScrollbarThemeMac::forwardButtonRect ( Scrollbar ,
ScrollbarPart  ,
bool  painting = false 
)
overrideprotectedvirtual

◆ handleMousePressEvent() [1/2]

ScrollbarButtonPressAction WebCore::ScrollbarThemeMac::handleMousePressEvent ( Scrollbar ,
const PlatformMouseEvent event,
ScrollbarPart  pressedPart 
)
overrideprotectedvirtual

Reimplemented from WebCore::ScrollbarTheme.

◆ handleMousePressEvent() [2/2]

ScrollbarButtonPressAction WebCore::ScrollbarThemeMac::handleMousePressEvent ( Scrollbar ,
const PlatformMouseEvent ,
ScrollbarPart   
)
overrideprotectedvirtual

Reimplemented from WebCore::ScrollbarTheme.

◆ hasButtons() [1/2]

bool WebCore::ScrollbarThemeMac::hasButtons ( Scrollbar scrollbar)
overrideprotectedvirtual

◆ hasButtons() [2/2]

bool WebCore::ScrollbarThemeMac::hasButtons ( Scrollbar )
overrideprotectedvirtual

◆ hasThumb() [1/2]

bool WebCore::ScrollbarThemeMac::hasThumb ( Scrollbar scrollbar)
overrideprotectedvirtual

◆ hasThumb() [2/2]

bool WebCore::ScrollbarThemeMac::hasThumb ( Scrollbar )
overrideprotectedvirtual

◆ initialAutoscrollTimerDelay() [1/2]

double WebCore::ScrollbarThemeMac::initialAutoscrollTimerDelay ( )
overridevirtual

Reimplemented from WebCore::ScrollbarTheme.

◆ initialAutoscrollTimerDelay() [2/2]

double WebCore::ScrollbarThemeMac::initialAutoscrollTimerDelay ( )
overridevirtual

Reimplemented from WebCore::ScrollbarTheme.

◆ isCurrentlyDrawingIntoLayer() [1/2]

bool WebCore::ScrollbarThemeMac::isCurrentlyDrawingIntoLayer ( )
static

◆ isCurrentlyDrawingIntoLayer() [2/2]

static bool WebCore::ScrollbarThemeMac::isCurrentlyDrawingIntoLayer ( )
static

◆ isLayoutDirectionRTL() [1/2]

bool WebCore::ScrollbarThemeMac::isLayoutDirectionRTL ( Scrollbar scrollbar)

◆ isLayoutDirectionRTL() [2/2]

bool WebCore::ScrollbarThemeMac::isLayoutDirectionRTL ( Scrollbar )

◆ maxOverlapBetweenPages() [1/2]

int WebCore::ScrollbarThemeMac::maxOverlapBetweenPages ( )
inlineoverrideprotectedvirtual

Reimplemented from WebCore::ScrollbarTheme.

◆ maxOverlapBetweenPages() [2/2]

int WebCore::ScrollbarThemeMac::maxOverlapBetweenPages ( )
inlineoverrideprotectedvirtual

Reimplemented from WebCore::ScrollbarTheme.

◆ minimumThumbLength() [1/2]

int WebCore::ScrollbarThemeMac::minimumThumbLength ( Scrollbar scrollbar)
overrideprotectedvirtual

Reimplemented from WebCore::ScrollbarThemeComposite.

◆ minimumThumbLength() [2/2]

int WebCore::ScrollbarThemeMac::minimumThumbLength ( Scrollbar )
overrideprotectedvirtual

Reimplemented from WebCore::ScrollbarThemeComposite.

◆ paint() [1/2]

bool WebCore::ScrollbarThemeMac::paint ( Scrollbar ,
GraphicsContext ,
const IntRect damageRect 
)
overridevirtual

Reimplemented from WebCore::ScrollbarThemeComposite.

◆ paint() [2/2]

bool WebCore::ScrollbarThemeMac::paint ( Scrollbar scrollbar,
GraphicsContext context,
const IntRect damageRect 
)
overridevirtual

Reimplemented from WebCore::ScrollbarThemeComposite.

◆ painterForScrollbar() [1/2]

NSScrollerImp* WebCore::ScrollbarThemeMac::painterForScrollbar ( Scrollbar )

◆ painterForScrollbar() [2/2]

NSScrollerImp * WebCore::ScrollbarThemeMac::painterForScrollbar ( Scrollbar scrollbar)

◆ preferencesChanged() [1/2]

void WebCore::ScrollbarThemeMac::preferencesChanged ( )

◆ preferencesChanged() [2/2]

void WebCore::ScrollbarThemeMac::preferencesChanged ( )

◆ registerScrollbar() [1/2]

void WebCore::ScrollbarThemeMac::registerScrollbar ( Scrollbar )
overridevirtual

Reimplemented from WebCore::ScrollbarTheme.

◆ registerScrollbar() [2/2]

void WebCore::ScrollbarThemeMac::registerScrollbar ( Scrollbar scrollbar)
overridevirtual

Reimplemented from WebCore::ScrollbarTheme.

◆ scrollbarPartToHIPressedState() [1/2]

int WebCore::ScrollbarThemeMac::scrollbarPartToHIPressedState ( ScrollbarPart  )
protected

◆ scrollbarPartToHIPressedState() [2/2]

int WebCore::ScrollbarThemeMac::scrollbarPartToHIPressedState ( ScrollbarPart  part)
protected

◆ scrollbarThickness() [1/2]

int WebCore::ScrollbarThemeMac::scrollbarThickness ( ScrollbarControlSize  controlSize = RegularScrollbar)
overridevirtual

Reimplemented from WebCore::ScrollbarTheme.

◆ scrollbarThickness() [2/2]

int WebCore::ScrollbarThemeMac::scrollbarThickness ( ScrollbarControlSize  = RegularScrollbar)
overridevirtual

Reimplemented from WebCore::ScrollbarTheme.

◆ setIsCurrentlyDrawingIntoLayer() [1/2]

void WebCore::ScrollbarThemeMac::setIsCurrentlyDrawingIntoLayer ( bool  b)
static

◆ setIsCurrentlyDrawingIntoLayer() [2/2]

static void WebCore::ScrollbarThemeMac::setIsCurrentlyDrawingIntoLayer ( bool  )
static

◆ setNewPainterForScrollbar() [1/2]

void WebCore::ScrollbarThemeMac::setNewPainterForScrollbar ( Scrollbar ,
NSScrollerImp *   
)

◆ setNewPainterForScrollbar() [2/2]

void WebCore::ScrollbarThemeMac::setNewPainterForScrollbar ( Scrollbar scrollbar,
NSScrollerImp *  newPainter 
)

◆ setPaintCharacteristicsForScrollbar() [1/2]

void WebCore::ScrollbarThemeMac::setPaintCharacteristicsForScrollbar ( Scrollbar scrollbar)

◆ setPaintCharacteristicsForScrollbar() [2/2]

void WebCore::ScrollbarThemeMac::setPaintCharacteristicsForScrollbar ( Scrollbar )

◆ shouldDragDocumentInsteadOfThumb() [1/2]

bool WebCore::ScrollbarThemeMac::shouldDragDocumentInsteadOfThumb ( Scrollbar ,
const PlatformMouseEvent  
)
overrideprotectedvirtual

Reimplemented from WebCore::ScrollbarTheme.

◆ shouldDragDocumentInsteadOfThumb() [2/2]

bool WebCore::ScrollbarThemeMac::shouldDragDocumentInsteadOfThumb ( Scrollbar ,
const PlatformMouseEvent event 
)
overrideprotectedvirtual

Reimplemented from WebCore::ScrollbarTheme.

◆ supportsControlTints() [1/2]

bool WebCore::ScrollbarThemeMac::supportsControlTints ( ) const
inlineoverridevirtual

Reimplemented from WebCore::ScrollbarTheme.

◆ supportsControlTints() [2/2]

bool WebCore::ScrollbarThemeMac::supportsControlTints ( ) const
inlineoverridevirtual

Reimplemented from WebCore::ScrollbarTheme.

◆ trackRect() [1/2]

IntRect WebCore::ScrollbarThemeMac::trackRect ( Scrollbar ,
bool  painting = false 
)
overrideprotectedvirtual

◆ trackRect() [2/2]

IntRect WebCore::ScrollbarThemeMac::trackRect ( Scrollbar scrollbar,
bool  painting = false 
)
overrideprotectedvirtual

◆ unregisterScrollbar() [1/2]

void WebCore::ScrollbarThemeMac::unregisterScrollbar ( Scrollbar )
overridevirtual

Reimplemented from WebCore::ScrollbarTheme.

◆ unregisterScrollbar() [2/2]

void WebCore::ScrollbarThemeMac::unregisterScrollbar ( Scrollbar scrollbar)
overridevirtual

Reimplemented from WebCore::ScrollbarTheme.

◆ updateEnabledState() [1/2]

void WebCore::ScrollbarThemeMac::updateEnabledState ( Scrollbar scrollbar)
overridevirtual

Reimplemented from WebCore::ScrollbarTheme.

◆ updateEnabledState() [2/2]

void WebCore::ScrollbarThemeMac::updateEnabledState ( Scrollbar )
overridevirtual

Reimplemented from WebCore::ScrollbarTheme.

◆ updateScrollbarOverlayStyle() [1/2]

void WebCore::ScrollbarThemeMac::updateScrollbarOverlayStyle ( Scrollbar )
overridevirtual

Reimplemented from WebCore::ScrollbarTheme.

◆ updateScrollbarOverlayStyle() [2/2]

void WebCore::ScrollbarThemeMac::updateScrollbarOverlayStyle ( Scrollbar scrollbar)
overridevirtual

Reimplemented from WebCore::ScrollbarTheme.

◆ usesOverlayScrollbars() [1/2]

bool WebCore::ScrollbarThemeMac::usesOverlayScrollbars ( ) const
overridevirtual

Reimplemented from WebCore::ScrollbarTheme.

◆ usesOverlayScrollbars() [2/2]

bool WebCore::ScrollbarThemeMac::usesOverlayScrollbars ( ) const
overridevirtual

Reimplemented from WebCore::ScrollbarTheme.

◆ usesOverlayScrollbarsChanged() [1/2]

void WebCore::ScrollbarThemeMac::usesOverlayScrollbarsChanged ( )
overridevirtual

Reimplemented from WebCore::ScrollbarTheme.

◆ usesOverlayScrollbarsChanged() [2/2]

void WebCore::ScrollbarThemeMac::usesOverlayScrollbarsChanged ( )
overridevirtual

Reimplemented from WebCore::ScrollbarTheme.


The documentation for this class was generated from the following files: