ScrollbarThemePlayStation.cpp [plain text]
#include "config.h"
#include "ScrollbarThemePlayStation.h"
#include "HostWindow.h"
#include "NotImplemented.h"
#include "ScrollView.h"
#include "Scrollbar.h"
namespace WebCore {
ScrollbarTheme& ScrollbarTheme::nativeTheme()
{
static ScrollbarThemePlayStation theme;
return theme;
}
int ScrollbarThemePlayStation::scrollbarThickness(ScrollbarControlSize, ScrollbarExpansionState)
{
return 7;
}
bool ScrollbarThemePlayStation::hasButtons(Scrollbar&)
{
notImplemented();
return true;
}
bool ScrollbarThemePlayStation::hasThumb(Scrollbar&)
{
notImplemented();
return true;
}
IntRect ScrollbarThemePlayStation::backButtonRect(Scrollbar&, ScrollbarPart, bool)
{
notImplemented();
return { };
}
IntRect ScrollbarThemePlayStation::forwardButtonRect(Scrollbar&, ScrollbarPart, bool)
{
notImplemented();
return { };
}
IntRect ScrollbarThemePlayStation::trackRect(Scrollbar& scrollbar, bool)
{
return scrollbar.frameRect();
}
void ScrollbarThemePlayStation::paintTrackBackground(GraphicsContext& context, Scrollbar& scrollbar, const IntRect& trackRect)
{
context.fillRect(trackRect, scrollbar.enabled() ? Color::lightGray : Color(0xFFE0E0E0));
}
void ScrollbarThemePlayStation::paintThumb(GraphicsContext& context, Scrollbar& scrollbar, const IntRect& thumbRect)
{
if (scrollbar.enabled())
context.fillRect(thumbRect, Color::darkGray);
}
}