void WebScrollbarThemeGeometryNative::splitTrack(WebScrollbar* scrollbar, const WebRect& webTrack, WebRect& webStartTrack, WebRect& webThumb, WebRect& webEndTrack)
{
    IntRect track(webTrack);
    IntRect startTrack;
    IntRect thumb;
    IntRect endTrack;
    m_theme.splitTrack(WebScrollbarThemeClientImpl(*scrollbar), track, startTrack, thumb, endTrack);

    webStartTrack = startTrack;
    webThumb = thumb;
    webEndTrack = endTrack;
}
Пример #2
0
WebRect WebScrollbarThemeGeometryNative::forwardButtonEndRect(
    WebScrollbar* scrollbar) {
  return m_theme.forwardButtonRect(WebScrollbarThemeClientImpl(*scrollbar),
                                   ForwardButtonEndPart, false);
}
Пример #3
0
WebRect WebScrollbarThemeGeometryNative::backButtonEndRect(
    WebScrollbar* scrollbar) {
  return m_theme.backButtonRect(WebScrollbarThemeClientImpl(*scrollbar),
                                BackButtonEndPart, false);
}
Пример #4
0
WebRect WebScrollbarThemeGeometryNative::thumbRect(WebScrollbar* scrollbar) {
  return m_theme.thumbRect(WebScrollbarThemeClientImpl(*scrollbar));
}
Пример #5
0
bool WebScrollbarThemeGeometryNative::hasThumb(WebScrollbar* scrollbar) {
  return m_theme.hasThumb(WebScrollbarThemeClientImpl(*scrollbar));
}
int WebScrollbarThemeGeometryNative::scrollbarThickness(WebScrollbar* scrollbar)
{
    return m_theme.scrollbarThickness(WebScrollbarThemeClientImpl(*scrollbar).controlSize());
}
int WebScrollbarThemeGeometryNative::minimumThumbLength(WebScrollbar* scrollbar)
{
    return m_theme.minimumThumbLength(WebScrollbarThemeClientImpl(*scrollbar));
}
int WebScrollbarThemeGeometryNative::trackLength(WebScrollbar* scrollbar)
{
    return m_theme.trackLength(WebScrollbarThemeClientImpl(*scrollbar));
}
int WebScrollbarThemeGeometryNative::thumbPosition(WebScrollbar* scrollbar)
{
    return m_theme.thumbPosition(WebScrollbarThemeClientImpl(*scrollbar));
}
WebRect WebScrollbarThemeGeometryNative::constrainTrackRectToTrackPieces(WebScrollbar* scrollbar, const WebRect& rect)
{
    return m_theme.constrainTrackRectToTrackPieces(WebScrollbarThemeClientImpl(*scrollbar), IntRect(rect));
}