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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 // Scrollbar::setNeedsPaintInvalidation is called. If false, then only parts | 51 // Scrollbar::setNeedsPaintInvalidation is called. If false, then only parts |
52 // which are explicitly invalidated will be repainted. | 52 // which are explicitly invalidated will be repainted. |
53 virtual bool shouldRepaintAllPartsOnInvalidation() const { return true; } | 53 virtual bool shouldRepaintAllPartsOnInvalidation() const { return true; } |
54 | 54 |
55 virtual void updateEnabledState(const ScrollbarThemeClient&) {} | 55 virtual void updateEnabledState(const ScrollbarThemeClient&) {} |
56 | 56 |
57 virtual bool paint(const Scrollbar&, GraphicsContext&, const CullRect&); | 57 virtual bool paint(const Scrollbar&, GraphicsContext&, const CullRect&); |
58 | 58 |
59 virtual ScrollbarPart hitTest(const ScrollbarThemeClient&, const IntPoint&); | 59 virtual ScrollbarPart hitTest(const ScrollbarThemeClient&, const IntPoint&); |
60 | 60 |
| 61 // This returns a fixed value regardless of device-scale-factor. |
| 62 // See also Scrollbar::scrollbarThickness(). |
61 virtual int scrollbarThickness(ScrollbarControlSize = RegularScrollbar) { | 63 virtual int scrollbarThickness(ScrollbarControlSize = RegularScrollbar) { |
62 return 0; | 64 return 0; |
63 } | 65 } |
64 virtual int scrollbarMargin() const { return 0; } | 66 virtual int scrollbarMargin() const { return 0; } |
65 | 67 |
66 virtual WebScrollbarButtonsPlacement buttonsPlacement() const { | 68 virtual WebScrollbarButtonsPlacement buttonsPlacement() const { |
67 return WebScrollbarButtonsPlacementSingle; | 69 return WebScrollbarButtonsPlacementSingle; |
68 } | 70 } |
69 | 71 |
70 virtual bool supportsControlTints() const { return false; } | 72 virtual bool supportsControlTints() const { return false; } |
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
188 static DisplayItem::Type trackPiecePartToDisplayItemType(ScrollbarPart); | 190 static DisplayItem::Type trackPiecePartToDisplayItemType(ScrollbarPart); |
189 | 191 |
190 private: | 192 private: |
191 static ScrollbarTheme& | 193 static ScrollbarTheme& |
192 nativeTheme(); // Must be implemented to return the correct theme subclass. | 194 nativeTheme(); // Must be implemented to return the correct theme subclass. |
193 static bool gMockScrollbarsEnabled; | 195 static bool gMockScrollbarsEnabled; |
194 }; | 196 }; |
195 | 197 |
196 } // namespace blink | 198 } // namespace blink |
197 #endif | 199 #endif |
OLD | NEW |