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 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
81 float oldPosition, | 81 float oldPosition, |
82 float newPosition) const { | 82 float newPosition) const { |
83 return AllParts; | 83 return AllParts; |
84 } | 84 } |
85 | 85 |
86 virtual void paintScrollCorner(GraphicsContext&, | 86 virtual void paintScrollCorner(GraphicsContext&, |
87 const DisplayItemClient&, | 87 const DisplayItemClient&, |
88 const IntRect& cornerRect); | 88 const IntRect& cornerRect); |
89 virtual void paintTickmarks(GraphicsContext&, | 89 virtual void paintTickmarks(GraphicsContext&, |
90 const Scrollbar&, | 90 const Scrollbar&, |
91 const IntRect&) {} | 91 const IntRect&); |
92 | 92 |
93 virtual bool shouldCenterOnThumb(const ScrollbarThemeClient&, | 93 virtual bool shouldCenterOnThumb(const ScrollbarThemeClient&, |
94 const PlatformMouseEvent&); | 94 const PlatformMouseEvent&); |
95 virtual bool shouldSnapBackToDragOrigin(const ScrollbarThemeClient&, | 95 virtual bool shouldSnapBackToDragOrigin(const ScrollbarThemeClient&, |
96 const PlatformMouseEvent&); | 96 const PlatformMouseEvent&); |
97 virtual bool shouldDragDocumentInsteadOfThumb(const ScrollbarThemeClient&, | 97 virtual bool shouldDragDocumentInsteadOfThumb(const ScrollbarThemeClient&, |
98 const PlatformMouseEvent&) { | 98 const PlatformMouseEvent&) { |
99 return false; | 99 return false; |
100 } | 100 } |
101 | 101 |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
169 virtual void unregisterScrollbar(ScrollbarThemeClient&) {} | 169 virtual void unregisterScrollbar(ScrollbarThemeClient&) {} |
170 | 170 |
171 virtual bool isMockTheme() const { return false; } | 171 virtual bool isMockTheme() const { return false; } |
172 | 172 |
173 static ScrollbarTheme& theme(); | 173 static ScrollbarTheme& theme(); |
174 | 174 |
175 static void setMockScrollbarsEnabled(bool flag); | 175 static void setMockScrollbarsEnabled(bool flag); |
176 static bool mockScrollbarsEnabled(); | 176 static bool mockScrollbarsEnabled(); |
177 | 177 |
178 protected: | 178 protected: |
| 179 virtual int tickmarkBorderWidth() { return 0; } |
179 static DisplayItem::Type buttonPartToDisplayItemType(ScrollbarPart); | 180 static DisplayItem::Type buttonPartToDisplayItemType(ScrollbarPart); |
180 static DisplayItem::Type trackPiecePartToDisplayItemType(ScrollbarPart); | 181 static DisplayItem::Type trackPiecePartToDisplayItemType(ScrollbarPart); |
181 | 182 |
182 private: | 183 private: |
183 static ScrollbarTheme& | 184 static ScrollbarTheme& |
184 nativeTheme(); // Must be implemented to return the correct theme subclass. | 185 nativeTheme(); // Must be implemented to return the correct theme subclass. |
185 static bool gMockScrollbarsEnabled; | 186 static bool gMockScrollbarsEnabled; |
186 }; | 187 }; |
187 | 188 |
188 } // namespace blink | 189 } // namespace blink |
189 #endif | 190 #endif |
OLD | NEW |