/external/webkit/Source/WebCore/platform/chromium/ |
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...] |
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...] |
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...] |
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...] |
FramelessScrollView.cpp | 46 void FramelessScrollView::invalidateScrollbarRect(Scrollbar* scrollbar, const IntRect& rect) 50 dirtyRect.move(scrollbar->x(), scrollbar->y());
|
/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...] |
/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...] |
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...] |
ScrollableArea.h | 30 #include "Scrollbar.h" 74 void didAddVerticalScrollbar(Scrollbar*); 75 void willRemoveVerticalScrollbar(Scrollbar*); 76 void didAddHorizontalScrollbar(Scrollbar*); 77 void willRemoveHorizontalScrollbar(Scrollbar*); 86 virtual int scrollPosition(Scrollbar*) const = 0; 87 void invalidateScrollbar(Scrollbar*, const IntRect&); 97 // Convert points and rects between the scrollbar and its containing view. 100 virtual IntRect convertFromScrollbarToContainingView(const Scrollbar* scrollbar, const IntRect& scrollbarRect) cons [all...] |
/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/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...] |
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/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/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/efl/ |
ScrollbarThemeEfl.h | 42 virtual void registerScrollbar(Scrollbar* scrollbar); 43 virtual void unregisterScrollbar(Scrollbar* scrollbar);
|
ScrollbarThemeEfl.cpp | 52 void ScrollbarThemeEfl::registerScrollbar(Scrollbar* scrollbar) 56 void ScrollbarThemeEfl::unregisterScrollbar(Scrollbar* scrollbar)
|
/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/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...] |
/external/webkit/Source/WebCore/page/ |
MouseEventWithHitTestResults.cpp | 41 Scrollbar* MouseEventWithHitTestResults::scrollbar() const function in class:WebCore::MouseEventWithHitTestResults 43 return m_hitTestResult.scrollbar();
|
MouseEventWithHitTestResults.h | 29 class Scrollbar; 38 Scrollbar* scrollbar() const;
|
/external/webkit/Source/WebCore/accessibility/ |
AccessibilityScrollbar.cpp | 35 #include "Scrollbar.h" 39 AccessibilityScrollbar::AccessibilityScrollbar(Scrollbar* scrollbar) 40 : m_scrollbar(scrollbar) 43 ASSERT(scrollbar); 46 PassRefPtr<AccessibilityScrollbar> AccessibilityScrollbar::create(Scrollbar* scrollbar) 48 return adoptRef(new AccessibilityScrollbar(scrollbar));
|