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 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 if (mask & BackButtonEndPart) | 75 if (mask & BackButtonEndPart) |
76 invalidatePart(scrollbar, BackButtonEndPart); | 76 invalidatePart(scrollbar, BackButtonEndPart); |
77 if (mask & ForwardButtonEndPart) | 77 if (mask & ForwardButtonEndPart) |
78 invalidatePart(scrollbar, ForwardButtonEndPart); | 78 invalidatePart(scrollbar, ForwardButtonEndPart); |
79 } | 79 } |
80 | 80 |
81 virtual void invalidatePart(ScrollbarThemeClient*, ScrollbarPart); | 81 virtual void invalidatePart(ScrollbarThemeClient*, ScrollbarPart); |
82 | 82 |
83 virtual void paintScrollCorner(GraphicsContext*, const DisplayItemClientWrap
per&, const IntRect& cornerRect); | 83 virtual void paintScrollCorner(GraphicsContext*, const DisplayItemClientWrap
per&, const IntRect& cornerRect); |
84 virtual void paintTickmarks(GraphicsContext*, ScrollbarThemeClient*, const I
ntRect&) { } | 84 virtual void paintTickmarks(GraphicsContext*, ScrollbarThemeClient*, const I
ntRect&) { } |
85 virtual void paintOverhangBackground(GraphicsContext*, const IntRect&, const
IntRect&, const IntRect&); | |
86 virtual void paintOverhangShadows(GraphicsContext*, const IntSize&, const In
tRect&, const IntRect&, const IntRect&) { } | |
87 | 85 |
88 virtual bool shouldCenterOnThumb(ScrollbarThemeClient*, const PlatformMouseE
vent&); | 86 virtual bool shouldCenterOnThumb(ScrollbarThemeClient*, const PlatformMouseE
vent&); |
89 virtual bool shouldSnapBackToDragOrigin(ScrollbarThemeClient*, const Platfor
mMouseEvent&); | 87 virtual bool shouldSnapBackToDragOrigin(ScrollbarThemeClient*, const Platfor
mMouseEvent&); |
90 virtual bool shouldDragDocumentInsteadOfThumb(ScrollbarThemeClient*, const P
latformMouseEvent&) { return false; } | 88 virtual bool shouldDragDocumentInsteadOfThumb(ScrollbarThemeClient*, const P
latformMouseEvent&) { return false; } |
91 | 89 |
92 // The position of the thumb relative to the track. | 90 // The position of the thumb relative to the track. |
93 virtual int thumbPosition(ScrollbarThemeClient*); | 91 virtual int thumbPosition(ScrollbarThemeClient*); |
94 // The length of the thumb along the axis of the scrollbar. | 92 // The length of the thumb along the axis of the scrollbar. |
95 virtual int thumbLength(ScrollbarThemeClient*); | 93 virtual int thumbLength(ScrollbarThemeClient*); |
96 // The position of the track relative to the scrollbar. | 94 // The position of the track relative to the scrollbar. |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
138 static DisplayItem::Type buttonPartToDisplayItemType(ScrollbarPart); | 136 static DisplayItem::Type buttonPartToDisplayItemType(ScrollbarPart); |
139 static DisplayItem::Type trackPiecePartToDisplayItemType(ScrollbarPart); | 137 static DisplayItem::Type trackPiecePartToDisplayItemType(ScrollbarPart); |
140 | 138 |
141 private: | 139 private: |
142 static ScrollbarTheme* nativeTheme(); // Must be implemented to return the c
orrect theme subclass. | 140 static ScrollbarTheme* nativeTheme(); // Must be implemented to return the c
orrect theme subclass. |
143 static bool gMockScrollbarsEnabled; | 141 static bool gMockScrollbarsEnabled; |
144 }; | 142 }; |
145 | 143 |
146 } | 144 } |
147 #endif | 145 #endif |
OLD | NEW |