/external/chromium_org/third_party/WebKit/Source/core/platform/chromium/ |
H A D | ScrollbarThemeChromium.cpp | 37 // This file contains scrollbar theme code that is cross platform. Additional 43 bool ScrollbarThemeChromium::hasThumb(ScrollbarThemeClient* scrollbar) argument 47 return thumbLength(scrollbar) > 0; 50 IntRect ScrollbarThemeChromium::backButtonRect(ScrollbarThemeClient* scrollbar, ScrollbarPart part, bool) argument 56 IntSize size = buttonSize(scrollbar); 57 return IntRect(scrollbar->x(), scrollbar->y(), size.width(), size.height()); 60 IntRect ScrollbarThemeChromium::forwardButtonRect(ScrollbarThemeClient* scrollbar, ScrollbarPart part, bool) argument 66 IntSize size = buttonSize(scrollbar); 68 if (scrollbar 78 trackRect(ScrollbarThemeClient* scrollbar, bool) argument 94 paintTrackBackground(GraphicsContext* context, ScrollbarThemeClient* scrollbar, const IntRect& rect) argument 101 paintTickmarks(GraphicsContext* context, ScrollbarThemeClient* scrollbar, const IntRect& rect) argument [all...] |
H A D | ScrollbarThemeChromiumWin.cpp | 50 // The scrollbar size in DumpRenderTree on the Mac - so we can match their 56 // scrollbar thumb back to its origin. These calculations are based on 57 // observing the behavior of the MSVC8 main window scrollbar + some 78 bool ScrollbarThemeChromiumWin::shouldSnapBackToDragOrigin(ScrollbarThemeClient* scrollbar, const PlatformMouseEvent& evt) argument 82 IntRect rect = trackRect(scrollbar); 83 const bool horz = scrollbar->orientation() == HorizontalScrollbar; 84 const int thickness = scrollbarThickness(scrollbar->controlSize()); 89 IntPoint mousePosition = scrollbar->convertFromContainingWindow(evt.position()); 90 mousePosition.move(scrollbar->x(), scrollbar 96 paintTrackPiece(GraphicsContext* gc, ScrollbarThemeClient* scrollbar, const IntRect& rect, ScrollbarPart partType) argument 113 paintButton(GraphicsContext* gc, ScrollbarThemeClient* scrollbar, const IntRect& rect, ScrollbarPart part) argument 128 paintThumb(GraphicsContext* gc, ScrollbarThemeClient* scrollbar, const IntRect& rect) argument 140 getThemeState(ScrollbarThemeClient* scrollbar, ScrollbarPart part) const argument 159 getThemeArrowState(ScrollbarThemeClient* scrollbar, ScrollbarPart part) const argument 209 getClassicThemeState(ScrollbarThemeClient* scrollbar, ScrollbarPart part) const argument 228 buttonSize(ScrollbarThemeClient* scrollbar) argument [all...] |
H A D | ScrollbarThemeChromiumOverlay.cpp | 53 int ScrollbarThemeChromiumOverlay::thumbPosition(ScrollbarThemeClient* scrollbar) argument 55 if (!scrollbar->totalSize()) 58 int trackLen = trackLength(scrollbar); 59 float proportion = static_cast<float>(scrollbar->currentPos()) / scrollbar->totalSize(); 63 int ScrollbarThemeChromiumOverlay::thumbLength(ScrollbarThemeClient* scrollbar) argument 65 int trackLen = trackLength(scrollbar); 67 if (!scrollbar->totalSize()) 70 float proportion = (float)scrollbar->visibleSize() / scrollbar 76 hasThumb(ScrollbarThemeClient* scrollbar) argument 91 trackRect(ScrollbarThemeClient* scrollbar, bool) argument 101 paintThumb(GraphicsContext* context, ScrollbarThemeClient* scrollbar, const IntRect& rect) argument [all...] |
H A D | ScrollbarThemeChromiumDefault.cpp | 63 void ScrollbarThemeChromiumDefault::paintTrackPiece(GraphicsContext* gc, ScrollbarThemeClient* scrollbar, const IntRect& rect, ScrollbarPart partType) argument 65 WebKit::WebThemeEngine::State state = scrollbar->hoveredPart() == partType ? WebKit::WebThemeEngine::StateHover : WebKit::WebThemeEngine::StateNormal; 66 IntRect alignRect = trackRect(scrollbar, false); 73 WebKit::Platform::current()->themeEngine()->paint(canvas, scrollbar->orientation() == HorizontalScrollbar ? WebKit::WebThemeEngine::PartScrollbarHorizontalTrack : WebKit::WebThemeEngine::PartScrollbarVerticalTrack, state, WebKit::WebRect(rect), &extraParams); 76 void ScrollbarThemeChromiumDefault::paintButton(GraphicsContext* gc, ScrollbarThemeClient* scrollbar, const IntRect& rect, ScrollbarPart part) argument 83 if (scrollbar->orientation() == HorizontalScrollbar) { 100 if ((checkMin && (scrollbar->currentPos() <= 0)) 101 || (checkMax && scrollbar->currentPos() == scrollbar->maximum())) { 104 if (part == scrollbar 112 paintThumb(GraphicsContext* gc, ScrollbarThemeClient* scrollbar, const IntRect& rect) argument 130 buttonSize(ScrollbarThemeClient* scrollbar) argument 142 minimumThumbLength(ScrollbarThemeClient* scrollbar) argument [all...] |
H A D | FramelessScrollView.cpp | 45 void FramelessScrollView::invalidateScrollbarRect(Scrollbar* scrollbar, const IntRect& rect) argument 49 dirtyRect.move(scrollbar->x(), scrollbar->y());
|
/external/chromium_org/third_party/WebKit/Source/core/platform/ |
H A D | ScrollbarTheme.cpp | 45 bool ScrollbarTheme::paint(ScrollbarThemeClient* scrollbar, GraphicsContext* graphicsContext, const IntRect& damageRect) argument 54 if (hasButtons(scrollbar)) { 55 backButtonStartPaintRect = backButtonRect(scrollbar, BackButtonStartPart, true); 58 backButtonEndPaintRect = backButtonRect(scrollbar, BackButtonEndPart, true); 61 forwardButtonStartPaintRect = forwardButtonRect(scrollbar, ForwardButtonStartPart, true); 64 forwardButtonEndPaintRect = forwardButtonRect(scrollbar, ForwardButtonEndPart, true); 72 IntRect trackPaintRect = trackRect(scrollbar, true); 75 bool thumbPresent = hasThumb(scrollbar); 77 IntRect track = trackRect(scrollbar); 78 splitTrack(scrollbar, trac 120 hitTest(ScrollbarThemeClient* scrollbar, const IntPoint& position) argument 164 invalidatePart(ScrollbarThemeClient* scrollbar, ScrollbarPart part) argument 204 splitTrack(ScrollbarThemeClient* scrollbar, const IntRect& unconstrainedTrackRect, IntRect& beforeThumbRect, IntRect& thumbRect, IntRect& afterThumbRect) argument 224 usedTotalSize(ScrollbarThemeClient* scrollbar) argument 232 thumbPosition(ScrollbarThemeClient* scrollbar) argument 245 thumbLength(ScrollbarThemeClient* scrollbar) argument 264 minimumThumbLength(ScrollbarThemeClient* scrollbar) argument 269 trackPosition(ScrollbarThemeClient* scrollbar) argument 275 trackLength(ScrollbarThemeClient* scrollbar) argument 286 thumbRect(ScrollbarThemeClient* scrollbar) argument [all...] |
H A D | ScrollableArea.cpp | 253 void ScrollableArea::mouseEnteredScrollbar(Scrollbar* scrollbar) const 255 scrollAnimator()->mouseEnteredScrollbar(scrollbar); 258 void ScrollableArea::mouseExitedScrollbar(Scrollbar* scrollbar) const 260 scrollAnimator()->mouseExitedScrollbar(scrollbar); 281 void ScrollableArea::didAddVerticalScrollbar(Scrollbar* scrollbar) argument 283 scrollAnimator()->didAddVerticalScrollbar(scrollbar); 285 // <rdar://problem/9797253> AppKit resets the scrollbar's style when you attach a scrollbar 289 void ScrollableArea::willRemoveVerticalScrollbar(Scrollbar* scrollbar) argument 291 scrollAnimator()->willRemoveVerticalScrollbar(scrollbar); 294 didAddHorizontalScrollbar(Scrollbar* scrollbar) argument 302 willRemoveHorizontalScrollbar(Scrollbar* scrollbar) argument 334 invalidateScrollbar(Scrollbar* scrollbar, const IntRect& rect) argument [all...] |
/external/chromium_org/third_party/WebKit/Source/core/rendering/ |
H A D | RenderScrollbarTheme.cpp | 40 void RenderScrollbarTheme::buttonSizesAlongTrackAxis(ScrollbarThemeClient* scrollbar, int& beforeSize, int& afterSize) argument 42 IntRect firstButton = backButtonRect(scrollbar, BackButtonStartPart); 43 IntRect secondButton = forwardButtonRect(scrollbar, ForwardButtonStartPart); 44 IntRect thirdButton = backButtonRect(scrollbar, BackButtonEndPart); 45 IntRect fourthButton = forwardButtonRect(scrollbar, ForwardButtonEndPart); 46 if (scrollbar->orientation() == HorizontalScrollbar) { 55 bool RenderScrollbarTheme::hasButtons(ScrollbarThemeClient* scrollbar) argument 59 buttonSizesAlongTrackAxis(scrollbar, startSize, endSize); 60 return (startSize + endSize) <= (scrollbar->orientation() == HorizontalScrollbar ? scrollbar 63 hasThumb(ScrollbarThemeClient* scrollbar) argument 68 minimumThumbLength(ScrollbarThemeClient* scrollbar) argument 73 backButtonRect(ScrollbarThemeClient* scrollbar, ScrollbarPart partType, bool) argument 78 forwardButtonRect(ScrollbarThemeClient* scrollbar, ScrollbarPart partType, bool) argument 83 trackRect(ScrollbarThemeClient* scrollbar, bool) argument 95 constrainTrackRectToTrackPieces(ScrollbarThemeClient* scrollbar, const IntRect& rect) argument 116 paintScrollbarBackground(GraphicsContext* context, ScrollbarThemeClient* scrollbar) argument 121 paintTrackBackground(GraphicsContext* context, ScrollbarThemeClient* scrollbar, const IntRect& rect) argument 126 paintTrackPiece(GraphicsContext* context, ScrollbarThemeClient* scrollbar, const IntRect& rect, ScrollbarPart part) argument 131 paintButton(GraphicsContext* context, ScrollbarThemeClient* scrollbar, const IntRect& rect, ScrollbarPart part) argument 136 paintThumb(GraphicsContext* context, ScrollbarThemeClient* scrollbar, const IntRect& rect) argument 141 paintTickmarks(GraphicsContext* context, ScrollbarThemeClient* scrollbar, const IntRect& rect) argument [all...] |
H A D | RenderScrollbarTheme.h | 49 virtual bool shouldCenterOnThumb(ScrollbarThemeClient* scrollbar, const PlatformMouseEvent& event) OVERRIDE { return ScrollbarTheme::theme()->shouldCenterOnThumb(scrollbar, event); } 54 virtual void registerScrollbar(ScrollbarThemeClient* scrollbar) OVERRIDE { return ScrollbarTheme::theme()->registerScrollbar(scrollbar); } 55 virtual void unregisterScrollbar(ScrollbarThemeClient* scrollbar) OVERRIDE { return ScrollbarTheme::theme()->unregisterScrollbar(scrollbar); }
|
/external/chromium_org/third_party/WebKit/Source/core/platform/mac/ |
H A D | ScrollbarThemeMacNonOverlayAPI.mm | 71 static WebKit::WebThemeEngine::State scrollbarStateToThemeState(ScrollbarThemeClient* scrollbar) 73 if (!scrollbar->enabled()) 75 if (!scrollbar->isScrollableAreaActive()) 77 if (scrollbar->pressedPart() == ThumbPart) 87 bool ScrollbarThemeMacNonOverlayAPI::paint(ScrollbarThemeClient* scrollbar, GraphicsContext* context, const IntRect& damageRect) 91 scrollbar->getTickmarks(tickmarks); 95 trackInfo.kind = scrollbar->controlSize() == RegularScrollbar ? kThemeMediumScrollBar : kThemeSmallScrollBar; 96 trackInfo.bounds = scrollbar->frameRect(); 98 trackInfo.max = scrollbar->maximum(); 99 trackInfo.value = scrollbar [all...] |
H A D | ScrollbarThemeMacOverlayAPI.mm | 57 void ScrollbarThemeMacOverlayAPI::registerScrollbar(ScrollbarThemeClient* scrollbar) 59 ScrollbarThemeMacCommon::registerScrollbar(scrollbar); 61 bool isHorizontal = scrollbar->orientation() == HorizontalScrollbar; 62 ScrollbarPainter scrollbarPainter = [NSClassFromString(@"NSScrollerImp") scrollerImpWithStyle:recommendedScrollerStyle() controlSize:(NSControlSize)scrollbar->controlSize() horizontal:isHorizontal replacingScrollerImp:nil]; 63 scrollbarPainterMap()->add(scrollbar, scrollbarPainter); 64 updateEnabledState(scrollbar); 65 updateScrollbarOverlayStyle(scrollbar); 68 void ScrollbarThemeMacOverlayAPI::unregisterScrollbar(ScrollbarThemeClient* scrollbar) 70 scrollbarPainterMap()->remove(scrollbar); 72 ScrollbarThemeMacCommon::unregisterScrollbar(scrollbar); [all...] |
/external/chromium_org/third_party/WebKit/Source/core/platform/mock/ |
H A D | ScrollbarThemeMock.cpp | 35 IntRect ScrollbarThemeMock::trackRect(ScrollbarThemeClient* scrollbar, bool) argument 37 return scrollbar->frameRect(); 50 void ScrollbarThemeMock::paintTrackBackground(GraphicsContext* context, ScrollbarThemeClient* scrollbar, const IntRect& trackRect) argument 52 context->fillRect(trackRect, scrollbar->enabled() ? Color::lightGray : Color(0xFFE0E0E0)); 55 void ScrollbarThemeMock::paintThumb(GraphicsContext* context, ScrollbarThemeClient* scrollbar, const IntRect& thumbRect) argument 57 if (scrollbar->enabled())
|
/external/chromium_org/third_party/WebKit/Source/core/platform/chromium/support/ |
H A D | WebScrollbarThemeGeometryNative.cpp | 53 int WebScrollbarThemeGeometryNative::thumbPosition(WebScrollbar* scrollbar) argument 55 WebScrollbarThemeClientImpl client(scrollbar); 59 int WebScrollbarThemeGeometryNative::thumbLength(WebScrollbar* scrollbar) argument 61 WebScrollbarThemeClientImpl client(scrollbar); 65 int WebScrollbarThemeGeometryNative::trackPosition(WebScrollbar* scrollbar) argument 67 WebScrollbarThemeClientImpl client(scrollbar); 71 int WebScrollbarThemeGeometryNative::trackLength(WebScrollbar* scrollbar) argument 73 WebScrollbarThemeClientImpl client(scrollbar); 77 bool WebScrollbarThemeGeometryNative::hasButtons(WebScrollbar* scrollbar) argument 79 WebScrollbarThemeClientImpl client(scrollbar); 83 hasThumb(WebScrollbar* scrollbar) argument 89 trackRect(WebScrollbar* scrollbar) argument 95 thumbRect(WebScrollbar* scrollbar) argument 101 minimumThumbLength(WebScrollbar* scrollbar) argument 107 scrollbarThickness(WebScrollbar* scrollbar) argument 113 backButtonStartRect(WebScrollbar* scrollbar) argument 119 backButtonEndRect(WebScrollbar* scrollbar) argument 125 forwardButtonStartRect(WebScrollbar* scrollbar) argument 131 forwardButtonEndRect(WebScrollbar* scrollbar) argument 137 constrainTrackRectToTrackPieces(WebScrollbar* scrollbar, const WebRect& rect) argument 143 splitTrack(WebScrollbar* scrollbar, const WebRect& webTrack, WebRect& webStartTrack, WebRect& webThumb, WebRect& webEndTrack) argument [all...] |
/external/chromium_org/third_party/WebKit/Source/core/css/ |
H A D | PseudoStyleRequest.h | 35 PseudoStyleRequest(PseudoId pseudoId, RenderScrollbar* scrollbar = 0, ScrollbarPart scrollbarPart = NoPart) 38 , scrollbar(scrollbar) 50 RenderScrollbar* scrollbar; member in class:WebCore::PseudoStyleRequest
|
/external/chromium_org/ppapi/c/dev/ |
H A D | ppp_scrollbar_dev.h | 33 * Informs the instance that the scrollbar's value has changed. 36 PP_Resource scrollbar, 40 * scrollbar style. 43 PP_Resource scrollbar, 51 PP_Resource scrollbar,
|
H A D | ppb_scrollbar_dev.h | 49 * The interface for a scrollbar. A scrollbar is a widget, so the functions 50 * in PPB_Widget can also be used with scrollbar objects. 54 * Create a new scrollbar. Returns 0 if the instance is invalid. 59 * the resource is invalid or some type other than a scrollbar. 63 * Gets the thickness of a scrollbar. 67 * Returns PP_TRUE if the system scrollbar style is an overlap scrollbar. 69 PP_Bool (*IsOverlay)(PP_Resource scrollbar); 71 * Gets the value of the scrollbar [all...] |
/external/chromium_org/third_party/WebKit/Source/web/ |
H A D | ScrollbarGroup.cpp | 53 void ScrollbarGroup::scrollbarCreated(WebPluginScrollbarImpl* scrollbar) argument 56 if (scrollbar->scrollbar()->orientation() == HorizontalScrollbar) { 58 m_horizontalScrollbar = scrollbar; 59 didAddHorizontalScrollbar(scrollbar->scrollbar()); 62 m_verticalScrollbar = scrollbar; 63 didAddVerticalScrollbar(scrollbar->scrollbar()); 72 void ScrollbarGroup::scrollbarDestroyed(WebPluginScrollbarImpl* scrollbar) argument 111 invalidateScrollbarRect(Scrollbar* scrollbar, const IntRect& rect) argument 155 convertFromContainingViewToScrollbar(const Scrollbar* scrollbar, const IntPoint& parentPoint) const argument [all...] |
/external/chromium_org/ppapi/thunk/ |
H A D | ppb_scrollbar_thunk.cc | 29 uint32_t GetThickness(PP_Resource scrollbar) { argument 30 EnterScrollbar enter(scrollbar, true); 36 PP_Bool IsOverlay(PP_Resource scrollbar) { argument 37 EnterScrollbar enter(scrollbar, true); 43 uint32_t GetValue(PP_Resource scrollbar) { argument 44 EnterScrollbar enter(scrollbar, true); 50 void SetValue(PP_Resource scrollbar, uint32_t value) { argument 51 EnterScrollbar enter(scrollbar, true); 56 void SetDocumentSize(PP_Resource scrollbar, uint32_t size) { argument 57 EnterScrollbar enter(scrollbar, tru 62 SetTickMarks(PP_Resource scrollbar, const PP_Rect* tick_marks, uint32_t count) argument 70 ScrollBy(PP_Resource scrollbar, PP_ScrollBy_Dev unit, int32_t multiplier) argument [all...] |
/external/chromium_org/ppapi/api/dev/ |
H A D | ppb_scrollbar_dev.idl | 22 * The interface for a scrollbar. A scrollbar is a widget, so the functions 23 * in PPB_Widget can also be used with scrollbar objects. 27 * Create a new scrollbar. Returns 0 if the instance is invalid. 34 * the resource is invalid or some type other than a scrollbar. 39 * Gets the thickness of a scrollbar. 44 * Returns PP_TRUE if the system scrollbar style is an overlap scrollbar. 46 PP_Bool IsOverlay([in] PP_Resource scrollbar); 49 * Gets the value of the scrollbar [all...] |
H A D | ppp_scrollbar_dev.idl | 17 * Informs the instance that the scrollbar's value has changed. 20 [in] PP_Resource scrollbar, 25 * scrollbar style. 29 [in] PP_Resource scrollbar,
|
/external/chromium_org/third_party/WebKit/Source/core/accessibility/ |
H A D | AccessibilityScrollbar.cpp | 36 AccessibilityScrollbar::AccessibilityScrollbar(Scrollbar* scrollbar) argument 37 : m_scrollbar(scrollbar) 39 ASSERT(scrollbar); 42 PassRefPtr<AccessibilityScrollbar> AccessibilityScrollbar::create(Scrollbar* scrollbar) argument 44 return adoptRef(new AccessibilityScrollbar(scrollbar));
|
/external/chromium_org/ppapi/cpp/dev/ |
H A D | widget_client_dev.h | 33 * Notification that the given scrollbar should change value. This is the 36 virtual void ScrollbarValueChanged(Scrollbar_Dev scrollbar, 40 * Notification that the given scrollbar's overlay type has changed. This is 43 virtual void ScrollbarOverlayChanged(Scrollbar_Dev scrollbar,
|
/external/chromium_org/third_party/WebKit/Source/core/page/ |
H A D | MouseEventWithHitTestResults.h | 38 Scrollbar* scrollbar() const { return m_hitTestResult.scrollbar(); } function in class:WebCore::MouseEventWithHitTestResults
|
/external/chromium_org/ppapi/tests/ |
H A D | test_scrollbar.h | 27 virtual void ScrollbarValueChanged(pp::Scrollbar_Dev scrollbar, 29 virtual void ScrollbarOverlayChanged(pp::Scrollbar_Dev scrollbar,
|
/external/chromium_org/webkit/renderer/compositor_bindings/ |
H A D | web_scrollbar_layer_impl.cc | 17 WebKit::WebScrollbar* scrollbar, 22 make_scoped_ptr(scrollbar), 16 WebScrollbarLayerImpl( WebKit::WebScrollbar* scrollbar, WebKit::WebScrollbarThemePainter painter, WebKit::WebScrollbarThemeGeometry* geometry) argument
|