| 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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 if (mask & ForwardTrackPart) | 70 if (mask & ForwardTrackPart) |
| 71 invalidatePart(scrollbar, ForwardTrackPart); | 71 invalidatePart(scrollbar, ForwardTrackPart); |
| 72 if (mask & BackButtonEndPart) | 72 if (mask & BackButtonEndPart) |
| 73 invalidatePart(scrollbar, BackButtonEndPart); | 73 invalidatePart(scrollbar, BackButtonEndPart); |
| 74 if (mask & ForwardButtonEndPart) | 74 if (mask & ForwardButtonEndPart) |
| 75 invalidatePart(scrollbar, ForwardButtonEndPart); | 75 invalidatePart(scrollbar, ForwardButtonEndPart); |
| 76 } | 76 } |
| 77 | 77 |
| 78 virtual void invalidatePart(ScrollbarThemeClient*, ScrollbarPart); | 78 virtual void invalidatePart(ScrollbarThemeClient*, ScrollbarPart); |
| 79 | 79 |
| 80 virtual void paintScrollCorner(ScrollView*, GraphicsContext*, const IntRect&
cornerRect); | 80 virtual void paintScrollCorner(GraphicsContext*, const IntRect& cornerRect); |
| 81 | 81 |
| 82 virtual void paintTickmarks(GraphicsContext*, ScrollbarThemeClient*, const I
ntRect&) { } | 82 virtual void paintTickmarks(GraphicsContext*, ScrollbarThemeClient*, const I
ntRect&) { } |
| 83 virtual void paintOverhangBackground(ScrollView*, GraphicsContext*, const In
tRect&, const IntRect&, const IntRect&); | 83 virtual void paintOverhangBackground(GraphicsContext*, const IntRect&, const
IntRect&, const IntRect&); |
| 84 virtual void paintOverhangShadows(ScrollView*, GraphicsContext*, const IntRe
ct&, const IntRect&, const IntRect&) { } | 84 virtual void paintOverhangShadows(GraphicsContext*, const IntSize&, const In
tRect&, const IntRect&, const IntRect&) { } |
| 85 | 85 |
| 86 virtual bool shouldCenterOnThumb(ScrollbarThemeClient*, const PlatformMouseE
vent&) { return false; } | 86 virtual bool shouldCenterOnThumb(ScrollbarThemeClient*, const PlatformMouseE
vent&) { return false; } |
| 87 virtual bool shouldSnapBackToDragOrigin(ScrollbarThemeClient*, const Platfor
mMouseEvent&) { return false; } | 87 virtual bool shouldSnapBackToDragOrigin(ScrollbarThemeClient*, const Platfor
mMouseEvent&) { return false; } |
| 88 virtual bool shouldDragDocumentInsteadOfThumb(ScrollbarThemeClient*, const P
latformMouseEvent&) { return false; } | 88 virtual bool shouldDragDocumentInsteadOfThumb(ScrollbarThemeClient*, const P
latformMouseEvent&) { return false; } |
| 89 | 89 |
| 90 // The position of the thumb relative to the track. | 90 // The position of the thumb relative to the track. |
| 91 virtual int thumbPosition(ScrollbarThemeClient*); | 91 virtual int thumbPosition(ScrollbarThemeClient*); |
| 92 // The length of the thumb along the axis of the scrollbar. | 92 // The length of the thumb along the axis of the scrollbar. |
| 93 virtual int thumbLength(ScrollbarThemeClient*); | 93 virtual int thumbLength(ScrollbarThemeClient*); |
| 94 // The position of the track relative to the scrollbar. | 94 // The position of the track relative to the scrollbar. |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 132 static void setMockScrollbarsEnabled(bool flag); | 132 static void setMockScrollbarsEnabled(bool flag); |
| 133 static bool mockScrollbarsEnabled(); | 133 static bool mockScrollbarsEnabled(); |
| 134 | 134 |
| 135 private: | 135 private: |
| 136 static ScrollbarTheme* nativeTheme(); // Must be implemented to return the c
orrect theme subclass. | 136 static ScrollbarTheme* nativeTheme(); // Must be implemented to return the c
orrect theme subclass. |
| 137 static bool gMockScrollbarsEnabled; | 137 static bool gMockScrollbarsEnabled; |
| 138 }; | 138 }; |
| 139 | 139 |
| 140 } | 140 } |
| 141 #endif | 141 #endif |
| OLD | NEW |