OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2008 Apple Inc. All Rights Reserved. | 2 * Copyright (C) 2008 Apple Inc. All Rights Reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
(...skipping 26 matching lines...) Expand all Loading... |
37 public: | 37 public: |
38 virtual ~RenderScrollbarTheme() { } | 38 virtual ~RenderScrollbarTheme() { } |
39 | 39 |
40 virtual int scrollbarThickness(ScrollbarControlSize controlSize) OVERRIDE {
return ScrollbarTheme::theme()->scrollbarThickness(controlSize); } | 40 virtual int scrollbarThickness(ScrollbarControlSize controlSize) OVERRIDE {
return ScrollbarTheme::theme()->scrollbarThickness(controlSize); } |
41 | 41 |
42 virtual ScrollbarButtonsPlacement buttonsPlacement() const OVERRIDE { return
ScrollbarTheme::theme()->buttonsPlacement(); } | 42 virtual ScrollbarButtonsPlacement buttonsPlacement() const OVERRIDE { return
ScrollbarTheme::theme()->buttonsPlacement(); } |
43 | 43 |
44 virtual void paintScrollCorner(GraphicsContext*, const IntRect& cornerRect)
OVERRIDE; | 44 virtual void paintScrollCorner(GraphicsContext*, const IntRect& cornerRect)
OVERRIDE; |
45 | 45 |
46 virtual bool shouldCenterOnThumb(ScrollbarThemeClient* scrollbar, const Plat
formMouseEvent& event) OVERRIDE { return ScrollbarTheme::theme()->shouldCenterOn
Thumb(scrollbar, event); } | 46 virtual bool shouldCenterOnThumb(ScrollbarThemeClient* scrollbar, const Plat
formMouseEvent& event) OVERRIDE { return ScrollbarTheme::theme()->shouldCenterOn
Thumb(scrollbar, event); } |
| 47 virtual bool shouldSnapBackToDragOrigin(ScrollbarThemeClient* scrollbar, con
st PlatformMouseEvent& event) OVERRIDE { return ScrollbarTheme::theme()->shouldS
napBackToDragOrigin(scrollbar, event); } |
47 | 48 |
48 virtual double initialAutoscrollTimerDelay() OVERRIDE { return ScrollbarThem
e::theme()->initialAutoscrollTimerDelay(); } | 49 virtual double initialAutoscrollTimerDelay() OVERRIDE { return ScrollbarThem
e::theme()->initialAutoscrollTimerDelay(); } |
49 virtual double autoscrollTimerDelay() OVERRIDE { return ScrollbarTheme::them
e()->autoscrollTimerDelay(); } | 50 virtual double autoscrollTimerDelay() OVERRIDE { return ScrollbarTheme::them
e()->autoscrollTimerDelay(); } |
50 | 51 |
51 virtual void registerScrollbar(ScrollbarThemeClient* scrollbar) OVERRIDE { r
eturn ScrollbarTheme::theme()->registerScrollbar(scrollbar); } | 52 virtual void registerScrollbar(ScrollbarThemeClient* scrollbar) OVERRIDE { r
eturn ScrollbarTheme::theme()->registerScrollbar(scrollbar); } |
52 virtual void unregisterScrollbar(ScrollbarThemeClient* scrollbar) OVERRIDE {
return ScrollbarTheme::theme()->unregisterScrollbar(scrollbar); } | 53 virtual void unregisterScrollbar(ScrollbarThemeClient* scrollbar) OVERRIDE {
return ScrollbarTheme::theme()->unregisterScrollbar(scrollbar); } |
53 | 54 |
54 virtual int minimumThumbLength(ScrollbarThemeClient*) OVERRIDE; | 55 virtual int minimumThumbLength(ScrollbarThemeClient*) OVERRIDE; |
55 | 56 |
56 void buttonSizesAlongTrackAxis(ScrollbarThemeClient*, int& beforeSize, int&
afterSize); | 57 void buttonSizesAlongTrackAxis(ScrollbarThemeClient*, int& beforeSize, int&
afterSize); |
(...skipping 14 matching lines...) Expand all Loading... |
71 virtual void paintButton(GraphicsContext*, ScrollbarThemeClient*, const IntR
ect&, ScrollbarPart) OVERRIDE; | 72 virtual void paintButton(GraphicsContext*, ScrollbarThemeClient*, const IntR
ect&, ScrollbarPart) OVERRIDE; |
72 virtual void paintThumb(GraphicsContext*, ScrollbarThemeClient*, const IntRe
ct&) OVERRIDE; | 73 virtual void paintThumb(GraphicsContext*, ScrollbarThemeClient*, const IntRe
ct&) OVERRIDE; |
73 virtual void paintTickmarks(GraphicsContext*, ScrollbarThemeClient*, const I
ntRect&) OVERRIDE; | 74 virtual void paintTickmarks(GraphicsContext*, ScrollbarThemeClient*, const I
ntRect&) OVERRIDE; |
74 | 75 |
75 virtual IntRect constrainTrackRectToTrackPieces(ScrollbarThemeClient*, const
IntRect&) OVERRIDE; | 76 virtual IntRect constrainTrackRectToTrackPieces(ScrollbarThemeClient*, const
IntRect&) OVERRIDE; |
76 }; | 77 }; |
77 | 78 |
78 } // namespace WebCore | 79 } // namespace WebCore |
79 | 80 |
80 #endif // RenderScrollbarTheme_h | 81 #endif // RenderScrollbarTheme_h |
OLD | NEW |