/external/webkit/Source/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...] |
/external/webkit/Source/WebCore/platform/win/ |
ScrollbarThemeSafari.cpp | 36 #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 | 32 #include "Scrollbar.h" 77 // scrollbar thumb back to its origin. These calculations are based on 78 // observing the behavior of the MSVC8 main window scrollbar + some 86 scrollbarTheme = OpenThemeData(0, L"Scrollbar"); 133 bool ScrollbarThemeWin::hasThumb(Scrollbar* scrollbar) 135 return thumbLength(scrollbar) > 0; 138 IntRect ScrollbarThemeWin::backButtonRect(Scrollbar* scrollbar, ScrollbarPart part, bool) 147 // we have < 34 pixels left. This allows the scrollbar [all...] |
ScrollbarThemeWin.h | 45 virtual bool hasButtons(Scrollbar*) { return true; } 46 virtual bool hasThumb(Scrollbar*); 48 virtual IntRect backButtonRect(Scrollbar*, ScrollbarPart, bool painting = false); 49 virtual IntRect forwardButtonRect(Scrollbar*, ScrollbarPart, bool painting = false); 50 virtual IntRect trackRect(Scrollbar*, bool painting = false); 52 virtual bool shouldCenterOnThumb(Scrollbar*, const PlatformMouseEvent&); 53 virtual bool shouldSnapBackToDragOrigin(Scrollbar*, const PlatformMouseEvent&); 55 virtual void paintTrackBackground(GraphicsContext*, Scrollbar*, const IntRect&); 56 virtual void paintTrackPiece(GraphicsContext*, Scrollbar*, const IntRect&, ScrollbarPart); 57 virtual void paintButton(GraphicsContext*, Scrollbar*, const IntRect&, ScrollbarPart) [all...] |
ScrollbarThemeSafari.h | 44 virtual bool hasButtons(Scrollbar*); 45 virtual bool hasThumb(Scrollbar*); 47 virtual IntRect backButtonRect(Scrollbar*, ScrollbarPart, bool painting = false); 48 virtual IntRect forwardButtonRect(Scrollbar*, ScrollbarPart, bool painting = false); 49 virtual IntRect trackRect(Scrollbar*, bool painting = false); 51 virtual int minimumThumbLength(Scrollbar*); 53 virtual bool shouldCenterOnThumb(Scrollbar*, const PlatformMouseEvent&); 55 virtual void paintTrackBackground(GraphicsContext*, Scrollbar*, const IntRect&); 56 virtual void paintButton(GraphicsContext*, Scrollbar*, const IntRect&, ScrollbarPart); 57 virtual void paintThumb(GraphicsContext*, Scrollbar*, const IntRect&) [all...] |
/external/webkit/Source/WebCore/platform/ |
ScrollbarThemeComposite.cpp | 36 #include "Scrollbar.h" 58 bool ScrollbarThemeComposite::paint(Scrollbar* scrollbar, GraphicsContext* graphicsContext, const IntRect& damageRect) 67 if (hasButtons(scrollbar)) { 68 backButtonStartPaintRect = backButtonRect(scrollbar, BackButtonStartPart, true); 71 backButtonEndPaintRect = backButtonRect(scrollbar, BackButtonEndPart, true); 74 forwardButtonStartPaintRect = forwardButtonRect(scrollbar, ForwardButtonStartPart, true); 77 forwardButtonEndPaintRect = forwardButtonRect(scrollbar, ForwardButtonEndPart, true); 85 IntRect trackPaintRect = trackRect(scrollbar, true); 88 bool thumbPresent = hasThumb(scrollbar); [all...] |
ScrollbarThemeComposite.h | 35 virtual bool paint(Scrollbar*, GraphicsContext* context, const IntRect& damageRect); 37 virtual ScrollbarPart hitTest(Scrollbar*, const PlatformMouseEvent&); 39 virtual void invalidatePart(Scrollbar*, ScrollbarPart); 41 virtual int thumbPosition(Scrollbar*); 42 virtual int thumbLength(Scrollbar*); 43 virtual int trackPosition(Scrollbar*); 44 virtual int trackLength(Scrollbar*); 49 virtual bool hasButtons(Scrollbar*) = 0; 50 virtual bool hasThumb(Scrollbar*) = 0; 52 virtual IntRect backButtonRect(Scrollbar*, ScrollbarPart, bool painting = false) = 0 [all...] |
ScrollbarTheme.h | 36 class Scrollbar; 45 virtual bool paint(Scrollbar*, GraphicsContext*, const IntRect& /*damageRect*/) { return false; } 46 virtual ScrollbarPart hitTest(Scrollbar*, const PlatformMouseEvent&) { return NoPart; } 59 void invalidateParts(Scrollbar* scrollbar, ScrollbarControlPartMask mask) 62 invalidatePart(scrollbar, BackButtonStartPart); 64 invalidatePart(scrollbar, ForwardButtonStartPart); 66 invalidatePart(scrollbar, BackTrackPart); 68 invalidatePart(scrollbar, ThumbPart); 70 invalidatePart(scrollbar, ForwardTrackPart) [all...] |
ScrollableArea.cpp | 61 Scrollbar* scrollbar; local 64 scrollbar = verticalScrollbar(); 67 scrollbar = horizontalScrollbar(); 70 if (!scrollbar) 76 step = scrollbar->lineStep(); 79 step = scrollbar->pageStep(); 82 step = scrollbar->totalSize(); 85 step = scrollbar->pixelStep(); 135 Scrollbar* verticalScrollbar = this->verticalScrollbar() [all...] |
/external/webkit/Source/WebCore/platform/mac/ |
ScrollbarThemeMac.mm | 47 typedef HashMap<Scrollbar*, RetainPtr<WKScrollbarPainterRef> > ScrollbarPainterMap; 49 typedef HashSet<Scrollbar*> ScrollbarPainterMap; 156 void ScrollbarThemeMac::registerScrollbar(Scrollbar* scrollbar) 159 bool isHorizontal = scrollbar->orientation() == HorizontalScrollbar; 160 WKScrollbarPainterRef scrollbarPainter = wkMakeScrollbarPainter(scrollbar->controlSize(), isHorizontal); 161 scrollbarMap()->add(scrollbar, scrollbarPainter); 163 scrollbarMap()->add(scrollbar); 167 void ScrollbarThemeMac::unregisterScrollbar(Scrollbar* scrollbar) [all...] |
/external/webkit/Source/WebCore/platform/wx/ |
ScrollbarThemeWx.cpp | 33 #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/Source/WebCore/platform/gtk/ |
ScrollbarThemeGtk.cpp | 32 #include "Scrollbar.h" 36 static HashSet<Scrollbar*>* gScrollbars; 48 void ScrollbarThemeGtk::registerScrollbar(Scrollbar* scrollbar) 51 gScrollbars = new HashSet<Scrollbar*>; 52 gScrollbars->add(scrollbar); 55 void ScrollbarThemeGtk::unregisterScrollbar(Scrollbar* scrollbar) 57 gScrollbars->remove(scrollbar); 69 // Update the thickness of every interior frame scrollbar widget. Th 74 Scrollbar* scrollbar = (*it); local [all...] |
ScrollbarThemeGtk.h | 33 class Scrollbar; 40 virtual bool hasButtons(Scrollbar*) { return true; } 41 virtual bool hasThumb(Scrollbar*); 42 virtual IntRect backButtonRect(Scrollbar*, ScrollbarPart, bool); 43 virtual IntRect forwardButtonRect(Scrollbar*, ScrollbarPart, bool); 44 virtual IntRect trackRect(Scrollbar*, bool); 45 IntRect thumbRect(Scrollbar*, const IntRect& unconstrainedTrackRect); 46 bool paint(Scrollbar*, GraphicsContext*, const IntRect& damageRect); 47 void paintScrollbarBackground(GraphicsContext*, Scrollbar*); 48 void paintTrackBackground(GraphicsContext*, Scrollbar*, const IntRect&) [all...] |
ScrollbarThemeGtk2.cpp | 35 #include "Scrollbar.h" 55 GtkWidget* scrollbar = static_cast<RenderThemeGtk*>(RenderTheme::defaultTheme().get())->gtkHScrollbar(); local 56 gtk_widget_style_get(scrollbar, 63 m_minThumbLength = gtk_range_get_min_slider_size(GTK_RANGE(scrollbar)); 67 static GtkWidget* getWidgetForScrollbar(Scrollbar* scrollbar) 70 return scrollbar->orientation() == VerticalScrollbar ? theme->gtkVScrollbar() : theme->gtkHScrollbar(); 73 void ScrollbarThemeGtk::paintTrackBackground(GraphicsContext* context, Scrollbar* scrollbar, const IntRect& rect) 76 // should be the full size of the scrollbar, but if is false, it should only be th [all...] |
ScrollbarThemeGtk3.cpp | 35 #include "Scrollbar.h" 67 void ScrollbarThemeGtk::paintTrackBackground(GraphicsContext* context, Scrollbar* scrollbar, const IntRect& rect) 70 // should be the full size of the scrollbar, but if is false, it should only be the 74 fullScrollbarRect = IntRect(scrollbar->x(), scrollbar->y(), scrollbar->width(), scrollbar->height()); 89 void ScrollbarThemeGtk::paintScrollbarBackground(GraphicsContext* context, Scrollbar* scrollbar) [all...] |
/external/webkit/Source/WebCore/platform/chromium/ |
ScrollbarThemeChromiumMac.mm | 46 // Because we want to draw tickmarks in the scrollbar, we must maintain a fork. 58 static HashSet<Scrollbar*>* gScrollbars; 80 HashSet<Scrollbar*>::iterator end = gScrollbars->end(); 81 for (HashSet<Scrollbar*>::iterator it = gScrollbars->begin(); it != end; ++it) { 140 void ScrollbarThemeChromiumMac::registerScrollbar(Scrollbar* scrollbar) 143 gScrollbars = new HashSet<Scrollbar*>; 144 gScrollbars->add(scrollbar); 147 void ScrollbarThemeChromiumMac::unregisterScrollbar(Scrollbar* scrollbar) [all...] |
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 76 bool ScrollbarThemeChromiumWin::shouldSnapBackToDragOrigin(Scrollbar* scrollbar, const PlatformMouseEvent& evt) 80 IntRect rect = trackRect(scrollbar); 81 const bool horz = scrollbar->orientation() == HorizontalScrollbar; 82 const int thickness = scrollbarThickness(scrollbar->controlSize()); 87 IntPoint mousePosition = scrollbar->convertFromContainingWindow(evt.pos()) [all...] |
ScrollbarThemeChromium.cpp | 33 #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...] |
ScrollbarThemeChromiumLinux.cpp | 36 #include "Scrollbar.h" 53 void ScrollbarThemeChromiumLinux::paintTrackPiece(GraphicsContext* gc, Scrollbar* scrollbar, const IntRect& rect, ScrollbarPart partType) 55 PlatformBridge::ThemePaintState state = scrollbar->hoveredPart() == partType ? PlatformBridge::StateHover : PlatformBridge::StateNormal; 56 IntRect alignRect = trackRect(scrollbar, false); 64 scrollbar->orientation() == HorizontalScrollbar ? PlatformBridge::PartScrollbarHorizontalTrack : PlatformBridge::PartScrollbarVerticalTrack, 70 void ScrollbarThemeChromiumLinux::paintButton(GraphicsContext* gc, Scrollbar* scrollbar, const IntRect& rect, ScrollbarPart part) 76 if (scrollbar->orientation() == HorizontalScrollbar) { 93 if ((checkMin && (scrollbar->currentPos() <= 0) [all...] |
ScrollbarThemeChromium.h | 40 // This class contains the scrollbar code which is shared between Chromium 44 virtual bool hasButtons(Scrollbar*) { return true; } 45 virtual bool hasThumb(Scrollbar*); 47 virtual IntRect backButtonRect(Scrollbar*, ScrollbarPart, bool painting = false); 48 virtual IntRect forwardButtonRect(Scrollbar*, ScrollbarPart, bool painting = false); 49 virtual IntRect trackRect(Scrollbar*, bool painting = false); 51 virtual void paintTrackBackground(GraphicsContext*, Scrollbar*, const IntRect&); 52 virtual void paintTickmarks(GraphicsContext*, Scrollbar*, const IntRect&); 54 virtual IntSize buttonSize(Scrollbar*) = 0;
|
ScrollbarThemeChromiumWin.h | 41 virtual bool shouldSnapBackToDragOrigin(Scrollbar*, const PlatformMouseEvent&); 44 virtual void paintTrackPiece(GraphicsContext*, Scrollbar*, const IntRect&, ScrollbarPart); 45 virtual void paintButton(GraphicsContext*, Scrollbar*, const IntRect&, ScrollbarPart); 46 virtual void paintThumb(GraphicsContext*, Scrollbar*, const IntRect&); 47 virtual bool shouldCenterOnThumb(Scrollbar*, const PlatformMouseEvent&); 48 virtual IntSize buttonSize(Scrollbar*); 51 int getThemeState(Scrollbar*, ScrollbarPart) const; 52 int getThemeArrowState(Scrollbar*, ScrollbarPart) const; 53 int getClassicThemeState(Scrollbar*, ScrollbarPart) const;
|
/external/webkit/Source/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...] |
ScrollbarThemeHaiku.h | 33 class Scrollbar; 42 virtual bool hasButtons(Scrollbar*); 43 virtual bool hasThumb(Scrollbar*); 45 virtual IntRect backButtonRect(Scrollbar*, ScrollbarPart, bool painting); 46 virtual IntRect forwardButtonRect(Scrollbar*, ScrollbarPart, bool painting); 47 virtual IntRect trackRect(Scrollbar*, bool painting); 49 virtual void paintScrollbarBackground(GraphicsContext*, Scrollbar*); 50 virtual void paintButton(GraphicsContext*, Scrollbar*, const IntRect&, ScrollbarPart); 51 virtual void paintThumb(GraphicsContext*, Scrollbar*, const IntRect&);
|
/external/webkit/Source/WebCore/platform/qt/ |
ScrollbarThemeQt.cpp | 35 #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; 114 if (scrollbar->orientation() == HorizontalScrollbar) 119 opt.sliderValue = scrollbar->value(); 121 opt.pageStep = scrollbar->pageStep() [all...] |