| 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 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 77 invalidatePart(scrollbar, ForwardTrackPart); | 77 invalidatePart(scrollbar, ForwardTrackPart); |
| 78 if (mask & BackButtonEndPart) | 78 if (mask & BackButtonEndPart) |
| 79 invalidatePart(scrollbar, BackButtonEndPart); | 79 invalidatePart(scrollbar, BackButtonEndPart); |
| 80 if (mask & ForwardButtonEndPart) | 80 if (mask & ForwardButtonEndPart) |
| 81 invalidatePart(scrollbar, ForwardButtonEndPart); | 81 invalidatePart(scrollbar, ForwardButtonEndPart); |
| 82 } | 82 } |
| 83 | 83 |
| 84 virtual void invalidatePart(ScrollbarThemeClient*, ScrollbarPart) { } | 84 virtual void invalidatePart(ScrollbarThemeClient*, ScrollbarPart) { } |
| 85 | 85 |
| 86 virtual void paintScrollCorner(ScrollView*, GraphicsContext* context, const
IntRect& cornerRect) { defaultPaintScrollCorner(context, cornerRect); } | 86 virtual void paintScrollCorner(ScrollView*, GraphicsContext* context, const
IntRect& cornerRect) { defaultPaintScrollCorner(context, cornerRect); } |
| 87 static void defaultPaintScrollCorner(GraphicsContext* context, const IntRect
& cornerRect) { context->fillRect(cornerRect, Color::white, ColorSpaceDeviceRGB)
; } | 87 static void defaultPaintScrollCorner(GraphicsContext* context, const IntRect
& cornerRect) { context->fillRect(cornerRect, Color::white); } |
| 88 | 88 |
| 89 virtual void paintTickmarks(GraphicsContext*, ScrollbarThemeClient*, const I
ntRect&) { } | 89 virtual void paintTickmarks(GraphicsContext*, ScrollbarThemeClient*, const I
ntRect&) { } |
| 90 virtual void paintOverhangAreas(ScrollView*, GraphicsContext*, const IntRect
&, const IntRect&, const IntRect&) { } | 90 virtual void paintOverhangAreas(ScrollView*, GraphicsContext*, const IntRect
&, const IntRect&, const IntRect&) { } |
| 91 | 91 |
| 92 #if ENABLE(RUBBER_BANDING) | 92 #if ENABLE(RUBBER_BANDING) |
| 93 virtual void setUpContentShadowLayer(GraphicsLayer*) { } | 93 virtual void setUpContentShadowLayer(GraphicsLayer*) { } |
| 94 #endif | 94 #endif |
| 95 | 95 |
| 96 virtual bool shouldCenterOnThumb(ScrollbarThemeClient*, const PlatformMouseE
vent&) { return false; } | 96 virtual bool shouldCenterOnThumb(ScrollbarThemeClient*, const PlatformMouseE
vent&) { return false; } |
| 97 virtual bool shouldSnapBackToDragOrigin(ScrollbarThemeClient*, const Platfor
mMouseEvent&) { return false; } | 97 virtual bool shouldSnapBackToDragOrigin(ScrollbarThemeClient*, const Platfor
mMouseEvent&) { return false; } |
| (...skipping 14 matching lines...) Expand all Loading... |
| 112 virtual bool isMockTheme() const { return false; } | 112 virtual bool isMockTheme() const { return false; } |
| 113 | 113 |
| 114 static ScrollbarTheme* theme(); | 114 static ScrollbarTheme* theme(); |
| 115 | 115 |
| 116 private: | 116 private: |
| 117 static ScrollbarTheme* nativeTheme(); // Must be implemented to return the c
orrect theme subclass. | 117 static ScrollbarTheme* nativeTheme(); // Must be implemented to return the c
orrect theme subclass. |
| 118 }; | 118 }; |
| 119 | 119 |
| 120 } | 120 } |
| 121 #endif | 121 #endif |
| OLD | NEW |