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