/external/webkit/WebCore/platform/chromium/ |
ScrollbarThemeChromiumWin.cpp | 37 #include "Scrollbar.h" 48 // The scrollbar size in DumpRenderTree on the Mac - so we can match their 54 // scrollbar thumb back to its origin. These calculations are based on 55 // observing the behavior of the MSVC8 main window scrollbar + some 60 IntRect ScrollbarThemeChromium::trackRect(Scrollbar* scrollbar, bool) 62 IntSize bs = buttonSize(scrollbar); 63 // The buttons at the top and bottom of the scrollbar are square, so the 64 // thickness of the scrollbar is also their height. 65 int thickness = scrollbarThickness(scrollbar->controlSize()) [all...] |
ScrollbarThemeChromiumMac.mm | 43 // Because we want to draw tickmarks in the scrollbar, we must maintain a fork. 54 static HashSet<Scrollbar*>* gScrollbars; 76 HashSet<Scrollbar*>::iterator end = gScrollbars->end(); 77 for (HashSet<Scrollbar*>::iterator it = gScrollbars->begin(); it != end; ++it) { 136 void ScrollbarThemeChromiumMac::registerScrollbar(Scrollbar* scrollbar) 139 gScrollbars = new HashSet<Scrollbar*>; 140 gScrollbars->add(scrollbar); 143 void ScrollbarThemeChromiumMac::unregisterScrollbar(Scrollbar* scrollbar) [all...] |
ScrollbarThemeChromium.cpp | 32 #include "Scrollbar.h" 37 // This file contains scrollbar theme code that is cross platform. Additional 43 bool ScrollbarThemeChromium::hasThumb(Scrollbar* scrollbar) 47 return thumbLength(scrollbar) > 0; 50 IntRect ScrollbarThemeChromium::backButtonRect(Scrollbar* scrollbar, ScrollbarPart part, bool) 56 IntSize size = buttonSize(scrollbar); 57 return IntRect(scrollbar->x(), scrollbar->y(), size.width(), size.height()) [all...] |
FramelessScrollView.cpp | 45 void FramelessScrollView::invalidateScrollbarRect(Scrollbar* scrollbar, const IntRect& rect) 49 dirtyRect.move(scrollbar->x(), scrollbar->y());
|
ScrollbarThemeChromiumLinux.cpp | 38 #include "Scrollbar.h" 97 // the scrollbar. We might be able to more closely approximate its 103 // the native scrollbar. We render our own version, but we make 106 // from the system scrollbar and use those colors to draw our 107 // scrollbar. 132 IntRect ScrollbarThemeChromium::trackRect(Scrollbar* scrollbar, bool) 134 IntSize bs = buttonSize(scrollbar); 135 int thickness = scrollbarThickness(scrollbar->controlSize()); 136 if (scrollbar->orientation() == HorizontalScrollbar [all...] |
/external/webkit/WebCore/platform/win/ |
ScrollbarThemeSafari.cpp | 35 #include "Scrollbar.h" 107 bool ScrollbarThemeSafari::hasButtons(Scrollbar* scrollbar) 109 return scrollbar->enabled() && (scrollbar->orientation() == HorizontalScrollbar ? 110 scrollbar->width() : 111 scrollbar->height()) >= 2 * (cRealButtonLength[scrollbar->controlSize()] - cButtonHitInset[scrollbar->controlSize()]); 114 bool ScrollbarThemeSafari::hasThumb(Scrollbar* scrollbar [all...] |
ScrollbarThemeWin.cpp | 31 #include "Scrollbar.h" 76 // scrollbar thumb back to its origin. These calculations are based on 77 // observing the behavior of the MSVC8 main window scrollbar + some 85 scrollbarTheme = OpenThemeData(0, L"Scrollbar"); 132 bool ScrollbarThemeWin::hasThumb(Scrollbar* scrollbar) 134 return thumbLength(scrollbar) > 0; 137 IntRect ScrollbarThemeWin::backButtonRect(Scrollbar* scrollbar, ScrollbarPart part, bool) 146 // we have < 34 pixels left. This allows the scrollbar [all...] |
PopupMenuWin.cpp | 39 #include "Scrollbar.h" 324 // We need room for a scrollbar 663 void PopupMenu::valueChanged(Scrollbar* scrollBar) 670 int offset = scrollBar->value(); 699 void PopupMenu::invalidateScrollbarRect(Scrollbar* scrollbar, const IntRect& rect) 702 scrollRect.move(scrollbar->x(), scrollbar->y()); 780 if (!scrollbar()) [all...] |
/external/webkit/WebCore/platform/ |
ScrollbarThemeComposite.cpp | 36 #include "Scrollbar.h" 56 bool ScrollbarThemeComposite::paint(Scrollbar* scrollbar, GraphicsContext* graphicsContext, const IntRect& damageRect) 65 if (hasButtons(scrollbar)) { 66 backButtonStartPaintRect = backButtonRect(scrollbar, BackButtonStartPart, true); 69 backButtonEndPaintRect = backButtonRect(scrollbar, BackButtonEndPart, true); 72 forwardButtonStartPaintRect = forwardButtonRect(scrollbar, ForwardButtonStartPart, true); 75 forwardButtonEndPaintRect = forwardButtonRect(scrollbar, ForwardButtonEndPart, true); 83 IntRect trackPaintRect = trackRect(scrollbar, true); 86 bool thumbPresent = hasThumb(scrollbar); [all...] |
ScrollbarClient.h | 30 #include "Scrollbar.h" 38 virtual void valueChanged(Scrollbar*) = 0; 40 virtual void invalidateScrollbarRect(Scrollbar*, const IntRect&) = 0; 48 // Convert points and rects between the scrollbar and its containing view. 51 virtual IntRect convertFromScrollbarToContainingView(const Scrollbar* scrollbar, const IntRect& scrollbarRect) const 53 return scrollbar->Widget::convertToContainingView(scrollbarRect); 56 virtual IntRect convertFromContainingViewToScrollbar(const Scrollbar* scrollbar, const IntRect& parentRect) const 58 return scrollbar->Widget::convertFromContainingView(parentRect) [all...] |
ScrollbarTheme.h | 36 class Scrollbar; 43 virtual bool paint(Scrollbar*, GraphicsContext*, const IntRect& /*damageRect*/) { return false; } 44 virtual ScrollbarPart hitTest(Scrollbar*, const PlatformMouseEvent&) { return NoPart; } 56 void invalidateParts(Scrollbar* scrollbar, ScrollbarControlPartMask mask) 59 invalidatePart(scrollbar, BackButtonStartPart); 61 invalidatePart(scrollbar, ForwardButtonStartPart); 63 invalidatePart(scrollbar, BackTrackPart); 65 invalidatePart(scrollbar, ThumbPart); 67 invalidatePart(scrollbar, ForwardTrackPart) [all...] |
Scrollbar.cpp | 27 #include "Scrollbar.h" 46 PassRefPtr<Scrollbar> Scrollbar::createNativeScrollbar(ScrollbarClient* client, ScrollbarOrientation orientation, ScrollbarControlSize size) 48 return adoptRef(new Scrollbar(client, orientation, size)); 52 int Scrollbar::maxOverlapBetweenPages() 58 Scrollbar::Scrollbar(ScrollbarClient* client, ScrollbarOrientation orientation, ScrollbarControlSize controlSize, 75 , m_scrollTimer(this, &Scrollbar::autoscrollTimerFired) 85 // scrollbar thickness and use it when sizing scrollbars (rather than leaving one dimension of the scrollbar [all...] |
/external/webkit/WebCore/rendering/ |
RenderScrollbarTheme.cpp | 39 void RenderScrollbarTheme::buttonSizesAlongTrackAxis(Scrollbar* scrollbar, int& beforeSize, int& afterSize) 41 IntRect firstButton = backButtonRect(scrollbar, BackButtonStartPart); 42 IntRect secondButton = forwardButtonRect(scrollbar, ForwardButtonStartPart); 43 IntRect thirdButton = backButtonRect(scrollbar, BackButtonEndPart); 44 IntRect fourthButton = forwardButtonRect(scrollbar, ForwardButtonEndPart); 45 if (scrollbar->orientation() == HorizontalScrollbar) { 54 bool RenderScrollbarTheme::hasButtons(Scrollbar* scrollbar) 58 buttonSizesAlongTrackAxis(scrollbar, startSize, endSize) [all...] |
RenderScrollbarTheme.h | 34 class Scrollbar; 49 virtual bool shouldCenterOnThumb(Scrollbar* scrollbar, const PlatformMouseEvent& event) { return ScrollbarTheme::nativeTheme()->shouldCenterOnThumb(scrollbar, event); } 54 virtual void registerScrollbar(Scrollbar* scrollbar) { return ScrollbarTheme::nativeTheme()->registerScrollbar(scrollbar); } 55 virtual void unregisterScrollbar(Scrollbar* scrollbar) { return ScrollbarTheme::nativeTheme()->unregisterScrollbar(scrollbar); } [all...] |
RenderScrollbar.h | 30 #include "Scrollbar.h" 39 class RenderScrollbar : public Scrollbar { 44 friend class Scrollbar; 45 static PassRefPtr<Scrollbar> createCustomScrollbar(ScrollbarClient*, ScrollbarOrientation, RenderBox*); 83 inline RenderScrollbar* toRenderScrollbar(Scrollbar* scrollbar) 85 ASSERT(!scrollbar || scrollbar->isCustomScrollbar()); 86 return static_cast<RenderScrollbar*>(scrollbar);
|
RenderDataGrid.cpp | 38 #include "Scrollbar.h" 173 void RenderDataGrid::valueChanged(Scrollbar*) 178 void RenderDataGrid::invalidateScrollbarRect(Scrollbar*, const IntRect&) 190 IntRect RenderDataGrid::convertFromScrollbarToContainingView(const Scrollbar* scrollbar, const IntRect& scrollbarRect) const 198 int scrollbarLeft = width() - borderRight() - scrollbar->width(); 205 IntRect RenderDataGrid::convertFromContainingViewToScrollbar(const Scrollbar* scrollbar, const IntRect& parentRect) const 213 int scrollbarLeft = width() - borderRight() - scrollbar->width(); 219 IntPoint RenderDataGrid::convertFromScrollbarToContainingView(const Scrollbar* scrollbar, const IntPoint& scrollbarPoint) cons [all...] |
/external/webkit/WebCore/platform/haiku/ |
ScrollbarThemeHaiku.cpp | 31 #include "Scrollbar.h" 59 // FIXME: Should we make a distinction between a Small and a Regular Scrollbar? 63 bool ScrollbarThemeHaiku::hasButtons(Scrollbar* scrollbar) 65 return scrollbar->enabled(); 68 bool ScrollbarThemeHaiku::hasThumb(Scrollbar* scrollbar) 70 return scrollbar->enabled() && thumbLength(scrollbar) > 0; 73 IntRect ScrollbarThemeHaiku::backButtonRect(Scrollbar* scrollbar, ScrollbarPart part, bool [all...] |
/external/webkit/WebCore/platform/mac/ |
ScrollbarThemeMac.mm | 41 static HashSet<Scrollbar*>* gScrollbars; 63 HashSet<Scrollbar*>::iterator end = gScrollbars->end(); 64 for (HashSet<Scrollbar*>::iterator it = gScrollbars->begin(); it != end; ++it) { 123 void ScrollbarThemeMac::registerScrollbar(Scrollbar* scrollbar) 126 gScrollbars = new HashSet<Scrollbar*>; 127 gScrollbars->add(scrollbar); 130 void ScrollbarThemeMac::unregisterScrollbar(Scrollbar* scrollbar) 132 gScrollbars->remove(scrollbar); [all...] |
/external/webkit/WebCore/platform/wx/ |
ScrollbarThemeWx.cpp | 32 #include "Scrollbar.h" 67 bool ScrollbarThemeWx::hasThumb(Scrollbar* scrollbar) 71 return thumbLength(scrollbar) > 0; 74 int ScrollbarThemeWx::minimumThumbLength(Scrollbar* scrollbar) 79 IntSize ScrollbarThemeWx::buttonSize(Scrollbar*) 88 void ScrollbarThemeWx::splitTrack(Scrollbar* scrollbar, const IntRect& unconstrainedTrackRect, IntRect& beforeThumbRect, IntRect& thumbRect, IntRect& afterThumbRect) 90 ScrollbarThemeComposite::splitTrack(scrollbar, unconstrainedTrackRect, beforeThumbRect, thumbRect, afterThumbRect) [all...] |
/external/webkit/WebCore/platform/qt/ |
ScrollbarThemeQt.cpp | 34 #include "Scrollbar.h" 97 static QStyleOptionSlider* styleOptionSlider(Scrollbar* scrollbar, QWidget* widget = 0) 107 opt.rect = scrollbar->frameRect(); 108 if (scrollbar->enabled()) 110 if (scrollbar->controlSize() != RegularScrollbar) 112 opt.orientation = (scrollbar->orientation() == VerticalScrollbar) ? Qt::Vertical : Qt::Horizontal; 113 if (scrollbar->orientation() == HorizontalScrollbar) 115 opt.sliderValue = scrollbar->value(); 117 opt.pageStep = scrollbar->visibleSize() [all...] |
/external/webkit/WebCore/accessibility/ |
AccessibilityScrollbar.h | 36 class Scrollbar; 42 void setScrollbar(Scrollbar* scrollbar) { m_scrollbar = scrollbar; } 59 Scrollbar* m_scrollbar;
|
/external/webkit/WebCore/page/ |
MouseEventWithHitTestResults.cpp | 56 Scrollbar* MouseEventWithHitTestResults::scrollbar() const function in class:WebCore::MouseEventWithHitTestResults 58 return m_hitTestResult.scrollbar();
|
MouseEventWithHitTestResults.h | 29 class Scrollbar; 39 Scrollbar* scrollbar() const;
|
/external/webkit/WebCore/page/gtk/ |
EventHandlerGtk.cpp | 41 #include "Scrollbar.h" 126 // horizontal scrollbar while scrolling with the wheel; we need to 131 return result.scrollbar() && result.scrollbar()->orientation() == HorizontalScrollbar;
|
/external/webkit/WebCore/platform/wx/wxcode/mac/carbon/ |
scrollbar_render.cpp | 94 trackInfo.trackInfo.scrollbar.viewsize = step; 99 trackInfo.trackInfo.scrollbar.pressState = wxScrollbarPartToHIPressedState(focusPart);
|