Home | History | Annotate | Download | only in chromium

Lines Matching refs:controlSize

180 int ScrollbarThemeChromiumMac::scrollbarThickness(ScrollbarControlSize controlSize)
182 return cScrollbarThickness[controlSize];
204 scrollbar->height()) >= 2 * (cRealButtonLength[scrollbar->controlSize()] - cButtonHitInset[scrollbar->controlSize()]);
211 scrollbar->height()) >= 2 * cButtonInset[scrollbar->controlSize()] + cThumbMinLength[scrollbar->controlSize()] + 1;
214 static IntRect buttonRepaintRect(const IntRect& buttonRect, ScrollbarOrientation orientation, ScrollbarControlSize controlSize, bool start)
218 paintRect.setWidth(cRealButtonLength[controlSize]);
220 paintRect.setX(buttonRect.x() - (cRealButtonLength[controlSize] - buttonRect.width()));
222 paintRect.setHeight(cRealButtonLength[controlSize]);
224 paintRect.setY(buttonRect.y() - (cRealButtonLength[controlSize] - buttonRect.height()));
240 int thickness = scrollbarThickness(scrollbar->controlSize());
244 result = IntRect(scrollbar->x(), scrollbar->y(), cOuterButtonLength[scrollbar->controlSize()] + painting ? cOuterButtonOverlap : 0, thickness);
246 result = IntRect(scrollbar->x(), scrollbar->y(), thickness, cOuterButtonLength[scrollbar->controlSize()] + painting ? cOuterButtonOverlap : 0);
252 int start = part == BackButtonStartPart ? scrollbar->x() : scrollbar->x() + scrollbar->width() - cOuterButtonLength[scrollbar->controlSize()] - cButtonLength[scrollbar->controlSize()];
253 result = IntRect(start, scrollbar->y(), cButtonLength[scrollbar->controlSize()], thickness);
255 int start = part == BackButtonStartPart ? scrollbar->y() : scrollbar->y() + scrollbar->height() - cOuterButtonLength[scrollbar->controlSize()] - cButtonLength[scrollbar->controlSize()];
256 result = IntRect(scrollbar->x(), start, thickness, cButtonLength[scrollbar->controlSize()]);
260 return buttonRepaintRect(result, scrollbar->orientation(), scrollbar->controlSize(), part == BackButtonStartPart);
274 int thickness = scrollbarThickness(scrollbar->controlSize());
275 int outerButtonLength = cOuterButtonLength[scrollbar->controlSize()];
276 int buttonLength = cButtonLength[scrollbar->controlSize()];
300 return buttonRepaintRect(result, scrollbar->orientation(), scrollbar->controlSize(), part == ForwardButtonStartPart);
310 int thickness = scrollbarThickness(scrollbar->controlSize());
313 int outerButtonLength = cOuterButtonLength[scrollbar->controlSize()];
314 int buttonLength = cButtonLength[scrollbar->controlSize()];
343 return cThumbMinLength[scrollbar->controlSize()];
388 trackInfo.kind = scrollbar->controlSize() == RegularScrollbar ? kThemeMediumScrollBar : kThemeSmallScrollBar;
477 scrollbar->controlSize() == RegularScrollbar ? PlatformBridge::SizeRegular : PlatformBridge::SizeSmall,