Searched refs:scrollbar (Results 1 - 25 of 95) sorted by relevance

1234

/external/chromium_org/third_party/WebKit/Source/platform/scroll/
H A DScrollbarThemeNonMacCommon.cpp37 bool ScrollbarThemeNonMacCommon::hasThumb(ScrollbarThemeClient* scrollbar) argument
41 return thumbLength(scrollbar) > 0;
44 IntRect ScrollbarThemeNonMacCommon::backButtonRect(ScrollbarThemeClient* scrollbar, ScrollbarPart part, bool) argument
50 IntSize size = buttonSize(scrollbar);
51 return IntRect(scrollbar->x(), scrollbar->y(), size.width(), size.height());
54 IntRect ScrollbarThemeNonMacCommon::forwardButtonRect(ScrollbarThemeClient* scrollbar, ScrollbarPart part, bool) argument
60 IntSize size = buttonSize(scrollbar);
62 if (scrollbar->orientation() == HorizontalScrollbar) {
63 x = scrollbar
72 trackRect(ScrollbarThemeClient* scrollbar, bool) argument
88 paintTrackBackground(GraphicsContext* context, ScrollbarThemeClient* scrollbar, const IntRect& rect) argument
95 paintTickmarks(GraphicsContext* context, ScrollbarThemeClient* scrollbar, const IntRect& rect) argument
[all...]
H A DScrollbarTheme.cpp50 bool ScrollbarTheme::paint(ScrollbarThemeClient* scrollbar, GraphicsContext* graphicsContext, const IntRect& damageRect) argument
59 if (hasButtons(scrollbar)) {
60 backButtonStartPaintRect = backButtonRect(scrollbar, BackButtonStartPart, true);
63 backButtonEndPaintRect = backButtonRect(scrollbar, BackButtonEndPart, true);
66 forwardButtonStartPaintRect = forwardButtonRect(scrollbar, ForwardButtonStartPart, true);
69 forwardButtonEndPaintRect = forwardButtonRect(scrollbar, ForwardButtonEndPart, true);
77 IntRect trackPaintRect = trackRect(scrollbar, true);
80 bool thumbPresent = hasThumb(scrollbar);
82 IntRect track = trackRect(scrollbar);
83 splitTrack(scrollbar, trac
125 hitTest(ScrollbarThemeClient* scrollbar, const IntPoint& position) argument
165 invalidatePart(ScrollbarThemeClient* scrollbar, ScrollbarPart part) argument
226 shouldCenterOnThumb(ScrollbarThemeClient* scrollbar, const PlatformMouseEvent& evt) argument
231 shouldSnapBackToDragOrigin(ScrollbarThemeClient* scrollbar, const PlatformMouseEvent& evt) argument
240 usedTotalSize(ScrollbarThemeClient* scrollbar) argument
248 thumbPosition(ScrollbarThemeClient* scrollbar) argument
261 thumbLength(ScrollbarThemeClient* scrollbar) argument
284 trackPosition(ScrollbarThemeClient* scrollbar) argument
290 trackLength(ScrollbarThemeClient* scrollbar) argument
296 thumbRect(ScrollbarThemeClient* scrollbar) argument
310 thumbThickness(ScrollbarThemeClient* scrollbar) argument
316 minimumThumbLength(ScrollbarThemeClient* scrollbar) argument
321 splitTrack(ScrollbarThemeClient* scrollbar, const IntRect& unconstrainedTrackRect, IntRect& beforeThumbRect, IntRect& thumbRect, IntRect& afterThumbRect) argument
[all...]
H A DScrollbarThemeMock.cpp37 IntRect ScrollbarThemeMock::trackRect(ScrollbarThemeClient* scrollbar, bool) argument
39 return scrollbar->frameRect();
52 void ScrollbarThemeMock::paintTrackBackground(GraphicsContext* context, ScrollbarThemeClient* scrollbar, const IntRect& trackRect) argument
54 context->fillRect(trackRect, scrollbar->enabled() ? Color::lightGray : Color(0xFFE0E0E0));
57 void ScrollbarThemeMock::paintThumb(GraphicsContext* context, ScrollbarThemeClient* scrollbar, const IntRect& thumbRect) argument
59 if (scrollbar->enabled())
H A DScrollbarThemeMacNonOverlayAPI.mm78 bool ScrollbarThemeMacNonOverlayAPI::paint(ScrollbarThemeClient* scrollbar, GraphicsContext* context, const IntRect& damageRect)
82 scrollbar->getTickmarks(tickmarks);
86 trackInfo.kind = scrollbar->controlSize() == RegularScrollbar ? kThemeMediumScrollBar : kThemeSmallScrollBar;
87 trackInfo.bounds = scrollbar->frameRect();
89 trackInfo.max = scrollbar->maximum();
90 trackInfo.value = scrollbar->currentPos();
91 trackInfo.trackInfo.scrollbar.viewsize = scrollbar->visibleSize();
92 trackInfo.attributes = hasThumb(scrollbar) ? kThemeTrackShowThumb : 0;
94 if (scrollbar
[all...]
H A DScrollbarThemeMacOverlayAPI.mm57 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...]
H A DScrollbarThemeOverlay.cpp70 int ScrollbarThemeOverlay::thumbPosition(ScrollbarThemeClient* scrollbar) argument
72 if (!scrollbar->totalSize())
75 int trackLen = trackLength(scrollbar);
76 float proportion = static_cast<float>(scrollbar->currentPos()) / scrollbar->totalSize();
80 int ScrollbarThemeOverlay::thumbLength(ScrollbarThemeClient* scrollbar) argument
82 int trackLen = trackLength(scrollbar);
84 if (!scrollbar->totalSize())
87 float proportion = static_cast<float>(scrollbar->visibleSize()) / scrollbar
93 hasThumb(ScrollbarThemeClient* scrollbar) argument
108 trackRect(ScrollbarThemeClient* scrollbar, bool) argument
123 paintThumb(GraphicsContext* context, ScrollbarThemeClient* scrollbar, const IntRect& rect) argument
154 hitTest(ScrollbarThemeClient* scrollbar, const IntPoint& position) argument
[all...]
H A DScrollbarThemeAura.cpp72 void ScrollbarThemeAura::paintTrackPiece(GraphicsContext* gc, ScrollbarThemeClient* scrollbar, const IntRect& rect, ScrollbarPart partType) argument
74 blink::WebThemeEngine::State state = scrollbar->hoveredPart() == partType ? blink::WebThemeEngine::StateHover : blink::WebThemeEngine::StateNormal;
76 if (useMockTheme() && !scrollbar->enabled())
79 IntRect alignRect = trackRect(scrollbar, false);
87 blink::Platform::current()->themeEngine()->paint(canvas, scrollbar->orientation() == HorizontalScrollbar ? blink::WebThemeEngine::PartScrollbarHorizontalTrack : blink::WebThemeEngine::PartScrollbarVerticalTrack, state, blink::WebRect(rect), &extraParams);
90 void ScrollbarThemeAura::paintButton(GraphicsContext* gc, ScrollbarThemeClient* scrollbar, const IntRect& rect, ScrollbarPart part) argument
98 if (scrollbar->orientation() == HorizontalScrollbar) {
119 if (useMockTheme() && !scrollbar->enabled()) {
121 } else if (!useMockTheme() && ((checkMin && (scrollbar->currentPos() <= 0))
122 || (checkMax && scrollbar
133 paintThumb(GraphicsContext* gc, ScrollbarThemeClient* scrollbar, const IntRect& rect) argument
146 buttonSize(ScrollbarThemeClient* scrollbar) argument
158 minimumThumbLength(ScrollbarThemeClient* scrollbar) argument
[all...]
H A DScrollableArea.cpp301 void ScrollableArea::mouseEnteredScrollbar(Scrollbar* scrollbar) const
303 scrollAnimator()->mouseEnteredScrollbar(scrollbar);
306 void ScrollableArea::mouseExitedScrollbar(Scrollbar* scrollbar) const
308 scrollAnimator()->mouseExitedScrollbar(scrollbar);
329 void ScrollableArea::didAddScrollbar(Scrollbar* scrollbar, ScrollbarOrientation orientation) argument
332 scrollAnimator()->didAddVerticalScrollbar(scrollbar);
334 scrollAnimator()->didAddHorizontalScrollbar(scrollbar);
336 // <rdar://problem/9797253> AppKit resets the scrollbar's style when you attach a scrollbar
340 void ScrollableArea::willRemoveScrollbar(Scrollbar* scrollbar, ScrollbarOrientatio argument
378 invalidateScrollbar(Scrollbar* scrollbar, const IntRect& rect) argument
[all...]
H A DScrollbarTheme.h60 void invalidateParts(ScrollbarThemeClient* scrollbar, ScrollbarControlPartMask mask) argument
63 invalidatePart(scrollbar, BackButtonStartPart);
65 invalidatePart(scrollbar, ForwardButtonStartPart);
67 invalidatePart(scrollbar, BackTrackPart);
69 invalidatePart(scrollbar, ThumbPart);
71 invalidatePart(scrollbar, ForwardTrackPart);
73 invalidatePart(scrollbar, BackButtonEndPart);
75 invalidatePart(scrollbar, ForwardButtonEndPart);
92 // The length of the thumb along the axis of the scrollbar.
94 // The position of the track relative to the scrollbar
[all...]
/external/chromium_org/third_party/WebKit/Source/platform/exported/
H A DWebScrollbarThemeGeometryNative.cpp51 int WebScrollbarThemeGeometryNative::thumbPosition(WebScrollbar* scrollbar) argument
53 WebScrollbarThemeClientImpl client(scrollbar);
57 int WebScrollbarThemeGeometryNative::thumbLength(WebScrollbar* scrollbar) argument
59 WebScrollbarThemeClientImpl client(scrollbar);
63 int WebScrollbarThemeGeometryNative::trackPosition(WebScrollbar* scrollbar) argument
65 WebScrollbarThemeClientImpl client(scrollbar);
69 int WebScrollbarThemeGeometryNative::trackLength(WebScrollbar* scrollbar) argument
71 WebScrollbarThemeClientImpl client(scrollbar);
75 bool WebScrollbarThemeGeometryNative::hasButtons(WebScrollbar* scrollbar) argument
77 WebScrollbarThemeClientImpl client(scrollbar);
81 hasThumb(WebScrollbar* scrollbar) argument
87 trackRect(WebScrollbar* scrollbar) argument
93 thumbRect(WebScrollbar* scrollbar) argument
99 minimumThumbLength(WebScrollbar* scrollbar) argument
105 scrollbarThickness(WebScrollbar* scrollbar) argument
111 backButtonStartRect(WebScrollbar* scrollbar) argument
117 backButtonEndRect(WebScrollbar* scrollbar) argument
123 forwardButtonStartRect(WebScrollbar* scrollbar) argument
129 forwardButtonEndRect(WebScrollbar* scrollbar) argument
135 constrainTrackRectToTrackPieces(WebScrollbar* scrollbar, const WebRect& rect) argument
141 splitTrack(WebScrollbar* scrollbar, const WebRect& webTrack, WebRect& webStartTrack, WebRect& webThumb, WebRect& webEndTrack) argument
[all...]
/external/chromium_org/third_party/WebKit/Source/core/rendering/
H A DRenderScrollbarTheme.cpp41 void RenderScrollbarTheme::buttonSizesAlongTrackAxis(ScrollbarThemeClient* scrollbar, int& beforeSize, int& afterSize) argument
43 IntRect firstButton = backButtonRect(scrollbar, BackButtonStartPart);
44 IntRect secondButton = forwardButtonRect(scrollbar, ForwardButtonStartPart);
45 IntRect thirdButton = backButtonRect(scrollbar, BackButtonEndPart);
46 IntRect fourthButton = forwardButtonRect(scrollbar, ForwardButtonEndPart);
47 if (scrollbar->orientation() == HorizontalScrollbar) {
56 bool RenderScrollbarTheme::hasButtons(ScrollbarThemeClient* scrollbar) argument
60 buttonSizesAlongTrackAxis(scrollbar, startSize, endSize);
61 return (startSize + endSize) <= (scrollbar->orientation() == HorizontalScrollbar ? scrollbar
64 hasThumb(ScrollbarThemeClient* scrollbar) argument
69 minimumThumbLength(ScrollbarThemeClient* scrollbar) argument
74 backButtonRect(ScrollbarThemeClient* scrollbar, ScrollbarPart partType, bool) argument
79 forwardButtonRect(ScrollbarThemeClient* scrollbar, ScrollbarPart partType, bool) argument
84 trackRect(ScrollbarThemeClient* scrollbar, bool) argument
96 constrainTrackRectToTrackPieces(ScrollbarThemeClient* scrollbar, const IntRect& rect) argument
117 paintScrollbarBackground(GraphicsContext* context, ScrollbarThemeClient* scrollbar) argument
122 paintTrackBackground(GraphicsContext* context, ScrollbarThemeClient* scrollbar, const IntRect& rect) argument
127 paintTrackPiece(GraphicsContext* context, ScrollbarThemeClient* scrollbar, const IntRect& rect, ScrollbarPart part) argument
132 paintButton(GraphicsContext* context, ScrollbarThemeClient* scrollbar, const IntRect& rect, ScrollbarPart part) argument
137 paintThumb(GraphicsContext* context, ScrollbarThemeClient* scrollbar, const IntRect& rect) argument
142 paintTickmarks(GraphicsContext* context, ScrollbarThemeClient* scrollbar, const IntRect& rect) argument
[all...]
H A DRenderScrollbarTheme.h45 virtual bool shouldCenterOnThumb(ScrollbarThemeClient* scrollbar, const PlatformMouseEvent& event) OVERRIDE { return ScrollbarTheme::theme()->shouldCenterOnThumb(scrollbar, event); }
46 virtual bool shouldSnapBackToDragOrigin(ScrollbarThemeClient* scrollbar, const PlatformMouseEvent& event) OVERRIDE { return ScrollbarTheme::theme()->shouldSnapBackToDragOrigin(scrollbar, event); }
51 virtual void registerScrollbar(ScrollbarThemeClient* scrollbar) OVERRIDE { return ScrollbarTheme::theme()->registerScrollbar(scrollbar); }
52 virtual void unregisterScrollbar(ScrollbarThemeClient* scrollbar) OVERRIDE { return ScrollbarTheme::theme()->unregisterScrollbar(scrollbar); }
/external/chromium_org/ppapi/c/dev/
H A Dppp_scrollbar_dev.h33 * 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 Dppb_scrollbar_dev.h49 * 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/core/css/
H A DPseudoStyleRequest.h38 PseudoStyleRequest(PseudoId pseudoId, RenderScrollbar* scrollbar = 0, ScrollbarPart scrollbarPart = NoPart)
42 , scrollbar(scrollbar)
50 , scrollbar(0)
63 RenderScrollbar* scrollbar; member in class:blink::PseudoStyleRequest
/external/chromium_org/third_party/WebKit/Source/web/
H A DScrollbarGroup.cpp51 void ScrollbarGroup::scrollbarCreated(WebPluginScrollbarImpl* scrollbar) argument
54 if (scrollbar->scrollbar()->orientation() == HorizontalScrollbar) {
56 m_horizontalScrollbar = scrollbar;
57 didAddScrollbar(scrollbar->scrollbar(), HorizontalScrollbar);
60 m_verticalScrollbar = scrollbar;
61 didAddScrollbar(scrollbar->scrollbar(), VerticalScrollbar);
70 void ScrollbarGroup::scrollbarDestroyed(WebPluginScrollbarImpl* scrollbar) argument
109 invalidateScrollbarRect(Scrollbar* scrollbar, const IntRect& rect) argument
147 convertFromContainingViewToScrollbar(const Scrollbar* scrollbar, const IntPoint& parentPoint) const argument
[all...]
/external/chromium_org/ppapi/thunk/
H A Dppb_scrollbar_thunk.cc29 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 Dppb_scrollbar_dev.idl22 * 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 Dppp_scrollbar_dev.idl17 * 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/ppapi/cpp/dev/
H A Dwidget_client_dev.h33 * 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/accessibility/
H A DAXScrollbar.cpp36 AXScrollbar::AXScrollbar(Scrollbar* scrollbar) argument
37 : m_scrollbar(scrollbar)
39 ASSERT(scrollbar);
48 PassRefPtr<AXScrollbar> AXScrollbar::create(Scrollbar* scrollbar) argument
50 return adoptRef(new AXScrollbar(scrollbar));
/external/chromium_org/ppapi/tests/
H A Dtest_scrollbar.h27 virtual void ScrollbarValueChanged(pp::Scrollbar_Dev scrollbar,
29 virtual void ScrollbarOverlayChanged(pp::Scrollbar_Dev scrollbar,
/external/chromium_org/ui/file_manager/file_manager/audio_player/css/
H A Daudio_player.css38 /* Customized scrollbar for the playlist. */
40 ::-webkit-scrollbar {
45 ::-webkit-scrollbar-button {
50 ::-webkit-scrollbar-thumb {
58 ::-webkit-scrollbar-thumb:hover {
63 ::-webkit-scrollbar-thumb:active {
68 ::-webkit-scrollbar-thumb:vertical {
75 ::-webkit-scrollbar-track:hover {
80 ::-webkit-scrollbar-track:active {
86 ::-webkit-scrollbar
[all...]
/external/chromium_org/cc/animation/
H A Dscrollbar_animation_controller_thinning.cc137 ScrollbarLayerImplBase* scrollbar = *it; local
138 if (scrollbar->is_overlay_scrollbar()) {
139 scrollbar->SetOpacity(
140 AdjustScale(opacity, scrollbar->opacity(), opacity_change_));
141 scrollbar->SetThumbThicknessScaleFactor(
143 scrollbar->thumb_thickness_scale_factor(),
/external/chromium_org/third_party/WebKit/Source/core/page/
H A DEventWithHitTestResults.h47 Scrollbar* scrollbar() const { return m_hitTestResult.scrollbar(); } function in class:blink::EventWithHitTestResults

Completed in 617 milliseconds

1234